Why did RecognitionListener stop working in JellyBean?

前端 未结 4 1148
清酒与你
清酒与你 2021-02-01 08:07

For everyone using Android\'s voice recognition API, there used to be a handy RecognitionListener you could register that would push various events to your callbacks. In particu

4条回答
  •  粉色の甜心
    2021-02-01 08:40

    I have a service that is implementing RecognitionListener and I also override onBufferReceived(byte[]) method. I was investigating why the speech recognition is much slower to call onResults() on <=ICS . The only difference I could find was that onBufferReceived is called on phones <= ICS. On JellyBean the onBufferReceived() is never called and onResults() is called significantly faster and I'm thinking its because of the overhead to call onBufferReceived every second or millisecond. Maybe thats why they did away with onBufferReceived()?

提交回复
热议问题