Low Latency Bluetooth Integration? #291
-
Hi! First thank you very much for sharing your work!
This is the important code pieces with which i try to explain my scenario:
It works somehow, but the sound is kind of distorted... EDIT:
Thank you for any help, i am somehow trying to make it a great fun for the young people in the workshop, but my knowledge is limited... : ( -paul |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You have a lot of questions and I am not sure if I can answer them all. However I would recommend that you have a look at my Arduiono-Audio-Tools library. It has a lot of examples for the AudioKit and you can also use most other examples just replacing the Audio Sink! The documentation can be found in the Wiki. I was quite happy with the quality and level of the audio that is coming from the speakers! I am note sure what your issue is, but potentially it could be any of the following
The root cause of the problem is that your audio source does not support a pulling API: I think the AudioEffects from the Audio Tools should be a better fit! Looking at your purpose, my recommendation would be not to use BluetoothA2DPSource and stick with something which has a low risk of failure. With it's high sample rate it puts the processor at the edge and there are plenty of stumbling blocks. The BluetoothA2DPSink is working very reliable however.
It is the Espressif IDF framework which calls this
Looking at the API I would expect that there is some logic, but I am not sure. It is also not documented by Espressif! In my examples I tried to always provide the requested number of bytes and with this the requested size stayed the same.
I have to rely on what Arduino and finally the included Espressif IDF is providing and they currently do not support aptx. I think there is some open source implementation (of a cloned IDF version which support APTX), but you would need to integrate this into Arduino and build your own Arduino Implementation. That's definitely not something I am interested in.
No - A2DP is stereo!
You can basically use any of the following protocols
In my audio-tools I started to add some examples - mainly with the purpose to transmit audio. But in the end it does not matter what the payload is. Apart from this you will find plenty of good tutorials on the Internet. After some a second thought however I am not sure if this is a good idea in a school setting where potentially many users might send a request at the same time to the same resource! |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
You have a lot of questions and I am not sure if I can answer them all. However I would recommend that you have a look at my Arduiono-Audio-Tools library. It has a lot of examples for the AudioKit and you can also use most other examples just replacing the Audio Sink! The documentation can be found in the Wiki. I was quite happy with the quality and level of the audio that is coming from the speakers!
I am note sure what your issue is, but potentially it could be any of the following
The root cause of the problem is that your audio source does not support a p…