初始化语音合成遇到问题
发布于2017-05 浏览:2338 回复:1
0
收藏

05-23 13:05:28.118 8772-8875/com.laitecn.laitesmarthomethings E/AudioRecord: AudioFlinger could not create record track, status: -1

05-23 13:05:28.125 8772-8875/com.laitecn.laitesmarthomethings E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -1.

05-23 13:05:28.125 8772-8875/com.laitecn.laitesmarthomethings E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.

05-23 13:05:28.132 8772-8875/com.laitecn.laitesmarthomethings W/System.err: java.lang.Exception: #3, Audio recording error., file: 

05-23 13:05:28.132 8772-8875/com.laitecn.laitesmarthomethings W/System.err:     at com.baidu.speech.EventManagerMic.createMicrophoneInputStream(EventManagerMic.java:176)

05-23 13:05:28.132 8772-8875/com.laitecn.laitesmarthomethings W/System.err:     at com.baidu.speech.EventManagerMic.send(EventManagerMic.java:98)

05-23 13:05:28.132 8772-8875/com.laitecn.laitesmarthomethings W/System.err:     at com.baidu.speech.EventManagerMic.send(EventManagerMic.java:65)

05-23 13:05:28.132 8772-8875/com.laitecn.laitesmarthomethings W/System.err:     at com.baidu.speech.EventManagerMessagePool$1.run(EventManagerMessagePool.java:56)

05-23 13:05:28.132 8772-8875/com.laitecn.laitesmarthomethings W/System.err:     at android.os.Handler.handleCallback(Handler.java:751)

05-23 13:05:28.132 8772-8875/com.laitecn.laitesmarthomethings W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:95)

05-23 13:05:28.133 8772-8875/com.laitecn.laitesmarthomethings W/System.err:     at android.os.Looper.loop(Looper.java:154)

05-23 13:05:28.133 8772-8875/com.laitecn.laitesmarthomethings W/System.err:     at android.os.HandlerThread.run(HandlerThread.java:61)

05-23 13:05:28.133 8772-8875/com.laitecn.laitesmarthomethings W/System.err: Caused by: java.io.IOException: bad recorder,start Recorder failed...

05-23 13:05:28.133 8772-8875/com.laitecn.laitesmarthomethings W/System.err:     at com.baidu.speech.MicrophoneInputStream$PrivateMicrophoneInputStream.(MicrophoneInputStream.java:167)

05-23 13:05:28.133 8772-8875/com.laitecn.laitesmarthomethings W/System.err:     at com.baidu.speech.MicrophoneInputStream.(MicrophoneInputStream.java:50)

05-23 13:05:28.133 8772-8875/com.laitecn.laitesmarthomethings W/System.err:     at com.baidu.speech.MicrophoneInputStream.(MicrophoneInputStream.java:45)

05-23 13:05:28.133 8772-8875/com.laitecn.laitesmarthomethings W/System.err:     at com.baidu.speech.MicrophoneInputStream.(MicrophoneInputStream.java:37)

05-23 13:05:28.133 8772-8875/com.laitecn.laitesmarthomethings W/System.err:     at com.baidu.speech.EventManagerMic.createMicrophoneInputStream(EventManagerMic.java:144)

05-23 13:05:28.133 8772-8875/com.laitecn.laitesmarthomethings W/System.err: ... 7 more


初始化百度语音合成的时候报这个错误

收藏
点赞
0
个赞
共1条回复 最后由用户已被禁言回复于2022-04
#2fujiayi1984回复于2017-05

177*****017:

05-23 13:05:28.118 8772-8875/com.laitecn.laitesmarthomethings E/AudioRecord: AudioFlinger could not create record track, status: -1

05-23 13:05:28.125 8772-8875/com.laitecn.laitesmarthomethings E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -1.

05-23 13:05:28.125 8772-8875/com.laitecn.laitesmarthomethings E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.

05-23 13:05:28.132 8772-8875/com.laitecn.laitesmarthomethings W/System.err: java.lang.Exception: #3, Audio recording error., file: 

05-23 13:05:28.132 8772-8875/com.laitecn.laitesmarthomethings W/System.err:     at com.baidu.speech.EventManagerMic.createMicrophoneInputStream(EventManagerMic.java:176)

05-23 13:05:28.132 8772-8875/com.laitecn.laitesmarthomethings W/System.err:     at com.baidu.speech.EventManagerMic.send(EventManagerMic.java:98)

05-23 13:05:28.132 8772-8875/com.laitecn.laitesmarthomethings W/System.err:     at com.baidu.speech.EventManagerMic.send(EventManagerMic.java:65)

05-23 13:05:28.132 8772-8875/com.laitecn.laitesmarthomethings W/System.err:     at com.baidu.speech.EventManagerMessagePool$1.run(EventManagerMessagePool.java:56)

05-23 13:05:28.132 8772-8875/com.laitecn.laitesmarthomethings W/System.err:     at android.os.Handler.handleCallback(Handler.java:751)

05-23 13:05:28.132 8772-8875/com.laitecn.laitesmarthomethings W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:95)

05-23 13:05:28.133 8772-8875/com.laitecn.laitesmarthomethings W/System.err:     at android.os.Looper.loop(Looper.java:154)

05-23 13:05:28.133 8772-8875/com.laitecn.laitesmarthomethings W/System.err:     at android.os.HandlerThread.run(HandlerThread.java:61)

05-23 13:05:28.133 8772-8875/com.laitecn.laitesmarthomethings W/System.err: Caused by: java.io.IOException: bad recorder,start Recorder failed...

05-23 13:05:28.133 8772-8875/com.laitecn.laitesmarthomethings W/System.err:     at com.baidu.speech.MicrophoneInputStream$PrivateMicrophoneInputStream.(MicrophoneInputStream.java:167)

05-23 13:05:28.133 8772-8875/com.laitecn.laitesmarthomethings W/System.err:     at com.baidu.speech.MicrophoneInputStream.(MicrophoneInputStream.java:50)

05-23 13:05:28.133 8772-8875/com.laitecn.laitesmarthomethings W/System.err:     at com.baidu.speech.MicrophoneInputStream.(MicrophoneInputStream.java:45)

05-23 13:05:28.133 8772-8875/com.laitecn.laitesmarthomethings W/System.err:     at com.baidu.speech.MicrophoneInputStream.(MicrophoneInputStream.java:37)

05-23 13:05:28.133 8772-8875/com.laitecn.laitesmarthomethings W/System.err:     at com.baidu.speech.EventManagerMic.createMicrophoneInputStream(EventManagerMic.java:144)

05-23 13:05:28.133 8772-8875/com.laitecn.laitesmarthomethings W/System.err:  ... 7 more


初始化百度语音合成的时候报这个错误

回复177*****017:您好,请您先测试下我们官方的demo有无此问题

0
TOP
切换版块