dev
This commit is contained in:
parent
89f642cea9
commit
daa9b9d097
@ -129,7 +129,7 @@ function playSpeech(text) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
function playSpeechAfterAudio(text) {
|
function playSpeechAfterAudio(text, widgetID) {
|
||||||
playAudio(widget.AudioUrl, widgetID, () => playSpeech(text));
|
playAudio(widget.AudioUrl, widgetID, () => playSpeech(text));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -175,7 +175,7 @@ async function widgetView() {
|
|||||||
addText(donat.Text + " " + donat.Amount)
|
addText(donat.Text + " " + donat.Amount)
|
||||||
|
|
||||||
if (widget.AudioUrl) {
|
if (widget.AudioUrl) {
|
||||||
playSpeechAfterAudio(donat.Text);
|
playSpeechAfterAudio(donat.Text, widgetID);
|
||||||
} else {
|
} else {
|
||||||
playSpeech(donat.Text); // Если нет аудио, просто сразу играет речь
|
playSpeech(donat.Text); // Если нет аудио, просто сразу играет речь
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user