From 7f681938f5033981c37622a8579621b3c55dac66 Mon Sep 17 00:00:00 2001 From: mm Date: Wed, 30 Oct 2024 02:37:15 +0500 Subject: [PATCH] dev --- internal/model/widget-templates.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 => {