Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

I cannot use microphone with Airpod Pro on iOS #116

Open
khdavidkim opened this issue Oct 13, 2020 · 1 comment
Open

I cannot use microphone with Airpod Pro on iOS #116

khdavidkim opened this issue Oct 13, 2020 · 1 comment

Comments

@khdavidkim
Copy link

I changed code (AVAudioSessionCategoryPlayAndRecord -> AVAudioSessionCategoryRecord) on 84line at SpeechRecognitoin.m.

[audioSession setCategory:AVAudioSessionCategoryRecord withOptions:AVAudioSessionCategoryOptionDefaultToSpeaker error:nil];

@khdavidkim khdavidkim changed the title It cannot do microphone with Airpod Pro on iOS I cannot use microphone with Airpod Pro on iOS Oct 13, 2020
@kidGodzilla
Copy link

Just a note:

I applied this change to a local version of the plugin, where I used this to transcribe spoken audio recorded via cordova-plugin-media.

This change solved a problem for me, where audio playback volume was getting stuck at around 25% (I suspect earphone levels), after recording, and could not be adjusted.

I'm not familiar with the implications of this change in Objective-C but it appears to work on my end with no adverse side effects.

Repro scenario:

AirPods pro are paired but not connected (in case).

  1. play audio,
  2. volume is OK.
  3. Initiate recording,
  4. initiate transcription,
  5. stop recording,
  6. stop transcription,
  7. audio is stuck at earphone levels

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

No branches or pull requests

2 participants