v/GTT
1
0
mirror of https://github.com/eeeXun/GTT.git synced 2025-05-18 00:30:40 -07:00
2023-01-29 11:03:39 +08:00

23 lines
426 B
Go

package argostranslate
import (
"errors"
)
func (t *ArgosTranslate) LockAvailable() bool {
return t.SoundLock.Available()
}
func (t *ArgosTranslate) LockAcquire() {
t.SoundLock.Acquire()
}
func (t *ArgosTranslate) StopTTS() {
t.SoundLock.Stop = true
}
func (t *ArgosTranslate) PlayTTS(lang string, message string) error {
t.SoundLock.Release()
return errors.New(t.EngineName + " does not support text to speech")
}