Skip to content

Commit

Permalink
Update ai_tts.go
Browse files Browse the repository at this point in the history
  • Loading branch information
fangliuyu authored Sep 11, 2022
1 parent ca2fba4 commit 70bd7c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/ai_reply/ai_tts.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,13 @@ func (tts *ttsInstances) setDefaultSoundMode(name string) error {
tts.RUnlock()
m, ok := control.Lookup(ttsServiceName)
if !ok {
return errors.New("[error]no fund service")
return errors.New("[tts]service no fund ")
}
err := m.SetData(-2905, index)
if err == nil {
soundMode := tts.soundMode[m.GetData(-2905)]
if soundMode != tts.soundMode[index] {
return errors.New("检验数据错误\n当前写入的数据为" + soundMode)
return errors.New("[tts]检验数据失败,当前写入的数据为" + soundMode)
}
tts.defaultSoundMode = soundMode
}
Expand Down

0 comments on commit 70bd7c2

Please sign in to comment.