Easy as BluetoothA2DPSink a2dp_sink; #272
-
I got this one to work on my ESP32-Wroom-32E without much effort, just had to notice that I copied an example with internal dac option configured and remove that. I'm really interested to see if 2 things can co-exist from the different libraries like streams while this useful Bluetooth sink is also operational. If not it should be a "mode" I can stop and start as needed. So long have I wanted this.
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Ok so if I combine this with
|
Beta Was this translation helpful? Give feedback.
-
I am not sure what you mean with 2 things can co-exist and it really depends on what you want to do. Please note that A2DP is using up quite some RAM and some users where not able to implement TTS with their specific framework, though I managed to have it working with Tensorflow Light. If you want to do some additional I2S output, it is better to switch off the automatic management by this library and take control yourself. You can easily start/stop with the help of the set_connected (bool active) method, if you want to disconnect or by calling stop() or play() if you want to temporarily halt the output via AVRCP. |
Beta Was this translation helpful? Give feedback.
-
I'm just getting a feel for how things interact. Yes, i can see the Bluetooth player lib is using a lot of memory. Still, if it isn't active there is probably a lot of room left to do other things. I'm improvising but what I was thinking is to use this TDA7439 which needs a micro-controller to manage it. Then push the bluetooth into one of it's inputs - its a multi-device audio switcher for older type CD/Tape/Aux. Yes, probably not much point using bluetooth together with a synth but for that what I want is to make the synthesizer bluetooth midi enabled and that would be a different library. I'm not trying to necessarily take up more of your time - this is just the chat and show/tell so I hope you don't mind if this is just creative ideas banter. |
Beta Was this translation helpful? Give feedback.
-
My midi library supports midi over BLE and Bluetooth Serial. Please note that if you use A2DP you can't use any other Bluetooth or WIFI functionality. I have some synth examples with audio output to A2DP, but the lag is too big to be useful. Instead of the TDA7439 you can try the software solution: Here is an example |
Beta Was this translation helpful? Give feedback.
I am not sure what you mean with 2 things can co-exist and it really depends on what you want to do.
Please note that A2DP is using up quite some RAM and some users where not able to implement TTS with their specific framework, though I managed to have it working with Tensorflow Light.
If you want to do some additional I2S output, it is better to switch off the automatic management by this library and take control yourself.
You can easily start/stop with the help of the set_connected (bool active) method, if you want to disconnect or by calling stop() or play() if you want to temporarily halt the output via AVRCP.