[pulseaudio-discuss] Bluetooth HSP handling on pulseaudio

Tanu Kaskinen tanuk at iki.fi
Tue Jun 27 13:54:05 UTC 2017


On Sat, 2017-06-24 at 15:19 +0900, Shinnosuke Suzuki wrote:
> Hi all,
> 
> I’m a new to pulseaudio development.
> I would like to write program which handle voice packet and some Bluetooth HSP event (RING,CKPD etc) from/to bluetooth headset.
> The pulseaudio 6.0 support HSP with bluez5, so I think this can be done.
> I read programming documentation, and I think the program needs asynchronous API not the simple API.
> But I couldn’t find any information on handling bluetooth HSP event and voice packet.
> 
> I there any manual or sample code on this?

>From an application's point of view "HSP audio packet handling" is done
just like with any other audio device. PulseAudio doesn't have any
special Bluetooth API, you just play and record audio using the normal
stream API. A new sink and source will be created for the headset when
it's connected.

RING and CKPD are ignored by PulseAudio, so you can't currently get
notifications about those, unfortunately.

-- 
Tanu

https://www.patreon.com/tanuk


More information about the pulseaudio-discuss mailing list