Esempio n. 1
0
        private void InitiateNoTalkBackMode()
        {
            needUserAnswerId = ConfigurationManager.AppSettings["AnswerUtteranceId"];
            askUserToRepeat  = ConfigurationManager.AppSettings["AskToRepeat"];

            shopLensTts = new ShopLensTextToSpeech(this, TtsSpeakAfterInit, TtsStoppedSpeaking);

            voiceRecognizer = new ShopLensSpeechRecognizer(OnVoiceRecognitionResults);
        }
Esempio n. 2
0
 public ImageRecognizer(Context context, Activity activity)
 {
     this.activity    = activity;
     this.context     = context;
     textRecognizer   = new TextRecognizer.Builder(context).Build();
     shopLensVoiceRec = new ShopLensSpeechRecognizer(OnVoiceRecResults);
     sltts            = new ShopLensTextToSpeech(context, OnTextToSpeechInit, OnTextToSpeechEndOfSpeech);
     tts = new TextToSpeech(context, sltts);
 }
Esempio n. 3
0
        private void InitiateNoTalkBackMode()
        {
            needUserAnswerId = ConfigurationManager.AppSettings["AnswerUtteranceId"];
            askUserToRepeat  = ConfigurationManager.AppSettings["AskToRepeat"];
            afterActionAsk   = ConfigurationManager.AppSettings["AfterActionMsg"];
            cmdOpenMain      = ConfigurationManager.AppSettings["CmdOpenMain"];
            cmdOpenCart      = ConfigurationManager.AppSettings["CmdOpenCart"];
            cmdVoiceList     = ConfigurationManager.AppSettings["CmdVoiceCartList"];
            cmdHelp          = ConfigurationManager.AppSettings["CmdHelp"];
            cmdRemind        = ConfigurationManager.AppSettings["CmdRemind"];

            shopLensTts     = new ShopLensTextToSpeech(this, TtsSpeakAfterInit, TtsStoppedSpeaking);
            voiceRecognizer = new ShopLensSpeechRecognizer(OnVoiceRecognitionResults);
        }