apache / apache/cordova-plugin-media
Allow choice of output format and audio encoder when recording in Android
- 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
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