diff --git a/internal/model/widget-templates.go b/internal/model/widget-templates.go index 614fa1a..3c68ad0 100644 --- a/internal/model/widget-templates.go +++ b/internal/model/widget-templates.go @@ -79,8 +79,11 @@ async function playAudio(audioUrl) { function playSpeech(text) { audioUrl = fetch(ttsUrl + '/generate', { method: 'POST', + headers: { + 'Content-Type': 'application/json;charset=utf-8' + }, body: JSON.stringify({ - "text": text, + text: text, }), }).then( response => {