This commit is contained in:
mm 2024-10-30 16:02:17 +05:00
parent 526d031a22
commit 3d0940541e

View File

@ -68,7 +68,7 @@ function addText(text) {
contentDiv.appendChild(p);
}
function playAudio(audioUrl, widgetID) {
async function playAudio(audioUrl, widgetID) {
if (!audioUrl.includes("http")) {
audioUrl = "http://147.45.237.174/api/widget/media/audio/file/get/" + String(widgetID)
}
@ -168,7 +168,7 @@ async function widgetView() {
addImage(widget.ImageUrl)
}
if (widget.AudioUrl) {
playAudio(widget.AudioUrl, widgetID)
await playAudio(widget.AudioUrl, widgetID)
}
playSpeech(donat.Text)