Anyone have any luck playing stereo MP3 files?

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Tusabez
 
Posts: 9
Joined: Mon Nov 08, 2021 8:32 am

Anyone have any luck playing stereo MP3 files?

Post by Tusabez »

Hello all,

I've been following adafruit's example on how to play mp3 files from a Raspberry Pi Pico with circuitpython and have had no problem with mono files but can't seem to get stereo audio to work correctly even after I modify the mp3 to reduce sample size. All I get is garbled noise. The audio signal runs through a DAC before hitting the speaker. Anyone have any suggestions?

User avatar
tepalia02
 
Posts: 104
Joined: Sun Apr 24, 2022 6:53 am

Re: Anyone have any luck playing stereo MP3 files?

Post by tepalia02 »


User avatar
Tusabez
 
Posts: 9
Joined: Mon Nov 08, 2021 8:32 am

Re: Anyone have any luck playing stereo MP3 files?

Post by Tusabez »

Yes I did something similar with the example code from adafruit. Just can't figure out why I can't play stereo files correctly. I used the sample rates recommended by adafruit.

User avatar
danhalbert
 
Posts: 4653
Joined: Tue Aug 08, 2017 12:37 pm

Re: Anyone have any luck playing stereo MP3 files?

Post by danhalbert »

There was some discussion here: https://github.com/adafruit/circuitpython/issues/6133. Make sure to use the latest CircuitPython.

Also see the hints in documentation, but maybe you already have: https://docs.circuitpython.org/en/lates ... MP3Decoder

The expert on this is away for several weeks, unfortunately.

User avatar
Tusabez
 
Posts: 9
Joined: Mon Nov 08, 2021 8:32 am

Re: Anyone have any luck playing stereo MP3 files?

Post by Tusabez »

Ok thanks. I'll keep playing with the sample and bit rates and see if I can get it working properly.

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”