Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP-A1S (ESP32 + ES8388 audio chips)play error #47

Open
ilker-aktuna opened this issue Sep 11, 2024 · 1 comment
Open

ESP-A1S (ESP32 + ES8388 audio chips)play error #47

ilker-aktuna opened this issue Sep 11, 2024 · 1 comment

Comments

@ilker-aktuna
Copy link

Hi,

I have this card from Amazon:
https://www.amazon.com/dp/B0B63KZ6C1?ref=ppx_yo2ov_dt_b_fed_asin_title

I am trying to follow the guide here and then run the adf example "play_mp3_control"
I have set the PINs in board definition file

But when I compile, I don't hear the music, I just hear a continuous noise.

Probably something is wrong. What am I missing ?

Also, the "lyrat_v4_3" board which we use as a base has a touchpad and the buttons on my card are not defined. So I doubt that the taking this as base is not a correct approach.
How can I build and run this example on my board ?

@ilker-aktuna
Copy link
Author

What I see in log is:

I (1380) PLAY_FLASH_MP3_CONTROL: [ 1 ] Start audio codec chip
I (1410) PLAY_FLASH_MP3_CONTROL: [ 2 ] Create audio pipeline, add all elements to pipeline, and subscribe pipeline event
I (1410) PLAY_FLASH_MP3_CONTROL: [2.1] Create mp3 decoder to decode mp3 file and set custom read callback
I (1430) PLAY_FLASH_MP3_CONTROL: [2.2] Create i2s stream to write data to codec chip
I (1440) PLAY_FLASH_MP3_CONTROL: [2.3] Register all elements to audio pipeline
I (1440) PLAY_FLASH_MP3_CONTROL: [2.4] Link it together [mp3_music_read_cb]-->mp3_decoder-->i2s_stream-->[codec_chip]
I (1450) PLAY_FLASH_MP3_CONTROL: [ 3 ] Initialize peripherals
I (1460) PLAY_FLASH_MP3_CONTROL: [3.1] Initialize keys on board
I (1470) PLAY_FLASH_MP3_CONTROL: [ 4 ] Set up event listener
I (1470) PLAY_FLASH_MP3_CONTROL: [4.1] Listening event from all elements of pipeline
W (1490) PERIPH_TOUCH: _touch_init
I (1490) PLAY_FLASH_MP3_CONTROL: [4.2] Listening event from peripherals
W (1500) PLAY_FLASH_MP3_CONTROL: [ 5 ] Tap touch buttons to control music player:
W (1510) PLAY_FLASH_MP3_CONTROL: [Play] to start, pause and resume, [Set] to stop.
W (1510) PLAY_FLASH_MP3_CONTROL: [Vol-] or [Vol+] to adjust volume.
I (1540) PLAY_FLASH_MP3_CONTROL: [ 5.1 ] Start audio_pipeline
I (2750) PLAY_FLASH_MP3_CONTROL: [ * ] [mode] tap event
W (2750) AUDIO_ELEMENT: OUT-[mp3] AEL_IO_ABORT
W (2750) MP3_DECODER: Output aborted -3
W (2750) AUDIO_ELEMENT: IN-[i2s] AEL_IO_ABORT
W (2770) AUDIO_ELEMENT: [i2s] Element already stopped
I (3040) PLAY_FLASH_MP3_CONTROL: [ * ] Receive music info from mp3 decoder, sample_rates=22050, bits=16, ch=2
I (52880) PLAY_FLASH_MP3_CONTROL: [ * ] [mode] tap event
W (52880) AUDIO_ELEMENT: [mp3] Element already stopped
W (52880) AUDIO_ELEMENT: [i2s] Element already stopped
I (52990) PLAY_FLASH_MP3_CONTROL: [ * ] Receive music info from mp3 decoder, sample_rates=44100, bits=16, ch=2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant