ESP32-Korvo-DU1906运行例程 pipeline_wav_amr_sdcard录制声音失败

modaoo
Posts: 3
Joined: Wed May 26, 2021 6:07 am

ESP32-Korvo-DU1906运行例程 pipeline_wav_amr_sdcard录制声音失败

Postby modaoo » Thu May 27, 2021 7:07 am

编译例程下载到开发板都成功了,调试信息也显示录音了,但是打开sdcard里生成的WAV文件,播放没有声音,
问一下,是不是ADF里的例程中的README里显示不支持ESP32-Korvo-DU1906开发板的都不能运行,还是说只要在menuconfig > Audio HAL里能选择到ESP32-Korvo-DU1906开发板的就可以运行?????

调试信息如下:

I (29) boot: ESP-IDF v4.2.1 2nd stage bootloader
I (29) boot: compile time 13:50:43
I (29) boot: chip revision: 3
I (32) boot_comm: chip revision: 3, min. bootloader chip revision: 0
I (39) boot.esp32: SPI Speed : 40MHz
I (44) boot.esp32: SPI Mode : DIO
I (48) boot.esp32: SPI Flash Size : 8MB
I (53) boot: Enabling RNG early entropy source...
I (58) boot: Partition Table:
I (62) boot: ## Label Usage Type ST Offset Length
I (69) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (77) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (84) boot: 2 factory factory app 00 00 00010000 00100000
I (92) boot: End of partition table
I (96) boot_comm: chip revision: 3, min. application chip revision: 0
I (103) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x40d70 (265584) map
I (213) esp_image: segment 1: paddr=0x00050d98 vaddr=0x3ffb0000 size=0x024b4 ( 9396) load
I (217) esp_image: segment 2: paddr=0x00053254 vaddr=0x40080000 size=0x00404 ( 1028) load
0x40080000: _WindowOverflow4 at F:/esp-idf/components/freertos/xtensa/xtensa_vectors.S:1730

I (220) esp_image: segment 3: paddr=0x00053660 vaddr=0x40080404 size=0x0c9b8 ( 51640) load
I (251) esp_image: segment 4: paddr=0x00060020 vaddr=0x400d0020 size=0x37c34 (228404) map
0x400d0020: _stext at ??:?

I (339) esp_image: segment 5: paddr=0x00097c5c vaddr=0x4008cdbc size=0x00ca0 ( 3232) load
0x4008cdbc: rwdt_ll_disable_stage at F:/esp-idf/components/soc/src/esp32/include/hal/rwdt_ll.h:132
(inlined by) wdt_hal_init at F:/esp-idf/components/soc/src/hal/wdt_hal_iram.c:43

I (348) boot: Loaded app from partition at offset 0x10000
I (348) boot: Disabling RNG early entropy source...
I (350) cpu_start: Pro cpu up.
I (354) cpu_start: Application information:
I (359) cpu_start: Project name: pipeline_wav_amr_sdcard
I (365) cpu_start: App version: 1
I (370) cpu_start: Compile time: May 27 2021 14:00:32
I (376) cpu_start: ELF file SHA256: d911cbdf83d0a23d...
I (382) cpu_start: ESP-IDF: v4.2.1
I (387) cpu_start: Starting app cpu, entry point is 0x40081980
0x40081980: call_start_cpu1 at F:/esp-idf/components/esp32/cpu_start.c:287

I (0) cpu_start: App cpu up.
I (397) heap_init: Initializing. RAM available for dynamic allocation:
I (404) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (410) heap_init: At 3FFB2E50 len 0002D1B0 (180 KiB): DRAM
I (416) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (422) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (429) heap_init: At 4008DA5C len 000125A4 (73 KiB): IRAM
I (435) cpu_start: Pro cpu start user code
I (453) spi_flash: detected chip: gd
I (454) spi_flash: flash io: dio
I (454) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (466) PIPELINR_REC_WAV_AMR_SDCARD: [1.0] Mount sdcard
I (973) PIPELINR_REC_WAV_AMR_SDCARD: [2.0] Start codec chip
W (2876) TAS5805M: volume = 0x44
W (2916) I2C_BUS: i2c_bus_create:57: I2C bus has been already created, [port:0]
W (2963) I2C_BUS: i2c_bus_create:57: I2C bus has been already created, [port:0]
I (2970) PIPELINR_REC_WAV_AMR_SDCARD: [3.0] Create audio pipeline_wav for recording
I (2970) PIPELINR_REC_WAV_AMR_SDCARD: [3.1] Create i2s stream to read audio data from codec chip
I (2994) PIPELINR_REC_WAV_AMR_SDCARD: [3.2] Create wav encoder to encode wav format
I (2995) PIPELINR_REC_WAV_AMR_SDCARD: [3.3] Create fatfs stream to write data to sdcard
I (3000) PIPELINR_REC_WAV_AMR_SDCARD: [3.4] Register all elements to audio pipeline
I (3009) PIPELINR_REC_WAV_AMR_SDCARD: [3.5] Link it together [codec_chip]-->i2s_stream-->wav_encoder-->fatfs_stream-->[sdcard]
I (3021) PIPELINR_REC_WAV_AMR_SDCARD: [3.6] Set up uri (file as fatfs_stream, wav as wav encoder)
I (3030) PIPELINR_REC_WAV_AMR_SDCARD: [4.0] Create audio amr_pipeline for recording
I (3039) PIPELINR_REC_WAV_AMR_SDCARD: [4.1] Create raw stream to write data
I (3046) PIPELINR_REC_WAV_AMR_SDCARD: [4.2] Create amr encoder to encode wav format
I (3055) PIPELINR_REC_WAV_AMR_SDCARD: [4.3] Create fatfs stream to write data to sdcard
I (3063) PIPELINR_REC_WAV_AMR_SDCARD: [4.4] Register all elements to audio amr_pipeline
I (3072) PIPELINR_REC_WAV_AMR_SDCARD: [4.5] Link it together [codec_chip]-->i2s_stream-->wav_encoder-->fatfs_stream-->[sdcard]
I (3084) PIPELINR_REC_WAV_AMR_SDCARD: [4.6] Create ringbuf to link i2s
I (3091) PIPELINR_REC_WAV_AMR_SDCARD: [4.7] Set up uri (file as fatfs_stream, wav as wav encoder)
I (3101) PIPELINR_REC_WAV_AMR_SDCARD: [5.0] Set up event listener
I (3108) PIPELINR_REC_WAV_AMR_SDCARD: [5.1] Listening event from peripherals
I (3116) PIPELINR_REC_WAV_AMR_SDCARD: [6.0] start audio_pipeline
I (3147) PIPELINR_REC_WAV_AMR_SDCARD: [7.0] Listen for all pipeline events, record for 10 seconds
I (4174) PIPELINR_REC_WAV_AMR_SDCARD: [ * ] Recording ... 1
I (5205) PIPELINR_REC_WAV_AMR_SDCARD: [ * ] Recording ... 2
I (6292) PIPELINR_REC_WAV_AMR_SDCARD: [ * ] Recording ... 3
I (7346) PIPELINR_REC_WAV_AMR_SDCARD: [ * ] Recording ... 4
I (8411) PIPELINR_REC_WAV_AMR_SDCARD: [ * ] Recording ... 5
I (9421) PIPELINR_REC_WAV_AMR_SDCARD: [ * ] Recording ... 6
I (10558) PIPELINR_REC_WAV_AMR_SDCARD: [ * ] Recording ... 7
I (11618) PIPELINR_REC_WAV_AMR_SDCARD: [ * ] Recording ... 8
I (12687) PIPELINR_REC_WAV_AMR_SDCARD: [ * ] Recording ... 9
I (13692) PIPELINR_REC_WAV_AMR_SDCARD: [ * ] Recording ... 10
I (13695) PIPELINR_REC_WAV_AMR_SDCARD: Finishing recording
W (13702) AUDIO_ELEMENT: IN-[Wamr] AEL_IO_ABORT
W (13703) AUDIO_ELEMENT: OUT-[wav] AEL_IO_ABORT
W (13717) AUDIO_ELEMENT: OUT-[i2s] AEL_IO_ABORT
W (13718) AUDIO_ELEMENT: OUT-[i2s] AEL_IO_ABORT
W (13718) AUDIO_ELEMENT: OUT-[i2s] AEL_IO_ABORT
I (13723) PIPELINR_REC_WAV_AMR_SDCARD: [8.0] Stop audio_pipeline
W (13730) AUDIO_PIPELINE: There are no listener registered
W (13736) AUDIO_PIPELINE: There are no listener registered
W (13742) AUDIO_ELEMENT: [i2s] Element has not create when AUDIO_ELEMENT_TERMINATE
W (13751) AUDIO_ELEMENT: [wav] Element has not create when AUDIO_ELEMENT_TERMINATE
W (13758) AUDIO_ELEMENT: [wav_file] Element has not create when AUDIO_ELEMENT_TERMINATE

ESP_HengYC
Posts: 184
Joined: Fri Dec 15, 2017 2:45 am

Re: ESP32-Korvo-DU1906运行例程 pipeline_wav_amr_sdcard录制声音失败

Postby ESP_HengYC » Fri Jun 11, 2021 3:22 am

使用用 example 前, 请阅读 README.MD 文档。

pipeline_wav_amr_sdcard 文档表格已经说明了,当前例程不支持 ESP32-Korvo-DU1906 开发板。
Attachments
Selection_528.png
Selection_528.png (148.47 KiB) Viewed 4906 times

Who is online

Users browsing this forum: No registered users and 13 guests