Skip to content

Commit 8ec2558

Browse files
committed
widget bugfix, we forgot starting phrase TTS on initialization
1 parent 31fbbc0 commit 8ec2558

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

widget/components/chat/PromptControls.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ function _initSTT(continuous = false, phrase = false) {
8585
sr.addEventListener("start", () => {
8686
sr.started = true;
8787
if (window.speechDebug)
88-
console.log(`STT ${ _type } started`)
88+
console.log(`STT ${ _type } started`, 'color: #ffcc00');
8989
})
9090
sr.addEventListener("end", () => {
9191
sr.started = false;
9292
if (window.speechDebug)
93-
console.log(`STT ${ _type } finished`)
93+
console.log(`STT ${ _type } finished`, 'color: #ffcc00');
9494
})
9595
9696
sr.onerror = (event) => {
@@ -176,8 +176,9 @@ function initSTTPhrase() {
176176
sttPhrase.value.start();
177177
}
178178
})
179-
console.log("starting phrase activation SR...")
180-
// sttPhrase.value.start();
179+
if (window.speechDebug)
180+
console.log(`starting phrase activation SR... `, 'color: #ffcc00');
181+
sttPhrase.value.start();
181182
}
182183
183184
// ---------------------------------------- UTILS ----------------------------------------

widget/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

widget/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chatfaq-widget",
3-
"version": "0.2.3",
3+
"version": "0.2.4",
44
"private": false,
55
"main": "./dist/chatfaq-widget.umd.cjs",
66
"module": "./dist/chatfaq-widget.mjs",

0 commit comments

Comments
 (0)