您尚未登录。

楼主 #1 2018-04-30 22:16:18

awfans
会员
注册时间: 2018-04-03
已发帖子: 264
积分: 264

ESP_ADF 的 baidu api demo 没有跑起来, 请大神们帮我分析一下。

rst:0x1 (POWERON_RESET),boot:0x3f (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:5536
ho 0 tail 12 room 4
load:0x40078000,len:0
load:0x40078000,len:13756
entry 0x40078fb4
I (30) boot: ESP-IDF v3.0-rc1-257-g489e98cf-dirty 2nd stage bootloader
I (30) boot: compile time 21:58:53
I (33) boot: Enabling RNG early entropy source...
I (36) boot: SPI Speed      : 40MHz
I (40) boot: SPI Mode       : DIO
I (44) boot: SPI Flash Size : 8MB
I (48) boot: Partition Table:
I (52) boot: ## Label            Usage          Type ST Offset   Length
I (59) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (67) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (74) boot:  2 factory          factory app      00 00 00010000 00100000
I (82) boot: End of partition table
I (86) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x1d4c0 (120000) map
I (137) esp_image: segment 1: paddr=0x0002d4e8 vaddr=0x3ffb0000 size=0x02b28 ( 11048) load
I (141) esp_image: segment 2: paddr=0x00030018 vaddr=0x400d0018 size=0x7fe70 (523888) map
0x400d0018: _stext at ??:?

I (327) esp_image: segment 3: paddr=0x000afe90 vaddr=0x3ffb2b28 size=0x006ec (  1772) load
I (328) esp_image: segment 4: paddr=0x000b0584 vaddr=0x40080000 size=0x00400 (  1024) load
0x40080000: _iram_start at C:/esp-adf/esp-idf/components/freertos/xtensa_vectors.S:1685

I (334) esp_image: segment 5: paddr=0x000b098c vaddr=0x40080400 size=0x1282c ( 75820) load
I (374) esp_image: segment 6: paddr=0x000c31c0 vaddr=0x400c0000 size=0x00000 (     0) load
I (385) boot: Loaded app from partition at offset 0x10000
I (385) boot: Disabling RNG early entropy source...
I (386) cpu_start: Pro cpu up.
I (389) cpu_start: Starting app cpu, entry point is 0x40080ff8
0x40080ff8: call_start_cpu1 at C:/esp-adf/esp-idf/components/esp32/cpu_start.c:215

I (0) cpu_start: App cpu up.
I (400) heap_init: Initializing. RAM available for dynamic allocation:
I (407) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (413) heap_init: At 3FFB9568 len 00026A98 (154 KiB): DRAM
I (419) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (425) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (432) heap_init: At 40092C2C len 0000D3D4 (52 KiB): IRAM
I (438) cpu_start: Pro cpu start user code
I (120) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (148) BAIDU_SPEECH_EXAMPLE: [ 0 ] Start and wait for Wi-Fi network
I (148) wifi: wifi firmware version: 7ff2a2a
I (148) wifi: config NVS flash: enabled
I (158) wifi: config nano formating: disabled
I (158) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUS
E
I (168) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUS
E
I (198) wifi: Init dynamic tx buffer num: 32
I (198) wifi: Init data frame dynamic rx buffer num: 32
I (198) wifi: Init management frame dynamic rx buffer num: 32
I (208) wifi: wifi driver task: 3ffc0d80, prio:23, stack:4096
I (208) wifi: Init static rx buffer num: 10
I (208) wifi: Init dynamic rx buffer num: 32
I (218) wifi: wifi power manager task: 0x3ffc59c0 prio: 21 stack: 2560
I (248) phy: phy_version: 366.0, ba9923d, Dec 29 2017, 14:25:06, 0, 0
I (248) wifi: mode : sta (30:ae:a4:46:ac:a8)
I (618) wifi: n:3 0, o:1 0, ap:255 255, sta:3 0, prof:1
I (1598) wifi: state: init -> auth (b0)
I (1598) wifi: state: auth -> assoc (0)
I (1608) wifi: state: assoc -> run (10)
I (1708) wifi: connected with lingtel.cn, channel 3
I (2608) event: sta ip: 192.168.9.124, mask: 255.255.255.0, gw: 192.168.9.1
I (2608) BAIDU_SPEECH_EXAMPLE: [ 1 ] Start audio codec chip
I (2618) ES8388_DRIVER: init,out:02, in:00
I (2628) gpio: GPIO[21]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (2628) AUDIO_HAL: Codec mode is 2, Ctrl:1
I (2638) BAIDU_SPEECH_EXAMPLE: [2.0] Create audio pipeline for playback
I (2638) BAIDU_SPEECH_EXAMPLE: [2.1] Create http stream to read data
I (2648) BAIDU_SPEECH_EXAMPLE: [2.2] Create i2s stream to write data to codec chip
I (2658) I2S: DMA Malloc info, datalen=blocksize=1200, dma_buf_count=3
I (2658) I2S: DMA Malloc info, datalen=blocksize=1200, dma_buf_count=3
I (2668) I2S: APLL: Req RATE: 44100, real rate: 43945.016, BITS: 16, CLKM: 1, BCK: 8, MCLK: 1128
9966.924, SCLK: 1406240.500000, diva: 1, divb: 0
I (2678) BAIDU_SPEECH_EXAMPLE: [2.3] Create mp3 decoder to decode mp3 file
I (2688) BAIDU_SPEECH_EXAMPLE: [2.4] Register all elements to audio pipeline
I (2698) BAIDU_SPEECH_EXAMPLE: [2.5] Link it together http_stream-->mp3_decoder-->i2s_stream-->[
codec_chip]
I (2708) BAIDU_SPEECH_EXAMPLE: [2.6] Setup uri (http as http_stream, mp3 as mp3 decoder, and def
ault output is i2s)
I (2718) BAIDU_SPEECH_EXAMPLE: [ 4 ] Setup event listener
I (2728) BAIDU_SPEECH_EXAMPLE: [4.1] Listening event from all elements of pipeline
I (2738) BAIDU_SPEECH_EXAMPLE: [4.2] Listening event from peripherals
I (2738) BAIDU_SPEECH_EXAMPLE: [ 5 ] Start audio_pipeline
I (2748) AUDIO_ELEMENT: [http] Element task created
I (2748) AUDIO_ELEMENT: [mp3] Element task created
I (2758) AUDIO_ELEMENT: [i2s] Element task created
I (2758) AUDIO_PIPELINE: Func:audio_pipeline_run, Line:253, MEM Total:182768 Bytes

W (2768) AUDIO_ELEMENT: [http] RESUME:Element has not running,state:3,task_run:1
I (2778) AUDIO_ELEMENT: [http] AEL_MSG_CMD_RESUME,state:3
W (2798) AUDIO_ELEMENT: [mp3] RESUME:Element has not running,state:3,task_run:1
I (2798) AUDIO_ELEMENT: [mp3] AEL_MSG_CMD_RESUME,state:3
I (2798) MP3_DECODER: MP3 opened
W (2808) AUDIO_ELEMENT: [i2s] RESUME:Element has not running,state:3,task_run:1
I (2808) AUDIO_ELEMENT: [i2s] AEL_MSG_CMD_RESUME,state:3
I (2818) I2S_STREAM: AUDIO_STREAM_WRITER
I (2828) AUDIO_PIPELINE: Pipeline started
I (3658) I2S: APLL: Req RATE: 16000, real rate: 15999.022, BITS: 16, CLKM: 1, BCK: 8, MCLK: 4096
000.000, SCLK: 511968.718750, diva: 1, divb: 0
W (3658) AUDIO_ELEMENT: [i2s] RESUME:Element has not running,state:3,task_run:1
I (3668) AUDIO_ELEMENT: [i2s] AEL_MSG_CMD_RESUME,state:3
I (3668) I2S_STREAM: AUDIO_STREAM_WRITER
I (3818) BAIDU_AUTH: Access token=24.a4b6e6b604319fd37c097fae886a687f.2592000.1527689504.282335-11175544
I (4108) HTTP_STREAM: Content-Type = application/json
W (4108) HTTP_STREAM: No more data,errno:9
I (4108) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0
I (4118) AUDIO_ELEMENT: IN-[mp3] AEL_IO_DONE,-2
Encountered error reading when MP3 init
E (4118) AUDIO_ELEMENT: [mp3] AEL_STATUS_ERROR_OPEN
I (4128) MP3_DECODER: Closed
E (4128) AUDIO_ELEMENT: [mp3] AEL_MSG_CMD_ERROR
W (4148) AUDIO_ELEMENT: IN-[i2s] AEL_IO_ABORT
W (4368) BAIDU_SPEECH_EXAMPLE: [ * ] Stop event received
I (4368) BAIDU_SPEECH_EXAMPLE: [ 6 ] Stop audio_pipeline
I (4368) AUDIO_PIPELINE: audio_pipeline_unlinked
I (4388) wifi: state: run -> init (0)
I (4388) wifi: n:3 0, o:3 0, ap:255 255, sta:3 0, prof:1
W (4388) PERIPH_WIFI: Wi-Fi disconnected from SSID lingtel.cn, auto-reconnect enabled, reconnect after 5000 ms
I (4398) wifi: flush txq
I (4398) wifi: stop sw txq
I (4398) wifi: lmac stop hw txq
I (4398) wifi: Deinit lldesc rx mblock:10
E (9398) wifi: esp_wifi_connect 858 wifi is not init

https://github.com/espressif/esp-adf/tree/master/examples/cloud_services/pipeline_baidu_speech_mp3

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn