public PhoneCallBroadcastReceiver(Context context) { Log.Info(TAG, "Contructor"); _context = context; _config = Config.Instance(); _tts = TextToSpeechLib.Instance(); _stt = STTLib.Instance(); }
public SMSBroadcastReceiver(Context context) { Log.Info(TAG, "test contructor broadcast service"); _messengeQueue = Model.MessengeQueue.GetInstance(); _config = Config.Instance(); _context = context; //_activity = act; ttsLib = TextToSpeechLib.Instance(); _stt = STTLib.Instance(); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.STT_Layout); Button btn_ins = (Button)FindViewById(Resource.Id.btn_ins); Button btn_listen = (Button)FindViewById(Resource.Id.btn_lis); TextView txt_view = (TextView)FindViewById(Resource.Id.txt_view); // Create your application here btn_ins.Click += delegate { _stt = STTLib.Instance(); }; btn_listen.Click += delegate { //StartActivityForResult(_stt.IntentSTT(),0); SpeechRecognizer speech = SpeechRecognizer.CreateSpeechRecognizer(this); speech.SetRecognitionListener(this); speech.StartListening(_stt.IntentSTT()); }; }