Playing a ~1 min audio clip to bluetooth speaker? #475
-
Hi there, I've been playing around with ESP32-A2DP and this library and getting a bit stumped on what I think is a fairly simple task: playing a ~1min long audio clip (preferably up to ~3min) on whatever Bluetooth speaker my ESP32 v2 (from Adafruit, with 8MB flash) connects to first. I got the connection working and playing fine, but I can only fit about 10 seconds or so of this audio on the device—in raw format in C, the filesize obviously becomes absolutely gigantic. Any suggestions on how I could potentially fit a whole minute (or more) on this? I'd love to avoid having to solder an SD card reader onto my device. Thanks so much! B |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Did you try to use mp3 ? Mp3 uses much less memory then wav or PCM audio data... |
Beta Was this translation helpful? Give feedback.
-
Ok, got it working. For some reason, any mp3 exported from Audacity would play back at ~2x speed, but once I used an online converter, somehow that worked fine. All's well. Thanks for your help @pschatzmann. But now I have a new question! Any way to loop the track so it continuously plays? :) |
Beta Was this translation helpful? Give feedback.
Ok, got it working. For some reason, any mp3 exported from Audacity would play back at ~2x speed, but once I used an online converter, somehow that worked fine.
All's well. Thanks for your help @pschatzmann.
But now I have a new question! Any way to loop the track so it continuously plays? :)