This commit is contained in:
mm 2024-10-30 02:37:15 +05:00
parent a0b9b8fbdd
commit 7f681938f5

View File

@ -79,8 +79,11 @@ async function playAudio(audioUrl) {
function playSpeech(text) { function playSpeech(text) {
audioUrl = fetch(ttsUrl + '/generate', { audioUrl = fetch(ttsUrl + '/generate', {
method: 'POST', method: 'POST',
headers: {
'Content-Type': 'application/json;charset=utf-8'
},
body: JSON.stringify({ body: JSON.stringify({
"text": text, text: text,
}), }),
}).then( }).then(
response => { response => {