完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
运行esp-adfexamplescloud_servicespipeline_baidu_speech_mp3例程失败,已在百度AI开放平台注册语音合成应用,并且按照例程说明填入 API key和Secret Key,运行例程时,发现连接上了WiFi,并没有连接上百度AI平台 调试信息如下:
I (29) boot: ESP-IDF v4.2.1 2nd stage bootloader I (29) boot: compile time 13:52:04 I (29) boot: chip revision: 3 I (32) boot_comm: chip revision: 3, min. bootloader chip revision: 0 I (39) qio_mode: Enabling default flash chip QIO I (44) boot.esp32: SPI Speed : 80MHz I (49) boot.esp32: SPI Mode : QIO I (54) boot.esp32: SPI Flash Size : 8MB I (58) boot: Enabling RNG early entropy source... I (64) boot: Partition Table: I (67) boot: ## Label Usage Type ST Offset Length I (74) boot: 0 nvs WiFi data 01 02 00009000 00004000 I (82) boot: 1 phy_init RF data 01 01 0000d000 00001000 I (89) boot: 2 factory factory app 00 00 00010000 00300000 I (97) boot: End of partition table I (101) boot_comm: chip revision: 3, min. application chip revision: 0 I (108) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x25ef4 (155380) map I (163) esp_image: segment 1: paddr=0x00035f1c vaddr=0x3ffb0000 size=0x03354 ( 13140) load I (168) esp_image: segment 2: paddr=0x00039278 vaddr=0x40080000 size=0x00404 ( 1028) load 0x40080000: _WindowOverflow4 at F:/esp-idf/components/freertos/xtensa/xtensa_vectors.S:1730 I (170) esp_image: segment 3: paddr=0x00039684 vaddr=0x40080404 size=0x06994 ( 27028) load I (188) esp_image: segment 4: paddr=0x00040020 vaddr=0x400d0020 size=0xa6b54 (682836) map 0x400d0020: _stext at ??:? I (390) esp_image: segment 5: paddr=0x000e6b7c vaddr=0x40086d98 size=0x105e8 ( 67048) load 0x40086d98: write_wifi_dig_gain at /home/cff/gittree/chip7.1_phy/chip_7.1/board_code/app_test/pp/phy/phy_chip_v7_cal.c:1937 I (426) boot: Loaded app from partition at offset 0x10000 I (426) boot: Disabling RNG early entropy source... I (426) cpu_start: Pro cpu up. I (430) cpu_start: Application information: I (435) cpu_start: Project name: play_baidu_tts_mp3 I (441) cpu_start: App version: 1 I (445) cpu_start: Compile time: May 26 2021 13:50:32 I (451) cpu_start: ELF file SHA256: 8680ed60e6383ee0... I (457) cpu_start: ESP-IDF: v4.2.1 I (462) cpu_start: Starting app cpu, entry point is 0x400819ac 0x400819ac: call_start_cpu1 at F:/esp-idf/components/esp32/cpu_start.c:287 I (0) cpu_start: App cpu up. I (472) heap_init: Initializing. RAM available for dynamic allocation: I (479) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (485) heap_init: At 3FFB7E88 len 00028178 (160 KiB): DRAM I (492) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM I (498) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (504) heap_init: At 40097380 len 00008C80 (35 KiB): IRAM I (511) cpu_start: Pro cpu start user code I (528) spi_flash: detected chip: gd I (528) spi_flash: flash io: qio I (528) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. I (560) BAIDU_SPEECH_EXAMPLE: [ 0 ] Start and wait for Wi-Fi network I (580) wifi:wifi driver task: 3ffc1b68, prio:23, stack:6656, core=0 I (580) system_api: Base MAC address is not set I (580) system_api: read default base MAC address from EFUSE I (590) wifi:wifi firmware version: c44a5e7 I (590) wifi:wifi certification version: v7.0 I (590) wifi:config NVS flash: enabled I (590) wifi:config nano formating: disabled I (600) wifi:Init data frame dynamic rx buffer num: 32 I (600) wifi:Init management frame dynamic rx buffer num: 32 I (610) wifi:Init management short buffer num: 32 I (610) wifi:Init dynamic tx buffer num: 32 I (620) wifi:Init static rx buffer size: 1600 I (620) wifi:Init static rx buffer num: 10 I (620) wifi:Init dynamic rx buffer num: 32 I (630) wifi_init: rx ba win: 6 I (630) wifi_init: tcpip mbox: 32 I (640) wifi_init: udp mbox: 6 I (640) wifi_init: tcp mbox: 6 I (640) wifi_init: tcp tx win: 5744 I (650) wifi_init: tcp rx win: 5744 I (650) wifi_init: tcp mss: 1440 I (660) wifi_init: WiFi IRAM OP enabled I (660) wifi_init: WiFi RX IRAM OP enabled I (660) phy_init: phy_version 4660,0162888,Dec 23 2020 I (770) wifi:mode : sta (b8:f0:09:8f:bc:20) I (900) wifi<2,0>, old:<1,0>, ap:<255,255>, sta:<2,0>, prof:1 I (1760) wifi:state: init -> auth (b0) I (1830) wifi:state: auth -> assoc (0) I (1860) wifi:state: assoc -> run (10) I (1990) wifi:connected with bujiaban, aid = 4, channel 2, BW20, bssid = 50:64:2b:34:e5:fe I (1990) wifi:security: WPA2-PSK, phy: bgn, rssi: -46 I (2000) wifi:pm start, type: 1 W (2000) PERIPH_WIFI: WiFi Event cb, Unhandle event_base:WIFI_EVENT, event_id:4 I (2100) wifi:AP's beacon interval = 102400 us, DTIM period = 1 I (3060) esp_netif_handlers: sta ip: 192.168.31.115, mask: 255.255.255.0, gw: 192.168.31.1 I (3060) PERIPH_WIFI: Got ip:192.168.31.115 I (3060) BAIDU_SPEECH_EXAMPLE: [ 1 ] Start audio codec chip I (3070) ESP32_Korvo_DU1906: I2S0, MCLK output by GPIO0 W (3080) I2C_BUS: i2c_bus_create:57: I2C bus has been already created, [port:0] I (3080) AUDIO_HAL: Codec mode is 3, Ctrl:1 I (3080) BAIDU_SPEECH_EXAMPLE: [2.0] Create audio pipeline for playback I (3090) BAIDU_SPEECH_EXAMPLE: [2.1] Create http stream to read data I (3100) BAIDU_SPEECH_EXAMPLE: [2.2] Create i2s stream to write data to codec chip I (3110) I2S: DMA Malloc info, datalen=blocksize=1200, dma_buf_count=3 I (3110) I2S: DMA Malloc info, datalen=blocksize=1200, dma_buf_count=3 I (3140) I2S: APLL: Req RATE: 44100, real rate: 44099.988, BITS: 16, CLKM: 1, BCK_M: 8, MCLK: 11289597.000, SCLK: 1411199.625000, diva: 1, divb: 0 I (3150) ESP32_Korvo_DU1906: I2S0, MCLK output by GPIO0 I (3150) BAIDU_SPEECH_EXAMPLE: [2.3] Create mp3 decoder to decode mp3 file I (3160) MP3_DECODER: MP3 init I (3160) BAIDU_SPEECH_EXAMPLE: [2.4] Register all elements to audio pipeline I (3170) BAIDU_SPEECH_EXAMPLE: [2.5] Link it together http_stream-->mp3_decoder-->i2s_stream-->[codec_chip] I (3180) AUDIO_PIPELINE: link el->rb, el:0x3ffc6f50, tag:http, rb:0x3ffc9978 I (3190) AUDIO_PIPELINE: link el->rb, el:0x3ffc9608, tag:mp3, rb:0x3ffceab4 I (3200) BAIDU_SPEECH_EXAMPLE: [2.6] Set up uri (http as http_stream, mp3 as mp3 decoder, and default output is i2s) I (3210) BAIDU_SPEECH_EXAMPLE: [ 4 ] Set up event listener I (3220) BAIDU_SPEECH_EXAMPLE: [4.1] Listening event from all elements of pipeline I (3220) BAIDU_SPEECH_EXAMPLE: [4.2] Listening event from peripherals I (3230) BAIDU_SPEECH_EXAMPLE: [ 5 ] Start audio_pipeline I (3240) AUDIO_ELEMENT: [http-0x3ffc6f50] Element task created I (3240) AUDIO_ELEMENT: [mp3-0x3ffc9608] Element task created I (3250) AUDIO_ELEMENT: [i2s-0x3ffc9290] Element task created I (3260) AUDIO_PIPELINE: Func:audio_pipeline_run, Line:359, MEM Total:177740 Bytes I (3260) AUDIO_ELEMENT: [http] AEL_MSG_CMD_RESUME,state:1 I (3270) AUDIO_ELEMENT: [mp3] AEL_MSG_CMD_RESUME,state:1 I (3280) MP3_DECODER: MP3 opened I (3280) CODEC_ELEMENT_HELPER: The element is 0x3ffc9608. The reserve data 2 is 0x0. I (3290) AUDIO_ELEMENT: [i2s] AEL_MSG_CMD_RESUME,state:1 I (3300) I2S_STREAM: AUDIO_STREAM_WRITER I (3300) AUDIO_PIPELINE: Pipeline started I (3320) AUDIO_ELEMENT: [i2s] AEL_MSG_CMD_PAUSE I (3350) I2S: APLL: Req RATE: 16000, real rate: 15999.986, BITS: 16, CLKM: 1, BCK_M: 8, MCLK: 4095996.500, SCLK: 511999.562500, diva: 1, divb: 0 I (3350) AUDIO_ELEMENT: [i2s] AEL_MSG_CMD_RESUME,state:4 I (3360) I2S_STREAM: AUDIO_STREAM_WRITER I (4460) BAIDU_AUTH: Access token=24.5a504b830554f448e13e4c6686f1b789.2592000.1624600431.282335-24243893 I (5090) HTTP_STREAM: total_bytes=5976 W (5110) HTTP_STREAM: No more data,errno:0, total_bytes:5976, rlen = 0 I (5110) AUDIO_ELEMENT: IN-[http] AEL_IO_DONE,0 I (5110) BAIDU_SPEECH_EXAMPLE: [ * ] Receive music info from mp3 decoder, sample_rates=16000, bits=16, ch=1 I (5260) AUDIO_ELEMENT: [i2s] AEL_MSG_CMD_PAUSE I (5280) I2S: APLL: Req RATE: 16000, real rate: 15999.986, BITS: 16, CLKM: 1, BCK_M: 8, MCLK: 4095996.500, SCLK: 511999.562500, diva: 1, divb: 0 I (5290) AUDIO_ELEMENT: [i2s] AEL_MSG_CMD_RESUME,state:4 I (5290) I2S_STREAM: AUDIO_STREAM_WRITER I (6410) AUDIO_ELEMENT: IN-[mp3] AEL_IO_DONE,-2 I (7500) MP3_DECODER: Closed I (7570) AUDIO_ELEMENT: IN-[i2s] AEL_IO_DONE,-2 W (7800) BAIDU_SPEECH_EXAMPLE: [ * ] Stop event received I (7800) BAIDU_SPEECH_EXAMPLE: [ 6 ] Stop audio_pipeline E (7800) AUDIO_ELEMENT: [http] Element already stopped E (7800) AUDIO_ELEMENT: [mp3] Element already stopped E (7810) AUDIO_ELEMENT: [i2s] Element already stopped W (7820) AUDIO_PIPELINE: There are no listener registered I (7820) AUDIO_PIPELINE: audio_pipeline_unlinked W (7830) AUDIO_ELEMENT: [http] Element has not create when AUDIO_ELEMENT_TERMINATE W (7830) AUDIO_ELEMENT: [i2s] Element has not create when AUDIO_ELEMENT_TERMINATE W (7840) AUDIO_ELEMENT: [mp3] Element has not create when AUDIO_ELEMENT_TERMINATE I (7860) wifi:state: run -> init (0) I (7860) wifi:pm stop, total sleep time: 3454263 us / 5857611 us I (7860) wifi<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1 W (7870) PERIPH_WIFI: Wi-Fi disconnected from SSID bujiaban, auto-reconnect disabled, reconnect after 1000 ms W (7880) PERIPH_WIFI: WiFi Event cb, Unhandle event_base:WIFI_EVENT, event_id:3 I (8000) wifi:flush txq I (8000) wifi:stop sw txq I (8000) wifi:lmac stop hw txq I (8000) wifi:Deinit lldesc rx mblock:10 |
|
相关推荐
1个回答
|
|
以下是一些建议和解决方案,帮助您解决这个问题:
1. 确保您的API Key和Secret Key填写正确:请再次检查您的API Key和Secret Key是否与百度AI开放平台注册的语音合成应用中的信息一致。 2. 检查网络连接:您提到已经连接上WiFi,但请确保网络连接稳定,以便设备能够正常访问百度AI平台。 3. 检查ESP-IDF版本:您当前使用的ESP-IDF版本是v4.2.1。请确保您的ESP-IDF版本与esp-adf的版本兼容。如果不兼容,请升级或降级ESP-IDF版本。 4. 检查百度AI平台的API限制:请检查您的百度AI平台账户是否有任何API调用限制,例如请求频率限制或配额限制。 5. 检查日志输出:仔细查看设备的日志输出,看看是否有任何错误或警告信息。这可能会帮助您找到问题的原因。 |
|
|
|
只有小组成员才能发言,加入小组>>
968 浏览 1 评论
553浏览 6评论
463浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
447浏览 5评论
448浏览 4评论
418浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-27 12:06 , Processed in 0.955455 second(s), Total 80, Slave 63 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号