Is it possible to add an SBC encoder so we can play anything to the A2DP stream?
- Dominant language
- Python
- Stars
- 555
- Forks
- 138
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 9
Description
The [A2DP source example](https://github.com/google/bumble/blob/main/examples/run_a2dp_source.py) supports sending pre-encoded SBC packets. We're building an automated test system for a Bluetooth sound system we're making, and part of that is to send audio and make sure the audio comes out properly. I'd love to be able to play any file such as a .wav or .mp3 without having to manually transcode it to SBC format first. That would require at least an SBC encoder, plus whatever decoder is required to turn the source file into PCM audio (which almost certainly already exists for the common formats, such as https://github.com/pylon/streamp3 )
Maybe there's some way to involve https://github.com/google/libsbc - run esbc as a subprocess and take the stdout as the packet source?
Contributor guide
Assessment
This issue has not been assessed yet.