Skip to content

How to record with headphone mic #364

Description

@345ml

Tell us which versions you are using ( you can see the versions in your package.json ):

"react-native-audio": "^4.3.0",
"react-native-sound": "^0.11.0",
"react-native": "0.61.5",
"react": "16.9.0",

Expected behaviour :

For example, when you have an earphone mic on AirPods, you want to record audio from the headphone mic.

Actual behaviour

Even if wearing a headphone microphone, it seems to be recording audio from the device's microphone.

Steps to reproduce

Here's the code as I recorded it.

AudioRecorder.prepareRecordingAtPath(`${AudioUtils.DocumentDirectoryPath}/audio.aac`, {
  SampleRate: 16000,
  Channels: 1,
  AudioQuality: 'High',
  AudioEncoding: 'aac',
});

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