Documentation
All
Agora.io Community
What formats of audio files does the Agora RTC SDK support?
Type: General product inquiry    Platform: iOS / Android / macOS / Windows   Last Updated: 2021/10/10 20:02:14

Introduction

The Agora RTC SDK provides a series of methods to manage audio files. The support of each method for single-track or multi-track audio files is as follows:

  • startAudioMixing: Supports single-track and multi-track audio files.
  • getAudioTrackCount: Supports single-track and multi-track audio files.
  • selectAudioTrack: Supports single-track and multi-track audio files.
  • playEffect: Only supports single-track audio files.
  • preloadEffect: Only supports single-track audio files.
  • getEffectDuration: Only supports single-track audio files.
  • startRhythmPlayer: Only supports single-track audio files.
  • getAudioFileInfo: Supports single-track and multi-track audio files.

Supported formats for single-track audio files

The Agora RTC SDK supports single-track audio files in the following formats:

  • On Android, the SDK supports local and online files in Ogg, 3GP, ASF, AV1, TS, MKV, MP4, WMA, WAV, M4A, MP3, AAC, and ADTS formats.
  • On iOS or macOS, the SDK supports local and online files in WAV, M4A, MP3, AAC, and ADTS formats.
  • On Windows, the SDK supports local and online files in MP4, TS, WMA, and AAC formats.

Supported formats for multi-track audio files

The Agora RTC SDK supports multi-track audio files in the following formats:

  • On Android, the SDK supports local and online files in M4A, MP4, and MKV formats.
  • On iOS or macOS, the SDK supports local files in M4A and MP4 formats.
  • On Windows, the SDK supports local and online files in M4A format.