mirror of
https://github.com/eeeXun/GTT.git
synced 2025-05-18 08:40:35 -07:00
23 lines
434 B
Go
23 lines
434 B
Go
package apertiumtranslate
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
func (t *ApertiumTranslate) LockAvailable() bool {
|
|
return t.SoundLock.Available()
|
|
}
|
|
|
|
func (t *ApertiumTranslate) LockAcquire() {
|
|
t.SoundLock.Acquire()
|
|
}
|
|
|
|
func (t *ApertiumTranslate) StopTTS() {
|
|
t.SoundLock.Stop = true
|
|
}
|
|
|
|
func (t *ApertiumTranslate) PlayTTS(lang, message string) error {
|
|
t.SoundLock.Release()
|
|
return errors.New(t.EngineName + " does not support text to speech")
|
|
}
|