杨左使 发表于 2021-12-13 18:43

[CB5654智能语音开发板测评] CDK开发环境搭建,重刷YoC智能语音SDK

<p>&nbsp; &nbsp;开发板,端云一体开发∶集成阿里云引擎及阿里生态,丰富云端内容 成功率端侧算法∶ 高成功率的端侧语音识别算法 多种配网模式∶支持WIFI配网,APP配网,一键配网等多种配网模式 低功耗模式∶支持VAD唤醒,睡眠等低功耗模式 多种升级模式∶ 支持JTAG升级,串口升级,WIFI局域网升级等多种升级模式 W800 无线开发板 W800 无线开发板是一款基于IoT Wi-Fi/蓝牙 SoC 芯片W800的调试板卡,兼容Arduino接口。支持作为Wi-Fi/蓝牙 模块与其他MCU主板今天对接调试,也支持作为主控设备进行开发调试。</p>

<p>&nbsp;&nbsp;YoC智能语音SDK从底向上分为驱动层、组件层、语音应用平台层。驱动层包含Rhino操作系统及WiFi芯片驱动、蓝牙驱动、声卡驱动等各种外设驱动。组件层提供了丰富的软件功能模块,而语音应用平台为行业应用提供了成熟的解决方案。<br />
方案架构:组件层提供了多样化的组件,包括语音服务、播放器、功耗管理、算法框架、NLP/ASR/TTS等等。其中ASR/NLP/TTS服务由云端提供,云服务组件将其与端侧硬件无缝衔接在一起,开发者无需关心云端交互流程,即可通过简单的接口获得语音识别服务。云服务组件再结合语音服务组件、播放器组件这些语音应用的核心组件,就可以便捷得搭建出各种应用解决方案。</p>

<p></p>

<p>&nbsp; &nbsp;CDK重刷固件</p>

<p></p>

<p></p>

<p></p>

<p></p>

<p></p>

<p>&nbsp;</p>

<p>重刷固件配网失败,肿么办?</p>

<pre>
<code>dsp int params: 600 5000 10000 0 1 2 0 -0.600000 -0.600000 -0.6000 0 -0.600000 3
dsp audio inited!
ap_rb_mic=0x20000190(20000e40,6400,0,4544)
ap_rb_ref=0x256e840(2608590,6400,0,4864)
a avfilter, name = atempo2
res_order1_proc
[   3.710]&lt;D&gt;filter_swr open a avfilter, name = swr
[   3wakeup audio stat init 0 260
expect output length 1280 out_mono_len 640
.715]&lt;D&gt;ao_alsaao open
[   3.725]&lt;D&gt;ao ao ref:warning: FE process. ret=0, out_length=0, firstFrame,ignore.
openref =1, startref =0, fun = __ao_open
[   3.736]&lt;D&gt;ao ori sf ==&gt; sf = 32768146, rate = 16000, ch = 1, bits = 16, siged = 1, float = 0, endian = 0
[   3.746]&lt;D&gt;ao aosf ==&gt; sf = 98304274, rate = 48000, ch = 2, bits = 16, siged = 1, float = 0, endian = 0
[   3.756]&lt;D&gt;ao ao ref: openref =1, startref =1, fun = __ao_start
[   3.762]&lt;D&gt;media media(1) evt:2

samplerate 16000, 48000
[   3.771]&lt;I&gt;player first frame output
[   4.638]&lt;D&gt;stream read ret = 0, may be read eof, len = 0. 'file:///lfs/net_cfg_fail.mp3'
[   4.646]&lt;I&gt;demux read packet may be eof. eof = 1, rc = 0, url = file:///lfs/net_cfg_fail.mp3
[   4.655]&lt;D&gt;player cb run task quit
[   4.658]&lt;D&gt;media media(1) evt:3

[   4.662]&lt;I&gt;player player_stop, 663 enter. player = 0x26351b0
[   4.746]&lt;D&gt;ao ao ref: openref =1, startref =1, fun = __ao_drain
[   4.752]&lt;D&gt;ao ao ref: openref =1, startref =0, fun = __ao_stop
[   4.758]&lt;D&gt;ao ao ref: openref =0, startref =0, fun = __ao_close
[   4.765]&lt;I&gt;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]&lt;I&gt;player player_stop, 674 leave. player = 0x26351b0
[   4.792]&lt;I&gt;player player_free, 688 enter. player = 0x26351b0
[   4.798]&lt;I&gt;player player_free, 699 leave. player = 0x26351b0
[   4.804]&lt;D&gt;app audio player exit 2
[   5.811]&lt;W&gt;auinlp get mac failed, use default mac
[   5.815]&lt;D&gt;auinlp device uuid 00e090603012
NUI Things version:NUI Things version 20210112_170000 V1.10.25.021
use staic_token with token:a2f8b80e04f14fdb9b7c36024fb03f78
kws_handle_ins of vad_kws_wrapper is null.
kws is 宝拉宝拉 0
wake 1, kwid=1
[   8.747]&lt;D&gt;app MIC_EVENT_SESSION_START,type= 1, cnt=1
[   8.753]&lt;E&gt;app mic_evt net connect failed
pcm_en=0
stop state warning(kStateIdle)
[   8.773]&lt;D&gt;smart_audio Enter smtaudio_start: current state
[   8.779]&lt;D&gt;media state:1 type:1

[   8.782]&lt;D&gt;media set vol:30 type:1
[   8.786]&lt;I&gt;sc5654 i2s o1 pdev=0x2522a94
[   8.790]&lt;D&gt;media play1 vol:30 url:file:///lfs/net_cfg_config.mp3
[   8.796]&lt;I&gt;player player_new, 160 enter.
[   8.800]&lt;I&gt;player player_new, 201 leave. player = 0x2678860
[   8.806]&lt;I&gt;player player_play, 541 enter. player = 0x2678860
[   8.813]&lt;I&gt;player player_play, 561 leave. player = 0x2678860
[   8.827]&lt;D&gt;demux id3v2 size = 45
[   8.830]&lt;D&gt;demux_mp3 mp3 probe, sync_cnt = 0, rc = 0, score = 100
[   8.836]&lt;I&gt;demux find a demux, name = mp3, url = file:///lfs/net_cfg_config.mp3
[   8.843]&lt;D&gt;avparser find a parser, name = mp3, id = 1
[   8.849]&lt;I&gt;ad find a decode, name = pvmp3dec, id = 1
[   8.855]&lt;D&gt;filter_atempo open a avfilter, name = atempo
[   8.860]&lt;D&gt;filter_atempo2 open a avfilter, name = atempo2
res_order1_proc
[   8.868]&lt;D&gt;filter_swr open a avfilter, name = swr
[   8.872]&lt;D&gt;ao_alsaao open
[   8.875]&lt;D&gt;ao ao ref: openref =1, startref =0, fun = __ao_open
[   8.881]&lt;D&gt;ao ori sf ==&gt; sf = 32768146, rate = 16000, ch = 1, bits = 16, siged = 1, float = 0, endian = 0
[   8.891]&lt;D&gt;ao aosf ==&gt; sf = 98304274, rate = 48000, ch = 2, bits = 16, siged = 1, float = 0, endian = 0
[   8.901]&lt;D&gt;ao ao ref: openref =1, startref =1, fun = __ao_start
[   8.908]&lt;D&gt;media media(1) evt:2

samplerate 16000, 48000
[   8.918]&lt;I&gt;player first frame output
kws info 72 0 0
kws get 0x20b9540 29760 bytes data
&lt;D&gt;stream read ret = 0, may be read eof, len = 349. 'file:///lfs/net_cfg_config.mp3'
&lt;D&gt;stream read ret = 0, may be read eof, len = 0. 'file:///lfs/net_cfg_config.mp3'
&lt;I&gt;demux read packet may be eof. eof = 1, rc = 0, url = file:///lfs/net_cfg_config.mp3
&lt;D&gt;player cb run task quit
&lt;D&gt;media media(1) evt:3

&lt;I&gt;player player_stop, 663 enter. player = 0x2678860
&lt;D&gt;ao ao ref: openref =1, startref =1, fun = __ao_drain
&lt;D&gt;ao ao ref: openref =1, startref =0, fun = __ao_stop
&lt;D&gt;ao ao ref: openref =0, startref =0, fun = __ao_close
&lt;I&gt;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
&lt;I&gt;player player_stop, 674 leave. player = 0x2678860
&lt;I&gt;player player_free, 688 enter. player = 0x2678860
&lt;I&gt;player player_free, 699 leave. player = 0x2678860
&lt;D&gt;app audio player exit 2
kws schedule timeout :10000 ms. so change to init mode:ScheduleMainAndCommand
kws_handle_ins of vad_kws_wrapper is null.
kws is 宝拉宝拉 7035
wake 2, kwid=1
&lt;D&gt;app MIC_EVENT_SESSION_START,type= 1, cnt=2
&lt;E&gt;app mic_evt net connect failed
pcm_en=0
stop state warning(kStateIdle)
&lt;D&gt;smart_audio Enter smtaudio_start: current state
&lt;D&gt;media state:1 type:1

&lt;D&gt;media set vol:30 type:1
&lt;I&gt;sc5654 i2s o1 pdev=0x2522a94
&lt;D&gt;media play1 vol:30 url:file:///lfs/net_cfg_config.mp3
&lt;I&gt;player player_new, 160 enter.
&lt;I&gt;player player_new, 201 leave. player = 0x2678860
&lt;I&gt;player player_play, 541 enter. player = 0x2678860
&lt;I&gt;player player_play, 561 leave. player = 0x2678860
&lt;D&gt;demux id3v2 size = 45
&lt;D&gt;demux_mp3 mp3 probe, sync_cnt = 0, rc = 0, score = 100
&lt;I&gt;demux find a demux, name = mp3, url = file:///lfs/net_cfg_config.mp3
&lt;D&gt;avparser find a parser, name = mp3, id = 1
&lt;I&gt;ad find a decode, name = pvmp3dec, id = 1
&lt;D&gt;filter_atempo open a avfilter, name = atempo
&lt;D&gt;filter_atempo2 open a avfilter, name = atempo2
res_order1_proc
&lt;D&gt;filter_swr open a avfilter, name = swr
&lt;D&gt;ao_alsaao open
&lt;D&gt;ao ao ref: openref =1, startref =0, fun = __ao_open
&lt;D&gt;ao ori sf ==&gt; sf = 32768146, rate = 16000, ch = 1, bits = 16, siged = 1, float = 0, endian = 0
&lt;D&gt;ao aosf ==&gt; sf = 98304274, rate = 48000, ch = 2, bits = 16, siged = 1, float = 0, endian = 0
&lt;D&gt;ao ao ref: openref =1, startref =1, fun = __ao_start
&lt;D&gt;media media(1) evt:2

samplerate 16000, 48000
&lt;I&gt;player first frame output
kws info 7035 0 0
kws get 0x20b9540 19200 bytes data
&lt;D&gt;stream read ret = 0, may be read eof, len = 349. 'file:///lfs/net_cfg_config.mp3'
&lt;D&gt;stream read ret = 0, may be read eof, len = 0. 'file:///lfs/net_cfg_config.mp3'
&lt;I&gt;demux read packet may be eof. eof = 1, rc = 0, url = file:///lfs/net_cfg_config.mp3
&lt;D&gt;player cb run task quit
&lt;D&gt;media media(1) evt:3

&lt;I&gt;player player_stop, 663 enter. player = 0x2678860
&lt;D&gt;ao ao ref: openref =1, startref =1, fun = __ao_drain
&lt;D&gt;ao ao ref: openref =1, startref =0, fun = __ao_stop
&lt;D&gt;ao ao ref: openref =0, startref =0, fun = __ao_close
&lt;I&gt;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
&lt;I&gt;player player_stop, 674 leave. player = 0x2678860
&lt;I&gt;player player_free, 688 enter. player = 0x2678860
&lt;I&gt;player player_free, 699 leave. player = 0x2678860
&lt;D&gt;app audio player exit 2
kws schedule timeout :10000 ms. so change to init mode:ScheduleMainAndCommand
kws_handle_ins of vad_kws_wrapper is null.
kws is 宝拉宝拉 631
wake 3, kwid=1
&lt;D&gt;app MIC_EVENT_SESSION_START,type= 1, cnt=3
&lt;E&gt;app mic_evt net connect failed
pcm_en=0
stop state warning(kStateIdle)
&lt;D&gt;smart_audio Enter smtaudio_start: current state
&lt;D&gt;media state:1 type:1

&lt;D&gt;media set vol:30 type:1
&lt;I&gt;sc5654 i2s o1 pdev=0x2522a94
&lt;D&gt;media play1 vol:30 url:file:///lfs/net_cfg_config.mp3
&lt;I&gt;player player_new, 160 enter.
&lt;I&gt;player player_new, 201 leave. player = 0x2678860
&lt;I&gt;player player_play, 541 enter. player = 0x2678860
&lt;I&gt;player player_play, 561 leave. player = 0x2678860
&lt;D&gt;demux id3v2 size = 45
&lt;D&gt;demux_mp3 mp3 probe, sync_cnt = 0, rc = 0, score = 100
&lt;I&gt;demux find a demux, name = mp3, url = file:///lfs/net_cfg_config.mp3
&lt;D&gt;avparser find a parser, name = mp3, id = 1
&lt;I&gt;ad find a decode, name = pvmp3dec, id = 1
&lt;D&gt;filter_atempo open a avfilter, name = atempo
&lt;D&gt;filter_atempo2 open a avfilter, name = atempo2
res_order1_proc
&lt;D&gt;filter_swr open a avfilter, name = swr
&lt;D&gt;ao_alsaao open
&lt;D&gt;ao ao ref: openref =1, startref =0, fun = __ao_open
&lt;D&gt;ao ori sf ==&gt; sf = 32768146, rate = 16000, ch = 1, bits = 16, siged = 1, float = 0, endian = 0
&lt;D&gt;ao aosf ==&gt; sf = 98304274, rate = 48000, ch = 2, bits = 16, siged = 1, float = 0, endian = 0
&lt;D&gt;aokws info 631 0 0
kws get 0x20b9540 22080 bytes data
ao ref: openref =1, startref =1, fun = __ao_start
&lt;D&gt;media media(1) evt:2

samplerate 16000, 48000
&lt;I&gt;player first frame output
&lt;D&gt;stream read ret = 0, may be read eof, len = 349. 'file:///lfs/net_cfg_config.mp3'
&lt;D&gt;stream read ret = 0, may be read eof, len = 0. 'file:///lfs/net_cfg_config.mp3'
&lt;I&gt;demux read packet may be eof. eof = 1, rc = 0, url = file:///lfs/net_cfg_config.mp3
&lt;D&gt;player cb run task quit
&lt;D&gt;media media(1) evt:3

&lt;I&gt;player player_stop, 663 enter. player = 0x2678860
&lt;D&gt;ao ao ref: openref =1, startref =1, fun = __ao_drain
&lt;D&gt;ao ao ref: openref =1, startref =0, fun = __ao_stop
&lt;D&gt;ao ao ref: openref =0, startref =0, fun = __ao_close
&lt;I&gt;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
&lt;I&gt;player player_stop, 674 leave. player = 0x2678860
&lt;I&gt;player player_free, 688 enter. player = 0x2678860
&lt;I&gt;player player_free, 699 leave. player = 0x2678860
&lt;D&gt;app audio player exit 2
kws schedule timeout :10000 ms. so change to init mode:ScheduleMainAndCommand </code></pre>

<p>&nbsp;</p>

未来开发者 发表于 2021-12-27 14:07

<p>如果无法解决 建议提交一个工单:https://occ.t-head.cn/people/workorder-submit</p>
页: [1]
查看完整版本: [CB5654智能语音开发板测评] CDK开发环境搭建,重刷YoC智能语音SDK