apache / apache/cordova-plugin-media

Allow choice of output format and audio encoder when recording in Android

Open
#255 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
391
Forks
762
PR merge metrics
No merged PRs in 30d

Description

# Feature Request

## Motivation Behind Feature

Currently, in Android, audio is recorded in AAC ADTS format, which has a sampling rate of 8khz (which is too low for my use case). Android, however, supports [other formats](https://developer.android.com/guide/topics/media/media-formats#audio-codecs) for audio recording.

## Feature Description

There should be a way to specify both the output format and audio encoder when recording audio. If those are not specified, then it uses default values (AAC ADTS).

## Alternatives or Workarounds

I had to create a [fork](https://github.com/brunobastosg/cordova-plugin-media) to change the output format to AMR WB (which has greater quality).

Contributor guide

Open the contributing guide

Research direction

The request concerns Android audio recording and names no source file or test. Start by locating the Android recording entry point and the current AAC ADTS defaults; verify how output format and encoder options are passed, then confirm both defaults remain unchanged when options are omitted.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java, javascript
Domain
audio-video-rtc, mobile-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.