[CB5654智能语音开发板测评] CDK开发环境搭建,重刷YoC智能语音SDK
[复制链接]
开发板,端云一体开发∶集成阿里云引擎及阿里生态,丰富云端内容 成功率端侧算法∶ 高成功率的端侧语音识别算法 多种配网模式∶支持WIFI配网,APP配网,一键配网等多种配网模式 低功耗模式∶支持VAD唤醒,睡眠等低功耗模式 多种升级模式∶ 支持JTAG升级,串口升级,WIFI局域网升级等多种升级模式 W800 无线开发板 W800 无线开发板是一款基于IoT Wi-Fi/蓝牙 SoC 芯片W800的调试板卡,兼容Arduino接口。支持作为Wi-Fi/蓝牙 模块与其他MCU主板今天对接调试,也支持作为主控设备进行开发调试。
YoC智能语音SDK从底向上分为驱动层、组件层、语音应用平台层。驱动层包含Rhino操作系统及WiFi芯片驱动、蓝牙驱动、声卡驱动等各种外设驱动。组件层提供了丰富的软件功能模块,而语音应用平台为行业应用提供了成熟的解决方案。
方案架构:组件层提供了多样化的组件,包括语音服务、播放器、功耗管理、算法框架、NLP/ASR/TTS等等。其中ASR/NLP/TTS服务由云端提供,云服务组件将其与端侧硬件无缝衔接在一起,开发者无需关心云端交互流程,即可通过简单的接口获得语音识别服务。云服务组件再结合语音服务组件、播放器组件这些语音应用的核心组件,就可以便捷得搭建出各种应用解决方案。
CDK重刷固件
重刷固件配网失败,肿么办?
[D][DSP]dsp int params: 600 5000 10000 0 1 2 0 -0.600000 -0.600000 -0.6000 0 -0.600000 3
[D][DSP]dsp audio inited!
[DSP][Schd]ap_rb_mic=0x20000190(20000e40,6400,0,4544)
[DSP][Schd]ap_rb_ref=0x256e840(2608590,6400,0,4864)
a avfilter, name = atempo2
res_order1_proc
[ 3.710]<D>filter_swr open a avfilter, name = swr
[ 3[D][DSP]wakeup audio stat init 0 260
expect output length 1280 out_mono_len 640
.715]<D>ao_alsa ao open
[ 3.725]<D>ao ao ref:warning: FE process. ret=0, out_length=0, firstFrame,ignore.
openref = 1, startref = 0, fun = __ao_open
[ 3.736]<D>ao ori sf ==> sf = 32768146, rate = 16000, ch = 1, bits = 16, siged = 1, float = 0, endian = 0
[ 3.746]<D>ao ao sf ==> sf = 98304274, rate = 48000, ch = 2, bits = 16, siged = 1, float = 0, endian = 0
[ 3.756]<D>ao ao ref: openref = 1, startref = 1, fun = __ao_start
[ 3.762]<D>media media(1) evt:2
samplerate 16000, 48000
[ 3.771]<I>player first frame output
[ 4.638]<D>stream read ret = 0, may be read eof, len = 0. 'file:///lfs/net_cfg_fail.mp3'
[ 4.646]<I>demux read packet may be eof. eof = 1, rc = 0, url = file:///lfs/net_cfg_fail.mp3
[ 4.655]<D>player cb run task quit
[ 4.658]<D>media media(1) evt:3
[ 4.662]<I>player player_stop, 663 enter. player = 0x26351b0
[ 4.746]<D>ao ao ref: openref = 1, startref = 1, fun = __ao_drain
[ 4.752]<D>ao ao ref: openref = 1, startref = 0, fun = __ao_stop
[ 4.758]<D>ao ao ref: openref = 0, startref = 0, fun = __ao_close
[ 4.765]<I>stream stream stat: to_4000ms = 0, to_2000ms = 0, to_1000ms = 0, to_500ms = 0, to_200ms = 0, to_100ms = 0, to_50ms = 1, to_20ms = 0, to_other = 56, cache_full = 0, upto_cnt = 0, rsize = 0, size = 3033, url = file:///lfs/net_cfg_fail.mp3
[ 4.787]<I>player player_stop, 674 leave. player = 0x26351b0
[ 4.792]<I>player player_free, 688 enter. player = 0x26351b0
[ 4.798]<I>player player_free, 699 leave. player = 0x26351b0
[ 4.804]<D>app audio player exit 2
[ 5.811]<W>auinlp get mac failed, use default mac
[ 5.815]<D>auinlp device uuid 00e090603012
NUI Things version:NUI Things version 20210112_170000 V1.10.25.021
use staic_token with token:a2f8b80e04f14fdb9b7c36024fb03f78
[8] kws_handle_ins of vad_kws_wrapper is null.
[D][AUD]kws is 宝拉宝拉 0
[I][DSP]wake 1, kwid=1
[ 8.747]<D>app MIC_EVENT_SESSION_START,type= 1, cnt=1
[ 8.753]<E>app mic_evt net connect failed
[I][DSP]pcm_en=0
stop state warning(kStateIdle)
[ 8.773]<D>smart_audio Enter smtaudio_start: current state [4]
[ 8.779]<D>media state:1 type:1
[ 8.782]<D>media set vol:30 type:1
[ 8.786]<I>sc5654 i2s o1 pdev=0x2522a94
[ 8.790]<D>media play1 vol:30 url:file:///lfs/net_cfg_config.mp3
[ 8.796]<I>player player_new, 160 enter.
[ 8.800]<I>player player_new, 201 leave. player = 0x2678860
[ 8.806]<I>player player_play, 541 enter. player = 0x2678860
[ 8.813]<I>player player_play, 561 leave. player = 0x2678860
[ 8.827]<D>demux id3v2 size = 45
[ 8.830]<D>demux_mp3 mp3 probe, sync_cnt = 0, rc = 0, score = 100
[ 8.836]<I>demux find a demux, name = mp3, url = file:///lfs/net_cfg_config.mp3
[ 8.843]<D>avparser find a parser, name = mp3, id = 1
[ 8.849]<I>ad find a decode, name = pvmp3dec, id = 1
[ 8.855]<D>filter_atempo open a avfilter, name = atempo
[ 8.860]<D>filter_atempo2 open a avfilter, name = atempo2
res_order1_proc
[ 8.868]<D>filter_swr open a avfilter, name = swr
[ 8.872]<D>ao_alsa ao open
[ 8.875]<D>ao ao ref: openref = 1, startref = 0, fun = __ao_open
[ 8.881]<D>ao ori sf ==> sf = 32768146, rate = 16000, ch = 1, bits = 16, siged = 1, float = 0, endian = 0
[ 8.891]<D>ao ao sf ==> sf = 98304274, rate = 48000, ch = 2, bits = 16, siged = 1, float = 0, endian = 0
[ 8.901]<D>ao ao ref: openref = 1, startref = 1, fun = __ao_start
[ 8.908]<D>media media(1) evt:2
samplerate 16000, 48000
[ 8.918]<I>player first frame output
[D][AUD]kws info 72 0 0
[D][DSP]kws get 0x20b9540 29760 bytes data
[ 11.495]<D>stream read ret = 0, may be read eof, len = 349. 'file:///lfs/net_cfg_config.mp3'
[ 11.670]<D>stream read ret = 0, may be read eof, len = 0. 'file:///lfs/net_cfg_config.mp3'
[ 11.678]<I>demux read packet may be eof. eof = 1, rc = 0, url = file:///lfs/net_cfg_config.mp3
[ 11.687]<D>player cb run task quit
[ 11.690]<D>media media(1) evt:3
[ 11.694]<I>player player_stop, 663 enter. player = 0x2678860
[ 11.729]<D>ao ao ref: openref = 1, startref = 1, fun = __ao_drain
[ 11.735]<D>ao ao ref: openref = 1, startref = 0, fun = __ao_stop
[ 11.741]<D>ao ao ref: openref = 0, startref = 0, fun = __ao_close
[ 11.748]<I>stream stream stat: to_4000ms = 0, to_2000ms = 0, to_1000ms = 0, to_500ms = 0, to_200ms = 0, to_100ms = 0, to_50ms = 0, to_20ms = 0, to_other = 159, cache_full = 0, upto_cnt = 0, rsize = 0, size = 8541, url = file:///lfs/net_cfg_config.mp3
[ 11.770]<I>player player_stop, 674 leave. player = 0x2678860
[ 11.776]<I>player player_free, 688 enter. player = 0x2678860
[ 11.782]<I>player player_free, 699 leave. player = 0x2678860
[ 11.788]<D>app audio player exit 2
[1] kws schedule timeout :10000 ms. so change to init mode:ScheduleMainAndCommand
[8] kws_handle_ins of vad_kws_wrapper is null.
[D][AUD]kws is 宝拉宝拉 7035
[I][DSP]wake 2, kwid=1
[ 63.386]<D>app MIC_EVENT_SESSION_START,type= 1, cnt=2
[ 63.392]<E>app mic_evt net connect failed
[I][DSP]pcm_en=0
stop state warning(kStateIdle)
[ 63.434]<D>smart_audio Enter smtaudio_start: current state [4]
[ 63.440]<D>media state:1 type:1
[ 63.443]<D>media set vol:30 type:1
[ 63.447]<I>sc5654 i2s o1 pdev=0x2522a94
[ 63.451]<D>media play1 vol:30 url:file:///lfs/net_cfg_config.mp3
[ 63.456]<I>player player_new, 160 enter.
[ 63.460]<I>player player_new, 201 leave. player = 0x2678860
[ 63.466]<I>player player_play, 541 enter. player = 0x2678860
[ 63.474]<I>player player_play, 561 leave. player = 0x2678860
[ 63.488]<D>demux id3v2 size = 45
[ 63.492]<D>demux_mp3 mp3 probe, sync_cnt = 0, rc = 0, score = 100
[ 63.498]<I>demux find a demux, name = mp3, url = file:///lfs/net_cfg_config.mp3
[ 63.505]<D>avparser find a parser, name = mp3, id = 1
[ 63.511]<I>ad find a decode, name = pvmp3dec, id = 1
[ 63.517]<D>filter_atempo open a avfilter, name = atempo
[ 63.522]<D>filter_atempo2 open a avfilter, name = atempo2
res_order1_proc
[ 63.529]<D>filter_swr open a avfilter, name = swr
[ 63.534]<D>ao_alsa ao open
[ 63.537]<D>ao ao ref: openref = 1, startref = 0, fun = __ao_open
[ 63.543]<D>ao ori sf ==> sf = 32768146, rate = 16000, ch = 1, bits = 16, siged = 1, float = 0, endian = 0
[ 63.553]<D>ao ao sf ==> sf = 98304274, rate = 48000, ch = 2, bits = 16, siged = 1, float = 0, endian = 0
[ 63.563]<D>ao ao ref: openref = 1, startref = 1, fun = __ao_start
[ 63.570]<D>media media(1) evt:2
samplerate 16000, 48000
[ 63.579]<I>player first frame output
[D][AUD]kws info 7035 0 0
[D][DSP]kws get 0x20b9540 19200 bytes data
[ 66.156]<D>stream read ret = 0, may be read eof, len = 349. 'file:///lfs/net_cfg_config.mp3'
[ 66.331]<D>stream read ret = 0, may be read eof, len = 0. 'file:///lfs/net_cfg_config.mp3'
[ 66.339]<I>demux read packet may be eof. eof = 1, rc = 0, url = file:///lfs/net_cfg_config.mp3
[ 66.348]<D>player cb run task quit
[ 66.351]<D>media media(1) evt:3
[ 66.355]<I>player player_stop, 663 enter. player = 0x2678860
[ 66.390]<D>ao ao ref: openref = 1, startref = 1, fun = __ao_drain
[ 66.396]<D>ao ao ref: openref = 1, startref = 0, fun = __ao_stop
[ 66.402]<D>ao ao ref: openref = 0, startref = 0, fun = __ao_close
[ 66.409]<I>stream stream stat: to_4000ms = 0, to_2000ms = 0, to_1000ms = 0, to_500ms = 0, to_200ms = 0, to_100ms = 0, to_50ms = 0, to_20ms = 0, to_other = 159, cache_full = 0, upto_cnt = 0, rsize = 0, size = 8541, url = file:///lfs/net_cfg_config.mp3
[ 66.431]<I>player player_stop, 674 leave. player = 0x2678860
[ 66.437]<I>player player_free, 688 enter. player = 0x2678860
[ 66.443]<I>player player_free, 699 leave. player = 0x2678860
[ 66.449]<D>app audio player exit 2
[1] kws schedule timeout :10000 ms. so change to init mode:ScheduleMainAndCommand
[8] kws_handle_ins of vad_kws_wrapper is null.
[D][AUD]kws is 宝拉宝拉 631
[I][DSP]wake 3, kwid=1
[ 87.336]<D>app MIC_EVENT_SESSION_START,type= 1, cnt=3
[ 87.342]<E>app mic_evt net connect failed
[I][DSP]pcm_en=0
stop state warning(kStateIdle)
[ 87.373]<D>smart_audio Enter smtaudio_start: current state [4]
[ 87.379]<D>media state:1 type:1
[ 87.382]<D>media set vol:30 type:1
[ 87.386]<I>sc5654 i2s o1 pdev=0x2522a94
[ 87.390]<D>media play1 vol:30 url:file:///lfs/net_cfg_config.mp3
[ 87.396]<I>player player_new, 160 enter.
[ 87.400]<I>player player_new, 201 leave. player = 0x2678860
[ 87.405]<I>player player_play, 541 enter. player = 0x2678860
[ 87.414]<I>player player_play, 561 leave. player = 0x2678860
[ 87.427]<D>demux id3v2 size = 45
[ 87.430]<D>demux_mp3 mp3 probe, sync_cnt = 0, rc = 0, score = 100
[ 87.436]<I>demux find a demux, name = mp3, url = file:///lfs/net_cfg_config.mp3
[ 87.444]<D>avparser find a parser, name = mp3, id = 1
[ 87.449]<I>ad find a decode, name = pvmp3dec, id = 1
[ 87.455]<D>filter_atempo open a avfilter, name = atempo
[ 87.460]<D>filter_atempo2 open a avfilter, name = atempo2
res_order1_proc
[ 87.468]<D>filter_swr open a avfilter, name = swr
[ 87.472]<D>ao_alsa ao open
[ 87.475]<D>ao ao ref: openref = 1, startref = 0, fun = __ao_open
[ 87.481]<D>ao ori sf ==> sf = 32768146, rate = 16000, ch = 1, bits = 16, siged = 1, float = 0, endian = 0
[ 87.491]<D>ao ao sf ==> sf = 98304274, rate = 48000, ch = 2, bits = 16, siged = 1, float = 0, endian = 0
[ 87.501]<D>ao[D][AUD]kws info 631 0 0
[D][DSP]kws get 0x20b9540 22080 bytes data
ao ref: openref = 1, startref = 1, fun = __ao_start
[ 87.524]<D>media media(1) evt:2
samplerate 16000, 48000
[ 87.535]<I>player first frame output
[ 90.096]<D>stream read ret = 0, may be read eof, len = 349. 'file:///lfs/net_cfg_config.mp3'
[ 90.272]<D>stream read ret = 0, may be read eof, len = 0. 'file:///lfs/net_cfg_config.mp3'
[ 90.280]<I>demux read packet may be eof. eof = 1, rc = 0, url = file:///lfs/net_cfg_config.mp3
[ 90.289]<D>player cb run task quit
[ 90.292]<D>media media(1) evt:3
[ 90.296]<I>player player_stop, 663 enter. player = 0x2678860
[ 90.346]<D>ao ao ref: openref = 1, startref = 1, fun = __ao_drain
[ 90.352]<D>ao ao ref: openref = 1, startref = 0, fun = __ao_stop
[ 90.359]<D>ao ao ref: openref = 0, startref = 0, fun = __ao_close
[ 90.365]<I>stream stream stat: to_4000ms = 0, to_2000ms = 0, to_1000ms = 0, to_500ms = 0, to_200ms = 0, to_100ms = 0, to_50ms = 0, to_20ms = 0, to_other = 159, cache_full = 0, upto_cnt = 0, rsize = 0, size = 8541, url = file:///lfs/net_cfg_config.mp3
[ 90.388]<I>player player_stop, 674 leave. player = 0x2678860
[ 90.394]<I>player player_free, 688 enter. player = 0x2678860
[ 90.399]<I>player player_free, 699 leave. player = 0x2678860
[ 90.405]<D>app audio player exit 2
[1] kws schedule timeout :10000 ms. so change to init mode:ScheduleMainAndCommand
|