margelo / margelo/react-native-vision-camera

✨ Microphone selection for video

Open
#3,528 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

✨ feature
Dominant language
TypeScript
Stars
9.6k
Forks
1.4k
Avg merge
1d 28m
Merged PRs (30d)
4

Description

What feature or enhancement are you suggesting?

Summary
Add support for selecting specific microphones during video recording, rather than using the default system microphone.

Problem
Currently, when recording video with react-native-vision-camera, the library uses the device's default microphone (typically the front-facing microphone near the earpiece on iPhones). This results in suboptimal audio quality, especially when recording with the rear camera, as the microphone is positioned far from the subject being recorded.

Proposed Solution
Introduce a microphoneDevice or audioDevice parameter in the video recording configuration that allows developers to specify which microphone to use. This could include options such as:

front - Front-facing microphone (current default)
back - Rear microphone (near the camera)
bottom - Bottom microphone
auto - Automatically select the best microphone based on camera orientation

Use Case
Our application primarily runs on iPhone 16 Pro Max devices and would greatly benefit from using the rear microphone when recording with the back camera. This would significantly improve audio quality by capturing sound from the same direction as the video.

What Platforms whould this feature/enhancement affect?

iOS

Alternatives/Workarounds

At the moment I don't know any workarounds other than trying to enhance the audio in post.

Additional information

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by reviewing the video recording configuration and the iOS microphone behavior described in the issue. Done means defining and implementing a supported microphone-selection interface for iOS, including the requested camera-related choices, with verification that recording uses the selected microphone.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, react-native, typescript
Domain
audio-video-rtc, mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.