Answer android calls on ubuntu via bluetooth
I can successfully connect my android device as audio source, and listen to music, youtube videos etc. on my laptop(that are played on android phone). But when I'm in a call, the audio doesn't go through the laptop, but it works on my bluetooth headset. If I select an option on my android phone to transfer the call via bluetooth(like I would on my headset), there's no sound on my computer...
What I tried:
How to set up Ubuntu PC as bluetooth headset to attend calls - Doesn't work
How can I make usual phone calls using a connected mobile phone? - seems outdated, cannot install
Solution 1:
I had this problem, too. I was trying to record my phone calls with OBS. After fiddling around with various audio sources, without paying too much attention, I was able to record the call. This wasn't much use to me because the audio didn't play through the speakers, plus for some reason placing the call disabled microphone input. At the time I regarded these as two separate issues.
I realized that this proves that the problem originates not on the Android side, nor in the Bluetooth transmission of the audio to Linux. The problem lies somewhere between PulseAudio and the speakers.
I investigated further and noticed something. When I played music from the phone, OBS detected it as audio output. But when I placed a phone call, OBS detected it as audio input. This explained both of my problems!
What I did was set OBS to output my microphone:
- Connect your smartphone and computer with Bluetooth.
- Install OBS:
sudo apt install obs-studio
. - In the "Sources" pane at the bottom of the screen, click the "+" sign to add a new audio source.
- Select either "Audio Capture Device (ALSA)" or "Audio Input Capture (PulseAudio)".
- You don't need to change anything on the "Create/Select Source" window that pops up, just click OK.
- You don't need to change anything on the "Properties" window that pops up, just click OK.
- A new set of bars will appear in the "Mixer" panel, the visualization showing that it is capturing your computer's microphone if you have one. Turn the volume down using the blue slider underneath it; you don't want feedback when we start outputting the microphone.
- Click the settings gear next to the Audio Capture Device entry.
- select "Advanced Audio Properties" on the menu.
- Place a call from your smartphone.
- In the window that pops up, select the "Audio Monitoring" drop down menu for "Audio Capture Device (ALSA)" and set it to "Monitor and Output". I found it works most consistently when the call is placed before the setting is changed.
- The speakers should now start playing the call! Should. This doesn't always work. Sometimes I had to remove and re-add the audio source to make it work.
There is probably a better way to do this with VLC streaming.
This isn't the end of the story if you want to record the call, because the call still disables the microphone, so you can't record yourself speaking. I will update this answer if I figure out how to do that.