Spaces:
Running
on
Zero
Running
on
Zero
test
Browse files- staticfiles/aivtuber.js +1 -1
- staticfiles/livetest.html +5 -5
staticfiles/aivtuber.js
CHANGED
@@ -235,7 +235,7 @@ const getNextComment = () => {
|
|
235 |
}
|
236 |
|
237 |
const handleNewLiveCommentIfNeeded = async () => {
|
238 |
-
alert("get live chat");
|
239 |
if (liveCommentQueues.length == 0) {
|
240 |
// QUEUEがなければ何もしない
|
241 |
setTimeout(handleNewLiveCommentIfNeeded, INTERVAL_MILL_SECONDS_HANDLING_COMMENTS);
|
|
|
235 |
}
|
236 |
|
237 |
const handleNewLiveCommentIfNeeded = async () => {
|
238 |
+
//alert("get live chat");
|
239 |
if (liveCommentQueues.length == 0) {
|
240 |
// QUEUEがなければ何もしない
|
241 |
setTimeout(handleNewLiveCommentIfNeeded, INTERVAL_MILL_SECONDS_HANDLING_COMMENTS);
|
staticfiles/livetest.html
CHANGED
@@ -152,7 +152,7 @@ audioRecognize() {
|
|
152 |
let result_json = JSON.parse(text)
|
153 |
text = result_json.results[0].alternatives[0].transcript;
|
154 |
this.languageCode = result_json.results[0].languageCode;
|
155 |
-
alert("154 ask")
|
156 |
this.ask(text)
|
157 |
})
|
158 |
}
|
@@ -173,9 +173,9 @@ autoRecognizeMessage(message) {
|
|
173 |
this.playLoadingVideo();
|
174 |
|
175 |
this.rec.stop()
|
176 |
-
alert("172 start================================= "+message)
|
177 |
let transcript = message
|
178 |
-
alert("transcript"+transcript)
|
179 |
this.ask(transcript);
|
180 |
//for (var i = e.resultIndex; i < e.results.length; i++) {
|
181 |
// if (!e.results[i].isFinal) continue
|
@@ -563,9 +563,9 @@ async fetchWithRetries(url, options, retries = 1) {
|
|
563 |
miiboAvatar.autoRecognize();
|
564 |
|
565 |
const onClickSends = () => {
|
566 |
-
alert("start send ============================ ")
|
567 |
let utterance = document.querySelector("#utterances");
|
568 |
-
alert(utterances.value)
|
569 |
|
570 |
miiboAvatar.autoRecognizeMessage(utterance.value)
|
571 |
//handleLiveComment(utterance.value, '匿名');
|
|
|
152 |
let result_json = JSON.parse(text)
|
153 |
text = result_json.results[0].alternatives[0].transcript;
|
154 |
this.languageCode = result_json.results[0].languageCode;
|
155 |
+
//alert("154 ask")
|
156 |
this.ask(text)
|
157 |
})
|
158 |
}
|
|
|
173 |
this.playLoadingVideo();
|
174 |
|
175 |
this.rec.stop()
|
176 |
+
//alert("172 start================================= "+message)
|
177 |
let transcript = message
|
178 |
+
//alert("transcript"+transcript)
|
179 |
this.ask(transcript);
|
180 |
//for (var i = e.resultIndex; i < e.results.length; i++) {
|
181 |
// if (!e.results[i].isFinal) continue
|
|
|
563 |
miiboAvatar.autoRecognize();
|
564 |
|
565 |
const onClickSends = () => {
|
566 |
+
//alert("start send ============================ ")
|
567 |
let utterance = document.querySelector("#utterances");
|
568 |
+
//alert(utterances.value)
|
569 |
|
570 |
miiboAvatar.autoRecognizeMessage(utterance.value)
|
571 |
//handleLiveComment(utterance.value, '匿名');
|