Hi,
Me and my colleagues are testing a LyraT 4.3 board, and running example https://github.com/espressif/esp-adf/tr ... e_http_mp3.
We have problems with the sound quality of playback and it seems that the sampling is too low and nowhere near 16 Bit or 25 Bit at 41100hz.
Is there some setting we are missing to make it work?
Thanks a lot for any feedback.
LyraT 4.3 board sound quality
Re: LyraT 4.3 board sound quality
Hi famlee,
Could you help to provide the whole log ?
Could you help to provide the whole log ?
Re: LyraT 4.3 board sound quality
Hello jason.mao
Thank you for replying. Sorry for late reply on my part. Here is the log:
Thank you for replying. Sorry for late reply on my part. Here is the log:
Code: Select all
--- Miniterm on COM7 115200,8,N,1 ---
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x3f (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ets Jun 8 2016 00:22:57
rst:0x10 (RTCWDT_RTC_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:6128
ho 0 tail 12 room 4
load:0x40078000,len:9676
load:0x40080400,len:6896
entry 0x40080744
␛[0;32mI (31) boot: ESP-IDF 3.30200.190418 2nd stage bootloader␛[0m
␛[0;32mI (31) boot: compile time 14:11:49␛[0m
␛[0;32mI (35) boot: Enabling RNG early entropy source...␛[0m
␛[0;32mI (36) boot: SPI Speed : 40MHz␛[0m
␛[0;32mI (40) boot: SPI Mode : DIO␛[0m
␛[0;32mI (44) boot: SPI Flash Size : 4MB␛[0m
␛[0;32mI (48) boot: Partition Table:␛[0m
␛[0;32mI (52) boot: ## Label Usage Type ST Offset Length␛[0m
␛[0;32mI (59) boot: 0 nvs WiFi data 01 02 00009000 00006000␛[0m
␛[0;32mI (67) boot: 1 phy_init RF data 01 01 0000f000 00001000␛[0m
␛[0;32mI (74) boot: 2 factory factory app 00 00 00010000 00100000␛[0m
␛[0;32mI (82) boot: End of partition table␛[0m
␛[0;32mI (86) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x14738 ( 83768) map␛[0m
␛[0;32mI (124) esp_image: segment 1: paddr=0x00024760 vaddr=0x3ffbdb60 size=0x01fb4 ( 8116) load␛[0m
␛[0;32mI (128) esp_image: segment 2: paddr=0x0002671c vaddr=0x40080000 size=0x00400 ( 1024) load␛[0m
␛[0;32mI (131) esp_image: segment 3: paddr=0x00026b24 vaddr=0x40080400 size=0x094ec ( 38124) load␛[0m
␛[0;32mI (155) esp_image: segment 4: paddr=0x00030018 vaddr=0x400d0018 size=0x2f1e0 (192992) map␛[0m
␛[0;32mI (224) esp_image: segment 5: paddr=0x0005f200 vaddr=0x400898ec size=0x04844 ( 18500) load␛[0m
␛[0;32mI (240) boot: Loaded app from partition at offset 0x10000␛[0m
␛[0;32mI (240) boot: Disabling RNG early entropy source...␛[0m
␛[0;32mI (241) spiram: Found 32MBit SPI RAM device␛[0m
␛[0;32mI (245) spiram: SPI RAM mode: flash 40m sram 40m␛[0m
␛[0;32mI (250) spiram: PSRAM initialized, cache is in low/high (2-core) mode.␛[0m
␛[0;32mI (258) cpu_start: Pro cpu up.␛[0m
␛[0;32mI (261) cpu_start: Starting app cpu, entry point is 0x400831ac␛[0m
␛[0;32mI (0) cpu_start: App cpu up.␛[0m
␛[0;32mI (1147) spiram: SPI SRAM memory test OK␛[0m
␛[0;32mI (1147) heap_init: Initializing. RAM available for dynamic allocation:␛[0m
␛[0;32mI (1148) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM␛[0m
␛[0;32mI (1154) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM␛[0m
␛[0;32mI (1160) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM␛[0m
␛[0;32mI (1166) heap_init: At 3FFBDB5C len 00000004 (0 KiB): DRAM␛[0m
␛[0;32mI (1172) heap_init: At 3FFC0DB8 len 0001F248 (124 KiB): DRAM␛[0m
␛[0;32mI (1179) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM␛[0m
␛[0;32mI (1185) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM␛[0m
␛[0;32mI (1192) heap_init: At 4008E130 len 00011ED0 (71 KiB): IRAM␛[0m
␛[0;32mI (1198) cpu_start: Pro cpu start user code␛[0m
␛[0;32mI (1203) spiram: Adding pool of 4096K of external SPI memory to heap allocator␛[0m
␛[0;32mI (217) cpu_start: Starting scheduler on PRO CPU.␛[0m
␛[0;32mI (0) cpu_start: Starting s␞���ձ�Ɂon APP CPU.␛[0m
␛[0;32mI (219) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations␛[0m
␛[0;32mI (269) SDCARD_MP3_EXAMPLE: [ 1 ] Mount sdcard␛[0m
␛[0;32mI (369) SDCARD_MP3_EXAMPLE: [ 2 ] Start codec chip␛[0m
␛[0;31mE (369) gpio: gpio_install_isr_service(394): GPIO isr service already installed␛[0m
␛[0;32mI (389) SDCARD_MP3_EXAMPLE: [3.0] Create audio pipeline for playback␛[0m
␛[0;32mI (389) SDCARD_MP3_EXAMPLE: [3.1] Create fatfs stream to read data from sdcard␛[0m
␛[0;32mI (389) SDCARD_MP3_EXAMPLE: [3.2] Create i2s stream to write data to codec chip␛[0m
␛[0;32mI (399) SDCARD_MP3_EXAMPLE: [3.3] Create mp3 decoder to decode mp3 file␛[0m
␛[0;32mI (409) SDCARD_MP3_EXAMPLE: [3.4] Register all elements to audio pipeline␛[0m
␛[0;32mI (409) SDCARD_MP3_EXAMPLE: [3.5] Link it together [sdcard]-->fatfs_stream-->mp3_decoder-->i2s_stream-->[codec_chip]␛[0m
␛[0;32mI (429) SDCARD_MP3_EXAMPLE: [3.6] Set up uri (file as fatfs_stream, mp3 as mp3 decoder, and default output is i2s)␛[0m
␛[0;32mI (439) SDCARD_MP3_EXAMPLE: [ 4 ] Set up event listener␛[0m
␛[0;32mI (439) SDCARD_MP3_EXAMPLE: [4.1] Listening event from all elements of pipeline␛[0m
␛[0;32mI (449) SDCARD_MP3_EXAMPLE: [4.2] Listening event from peripherals␛[0m
␛[0;32mI (459) SDCARD_MP3_EXAMPLE: [ 5 ] Start audio_pipeline␛[0m
␛[0;32mI (469) SDCARD_MP3_EXAMPLE: [ 6 ] Listen for all pipeline events␛[0m
␛[0;32mI (499) SDCARD_MP3_EXAMPLE: [ * ] Receive music info from mp3 decoder, sample_rates=44100, bits=16, ch=2␛[0m
Re: LyraT 4.3 board sound quality
Hello jason.mao, did you anybody have a chance to look into this issue? Thank you in advance for any reply.
Re: LyraT 4.3 board sound quality
Hi,
We are still unable to find a solution to our problem. To be able to replicate the situation please see all the source material we used as well as the recording of the playback that has tons od squeaks and other sounds it should not have.
I have attached a zipped folder with the following content:
1. Source Code 2. Log 3.Song 4. Recording of the playback.
I hope this could point us in the right direction.
Thank you in advance for your time.
We are still unable to find a solution to our problem. To be able to replicate the situation please see all the source material we used as well as the recording of the playback that has tons od squeaks and other sounds it should not have.
I have attached a zipped folder with the following content:
1. Source Code 2. Log 3.Song 4. Recording of the playback.
I hope this could point us in the right direction.
Thank you in advance for your time.
- Attachments
-
- LYRAT Audio Playback Problem.zip
- This pack contains 4 files: 1. Source Code 2. Log 3.Song 4. Recording of the playback.
- (2.18 MiB) Downloaded 687 times
Re: LyraT 4.3 board sound quality
Hi,
I discover the same problem when i use cpu core 1 in decoder task
don't use cpu core settings in decoder initialization - comment it out
/*
mp3_dec_cfg.task_core = 1;
*/
use only defaults settings
best regards,
I discover the same problem when i use cpu core 1 in decoder task
don't use cpu core settings in decoder initialization - comment it out
/*
mp3_dec_cfg.task_core = 1;
*/
use only defaults settings
best regards,
Re: LyraT 4.3 board sound quality
Thank you Eugene for taking the time to reply. We will be testing it out and will get back to you
Re: LyraT 4.3 board sound quality
Hello everyone!
I would like to confirm that I'm running into the same issue on my LyraT 4.3 board. I tried the solution suggested by Eugene but it didn't work. I believe it has something to do with filtering/re-sampling. How to test out the decoder without re-sampling?
I was supposed to jump-start the development of my audio product and get where I want faster with the ESP32 ADF but this turned out to be a real bummer!
I hope someone can find a solution for this soon!
Thanks
I would like to confirm that I'm running into the same issue on my LyraT 4.3 board. I tried the solution suggested by Eugene but it didn't work. I believe it has something to do with filtering/re-sampling. How to test out the decoder without re-sampling?
I was supposed to jump-start the development of my audio product and get where I want faster with the ESP32 ADF but this turned out to be a real bummer!
I hope someone can find a solution for this soon!
Thanks
Re: LyraT 4.3 board sound quality
As expected earlier, it was the re-sampling of audio data fed into the decoder. I have changed the sample rate of the original mp3 file to 48000 and now the playback quality seems fine. By the way, wav decoder also works fine!
Who is online
Users browsing this forum: No registered users and 6 guests