private void InitiateNoTalkBackMode() { needUserAnswerId = ConfigurationManager.AppSettings["AnswerUtteranceId"]; askUserToRepeat = ConfigurationManager.AppSettings["AskToRepeat"]; shopLensTts = new ShopLensTextToSpeech(this, TtsSpeakAfterInit, TtsStoppedSpeaking); voiceRecognizer = new ShopLensSpeechRecognizer(OnVoiceRecognitionResults); }
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); }
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); }