fix: aireply nil

This commit is contained in:
源文雨 2022-12-13 20:49:34 +08:00
parent 825a5a0d43
commit e144db9205

View File

@ -211,7 +211,7 @@ func (t *ttsmode) getSoundMode(ctx *zero.Ctx) (tts.TTS, error) {
}
mode := ttsModes[m]
ins, ok := ttsins[mode]
if !ok {
if !ok || ins == nil {
switch mode {
case "百度":
ins = baidutts.NewBaiduTTS(int(i&0x0f00) >> 8)