fix : 语音输出状态

This commit is contained in:
2025-12-29 14:08:11 +08:00
parent 3d6297231c
commit bffd1cba7e

View File

@@ -546,7 +546,6 @@ export function useRealtimeRecorderOnce() {
// 发送到服务器进行识别
await sendToASR(audioBlob);
isProcessing.value = false
} else {
throw new Error('录音数据为空或无效');
}
@@ -604,6 +603,7 @@ export function useRealtimeRecorderOnce() {
if (response.ok) {
const result = await response.json();
if(result.code == 200){
isProcessing.value = false
recognizedText.value = result.data || ''
}else{
$api.msg(result.msg || '识别失败')