[pulseaudio-discuss] HFP AG using laptop mic as audio to play on Hands-free device

Tanu Kaskinen tanuk at iki.fi
Fri Jul 14 19:23:57 UTC 2017


On Thu, 2017-07-13 at 12:26 +0530, Sathish Narasimman wrote:
> Hi all,
> 
> I was able to successfully connect using HFP AG profile(git
> PulseAudio) with a handsfree device.
> If I switch the profile from sound setting to HSP/HFP I can see the
> sounds played on the laptop are transferred using SCO channel. Also, i
> can record the sound from the handsfree device.
> 
> Instead of playing an audio file I want to transfer the audio that I
> speak using laptop mic to the hansfree device and vice-versa.
> 
> Is there is a way to change the way I want as I mentioned above? If so
> please guide me in right direction.

Routing the laptop mic to the hf device and the hf device input to the
laptop speakers should happen automatically. It's done by module-
bluetooth-policy (which is included in the default configuration),
which loads module-loopback instances. The loopbacks connect the
bluetooth source to the default sink and the bluetooth sink to the
default source. As long as the default sink and source are set
appropriately, this should just work.

You can check the current default sink and source with "pactl info",
and you can set them with "pactl set-default-sink" and "pactl set-
default-source" (see "man pactl"). Graphical audio configuration tools
can usually also be used to set the default devices.

If module-bluetooth-policy doesn't seem to be doing its job, please
attach the output of "pactl list".

-- 
Tanu

https://www.patreon.com/tanuk


More information about the pulseaudio-discuss mailing list