语音唤醒原理

这篇博客记录了百度语音唤醒功能开启和关闭时的日志信息。在启动时,设备配置为16000Hz采样率,单声道输入,通过handset-mic进行声音捕获,并设置了相应的音频路径和参数。关闭时,系统释放了音频 patch,禁用了选定设备并重置了音频路由。

 

百度语音唤醒时的日志

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/audi
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值