From bfc2c4c4b83a966545b0548d3661d8b5ab576955 Mon Sep 17 00:00:00 2001 From: Robert Richter Date: Mon, 22 Jun 2020 12:31:01 +0200 Subject: [PATCH] update Mo 22. Jun 12:31:01 CEST 2020 --- public/js/client_waip.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/js/client_waip.js b/public/js/client_waip.js index 52ba234..d50c02b 100644 --- a/public/js/client_waip.js +++ b/public/js/client_waip.js @@ -290,9 +290,12 @@ socket.on('io.playtts', function (data) { // playPromise won’t be defined. if (playPromise !== undefined) { playPromise.then(function () { + console.log('start audio'); + // Automatic playback started! audio.play(); }).catch(function (error) { + console.log('Automatic playback failed'); // Automatic playback failed. // Show a UI element to let the user manually start playback. $('#volume').addClass('btn-danger');