關於來電時啟動語音辨識的問題~"~
請問一下~!
我程式寫在case TelephonyManager.CALL_STATE_RINGING:底下
我是寫當來電時執行
Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
intent.putExtra(RecognizerIntent.EXTRA_PROMPT, "語音辨識");
startActivityForResult(intent, VOICE_RECOGNITION_REQUEST_CODE);
但是當電話來的時候他沒有跑出來
而等到電話掛斷了
才出現語音辨識
問題是在哪裡呢??
















![[科技新報]好友母親驟逝,17歲少女開發黑色素瘤早期診斷工具,準確率80%](https://www.iarticlesnet.com/pub/img/article/7194/1403824030369_xs.jpg)
