0. 您的联系方式 :

百度语音开发者交流⑤群 864371845

Tel:18701745401

1. 现象描述

编译出来的apk直接安装可用。

但是把apk内置到/system/app 解压出的lib/armeabi库内置到/system/lib 无法开始录音

设置VAD算法选择touch模式 可以录音.

对照文档并未发现不妥之处 项目中也无其他so库 推送MD5值也都相同。

2. 输入参数:

{"accept-audio-volume":false,"accept-audio-data":false,"disable-punctuation":false,"vad":"dnn"}

3. 输出结果:

asr error:{"sub_error":3100,"error":3,"origin_result":{"sub_error":3100,"error":3,"sn":"cuid=A73B802A99DE8C66C9C18019652CE692|2511&sn=32290888-0241-4608-811a-be88a9e2d6b1&nettype=1","desc":"VAD is not available"},"desc":"VAD is not available"}

4 .用户日志:

先清空日志,之后调用我们的某个方法结束。请提供给我们之中的完整日志。

5 .手机信息:

hi3796mv100盒子 Android4.4.2

#先清空日志,之后调用我们的某个方法出错。请提供给我们之中的完整日志。

03-12 19:27:32.669 2240-2639/com.hisilicon.android.hiRMService I/HiRMService:  ***** changeStats = 0

03-12 19:27:35.131 1918-1998/system_process D/KeyLayoutMap: gc: scanCode=28, usageCode=0x00000000

03-12 19:27:35.131 1918-1998/system_process D/KeyLayoutMap: gc: scanCode index =27

03-12 19:27:35.131 1918-1998/system_process D/KeyLayoutMap: mapKey: scanCode=28, usageCode=0x00000000 ~ Result keyCode=23, outFlags=0x00000000.

03-12 19:27:35.133 2255-2255/com.hisilicon.android.inputmethod.remote D/RemoteIME: keycode: 23, realAction: false

03-12 19:27:35.340 1918-1998/system_process D/KeyLayoutMap: gc: scanCode=28, usageCode=0x00000000

03-12 19:27:35.340 1918-1998/system_process D/KeyLayoutMap: gc: scanCode index =27

03-12 19:27:35.340 1918-1998/system_process D/KeyLayoutMap: mapKey: scanCode=28, usageCode=0x00000000 ~ Result keyCode=23, outFlags=0x00000000.

03-12 19:27:35.341 2255-2255/com.hisilicon.android.inputmethod.remote D/RemoteIME: keycode: 23, realAction: true

03-12 19:27:35.343 1417-1917/? V/AudioPolicyManagerBase: FORCE_none: AudioPolicyManagerBase.cpp

03-12 19:27:35.343 1417-1917/? V/AudioPolicyManagerBase: getDeviceForStrategy() strategy 0, device 2

03-12 19:27:35.343 1417-1917/? V/AudioPolicyManagerBase: getOutput() device 2, stream 1, samplingRate 0, format 0, channelMask 3, flags 0

03-12 19:27:35.343 1417-1917/? V/AudioPolicyManagerBase: getOutputsForDevice() device 0002

03-12 19:27:35.343 1417-1917/? V/AudioPolicyManagerBase: output 0 isDuplicated=0 device=0006

03-12 19:27:35.343 1417-1917/? V/AudioPolicyManagerBase: getOutputsForDevice() found output 2

03-12 19:27:35.343 1417-1917/? V/AudioPolicyManagerBase: getOutput() returns output 2

03-12 19:27:35.343 1417-2561/? V/AudioPolicyManagerBase: FORCE_none: AudioPolicyManagerBase.cpp

03-12 19:27:35.343 1417-2561/? V/AudioPolicyManagerBase: getDeviceForStrategy() strategy 0, device 2

03-12 19:27:35.343 1417-2561/? V/AudioPolicyManagerBase: getOutput() device 2, stream 1, samplingRate 0, format 0, channelMask 3, flags 0

03-12 19:27:35.343 1417-2561/? V/AudioPolicyManagerBase: getOutputsForDevice() device 0002

03-12 19:27:35.343 1417-2561/? V/AudioPolicyManagerBase: output 0 isDuplicated=0 device=0006

03-12 19:27:35.343 1417-2561/? V/AudioPolicyManagerBase: getOutputsForDevice() found output 2

03-12 19:27:35.343 1417-2561/? V/AudioPolicyManagerBase: getOutput() returns output 2

03-12 19:27:35.343 1417-2479/? V/AudioPolicyManagerBase: FORCE_none: AudioPolicyManagerBase.cpp

03-12 19:27:35.343 1417-2479/? V/AudioPolicyManagerBase: getDeviceForStrategy() strategy 0, device 2

03-12 19:27:35.343 1417-2479/? V/AudioPolicyManagerBase: getOutput() device 2, stream 1, samplingRate 48000, format 1, channelMask 3, flags 4

03-12 19:27:35.343 1417-2479/? V/AudioPolicyManagerBase: getOutputsForDevice() device 0002

03-12 19:27:35.343 1417-2479/? V/AudioPolicyManagerBase: output 0 isDuplicated=0 device=0006

03-12 19:27:35.343 1417-2479/? V/AudioPolicyManagerBase: getOutputsForDevice() found output 2

03-12 19:27:35.343 1417-2479/? V/AudioPolicyManagerBase: getOutput() returns output 2

03-12 19:27:35.344 1417-1417/? D/AudioPolicyManagerBase: startOutput() output 2, stream 1, session 166

03-12 19:27:35.344 1417-1417/? V/AudioPolicyManagerBase: changeRefCount() stream 1, count 1

03-12 19:27:35.344 1417-1417/? V/AudioPolicyManagerBase: FORCE_none: AudioPolicyManagerBase.cpp

03-12 19:27:35.344 1417-1417/? V/AudioPolicyManagerBase: getDeviceForStrategy() strategy 0, device 2

03-12 19:27:35.344 1417-1417/? V/AudioPolicyManagerBase: getNewDevice() selected device 2

03-12 19:27:35.344 1417-1417/? D/AudioPolicyManagerBase: startoutput ->setOutputDevice

03-12 19:27:35.344 1417-1417/? V/AudioPolicyManagerBase: setOutputDevice() output 2 device 0002 delayMs 0

03-12 19:27:35.344 1417-1417/? V/AudioPolicyManagerBase: setOutputDevice() prevDevice 0002

03-12 19:27:35.344 1417-1417/? V/AudioPolicyManagerBase: FORCE_none: AudioPolicyManagerBase.cpp

03-12 19:27:35.344 1417-1417/? V/AudioPolicyManagerBase: getDeviceForStrategy() strategy 0, device 2

03-12 19:27:35.344 1417-1417/? V/AudioPolicyManagerBase: getDeviceForStrategy() strategy 1, device 2

03-12 19:27:35.344 1417-1417/? V/AudioPolicyManagerBase: FORCE_none: AudioPolicyManagerBase.cpp

03-12 19:27:35.344 1417-1417/? V/AudioPolicyManagerBase: getDeviceForStrategy() strategy 2, device 2

03-12 19:27:35.344 1417-1417/? V/AudioPolicyManagerBase: FORCE_none: AudioPolicyManagerBase.cpp

03-12 19:27:35.344 1417-1417/? V/AudioPolicyManagerBase: getDeviceForStrategy() strategy 2, device 2

03-12 19:27:35.344 1417-1417/? V/AudioPolicyManagerBase: getDeviceForStrategy() strategy 3, device 2

03-12 19:27:35.344 1417-1417/? V/AudioPolicyManagerBase: FORCE_none: AudioPolicyManagerBase.cpp

03-12 19:27:35.344 1417-1417/? V/AudioPolicyManagerBase: getDeviceForStrategy() strategy 0, device 2

03-12 19:27:35.344 1417-1417/? V/AudioPolicyManagerBase: getDeviceForStrategy() strategy 4, device 2

03-12 19:27:35.344 1417-1417/? V/AudioPolicyManagerBase: FORCE_none: AudioPolicyManagerBase.cpp

03-12 19:27:35.344 1417-1417/? V/AudioPolicyManagerBase: getDeviceForStrategy() strategy 5, device 2

03-12 19:27:35.344 1417-1417/? V/AudioPolicyManagerBase: setOutputDevice() setting same device 0002 or null device for output 2

03-12 19:27:35.344 1417-1417/? V/AudioPolicyManagerBase: VOLUME vol index=[33 53 66], dB=[-18.0 -14.4 -12.0] ampl=0.19135

03-12 19:27:35.344 1417-1417/? D/AudioPolicyManagerBase: AudioPolicyManagerBase::checkAndSetVolume 8,0.191346

03-12 19:27:35.345 2703-2703/com.henggu.voicecontrol I/MyRecognizer.Debug: asr params(反馈请带上此行日志):{"accept-audio-volume":false,"accept-audio-data":false,"disable-punctuation":false,"vad":"dnn"}

03-12 19:27:35.345 1417-1913/? V/AudioPolicyManagerBase: releaseOutput() 2

03-12 19:27:35.377 2703-2703/com.henggu.voicecontrol D/dalvikvm: GC_FOR_ALLOC freed 2165K, 49% free 5659K/10952K, paused 26ms, total 26ms

03-12 19:27:35.379 2703-2703/com.henggu.voicecontrol I/dalvikvm-heap: Grow heap (frag case) to 7.453MB for 1920016-byte allocation

03-12 19:27:35.402 2703-2703/com.henggu.voicecontrol D/dalvikvm: GC_FOR_ALLOC freed 7K, 32% free 7527K/10952K, paused 23ms, total 23ms

03-12 19:27:35.404 2703-2703/com.henggu.voicecontrol E/ASREngine: VAD Model=dnn

03-12 19:27:35.408 2703-2703/com.henggu.voicecontrol W/System.err: java.lang.ClassNotFoundException: com.baidu.android.common.util.DeviceId

03-12 19:27:35.409 2703-2703/com.henggu.voicecontrol W/System.err:     at java.lang.Class.classForName(Native Method)

03-12 19:27:35.409 2703-2703/com.henggu.voicecontrol W/System.err:     at java.lang.Class.forName(Class.java:251)

03-12 19:27:35.409 2703-2703/com.henggu.voicecontrol W/System.err:     at java.lang.Class.forName(Class.java:216)

03-12 19:27:35.409 2703-2703/com.henggu.voicecontrol W/System.err:     at com.baidu.speech.utils.Policy.uid(Unknown Source)

03-12 19:27:35.409 2703-2703/com.henggu.voicecontrol W/System.err:     at com.baidu.speech.core.ASREngine.initConfig(Unknown Source)

03-12 19:27:35.410 2703-2703/com.henggu.voicecontrol W/System.err:     at com.baidu.speech.core.ASREngine.postEvent(Unknown Source)

03-12 19:27:35.410 2703-2703/com.henggu.voicecontrol W/System.err:     at com.baidu.speech.asr.EventManagerAsr.send(Unknown Source)

03-12 19:27:35.410 2703-2703/com.henggu.voicecontrol W/System.err:     at com.baidu.android.voicedemo.a.b.b(Unknown Source)

03-12 19:27:35.410 2703-2703/com.henggu.voicecontrol W/System.err:     at com.baidu.android.voicedemo.activity.b.l(Unknown Source)

03-12 19:27:35.410 2703-2703/com.henggu.voicecontrol W/System.err:     at com.baidu.android.voicedemo.activity.b$1.onClick(Unknown Source)

03-12 19:27:35.410 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.View.performClick(View.java:4438)

03-12 19:27:35.410 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.View.onKeyUp(View.java:8241)

03-12 19:27:35.410 2703-2703/com.henggu.voicecontrol W/System.err:     at android.widget.TextView.onKeyUp(TextView.java:5628)

03-12 19:27:35.410 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.KeyEvent.dispatch(KeyEvent.java:2696)

03-12 19:27:35.410 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.View.dispatchKeyEvent(View.java:7665)

03-12 19:27:35.410 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1408)

03-12 19:27:35.410 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1408)

03-12 19:27:35.410 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1408)

03-12 19:27:35.410 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1408)

03-12 19:27:35.410 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1408)

03-12 19:27:35.411 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1408)

03-12 19:27:35.411 2703-2703/com.henggu.voicecontrol W/System.err:     at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchKeyEvent(PhoneWindow.java:2035)

03-12 19:27:35.411 2703-2703/com.henggu.voicecontrol W/System.err:     at com.android.internal.policy.impl.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java:1505)

03-12 19:27:35.411 2703-2703/com.henggu.voicecontrol W/System.err:     at android.app.Activity.dispatchKeyEvent(Activity.java:2420)

03-12 19:27:35.411 2703-2703/com.henggu.voicecontrol W/System.err:     at android.support.v7.app.c.dispatchKeyEvent(Unknown Source)

03-12 19:27:35.411 2703-2703/com.henggu.voicecontrol W/System.err:     at android.support.v7.view.i.dispatchKeyEvent(Unknown Source)

03-12 19:27:35.411 2703-2703/com.henggu.voicecontrol W/System.err:     at android.support.v7.app.f$a.dispatchKeyEvent(Unknown Source)

03-12 19:27:35.411 2703-2703/com.henggu.voicecontrol W/System.err:     at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1962)

03-12 19:27:35.411 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:3861)

03-12 19:27:35.411 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3835)

03-12 19:27:35.411 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3408)

03-12 19:27:35.411 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3458)

03-12 19:27:35.411 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3427)

03-12 19:27:35.411 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3534)

03-12 19:27:35.411 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3435)

03-12 19:27:35.412 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3591)

03-12 19:27:35.412 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3408)

03-12 19:27:35.412 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3458)

03-12 19:27:35.412 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3427)

03-12 19:27:35.412 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3435)

03-12 19:27:35.412 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3408)

03-12 19:27:35.412 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3458)

03-12 19:27:35.412 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3427)

03-12 19:27:35.412 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3567)

03-12 19:27:35.412 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:3727)

03-12 19:27:35.412 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:2011)

03-12 19:27:35.412 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:1705)

03-12 19:27:35.412 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:1696)

03-12 19:27:35.412 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:1988)

03-12 19:27:35.412 2703-2703/com.henggu.voicecontrol W/System.err:     at android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:141)

03-12 19:27:35.413 2703-2703/com.henggu.voicecontrol W/System.err:     at android.os.MessageQueue.nativePollOnce(Native Method)

03-12 19:27:35.413 2703-2703/com.henggu.voicecontrol W/System.err:     at android.os.MessageQueue.next(MessageQueue.java:138)

03-12 19:27:35.413 2703-2703/com.henggu.voicecontrol W/System.err:     at android.os.Looper.loop(Looper.java:123)

03-12 19:27:35.413 2703-2703/com.henggu.voicecontrol W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:5030)

03-12 19:27:35.413 2703-2703/com.henggu.voicecontrol W/System.err:     at java.lang.reflect.Method.invokeNative(Native Method)

03-12 19:27:35.413 2703-2703/com.henggu.voicecontrol W/System.err:     at java.lang.reflect.Method.invoke(Method.java:515)

03-12 19:27:35.413 2703-2703/com.henggu.voicecontrol W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)

03-12 19:27:35.413 2703-2703/com.henggu.voicecontrol W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:649)

03-12 19:27:35.413 2703-2703/com.henggu.voicecontrol W/System.err:     at dalvik.system.NativeStart.main(Native Method)

03-12 19:27:35.413 2703-2703/com.henggu.voicecontrol W/System.err: Caused by: java.lang.NoClassDefFoundError: com/baidu/android/common/util/DeviceId

03-12 19:27:35.415 2703-2703/com.henggu.voicecontrol W/System.err: ... 59 more

03-12 19:27:35.415 2703-2703/com.henggu.voicecontrol W/System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.baidu.android.common.util.DeviceId" on path: DexPathList[[zip file "/system/app/app-debug.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]

03-12 19:27:35.416 2703-2703/com.henggu.voicecontrol W/System.err:     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)

03-12 19:27:35.416 2703-2703/com.henggu.voicecontrol W/System.err:     at java.lang.ClassLoader.loadClass(ClassLoader.java:497)

03-12 19:27:35.416 2703-2703/com.henggu.voicecontrol W/System.err:     at java.lang.ClassLoader.loadClass(ClassLoader.java:457)

03-12 19:27:35.416 2703-2703/com.henggu.voicecontrol W/System.err: ... 59 more

03-12 19:27:35.416 2703-2703/com.henggu.voicecontrol D/Device: read deviceID:A73B802A99DE8C66C9C18019652CE692|2511

03-12 19:27:35.421 2703-2703/com.henggu.voicecontrol E/TelephonyManager: cts.appProcess.processName:com.henggu.voicecontrol

[ 03-12 19:27:35.429  2703: 3035 E/[%s:%d]failed to open dnn model file[%s]

]

jni/../../../../../core/VAD/DNNVAD/vad_nn.cpp

[ 03-12 19:27:35.429  2703: 3035 E/[%s:%d]DNN Init Failed

]

jni/../../../../../core/VAD/DNNVAD/dnn_vad.cpp

03-12 19:27:35.430 2703-3111/com.henggu.voicecontrol I/BDSHttpRequestMaker: url = http://vop.baidu.com/v2/up?sn=f75ab4c5-ada4-48a3-9d18-6aafd8ff0f7a &2cfe8518,

03-12 19:27:35.430 2703-3035/com.henggu.voicecontrol E/ASREngine: EVoiceRecognitionClientWorkStatusError errorDomain : 20 errorCode : 1 desc : VAD start: start error. mLastRecognitionResult:

03-12 19:27:35.430 2703-3035/com.henggu.voicecontrol D/ASREngine: generateErrorResult errDomain = 20 errCode = 1

03-12 19:27:35.430 2703-3111/com.henggu.voicecontrol D/BDSHttpRequestMaker: url: http://vop.baidu.com/v2/up?sn=f75ab4c5-ada4-48a3-9d18-6aafd8ff0f7a mHostIp: vop.baidu.com &2cfe8518,

03-12 19:27:35.432 1417-1917/? V/AudioPolicyManagerBase: getDeviceForInputSource()input source 1, device 81000000

03-12 19:27:35.432 1417-1917/? V/AudioPolicyManagerBase: getInput() inputSource 1, samplingRate 16000, format 1, channelMask 10, acoustics 0

03-12 19:27:35.432 1417-1917/? I/legacy_audio_hw_hal: adev_open_input_stream 1000000

03-12 19:27:35.432 1417-1917/? D/ALSAModule: open called for devices 01000000 in mode 0...

03-12 19:27:35.433 1417-1917/? E/ALSAModule: device CardId is 2

03-12 19:27:35.433 1417-1917/? E/ALSAModule: device name is AndroidCapture_Headset_normal

03-12 19:27:35.435 1417-1917/? V/ALSAModule: Set CAPTURE PCM format to S16_LE (Signed 16 bit Little Endian)

03-12 19:27:35.435 1417-1917/? V/ALSAModule: Using 1 channel for CAPTURE.

03-12 19:27:35.435 1417-1917/? V/ALSAModule: Set sample rate to 16000 HZ

03-12 19:27:35.436 1417-1917/? V/ALSAModule: Buffer size: 2048

03-12 19:27:35.436 1417-1917/? V/ALSAModule: Latency: 128000

03-12 19:27:35.440 1417-1917/? I/ALSAModule: Initialized ALSA device 1000000

03-12 19:27:35.440 1417-1917/? I/AudioHardwareALSA: ALSAStreamOps::sampleRate 16000

03-12 19:27:35.445 1417-2479/? V/AudioPolicyManagerBase: startInput() input 168

03-12 19:27:35.445 1417-2479/? V/AudioPolicyManagerBase: getDeviceForInputSource()input source 1, device 81000000

03-12 19:27:35.445 1417-2479/? V/AudioPolicyManagerBase: AudioPolicyManager::startInput() input source = 1

03-12 19:27:35.446 1417-3184/? D/ALSAModule: route called for devices 01000000 in mode 0...

03-12 19:27:35.447 1417-3184/? D/ALSAModule: open called for devices 01000000 in mode 0...

03-12 19:27:35.447 1417-3184/? E/ALSAModule: device CardId is 2

03-12 19:27:35.447 1417-3184/? E/ALSAModule: device name is AndroidCapture_Headset_normal

03-12 19:27:35.449 1417-3184/? V/ALSAModule: Set CAPTURE PCM format to S16_LE (Signed 16 bit Little Endian)

03-12 19:27:35.449 2703-2703/com.henggu.voicecontrol I/ActivityCommon: log:[INFO]asr params(反馈请带上此行日志):{"accept-audio-volume":false,"accept-audio-data":false,"disable-punctuation":false,"vad":"dnn"}

03-12 19:27:35.449 1417-3184/? V/ALSAModule: Using 1 channel for CAPTURE.

03-12 19:27:35.449 2703-2703/com.henggu.voicecontrol I/RecogEventAdapter: name:asr.finish; params:{"sub_error":3100,"error":3,"origin_result":{"sub_error":3100,"error":3,"sn":"cuid=A73B802A99DE8C66C9C18019652CE692|2511&sn=32290888-0241-4608-811a-be88a9e2d6b1&nettype=1","desc":"VAD is not available"},"desc":"VAD is not available"}

03-12 19:27:35.450 1417-3184/? V/ALSAModule: Set sample rate to 16000 HZ

03-12 19:27:35.450 2703-2703/com.henggu.voicecontrol E/RecogEventAdapter: asr error:{"sub_error":3100,"error":3,"origin_result":{"sub_error":3100,"error":3,"sn":"cuid=A73B802A99DE8C66C9C18019652CE692|2511&sn=32290888-0241-4608-811a-be88a9e2d6b1&nettype=1","desc":"VAD is not available"},"desc":"VAD is not available"}

03-12 19:27:35.450 2703-2703/com.henggu.voicecontrol I/RecogEventAdapter: name:asr.exit; params:null

03-12 19:27:35.450 1417-3184/? V/ALSAModule: Buffer size: 2048

03-12 19:27:35.450 1417-3184/? V/ALSAModule: Latency: 128000

03-12 19:27:35.454 1417-3184/? I/ALSAModule: Initialized ALSA device 1000000

03-12 19:27:35.460 2703-3111/com.henggu.voicecontrol I/BDSHttpRequestMaker: url = http://vop.baidu.com/v2/down?sn=f75ab4c5-ada4-48a3-9d18-6aafd8ff0f7a &2cff1cf8,

03-12 19:27:35.460 2703-3111/com.henggu.voicecontrol D/BDSHttpRequestMaker: url: http://vop.baidu.com/v2/down?sn=f75ab4c5-ada4-48a3-9d18-6aafd8ff0f7a mHostIp: vop.baidu.com &2cff1cf8,

03-12 19:27:35.474 2703-2703/com.henggu.voicecontrol I/ActivityCommon: log:[ERROR]asr error:{"sub_error":3100,"error":3,"origin_result":{"sub_error":3100,"error":3,"sn":"cuid=A73B802A99DE8C66C9C18019652CE692|2511&sn=32290888-0241-4608-811a-be88a9e2d6b1&nettype=1","desc":"VAD is not available"},"desc":"VAD is not available"}

03-12 19:27:35.475 2703-2703/com.henggu.voicecontrol I/ActivityCommon: log:识别错误, 错误码:3,-1;错误消息:音频问题;描述信息:VAD is not available

03-12 19:27:35.476 2703-2703/com.henggu.voicecontrol I/ActivityCommon: log:识别错误, 错误码:3,-1

03-12 19:27:35.478 2703-2703/com.henggu.voicecontrol I/ActivityCommon: log:识别引擎结束并空闲中  ;time=1520854055450

03-12 19:27:35.480 2703-3111/com.henggu.voicecontrol I/BDSHttpRequestMaker: AudioData : mType = 3 | mIsLast = true | mData = 5 &2cff1cf8,

03-12 19:27:35.480 2703-3111/com.henggu.voicecontrol I/BDSHttpRequestMaker: DownloadThread mData[0] = 1 &2cff1cf8,

03-12 19:27:35.480 2703-3111/com.henggu.voicecontrol I/BDSHttpRequestMaker: DownloadThread mData[1] = 0 &2cff1cf8,

03-12 19:27:35.480 2703-3111/com.henggu.voicecontrol I/BDSHttpRequestMaker: DownloadThread mData[2] = 0 &2cff1cf8,

03-12 19:27:35.480 2703-3111/com.henggu.voicecontrol I/BDSHttpRequestMaker: DownloadThread mData[3] = 0 &2cff1cf8,

03-12 19:27:35.480 2703-3111/com.henggu.voicecontrol I/BDSHttpRequestMaker: DownloadThread mData[4] = 3 &2cff1cf8,

03-12 19:27:35.482 2703-3111/com.henggu.voicecontrol I/BDSHttpRequestMaker: sendData  dataType : 0 http://vop.baidu.com/v2/up?sn=f75ab4c5-ada4-48a3-9d18-6aafd8ff0f7a &2cfe8518,

03-12 19:27:35.484 2703-2789/com.henggu.voicecontrol I/BDSHttpRequestMaker: Exception &2cff1cf8,

03-12 19:27:35.484 2703-2789/com.henggu.voicecontrol W/System.err: java.net.SocketException: Socket closed

03-12 19:27:35.485 2703-2789/com.henggu.voicecontrol W/System.err:     at libcore.io.Posix.recvfromBytes(Native Method)

03-12 19:27:35.485 2703-2789/com.henggu.voicecontrol W/System.err:     at libcore.io.Posix.recvfrom(Posix.java:141)

03-12 19:27:35.485 2703-2789/com.henggu.voicecontrol W/System.err:     at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:164)

03-12 19:27:35.485 2703-2789/com.henggu.voicecontrol W/System.err:     at libcore.io.IoBridge.recvfrom(IoBridge.java:506)

03-12 19:27:35.485 2703-2789/com.henggu.voicecontrol W/System.err:     at java.net.PlainSocketImpl.read(PlainSocketImpl.java:488)

03-12 19:27:35.485 2703-2789/com.henggu.voicecontrol W/System.err:     at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)

03-12 19:27:35.485 2703-2789/com.henggu.voicecontrol W/System.err:     at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)

03-12 19:27:35.485 2703-2789/com.henggu.voicecontrol W/System.err:     at java.io.InputStream.read(InputStream.java:162)

03-12 19:27:35.485 2703-2789/com.henggu.voicecontrol W/System.err:     at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:142)

03-12 19:27:35.485 2703-2789/com.henggu.voicecontrol W/System.err:     at java.io.BufferedInputStream.read(BufferedInputStream.java:227)

03-12 19:27:35.486 2703-2789/com.henggu.voicecontrol W/System.err:     at com.android.okhttp.internal.Util.readAsciiLine(Util.java:316)

03-12 19:27:35.486 2703-2789/com.henggu.voicecontrol W/System.err:     at com.android.okhttp.internal.http.RawHeaders.fromBytes(RawHeaders.java:308)

03-12 19:27:35.486 2703-2789/com.henggu.voicecontrol W/System.err:     at com.android.okhttp.internal.http.HttpTransport.readResponseHeaders(HttpTransport.java:135)

03-12 19:27:35.486 2703-2789/com.henggu.voicecontrol W/System.err:     at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:644)

03-12 19:27:35.486 2703-2789/com.henggu.voicecontrol W/System.err:     at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:347)

03-12 19:27:35.486 2703-2789/com.henggu.voicecontrol W/System.err:     at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:296)

03-12 19:27:35.486 2703-2789/com.henggu.voicecontrol W/System.err:     at com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:179)

03-12 19:27:35.486 2703-2789/com.henggu.voicecontrol W/System.err:     at com.baidu.speech.core.BDSHttpRequestMaker.readData(Unknown Source)

03-12 19:27:35.486 2703-2789/com.henggu.voicecontrol W/System.err:     at dalvik.system.NativeStart.run(Native Method)

03-12 19:27:35.593 2703-3186/com.henggu.voicecontrol I/MicrophoneServer: audio mills is 0

03-12 19:27:35.596 2703-3186/com.henggu.voicecontrol W/System.err: java.util.concurrent.ExecutionException: java.net.SocketException: sendto failed: EPIPE (Broken pipe)

03-12 19:27:35.596 2703-3186/com.henggu.voicecontrol W/System.err:     at java.util.concurrent.FutureTask.report(FutureTask.java:93)

03-12 19:27:35.597 2703-3186/com.henggu.voicecontrol W/System.err:     at java.util.concurrent.FutureTask.get(FutureTask.java:177)

03-12 19:27:35.597 2703-3186/com.henggu.voicecontrol W/System.err:     at com.baidu.speech.audio.MicrophoneServer.run(Unknown Source)

03-12 19:27:35.597 2703-3186/com.henggu.voicecontrol W/System.err:     at java.lang.Thread.run(Thread.java:841)

03-12 19:27:35.597 2703-3186/com.henggu.voicecontrol W/System.err: Caused by: java.net.SocketException: sendto failed: EPIPE (Broken pipe)

03-12 19:27:35.597 2703-3186/com.henggu.voicecontrol W/System.err:     at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:499)

03-12 19:27:35.598 2703-3186/com.henggu.voicecontrol W/System.err:     at libcore.io.IoBridge.sendto(IoBridge.java:468)

03-12 19:27:35.598 2703-3186/com.henggu.voicecontrol W/System.err:     at java.net.PlainSocketImpl.write(PlainSocketImpl.java:507)

03-12 19:27:35.598 2703-3186/com.henggu.voicecontrol W/System.err:     at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:46)

03-12 19:27:35.598 2703-3186/com.henggu.voicecontrol W/System.err:     at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:269)

03-12 19:27:35.598 2703-3186/com.henggu.voicecontrol W/System.err:     at com.baidu.speech.audio.MicrophoneServer$2.call(Unknown Source)

03-12 19:27:35.598 2703-3186/com.henggu.voicecontrol W/System.err:     at com.baidu.speech.audio.MicrophoneServer$2.call(Unknown Source)

03-12 19:27:35.598 2703-3186/com.henggu.voicecontrol W/System.err:     at java.util.concurrent.FutureTask.run(FutureTask.java:237)

03-12 19:27:35.598 2703-3186/com.henggu.voicecontrol W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)

03-12 19:27:35.598 2703-3186/com.henggu.voicecontrol W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)

03-12 19:27:35.598 2703-3186/com.henggu.voicecontrol W/System.err: ... 1 more

03-12 19:27:35.599 2703-3186/com.henggu.voicecontrol W/System.err: Caused by: libcore.io.ErrnoException: sendto failed: EPIPE (Broken pipe)

03-12 19:27:35.599 2703-3186/com.henggu.voicecontrol W/System.err:     at libcore.io.Posix.sendtoBytes(Native Method)

03-12 19:27:35.599 2703-3186/com.henggu.voicecontrol W/System.err:     at libcore.io.Posix.sendto(Posix.java:156)

03-12 19:27:35.599 2703-3186/com.henggu.voicecontrol W/System.err:     at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:177)

03-12 19:27:35.600 2703-3186/com.henggu.voicecontrol W/System.err:     at libcore.io.IoBridge.sendto(IoBridge.java:466)

03-12 19:27:35.600 2703-3186/com.henggu.voicecontrol W/System.err: ... 9 more

03-12 19:27:35.721 1417-1417/? V/AudioPolicyManagerBase: stopInput() input 168

03-12 19:27:35.723 1417-2568/? V/AudioPolicyManagerBase: releaseInput() 168

03-12 19:27:35.733 1417-2568/? V/AudioPolicyManagerBase: releaseInput() exit

03-12 19:27:36.484 1417-1913/? V/AudioPolicyManagerBase: stopOutput() output 2, stream 1, session 166

03-12 19:27:36.484 1417-1913/? V/AudioPolicyManagerBase: changeRefCount() stream 1, count 0

03-12 19:27:36.484 1417-1913/? V/AudioPolicyManagerBase: getNewDevice() selected device 0

03-12 19:27:36.484 1417-1913/? V/AudioPolicyManagerBase: setOutputDevice() output 2 device 0000 delayMs 86

03-12 19:27:36.484 1417-1913/? V/AudioPolicyManagerBase: setOutputDevice() prevDevice 0002

03-12 19:27:36.484 1417-1913/? V/AudioPolicyManagerBase: FORCE_none: AudioPolicyManagerBase.cpp

03-12 19:27:36.484 1417-1913/? V/AudioPolicyManagerBase: getDeviceForStrategy() strategy 0, device 2

03-12 19:27:36.484 1417-1913/? V/AudioPolicyManagerBase: getDeviceForStrategy() strategy 1, device 2

03-12 19:27:36.484 1417-1913/? V/AudioPolicyManagerBase: FORCE_none: AudioPolicyManagerBase.cpp

03-12 19:27:36.484 1417-1913/? V/AudioPolicyManagerBase: getDeviceForStrategy() strategy 2, device 2

03-12 19:27:36.484 1417-1913/? V/AudioPolicyManagerBase: FORCE_none: AudioPolicyManagerBase.cpp

03-12 19:27:36.484 1417-1913/? V/AudioPolicyManagerBase: getDeviceForStrategy() strategy 2, device 2

03-12 19:27:36.484 1417-1913/? V/AudioPolicyManagerBase: getDeviceForStrategy() strategy 3, device 2

03-12 19:27:36.484 1417-1913/? V/AudioPolicyManagerBase: FORCE_none: AudioPolicyManagerBase.cpp

03-12 19:27:36.484 1417-1913/? V/AudioPolicyManagerBase: getDeviceForStrategy() strategy 0, device 2

03-12 19:27:36.485 1417-1913/? V/AudioPolicyManagerBase: getDeviceForStrategy() strategy 4, device 2

03-12 19:27:36.485 1417-1913/? V/AudioPolicyManagerBase: FORCE_none: AudioPolicyManagerBase.cpp

03-12 19:27:36.485 1417-1913/? V/AudioPolicyManagerBase: getDeviceForStrategy() strategy 5, device 2

03-12 19:27:36.485 1417-1913/? V/AudioPolicyManagerBase: setOutputDevice() setting same device 0000 or null device for output 2

03-12 19:27:37.680 2240-2639/com.hisilicon.android.hiRMService I/HiRMService:  ***** changeStats = 0

03-12 19:27:40.606 2703-3180/com.henggu.voicecontrol W/System.err: java.net.SocketException: Socket closed

03-12 19:27:40.606 2703-3180/com.henggu.voicecontrol W/System.err:     at libcore.io.Posix.accept(Native Method)

03-12 19:27:40.606 2703-3180/com.henggu.voicecontrol W/System.err:     at libcore.io.BlockGuardOs.accept(BlockGuardOs.java:55)

03-12 19:27:40.606 2703-3180/com.henggu.voicecontrol W/System.err:     at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:98)

03-12 19:27:40.606 2703-3180/com.henggu.voicecontrol W/System.err:     at java.net.ServerSocket.implAccept(ServerSocket.java:203)

03-12 19:27:40.606 2703-3180/com.henggu.voicecontrol W/System.err:     at java.net.ServerSocket.accept(ServerSocket.java:128)

03-12 19:27:40.606 2703-3180/com.henggu.voicecontrol W/System.err:     at com.baidu.speech.audio.MicrophoneServer$1.run(Unknown Source)

03-12 19:27:42.694 2240-2639/com.hisilicon.android.hiRMService I/HiRMService:  ***** changeStats = 0

android apk 可以直接放在systemapp下吗,内置语音apk到/system/app下的问题相关推荐

  1. android odex 作用,android – 为什么我们需要将* .odex文件放在/ system / app下,即使我们已经有/ data / dalvik-cache了?...

    例如,我们在/ system / app下有phone.apk和phone.odex.根据一些非官方文档,phone.odex用于加快加载应用程序的过程.但是,为什么我们不只是将phone.odex放 ...

  2. Android内置系统apk问题

    平台:Rockchip android版本: 7.1 个人博客:https://www.letcos.top/ 1.问题描述 ​ 一款产品需要内置定制的launcher,使用了一些第三方的sdk.按系 ...

  3. 【Android 12 AOSP学习】Android内置第三方apk到系统

    这篇文章将介绍如何在Android系统中内置第三方apk 一.准备工作 编译好的Android源码 Android apk文件:也就是安卓应用安装包 二.步骤 (1)在源码packages/apps目 ...

  4. Android系统之路(初识MTK) ------ 内置三方apk到Rom可移动/可卸载

    客户给了一个内置他们自己apk的需求,定制到Rom里,我们需要在编译系统源码的时候配置好相关的文件即可将apk一起打包到ROM里面,下面我们就来一起打包apk到系统 首先需要在 device/medi ...

  5. 安卓下微信内置浏览器视频出现解析错误

    原文地址 今天给客户做一个微信端的HTML5的动画页面,页面内有一个视频文件,今天上线,这是前提.刚上线不久,客户的服务器便不堪重负,为了解决问题,我们将该页面的媒体文件放在自己的服务器上.问题来了, ...

  6. w10系统自带linux系统,win10下,内置linux系统的安装和体验,你造吗?

    原标题:win10下,内置linux系统的安装和体验,你造吗? 众所周知,windows系统和linux系统一直是水火不容,而在最新的win10系统却完美兼容了linux系统,但是在默认情况下是关闭的 ...

  7. Win7下的内置FTP组件的设置详解

    Win7下的内置FTP组件的设置详解 在局域网中共享文件,FTP是比较方便的方案之一.Win7内部集成了FTP,只是设置起来颇费一番功夫.着文以记之. 一.安装FTP组件 由于Win7默认没有安装FT ...

  8. android打开另外的app两种方式,内置到自己本身的app,重新打开app,

    android打开另外的app两种方式,内置到自己本身的app空间,重新打开app空间, 目录 1.内置到自己本身的app空间, 2.重新打开app空间, 1.内置到自己本身的app空间, 被打开的a ...

  9. 手机使用计算机网络打印机驱动程序,Win10下使用内置驱动程序安装网络打印机的操作...

    Windows10正式版系统 内置了很多经过微软认证的硬件设备驱动程序,用户只要使用系统本地集成的驱动就能成功安装此类硬件设备,而不用重新从网络上下载.接下来,小编就为大家分享Win10下使用内置驱动 ...

  10. android系统自带system/app下载,Android 把应用APK安装包放到system/app下的方法

    方法一: 然后打开cmd命令编辑器,建议下载PowerCmd方便操作. 输入adb shell回车 输入su回车 输入mount -o rw,remount/system回车 再打开另外一个cmd命令 ...

最新文章

  1. C/S构架和B/S架构的比较
  2. 无服务器–仅仅是构建现代应用程序的一种方法?
  3. 读取网络抓包文件data得到参数
  4. php使用 memcache 来存储 session
  5. mysql中文占两位_mysql 保留两位小数
  6. 信号检测与估计-理论与应用_信号R-实时应用
  7. mysql中clear怎么用_MySQL 入门篇
  8. 安卓Behavior用法
  9. 网页播放视频有声音无图像问题的临时解决办法
  10. 广西大学计算机学院导师张振荣,广西大学硕士研究生导师简介-张振荣
  11. MATLAB-ezplot绘图函数
  12. 修改vimdiff的颜色配置
  13. 大学四年努力学好编程
  14. 超级玛丽3号max即将停售70版本,到底保障如何,值不值得购买呢
  15. Android学习 - Material Design设计规范
  16. 基础知识【H5新增知识1】
  17. Flink Could not find any factory for identifier ‘json‘ that implements DeserializationFormatFactory
  18. 软排线与电路板怎么连接
  19. Cucumber Hooks
  20. 高数:1.1函数需要掌握的基本知识点(奇偶性、周期性、求反函数,复合函数分解为简单函数)、(易错点:判断函数是否相同)

热门文章

  1. 数据库连接池为啥要用 ThreadLocal?不用会怎么样?
  2. 你和高级工程师的差距在哪里?
  3. Data Binding 实践
  4. Android MVP 实例
  5. 从我的公众号谈执行力
  6. socket怎么同时监听两个端口_三十岁了,我同时爱上两个男人,我现在不知道怎么办...
  7. 解决ubuntu12.04下安装gitlabError Compiling CSS asset的错误以及401资源错误
  8. Visual Studio Code 配合 Node.js 轻松实现JS断点调试
  9. 关于王者荣耀防沉迷以及各种实名认证
  10. android第一个项目HelloWorld的搭建