diff --git a/web/asr/main.js b/web/asr/main.js index 8811fd6..0d3e10d 100644 --- a/web/asr/main.js +++ b/web/asr/main.js @@ -348,7 +348,7 @@ const sleep = (delay) => new Promise((resolve) => setTimeout(resolve, delay)) async function is_speaking() { const response = await fetch('/is_speaking', { body: JSON.stringify({ - sessionid: 0, + sessionid: parseInt(parent.document.getElementById('sessionid').value), }), headers: { 'Content-Type': 'application/json' @@ -396,6 +396,7 @@ function getJsonMessage( jsonMsg ) { body: JSON.stringify({ text: rectxt.replace(/ +/g,""), type: 'chat', + sessionid:parseInt(parent.document.getElementById('sessionid').value), }), headers: { 'Content-Type': 'application/json' diff --git a/web/rtcpushapi-asr.html b/web/rtcpushapi-asr.html index 01cc632..8cef368 100644 --- a/web/rtcpushapi-asr.html +++ b/web/rtcpushapi-asr.html @@ -29,6 +29,8 @@ + +