Audio
The Compressor Audio API delivers efficient, high-quality audio compression designed for modern streaming, playback, and distribution workflows. By applying advanced audio codecs and psychoacoustic optimization techniques, Compressor significantly reduces file sizes while preserving clarity, dynamics, and listening experience.
Whether you are optimizing music libraries, podcasts, voice recordings, or application audio assets, the Audio API helps reduce bandwidth and storage costs without compromising sound quality.
Typical Use Cases
- Compressing podcasts and spoken-word audio
- Optimizing music files for streaming and delivery
- Reducing storage and transfer costs for audio libraries
- Preparing audio assets for web and mobile applications
Audio Compression API
All audio processing supports the standard compression parameter, allowing you to control how aggressively audio is optimized.
Compression settings are passed under the audio namespace:
{
"audio": {
"compression": "high"
}
}Compression Modes
medium- balanced compression suitable for most audio content. Preserves clarity and tonal balance while reducing file size.high(default) - more aggressive compression for streaming, podcasts, and mobile delivery where bandwidth efficiency is critical.ultra- maximum compression for the smallest possible output size. Best suited for voice recordings, previews, and bandwidth-constrained environments.
The default compression mode is high. Higher compression levels typically produce smaller files. The API automatically selects codec parameters appropriate for the content and target format.
Supported Input Formats
The Audio API accepts a wide range of common and professional audio formats, including: MP3, WAV, AIFF, FLAC, ALA, AAC, OGG, OPUS, WMA, M4A.
Input format detection is automatic and does not require additional configuration.
Output Formats
Compressed audio can be output in the following formats: MP3, OPUS.
By default, Compressor preserves the original format when possible. If the input format is not supported as an output format, the API automatically selects the most appropriate compatible format.
Format Conversion
To explicitly convert audio to a specific output format, specify the desired format in the request:
{
"audio": {
"output": {
"format": "opus"
}
}
}OPUS is recommended for modern applications where maximum compression efficiency and excellent perceptual quality are required. MP3 remains a widely compatible choice for legacy platforms.
Format conversion can be combined with compression settings in a single request.
{
"audio": {
"compression": "ultra",
"output": {
"format": "opus"
}
}
}Notes & Best Practices
- Use
mediumcompression for music and high-fidelity audio. - Use
highorultrafor voice, podcasts, and streaming content. - Prefer OPUS for modern applications requiring the smallest file sizes.