deeplX function added

This commit is contained in:
testman
2024-03-24 19:44:55 +09:00
parent 2fe9ca2704
commit 1d2d71db48
9 changed files with 54 additions and 3 deletions

View File

@@ -56,7 +56,8 @@ export async function sayTTS(character:character,text:string) {
const audioContext = new AudioContext();
const da = await fetch(`https://api.elevenlabs.io/v1/text-to-speech/${character.ttsSpeech}`, {
body: JSON.stringify({
text: text
text: text,
model_id: "eleven_multilingual_v2"
}),
method: "POST",
headers: {