[pulseaudio-discuss] Switching bluetooth profile internally

Pali Rohár pali.rohar at gmail.com
Fri Aug 11 12:15:01 UTC 2017


Any pulseadio application?

>From application which uses pulseaudio there is no difference between
intel HDA card or bluetooth headset. Both are just pulseaudio stream.

On Friday 11 August 2017 17:33:49 Sathish Narasimman wrote:
> Hi,
> 
> Very thanks for the information. Also, may I know the right VOIP
> application in Linux. where Bluetooth works well.
> 
> 
> On Fri, Aug 11, 2017 at 3:09 PM, Pali Rohár <pali.rohar at gmail.com> wrote:
> > So then just set media.role to phone and module-bluetooth-policy from
> > pulseaudio 10.0 would take care for automatic switch between a2dp and
> > hsp once your application stop resp. start recording sound.
> >
> > See about media.role:
> > https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/Developer/Clients/ApplicationProperties/
> >
> > On Friday 11 August 2017 15:04:08 Sathish Narasimman wrote:
> >> Hi,
> >>
> >> My application is almost similar to what VOIP application.
> >> I am trying to create a communication between the laptop and headset.
> >> That is Tx and Rx full-duplex communication between the laptop and
> >> Bluetooth headset.
> >>
> >> Also can you please mention the VOIP application that works well with Ubuntu.
> >> I tried skype and it is not working with Bluetooth.
> >>
> >>
> >>
> >>
> >> On Fri, Aug 11, 2017 at 2:49 PM, Pali Rohár <pali.rohar at gmail.com> wrote:
> >> > On Friday 11 August 2017 11:02:15 Georg Chini wrote:
> >> >> On 11.08.2017 10:09, Sathish Narasimman wrote:
> >> >> >Hi,
> >> >> >
> >> >> >I want to switch the bluetooth profile using a dbus signal.
> >> >> >
> >> >> >I was successful to send the dbus signal and process it in pulseaudio.
> >> >> >
> >> >> >But unable to figure out how to use set_profile within PA.
> >> >> >
> >> >> >Please help to understand the pulseaudio. I need to switch the profile
> >> >> >from a2dp to hsp and vice versa.
> >> >> >
> >> >> >
> >> >> >Thanks,
> >> >> >Sathish N
> >> >> >_______________________________________________
> >> >> >pulseaudio-discuss mailing list
> >> >> >pulseaudio-discuss at lists.freedesktop.org
> >> >> >https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
> >> >>
> >> >> Hi,
> >> >>
> >> >> I wonder what you are trying to achieve. You can use pactl or pacmd
> >> >> to change the card profile manually and module-bluetooth-policy will
> >> >> automatically switch profile for you in some situations See here:
> >> >> https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#index36h3
> >> >
> >> > Also in pulseaudio 10 module-bluetooth-policy would automatically switch
> >> > between a2dp and hsp if VOIP application want to record sound from
> >> > microphone:
> >> >
> >> > https://www.freedesktop.org/wiki/Software/PulseAudio/Notes/10.0/#automaticallyswitchbluetoothprofilewhenusingvoipapplications
> >> >
> >> > And starting with pulseaudio 11 (not released) module-bluetooth-policy
> >> > could be configured with parameter auto_switch=2 (not by default) to
> >> > automatically switch between a2dp and hsp based on heuristic, see:
> >> >
> >> > https://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=3397127f0045d3c130b59e59b4ce6b3601b239b9
> >> >
> >> > So why do you want to manually switch between hsp and a2dp mode? Is not
> >> > this auto_switch support enough for you?
> >> >
> >> > --
> >> > Pali Rohár
> >> > pali.rohar at gmail.com
> >> > _______________________________________________
> >> > pulseaudio-discuss mailing list
> >> > pulseaudio-discuss at lists.freedesktop.org
> >> > https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
> >> _______________________________________________
> >> pulseaudio-discuss mailing list
> >> pulseaudio-discuss at lists.freedesktop.org
> >> https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
> >
> > --
> > Pali Rohár
> > pali.rohar at gmail.com
> > _______________________________________________
> > pulseaudio-discuss mailing list
> > pulseaudio-discuss at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
> _______________________________________________
> pulseaudio-discuss mailing list
> pulseaudio-discuss at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

-- 
Pali Rohár
pali.rohar at gmail.com


More information about the pulseaudio-discuss mailing list