Hi,
i used the onStartOfSpeech() method of the SpeechDelegate to show the Speech Progress View. But then the progress view is shown before the speech is ready. This is because the speechRecognizer.startListening(intent) method is an async operation Instead i would have to use the SpeechRecognizerListener method onBeginningOfSpeech(). The documentation says
Called when the endpointer is ready for the user to start speaking.
So a solution would be to call the onStartOfSpeech() in onBeginningOfSpeech() or instead introduce another callback in SpeechDelegate onBeginningOfSpeech()
Anyway thanks for the work you put into this, it's a nice sample how to use the Android speech features.
Hi, i used the
onStartOfSpeech()
method of the SpeechDelegate to show the Speech Progress View. But then the progress view is shown before the speech is ready. This is because thespeechRecognizer.startListening(intent) method is an async operation
Instead i would have to use the SpeechRecognizerListener method onBeginningOfSpeech(). The documentation saysSo a solution would be to call the
onStartOfSpeech()
inonBeginningOfSpeech()
or instead introduce another callback in SpeechDelegateonBeginningOfSpeech()
Anyway thanks for the work you put into this, it's a nice sample how to use the Android speech features.