AAC/ .m4a audio record bitrates?

  1. SDK Version: 37 + 38
  2. Platforms(Android/iOS/web/all): ios, android

Hi, I’m having trouble recording aac .m4a audio at bit rates above 64000 on ios and above 192000 on android. The settings I’m passing to recording.prepareToRecordAsync are as follows:

const recordingSettings = {
  ios: {
    extension: '.m4a',
    outputFormat: Audio.RECORDING_OPTION_IOS_OUTPUT_FORMAT_MPEG4AAC,
    audioQuality: Audio.RECORDING_OPTION_IOS_AUDIO_QUALITY_MAX,
    sampleRate: 44100,
    numberOfChannels: 1,
    bitRate: 256000,
    bitRateStrategy: Audio.RECORDING_OPTION_IOS_BIT_RATE_STRATEGY_CONSTANT,
    linearPCMBitDepth: 16,
    linearPCMIsBigEndian: false,
    linearPCMIsFloat: false,
  },
  android: {
    extension: '.m4a',
    outputFormat: Audio.RECORDING_OPTION_ANDROID_OUTPUT_FORMAT_MPEG_4,
    audioEncoder: Audio.RECORDING_OPTION_ANDROID_AUDIO_ENCODER_AAC,
    sampleRate: 44100,
    numberOfChannels: 1,
    bitRate: 256000,
  },
};

Has anyone had any luck getting higher bitrates to record? Is there a list somewhere of the bitrates that are supported by platform?

Thanks a lot!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.