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

Newest i2s version questions #3

Open
gamename opened this issue Dec 27, 2024 · 2 comments
Open

Newest i2s version questions #3

gamename opened this issue Dec 27, 2024 · 2 comments

Comments

@gamename
Copy link

Hi,

Does your decoder work with the latest i2s libraries? I'm on ESP-IDF v5.3.1 and cannot get it to work. But I did have the same code working on the old (now deprecated) version.

Finally, do I need the additional esp-audio-player component if all I want to do is play an mp3 file?

Thank you,
-T

@chmorgan
Copy link
Owner

Hello @gamename

The decoder is providing data only. You provide it mp3 bytes and it provides pcm bytes for playback.

esp-audio-player may need an update if the i2s api has changed and backwards compatibility has been dropped. I’ll have to check on that.

Esp-audio-player manages keeping the i2s device filled, keeping track of bytes to decode, managing pausing and playing, codec sample rate adjustment, mono-stereo/stereo to mono, muting etc.

You can of course do this directly yourself using just the decode library but imo it’s enough to do that you’d likely save time using the audio player.

@gamename
Copy link
Author

gamename commented Dec 27, 2024

Hello @gamename

The decoder is providing data only. You provide it mp3 bytes and it provides pcm bytes for playback.

esp-audio-player may need an update if the i2s api has changed and backwards compatibility has been dropped. I’ll have to check on that.

Esp-audio-player manages keeping the i2s device filled, keeping track of bytes to decode, managing pausing and playing, codec sample rate adjustment, mono-stereo/stereo to mono, muting etc.

You can of course do this directly yourself using just the decode library but imo it’s enough to do that you’d likely save time using the audio player.

@chmorgan Thanks for the quick reply. Should I keep this open until you've verified? Otherwise, I'll close it.

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

2 participants