diff --git a/internal/model/widget-templates.go b/internal/model/widget-templates.go index 633b018..3bbd9c2 100644 --- a/internal/model/widget-templates.go +++ b/internal/model/widget-templates.go @@ -129,8 +129,8 @@ function playSpeech(text) { ) } -function playSpeechAfterAudio(text, widgetID) { - playAudio(widget.AudioUrl, widgetID, () => playSpeech(text)); +function playSpeechAfterAudio(audioUrl, widgetID, text) { + playAudio(audioUrl, widgetID, () => playSpeech(text)); } function delay(ms) {