AudioRecord: start() status -38

前端 未结 4 717
旧巷少年郎
旧巷少年郎 2020-12-31 06:00

I have the following problem: I use SpeechRecognizer to identify a few words. I use the

public void onResults

method to destroy the SpeechR

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-31 06:22

    You need to make sure you issue audioRecord.stop(); and audioRecord.release(); in your onPause() or similar methods. If you don't, the next time you run the app, you won't get access to the device, and you'll get start() status -38

提交回复
热议问题