feat:语音对话优化
This commit is contained in:
@@ -158,7 +158,8 @@ func (m *MiMoService) Recognize(ctx context.Context, audio []byte, opts Options)
|
||||
}
|
||||
|
||||
if len(mResp.Choices) == 0 {
|
||||
return "", fmt.Errorf("stt: mimo returned empty choices")
|
||||
// MiMo 返回空结果,视为无法识别(非错误),返回空文本
|
||||
return "", nil
|
||||
}
|
||||
|
||||
text := strings.TrimSpace(mResp.Choices[0].Message.Content)
|
||||
|
||||
Reference in New Issue
Block a user