Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android bluetooth headset playback over SCO mode #122

Open
Kravchenko32 opened this issue Jan 11, 2023 · 0 comments
Open

Android bluetooth headset playback over SCO mode #122

Kravchenko32 opened this issue Jan 11, 2023 · 0 comments

Comments

@Kravchenko32
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant