Skip to content

Commit 1a9f9ed

Browse files
committed
disable TTS and wake-word during setup mode
1 parent bb9cd96 commit 1a9f9ed

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

www/scripts/sepiaFW.account.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -530,10 +530,10 @@ function sepiaFW_build_account(sepiaSessionId){
530530
//Setup login-box
531531
Account.setupLoginBox = function(){
532532
//demo login?
533-
var isDemoLogin = SepiaFW.data.get('isDemoLogin');
534-
if (isDemoLogin){
535-
userRoles = [isDemoLogin];
536-
skipLogin();
533+
var demoLogin = SepiaFW.data.get('isDemoLogin');
534+
if (demoLogin){
535+
userRoles = [demoLogin];
536+
skipLogin(demoLogin);
537537
return;
538538
}
539539
//try restore from data-storage to avoid login popup - refresh required after e.g. 1 day = 1000*60*60*24
@@ -659,7 +659,13 @@ function sepiaFW_build_account(sepiaSessionId){
659659
//$('#sepiaFW-login-extend-box').hide();
660660
});
661661
}
662-
function skipLogin(){
662+
function skipLogin(demoId){
663+
if (demoId && demoId == "setup"){
664+
//temporarily disabled
665+
SepiaFW.speech.skipTTS = true;
666+
SepiaFW.wakeTriggers.useWakeWord = false;
667+
SepiaFW.debug.log("Deactivated for setup: TTS, Wake-Word");
668+
}
663669
Account.toggleLoginBox();
664670
broadcastEnterWithoutLogin();
665671
Account.afterLogin();
@@ -896,7 +902,7 @@ function sepiaFW_build_account(sepiaSessionId){
896902
SepiaFW.data.set('isDemoLogin', userId);
897903
userRoles = [userId];
898904
SepiaFW.ui.hideLoader();
899-
skipLogin();
905+
skipLogin(userId);
900906
return;
901907
}
902908
//hash password

0 commit comments

Comments
 (0)