From 911866f9432c92104d865f7d76e95f5301e6ddc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=B9=E6=9F=B3=E7=85=9C?= <101934327+fangliuyu@users.noreply.github.com> Date: Sun, 11 Sep 2022 18:56:50 +0800 Subject: [PATCH] Update ai_tts.go --- plugin/ai_reply/ai_tts.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/ai_reply/ai_tts.go b/plugin/ai_reply/ai_tts.go index 66ec1cbf68..44f39bc333 100644 --- a/plugin/ai_reply/ai_tts.go +++ b/plugin/ai_reply/ai_tts.go @@ -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 }