feat: update getSpeechToTextAPI to include id parameter
--bug=1058746 --user=刘瑞斌 【应用】应用语音输入开启自动发送,对话页面发送语音报错 https://www.tapd.cn/62980211/s/1731337
This commit is contained in:
parent
5a8c7a0e00
commit
ee8412f34d
@ -651,7 +651,7 @@ class RecorderManage {
|
|||||||
}
|
}
|
||||||
const getSpeechToTextAPI = () => {
|
const getSpeechToTextAPI = () => {
|
||||||
if (props.type === 'ai-chat') {
|
if (props.type === 'ai-chat') {
|
||||||
return (data?: any, loading?: Ref<boolean>) => {
|
return (id?: any, data?: any, loading?: Ref<boolean>) => {
|
||||||
return chatAPI.speechToText(data, loading)
|
return chatAPI.speechToText(data, loading)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user