fix: correct API method for speech-to-text functionality

--bug=1058103 --user=刘瑞斌 【应用】简易应用-语音识别模型-调试预览页-语音识别失败且停止按钮显示异常 https://www.tapd.cn/62980211/s/1727412
v3.2
CaptainB 2025-07-10 10:56:52 +08:00
parent 399e1dc6d4
commit b2b144af7c
1 changed files with 1 additions and 1 deletions

View File

@ -643,7 +643,7 @@ const getSpeechToTextAPI = () => {
return chatAPI.speechToText(data, loading)
}
} else {
return applicationApi.postTextToSpeech
return applicationApi.speechToText
}
}
const speechToTextAPI = getSpeechToTextAPI()