Hi Tanu,

Thank you for reply.

I understood spec on pulseaudio.
I wanted to implement simple telephony app using Bluetooth headset.
I will use stream API to handle voice packet without the AT command.

Best Regards,
Shinnosuke Suzuki

> 2017/06/27 22:54、Tanu Kaskinen <[email protected]>のメール:
> 
> 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

_______________________________________________
pulseaudio-discuss mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Reply via email to