v/GTT
1
0
mirror of https://github.com/eeeXun/GTT.git synced 2025-06-21 17:20:25 -07:00
eeeXun 3c33708f33 style: rename LibreTranslate to ArgosTranslate
LibreTranslate is an API and web-app built on top of Argos Translate
2023-01-27 16:49:33 +08:00

23 lines
425 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("ArgosTranslate does not support text to speech")
}