fix: tts request content-type

This commit is contained in:
jialin
2025-11-05 17:09:16 +08:00
parent 333b430b97
commit 6173f3b459
9 changed files with 65 additions and 33 deletions
+3
View File
@@ -96,6 +96,9 @@ export const textToSpeech = async (params: any, options?: any) => {
const res = await fetch(AUDIO_TEXT_TO_SPEECH_API, {
method: 'POST',
body: JSON.stringify(params.data),
headers: {
'Content-Type': 'application/json'
},
signal: params.signal
});
if (!res.ok) {