I would like to implement a Bluetooth headset profile and hands-free profile on a Pi 3. I have successfully connected (via Bluetooth) my Pi 3 with a Bluetooth headset, (with built-in microphone).
Also a USB microphone is attached to Pi. Is it possible to transfer audio to and from the Pi?
I want to hear live audio from the headset microphone through the Pi's audio out and also hear audio from the USB microphone through the headset out. The same for the hands-free profile as well.
In the hands-free profile I want to speak and hear sound from the Pi, (not from the phone). Is there any way to stream live audio between the Pi and a mobile phone?
Currently I'm using Bluez, PulseAudio and oFono.
I have already implemented an A2DP profile with PulseAudio. Basic phone operations are working perfectly with oFono.
The main problem is with the audio flow to and from Pi. I have done some research tried a lot of different things, nothing works as expected.