PocketSphinx录制IllegalStateException AudioRecord对象的错误

时间:2014-02-25 21:00:59

标签: android cmusphinx android-audiorecord

在某些设备上(没有实际的测试设备),当我启动PocketSphinx识别时,我关闭了一个强制关闭,崩溃报告如下(注意它之前已被混淆):

java.lang.IllegalStateException: startRecording() called on an uninitialized AudioRecord.
at android.media.AudioRecord.startRecording(AudioRecord.java:515)
at edu.cmu.pocketsphinx.SpeechRecognizer.setSearch(Unknown Source)
at edu.cmu.pocketsphinx.SpeechRecognizer$1.handleMessage(Unknown Source)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:155)
at android.os.HandlerThread.run(HandlerThread.java:60)

根据崩溃报告,它似乎并非特定于某个设备......

enter image description here

0 个答案:

没有答案