语音唤醒原理

 

百度语音唤醒时的日志

D/audio_hw_primary: adev_open_input_stream is_karaoke_fastcapture=0
D/audio_hw_primary: adev_open_input_stream: enter: sample_rate(16000) channel_mask(0x10) devices(0x80000004)        stream_handle(0xf3439a00) io_handle(454) source(1) format 1
D/audio_hw_primary: io_streams_map_insert: Added stream in io_streams_map with handle 454
D/audio_hw_primary: in_standby: enter: stream (0xf3439a00) usecase(23: audio-record)
D/audio_hw_primary: in_standby: enter: stream (0xf3439a00) usecase(23: audio-record)
D/audio_hw_primary: in_set_parameters: enter: kvpairs=appname=+com.baidu.speech.recognizerdemo
D/audio_hw_primary: adev_create_audio_patch: enter: num sources 1, num_sinks 1, handle 0
D/audio_hw_primary: adev_create_audio_patch: Capture patch from device 80000004 to mix 454
D/audio_hw_primary: update_patch: enter
D/audio_hw_primary: route_input_stream: exit: status(0)
D/audio_hw_primary: adev_create_audio_patch: Added a new patch with handle 57
D/audio_hw_primary: start_input_stream: enter: stream(0xf3439a00)usecase(23: audio-record)
D/audio_hw_primary: select_devices for use case (audio-record)
D/audio_hw_primary: select_devices: out_snd_device(0: ) in_snd_device(135: handset-mic)
D/audio_hw_primary: check_usecases_capture_codec_backend:becf: force routing 1
D/audio_hw_primary: enable_snd_device: snd_device(135: handset-mic)
D/audio_hw_primary: enable_audio_route: apply mixer and update path: audio-record
D/audio_hw_primary: select_devices: done
D/audio_hw_primary: check_and_set_karaok_parameters: is karaok rx device 0, is karaok tx device 0
D/audio_hw_primary: check_and_set_karaok_parameters: is karaok rx device 0, is karaok tx device 0
D/audio_hw_primary: start_input_stream: exit

关闭语音唤醒

D/audio_hw_primary: in_standby: enter: stream (0xf3439a00) usecase(23: audio-record)
D/audio_hw_primary: disable_audio_route: reset and update mixer path: audio-record
D/audio_hw_primary: disable_snd_device: snd_device(135: handset-mic)
D/audio_hw_primary: adev_release_audio_patch: Remove patch with handle 57
D/audio_hw_primary: route_input_stream: exit: status(0)
D/audio_hw_primary: in_set_parameters: enter: kvpairs=appname=-com.baidu.speech.recognizerdemo
D/audio_hw_primary: adev_close_input_stream: enter:stream_handle(0xf3439a00)
D/audio_hw_primary: io_streams_map_remove: Removed stream with handle 454
D/audio_hw_primary: in_standby: enter: stream (0xf3439a00) usecase(23: audio-record)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值