chore: audio api adjust

This commit is contained in:
jialin
2024-11-27 19:35:19 +08:00
parent 230120fff5
commit 60c92b8a98
12 changed files with 73 additions and 67 deletions
@@ -109,7 +109,9 @@ const GroundLeft: React.FC<MessageProps> = forwardRef((props, ref) => {
const params = {
...parameters,
file: new File([audioData.data], audioData.name)
file: new File([audioData.data], audioData.name, {
type: audioData.type
})
};
const result: any = await speechToText({
data: params