apache / cordova-plugin-media

Apache Cordova Media Plugin
https://cordova.apache.org/
Apache License 2.0
388 stars 768 forks source link

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

Open brunobastosg opened 4 years ago

brunobastosg commented 4 years ago

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 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 to change the output format to AMR WB (which has greater quality).

timbru31 commented 4 years ago

PR's welcome (obviously the format needs to be somehow configurable)