File tree Expand file tree Collapse file tree 3 files changed +19
-3
lines changed
Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Original file line number Diff line number Diff 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:
Original file line number Diff line number Diff 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:
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments