This commit is contained in:
mm 2024-10-30 16:25:25 +05:00
parent 89f642cea9
commit daa9b9d097

View File

@ -129,7 +129,7 @@ function playSpeech(text) {
)
}
function playSpeechAfterAudio(text) {
function playSpeechAfterAudio(text, widgetID) {
playAudio(widget.AudioUrl, widgetID, () => playSpeech(text));
}
@ -175,7 +175,7 @@ async function widgetView() {
addText(donat.Text + " " + donat.Amount)
if (widget.AudioUrl) {
playSpeechAfterAudio(donat.Text);
playSpeechAfterAudio(donat.Text, widgetID);
} else {
playSpeech(donat.Text); // Если нет аудио, просто сразу играет речь
}