8000 How to record with headphone mic · Issue #364 · jsierles/react-native-audio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Aug 21, 2020. It is now read-only.
This repository was archived by the owner on Aug 21, 2020. It is now read-only.
How to record with headphone mic #364
Open
@345ml

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',
});

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

      0