Skip to content

Android bluetooth headset playback over SCO mode  #122

Description

@Kravchenko32

I have some very particular circumstances, that require Bluetooth SCO mode turned on for mic capture.
Long story short, you need to specify "AudioAttributes" for audio playback, otherwise there's no sound.

      .SetAudioAttributes(new Android.Media.AudioAttributes.Builder()
          .SetUsage(Android.Media.AudioUsageKind.VoiceCommunication)
          .Build())

This is an issue for Xamarin Essentials TTS as well (which I haven't reported yet).
I'm not even sure how you'd go about handling that. I'm not sure if there's a way for me to configure it globally.

This didn't used to be needed prior to Android 12.
However there were reports of audio just stop working after awhile. I think they just made it fail faster.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions