语音唤醒CPU占用率过高
空白的天空_pjw 发布于2018-08 浏览:1654 回复:2
0
收藏

问题:跑下载昨天下载的SDK demo APP,打开语音唤醒监听,通过top命令查看,demo的CPU占用率50左右,太高了。

系统:Android7.0

芯片配置:A53 4核

下面是log_level=5的部分日志。

日志疑问:

07-25 09:32:18.943 D/[CORE_LOG] bds_AndroidJavaEnvironment.cpp:94( 1284): [BDJNIUtils::findClass] Exception
07-25 09:32:18.943 D/[CORE_LOG] bds_AndroidJavaEnvironment.cpp:100( 1284): [BDJNIUtils::findClass] Trying again with default method...

上面两行exception日志重复出现,是否和Android SDK某些方法实现有关系?

 

07-25 09:32:18.820 D/[CORE_LOG] bds_EventManagerMic.cpp:299( 1284): EventManagerMic::recv_msg recv audio length:640
07-25 09:32:18.821 D/[CORE_LOG] BDSSdkCoreEventObserver.cpp:70( 1284): Observer received message: WAKEUP.callback
07-25 09:32:18.821 D/[CORE_LOG] BDSSdkCoreEventObserver.cpp:74( 1284): param: cb.wak.result.string
07-25 09:32:18.821 D/[CORE_LOG] BDSSdkCoreEventObserver.cpp:74( 1284): param: cb.wak.status.int
07-25 09:32:18.822 D/[CORE_LOG] bds_AndroidJavaEnvironment.cpp:94( 1284): [BDJNIUtils::findClass] Exception
07-25 09:32:18.822 D/[CORE_LOG] bds_AndroidJavaEnvironment.cpp:100( 1284): [BDJNIUtils::findClass] Trying again with default method...
07-25 09:32:18.822 D/[CORE_LOG] BDSMessageConversionUtility.cpp:145( 1284): CONVERT PARAM NAME: cb.wak.result.string
07-25 09:32:18.822 D/[CORE_LOG] BDSMessageConversionUtility.cpp:145( 1284): CONVERT PARAM NAME: cb.wak.status.int
07-25 09:32:18.823 D/[CORE_LOG] bds_EventManagerVad.cpp:843( 1284): EventManagerVad::post_data_message
07-25 09:32:18.823 D/[CORE_LOG] bds_EventManagerWakeup.cpp:639( 1284): wakeup handler: EWakeupEngineWorkStatusNewData 640
07-25 09:32:18.823 D/[CORE_LOG] BDSSdkCoreEventObserver.cpp:70( 1284): Observer received message: WAKEUP.callback
07-25 09:32:18.824 D/[CORE_LOG] BDSSdkCoreEventObserver.cpp:74( 1284): param: cb.wak.status.int
07-25 09:32:18.825 D/[CORE_LOG] bds_AndroidJavaEnvironment.cpp:94( 1284): [BDJNIUtils::findClass] Exception
07-25 09:32:18.825 D/[CORE_LOG] bds_AndroidJavaEnvironment.cpp:100( 1284): [BDJNIUtils::findClass] Trying again with default method...
07-25 09:32:18.825 D/[CORE_LOG] BDSMessageConversionUtility.cpp:145( 1284): CONVERT PARAM NAME: cb.wak.status.int
07-25 09:32:18.826 D/[CORE_LOG] extend_c_interface.h:130( 1284): EASR =========== calling extend_c_wake_up_decode
07-25 09:32:18.827 D/[CORE_LOG] extend_c_interface.h:130( 1284): EASR cost 0.30ms called extend_c_wake_up_decode ret -1
07-25 09:32:18.835 D/[CORE_LOG] bds_EventManagerMic.cpp:299( 1284): EventManagerMic::recv_msg recv audio length:640
07-25 09:32:18.836 D/[CORE_LOG] bds_EventManagerVad.cpp:843( 1284): EventManagerVad::post_data_message
07-25 09:32:18.836 D/[CORE_LOG] bds_EventManagerWakeup.cpp:639( 1284): wakeup handler: EWakeupEngineWorkStatusNewData 640
07-25 09:32:18.836 D/[CORE_LOG] BDSSdkCoreEventObserver.cpp:70( 1284): Observer received message: WAKEUP.callback
07-25 09:32:18.836 D/[CORE_LOG] BDSSdkCoreEventObserver.cpp:74( 1284): param: cb.wak.status.int
07-25 09:32:18.837 D/[CORE_LOG] bds_AndroidJavaEnvironment.cpp:94( 1284): [BDJNIUtils::findClass] Exception
07-25 09:32:18.837 D/[CORE_LOG] bds_AndroidJavaEnvironment.cpp:100( 1284): [BDJNIUtils::findClass] Trying again with default method...
07-25 09:32:18.837 D/[CORE_LOG] BDSMessageConversionUtility.cpp:145( 1284): CONVERT PARAM NAME: cb.wak.status.int
07-25 09:32:18.838 D/[CORE_LOG] extend_c_interface.h:130( 1284): EASR =========== calling extend_c_wake_up_decode
07-25 09:32:18.838 D/[CORE_LOG] extend_c_interface.h:130( 1284): EASR cost 0.13ms called extend_c_wake_up_decode ret -1
07-25 09:32:18.864 D/[CORE_LOG] bds_EventManagerMic.cpp:299( 1284): EventManagerMic::recv_msg recv audio length:640
07-25 09:32:18.865 D/[CORE_LOG] bds_EventManagerVad.cpp:843( 1284): EventManagerVad::post_data_message
07-25 09:32:18.865 D/[CORE_LOG] bds_EventManagerWakeup.cpp:639( 1284): wakeup handler: EWakeupEngineWorkStatusNewData 640
07-25 09:32:18.865 D/[CORE_LOG] BDSSdkCoreEventObserver.cpp:70( 1284): Observer received message: WAKEUP.callback
07-25 09:32:18.865 D/[CORE_LOG] BDSSdkCoreEventObserver.cpp:74( 1284): param: cb.wak.status.int
07-25 09:32:18.866 D/[CORE_LOG] bds_AndroidJavaEnvironment.cpp:94( 1284): [BDJNIUtils::findClass] Exception
07-25 09:32:18.866 D/[CORE_LOG] bds_AndroidJavaEnvironment.cpp:100( 1284): [BDJNIUtils::findClass] Trying again with default method...
07-25 09:32:18.866 D/[CORE_LOG] BDSMessageConversionUtility.cpp:145( 1284): CONVERT PARAM NAME: cb.wak.status.int
07-25 09:32:18.867 D/[CORE_LOG] extend_c_interface.h:130( 1284): EASR =========== calling extend_c_wake_up_decode
07-25 09:32:18.867 D/[CORE_LOG] extend_c_interface.h:130( 1284): EASR cost 0.12ms called extend_c_wake_up_decode ret -1
07-25 09:32:18.880 D/[CORE_LOG] bds_EventManagerMic.cpp:299( 1284): EventManagerMic::recv_msg recv audio length:640
07-25 09:32:18.880 D/[CORE_LOG] bds_EventManagerVad.cpp:843( 1284): EventManagerVad::post_data_message
07-25 09:32:18.880 D/[CORE_LOG] bds_EventManagerWakeup.cpp:639( 1284): wakeup handler: EWakeupEngineWorkStatusNewData 640
07-25 09:32:18.880 D/[CORE_LOG] BDSSdkCoreEventObserver.cpp:70( 1284): Observer received message: WAKEUP.callback
07-25 09:32:18.880 D/[CORE_LOG] BDSSdkCoreEventObserver.cpp:74( 1284): param: cb.wak.status.int
07-25 09:32:18.881 D/[CORE_LOG] bds_AndroidJavaEnvironment.cpp:94( 1284): [BDJNIUtils::findClass] Exception
07-25 09:32:18.881 D/[CORE_LOG] bds_AndroidJavaEnvironment.cpp:100( 1284): [BDJNIUtils::findClass] Trying again with default method...
07-25 09:32:18.881 D/[CORE_LOG] BDSMessageConversionUtility.cpp:145( 1284): CONVERT PARAM NAME: cb.wak.status.int
07-25 09:32:18.882 D/[CORE_LOG] extend_c_interface.h:130( 1284): EASR =========== calling extend_c_wake_up_decode
07-25 09:32:18.883 D/[CORE_LOG] extend_c_interface.h:130( 1284): EASR cost 0.54ms called extend_c_wake_up_decode ret -1
07-25 09:32:18.894 D/[CORE_LOG] bds_EventManagerMic.cpp:299( 1284): EventManagerMic::recv_msg recv audio length:640
07-25 09:32:18.895 D/[CORE_LOG] bds_EventManagerVad.cpp:843( 1284): EventManagerVad::post_data_message
07-25 09:32:18.895 D/[CORE_LOG] bds_EventManagerWakeup.cpp:639( 1284): wakeup handler: EWakeupEngineWorkStatusNewData 640
07-25 09:32:18.895 D/[CORE_LOG] BDSSdkCoreEventObserver.cpp:70( 1284): Observer received message: WAKEUP.callback
07-25 09:32:18.895 D/[CORE_LOG] BDSSdkCoreEventObserver.cpp:74( 1284): param: cb.wak.status.int
07-25 09:32:18.896 D/[CORE_LOG] bds_AndroidJavaEnvironment.cpp:94( 1284): [BDJNIUtils::findClass] Exception
07-25 09:32:18.896 D/[CORE_LOG] bds_AndroidJavaEnvironment.cpp:100( 1284): [BDJNIUtils::findClass] Trying again with default method...
07-25 09:32:18.896 D/[CORE_LOG] BDSMessageConversionUtility.cpp:145( 1284): CONVERT PARAM NAME: cb.wak.status.int
07-25 09:32:18.898 D/[CORE_LOG] extend_c_interface.h:130( 1284): EASR =========== calling extend_c_wake_up_decode
07-25 09:32:18.898 D/[CORE_LOG] extend_c_interface.h:130( 1284): EASR cost 0.14ms called extend_c_wake_up_decode ret -1
07-25 09:32:18.924 D/[CORE_LOG] bds_EventManagerMic.cpp:299( 1284): EventManagerMic::recv_msg recv audio length:640
07-25 09:32:18.925 D/[CORE_LOG] bds_EventManagerVad.cpp:843( 1284): EventManagerVad::post_data_message
07-25 09:32:18.925 D/[CORE_LOG] bds_EventManagerWakeup.cpp:639( 1284): wakeup handler: EWakeupEngineWorkStatusNewData 640
07-25 09:32:18.925 D/[CORE_LOG] BDSSdkCoreEventObserver.cpp:70( 1284): Observer received message: WAKEUP.callback
07-25 09:32:18.925 D/[CORE_LOG] BDSSdkCoreEventObserver.cpp:74( 1284): param: cb.wak.status.int
07-25 09:32:18.926 D/[CORE_LOG] bds_AndroidJavaEnvironment.cpp:94( 1284): [BDJNIUtils::findClass] Exception
07-25 09:32:18.926 D/[CORE_LOG] bds_AndroidJavaEnvironment.cpp:100( 1284): [BDJNIUtils::findClass] Trying again with default method...
07-25 09:32:18.926 D/[CORE_LOG] BDSMessageConversionUtility.cpp:145( 1284): CONVERT PARAM NAME: cb.wak.status.int
07-25 09:32:18.926 D/[CORE_LOG] extend_c_interface.h:130( 1284): EASR =========== calling extend_c_wake_up_decode
07-25 09:32:18.926 D/[CORE_LOG] extend_c_interface.h:130( 1284): EASR cost 0.11ms called extend_c_wake_up_decode ret -1
07-25 09:32:18.940 D/[CORE_LOG] bds_EventManagerMic.cpp:299( 1284): EventManagerMic::recv_msg recv audio length:640
07-25 09:32:18.940 D/[CORE_LOG] bds_EventManagerVad.cpp:843( 1284): EventManagerVad::post_data_message
07-25 09:32:18.941 D/[CORE_LOG] bds_EventManagerWakeup.cpp:639( 1284): wakeup handler: EWakeupEngineWorkStatusNewData 640
07-25 09:32:18.941 D/[CORE_LOG] BDSSdkCoreEventObserver.cpp:70( 1284): Observer received message: WAKEUP.callback
07-25 09:32:18.941 D/[CORE_LOG] BDSSdkCoreEventObserver.cpp:74( 1284): param: cb.wak.status.int
07-25 09:32:18.943 D/[CORE_LOG] bds_AndroidJavaEnvironment.cpp:94( 1284): [BDJNIUtils::findClass] Exception
07-25 09:32:18.943 D/[CORE_LOG] bds_AndroidJavaEnvironment.cpp:100( 1284): [BDJNIUtils::findClass] Trying again with default method...
07-25 09:32:18.943 D/[CORE_LOG] BDSMessageConversionUtility.cpp:145( 1284): CONVERT PARAM NAME: cb.wak.status.int
07-25 09:32:18.944 D/[CORE_LOG] extend_c_interface.h:130( 1284): EASR =========== calling extend_c_wake_up_decode
07-25 09:32:18.944 D/[CORE_LOG] extend_c_interface.h:130( 1284): EASR cost 0.15ms called extend_c_wake_up_decode ret -1
07-25 09:32:18.955 D/[CORE_LOG] bds_EventManagerMic.cpp:299( 1284): EventManagerMic::recv_msg recv audio length:640
07-25 09:32:18.955 D/[CORE_LOG] bds_EventManagerVad.cpp:843( 1284): EventManagerVad::post_data_message
07-25 09:32:18.955 D/[CORE_LOG] bds_EventManagerWakeup.cpp:639( 1284): wakeup handler: EWakeupEngineWorkStatusNewData 640
07-25 09:32:18.955 D/[CORE_LOG] BDSSdkCoreEventObserver.cpp:70( 1284): Observer received message: WAKEUP.callback
07-25 09:32:18.955 D/[CORE_LOG] BDSSdkCoreEventObserver.cpp:74( 1284): param: cb.wak.status.int
07-25 09:32:18.956 D/[CORE_LOG] bds_AndroidJavaEnvironment.cpp:94( 1284): [BDJNIUtils::findClass] Exception
07-25 09:32:18.956 D/[CORE_LOG] bds_AndroidJavaEnvironment.cpp:100( 1284): [BDJNIUtils::findClass] Trying again with default method...
07-25 09:32:18.956 D/[CORE_LOG] BDSMessageConversionUtility.cpp:145( 1284): CONVERT PARAM NAME: cb.wak.status.int
07-25 09:32:18.956 D/[CORE_LOG] extend_c_interface.h:130( 1284): EASR =========== calling extend_c_wake_up_decode
07-25 09:32:18.957 D/[CORE_LOG] extend_c_interface.h:130( 1284): EASR cost 0.63ms called extend_c_wake_up_decode ret -1
07-25 09:32:18.985 D/[CORE_LOG] bds_EventManagerMic.cpp:299( 1284): EventManagerMic::recv_msg recv audio length:640
07-25 09:32:18.985 D/[CORE_LOG] bds_EventManagerVad.cpp:843( 1284): EventManagerVad::post_data_message
07-25 09:32:18.985 D/[CORE_LOG] bds_EventManagerWakeup.cpp:639( 1284): wakeup handler: EWakeupEngineWorkStatusNewData 640
07-25 09:32:18.985 D/[CORE_LOG] BDSSdkCoreEventObserver.cpp:70( 1284): Observer received message: WAKEUP.callback
07-25 09:32:18.985 D/[CORE_LOG] BDSSdkCoreEventObserver.cpp:74( 1284): param: cb.wak.status.int
07-25 09:32:18.986 D/[CORE_LOG] bds_AndroidJavaEnvironment.cpp:94( 1284): [BDJNIUtils::findClass] Exception
07-25 09:32:18.986 D/[CORE_LOG] bds_AndroidJavaEnvironment.cpp:100( 1284): [BDJNIUtils::findClass] Trying again with default method...
07-25 09:32:18.986 D/[CORE_LOG] BDSMessageConversionUtility.cpp:145( 1284): CONVERT PARAM NAME: cb.wak.status.int
07-25 09:32:18.987 D/[CORE_LOG] extend_c_interface.h:130( 1284): EASR =========== calling extend_c_wake_up_decode
07-25 09:32:18.987 D/[CORE_LOG] extend_c_interface.h:130( 1284): EASR cost 0.19ms called extend_c_wake_up_decode ret -1
07-25 09:32:18.999 D/[CORE_LOG] bds_EventManagerMic.cpp:299( 1284): EventManagerMic::recv_msg recv audio length:640
07-25 09:32:19.000 D/[CORE_LOG] bds_EventManagerVad.cpp:843( 1284): EventManagerVad::post_data_message
07-25 09:32:19.000 D/[CORE_LOG] bds_EventManagerWakeup.cpp:639( 1284): wakeup handler: EWakeupEngineWorkStatusNewData 640
07-25 09:32:19.000 D/[CORE_LOG] BDSSdkCoreEventObserver.cpp:70( 1284): Observer received message: WAKEUP.callback
07-25 09:32:19.000 D/[CORE_LOG] BDSSdkCoreEventObserver.cpp:74( 1284): param: cb.wak.status.int
07-25 09:32:19.001 D/[CORE_LOG] bds_AndroidJavaEnvironment.cpp:94( 1284): [BDJNIUtils::findClass] Exception
07-25 09:32:19.001 D/[CORE_LOG] bds_AndroidJavaEnvironment.cpp:100( 1284): [BDJNIUtils::findClass] Trying again with default method...
07-25 09:32:19.001 D/[CORE_LOG] BDSMessageConversionUtility.cpp:145( 1284): CONVERT PARAM NAME: cb.wak.status.int

收藏
点赞
0
个赞
共2条回复 最后由用户已被禁言回复于2022-04
#3E冥王星T回复于2018-08

太难听了

0
#2追星逐月的家回复于2018-08

一直进行语音处理,能不耗资源么,况且还是后端识别的

0
TOP
切换版块