@@ -348,11 +348,6 @@ function sepiaFW_build_webSocket_client(){
348348 //actions triggered when the client becomes active (in this case when the active channel is obtained)
349349 Client . onActive = function ( ) {
350350 //LOAD SOME MORE STUFF that requires account verification:
351-
352- //refresh timers
353- if ( SepiaFW . events ) {
354- SepiaFW . events . setupTimeEvents ( ) ;
355- }
356351
357352 //update myView
358353 SepiaFW . ui . updateMyView ( false , true , 'onActive' ) ;
@@ -732,6 +727,8 @@ function sepiaFW_build_webSocket_client(){
732727 $ ( myEventsBtn ) . off ( ) ;
733728 $ ( myEventsBtn ) . on ( "click" , function ( ) {
734729 SepiaFW . animate . flash ( this . id ) ;
730+ SepiaFW . ui . updateMyView ( true , true , 'shortcutsButton' ) ;
731+ /*
735732 var dataset = {}; dataset.info = "direct_cmd";
736733 dataset.cmd = "events_personal;;";
737734 dataset.newReceiver = SepiaFW.assistant.id;
@@ -741,6 +738,7 @@ function sepiaFW_build_webSocket_client(){
741738 options.showView = true;
742739 options.skipTTS = true;
743740 Client.sendCommand(dataset, options);
741+ */
744742 closeControlsMenueWithDelay ( ) ;
745743 } ) ;
746744 }
@@ -773,6 +771,14 @@ function sepiaFW_build_webSocket_client(){
773771 if ( optimizeAsrResult && ( SepiaFW . speech . language === "de" ) && text && text . match ( / ^ ( G T A | G P A | P P A | W P A | d p a | l i e b h e r r ) ( ) .+ / ig) ) {
774772 text = text . replace ( / ^ ( G T A | G P A | P P A | W P A | d p a | l i e b h e r r ) ( ) / i, "Sepia " ) ;
775773 }
774+
775+ //show results in frame as well? (SHOW ONLY!)
776+ if ( SepiaFW . frames && SepiaFW . frames . isOpen && SepiaFW . frames . canShowSpeechToTextInput ( ) ) {
777+ SepiaFW . frames . handleSpeechToTextInput ( {
778+ "text" : text ,
779+ "isFinal" : true
780+ } ) ;
781+ }
776782
777783 //try speech-bubble
778784 var inBox = document . getElementById ( 'sepiaFW-chat-controls-speech-box-bubble' ) ;
@@ -799,6 +805,14 @@ function sepiaFW_build_webSocket_client(){
799805 }
800806 }
801807 Client . asrCallbackInterim = function ( text ) {
808+ //show results in frame as well? (SHOW ONLY!)
809+ if ( SepiaFW . frames && SepiaFW . frames . isOpen && SepiaFW . frames . canShowSpeechToTextInput ( ) ) {
810+ SepiaFW . frames . handleSpeechToTextInput ( {
811+ "text" : text ,
812+ "isFinal" : false
813+ } ) ;
814+ }
815+
802816 //try speech-bubble
803817 var inBox = document . getElementById ( 'sepiaFW-chat-controls-speech-box-bubble' ) ;
804818 if ( inBox ) {
0 commit comments