播放游戏时,停止待机任务
This commit is contained in:
@@ -62,6 +62,7 @@ func (tts *AliTTS) getToken() error {
|
||||
if err != nil {
|
||||
return err
|
||||
} else if resultMessage.ErrMsg != "" {
|
||||
zap.S().Errorf("获取Token失败: %s", resultMessage.ErrMsg)
|
||||
return errorsx.ThirdPartyErr
|
||||
}
|
||||
tts.tokenResult = resultMessage.TokenResult
|
||||
@@ -70,8 +71,9 @@ func (tts *AliTTS) getToken() error {
|
||||
|
||||
func (tts *AliTTS) Get(text string) (io.Reader, error) {
|
||||
param := nls.DefaultSpeechSynthesisParam()
|
||||
param.Volume = 100
|
||||
param.Volume = 200
|
||||
param.Voice = tts.Voice
|
||||
param.SpeechRate = tts.SpeechRate
|
||||
|
||||
err := tts.getToken()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user