update the name

This commit is contained in:
Yanyutin753
2024-05-07 08:28:34 +08:00
parent 5f7188b480
commit 5d6517c537
6 changed files with 23 additions and 23 deletions

View File

@@ -98,7 +98,7 @@ export const synthesizeOpenAISpeech = async (
token: string = '',
speaker: string = 'alloy',
text: string = '',
OpenAIModel: string = 'tts-1'
model: string = 'tts-1'
) => {
let error = null;
@@ -109,7 +109,7 @@ export const synthesizeOpenAISpeech = async (
'Content-Type': 'application/json'
},
body: JSON.stringify({
model: OpenAIModel,
model: model,
input: text,
voice: speaker
})