Replies: 1 comment 5 replies
-
There is no class to load mp3 or ogg. If you're using PWM, it's recommended you use tones. See the buzzer as an example. It can play melodies: https://github.com/nanoframework/nanoFramework.IoT.Device/tree/develop/devices/Buzzer Note that in all cases, the quality you'll get with PWM won't be good compared to using I2S (if your device supports it, so far only implements on ESP32). |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Sorry if the wrong place to ask, but looking to play audio files via PWM on my dev board.
I can see PWM here:
https://github.com/nanoframework/System.Device.Pwm
but can find nothing on loading mp3/wav/ogg file and certainly nothing on playing it via pwm.
Trying to achieve something like this:
https://learn.adafruit.com/mp3-playback-rp2040
Any help at all appreciated!
thanks,
andrew
Beta Was this translation helpful? Give feedback.
All reactions