dev
This commit is contained in:
parent
a0b9b8fbdd
commit
7f681938f5
@ -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 => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user