Skip to content

Commit bba3cd8

Browse files
authored
Merge pull request #25 from SEPIA-Framework/dev
final updates for v0.21.0b
2 parents 3532cc7 + c509bf0 commit bba3cd8

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

www/scripts/sepiaFW.speech.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,13 @@ function sepiaFW_build_speech(){
344344
}
345345
function broadcastWrongAsrSettings(){
346346
//EXAMPLE:
347-
SepiaFW.ui.showInfo(SepiaFW.local.g('asrSettingsProblem'));
347+
var msg = SepiaFW.local.g('asrSettingsProblem');
348+
if (!SepiaFW.ui.isSecureContext){
349+
msg += " " + SepiaFW.local.g('possible_reason_origin_unsecure')
350+
+ " - <a href='https://github.com/SEPIA-Framework/sepia-docs/wiki/SSL-for-your-Server' target=_blank style='color: inherit;'>"
351+
+ SepiaFW.local.g('help') + "!</a>";
352+
}
353+
SepiaFW.ui.showInfo(msg);
348354
}
349355
function broadcastNoAsrSupport(){
350356
//EXAMPLE:

www/scripts/sepiaFW.speechWebSocket.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,13 @@ function sepiaFW_build_speechWebSocket(){
7070
}
7171
function broadcastWrongAsrSettings(){
7272
//EXAMPLE:
73-
SepiaFW.ui.showInfo(SepiaFW.local.g('asrSettingsProblem'));
73+
var msg = SepiaFW.local.g('asrSettingsProblem');
74+
if (!SepiaFW.ui.isSecureContext){
75+
msg += " " + SepiaFW.local.g('possible_reason_origin_unsecure')
76+
+ " - <a href='https://github.com/SEPIA-Framework/sepia-docs/wiki/SSL-for-your-Server' target=_blank style='color: inherit;'>"
77+
+ SepiaFW.local.g('help') + "!</a>";
78+
}
79+
SepiaFW.ui.showInfo(msg);
7480
}
7581
function broadcastNoAsrSupport(){
7682
//EXAMPLE:

www/scripts/sepiaFW.wakeWordSettings.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,11 @@ function sepiaFW_build_wake_word_settings() {
136136
});
137137

138138
if (!SepiaFW.ui.isSecureContext){
139-
WakeWordSettings.debugLog("Please note: The browser thinks your page origin is NOT secure! Speech recognition might not work properly.", true);
139+
WakeWordSettings.debugLog(
140+
"Please note: The browser thinks your page origin is NOT secure! Speech recognition might not work properly."
141+
+ " - <a href='https://github.com/SEPIA-Framework/sepia-docs/wiki/SSL-for-your-Server' target=_blank style='color: inherit;'>"
142+
+ SepiaFW.local.g('help') + "!</a>",
143+
true);
140144
}
141145
}
142146

0 commit comments

Comments
 (0)