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

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

View File

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