Audio format converter MP3 WAV FLAC avatar

Audio format converter MP3 WAV FLAC

Pricing

from $0.00005 / actor start

Go to Apify Store
Audio format converter MP3 WAV FLAC

Audio format converter MP3 WAV FLAC

Convert audio files between 10+ formats including messaging platform optimized formats. Supports Telegram (OGG), WhatsApp (AMR), Discord (OPUS), plus MP3, WAV, FLAC, AAC, M4A, 3GP, WebM. Perfect for voice messages, podcasts, and cross-platform audio compatibility.

Pricing

from $0.00005 / actor start

Rating

5.0

(2)

Developer

Akash Kumar Naik

Akash Kumar Naik

Maintained by Community

Actor stats

1

Bookmarked

133

Total users

2

Monthly active users

5 days ago

Last modified

Security

Limited permissions

Share

Audio File Converter is an Apify Actor that converts audio files between 10+ formats — MP3, WAV, FLAC, OGG, AAC, M4A, OPUS, AMR, 3GP, and WebM — with direct download links. It downloads audio from public URLs and converts it to platform-optimized formats for Telegram (OGG), WhatsApp (AMR), Discord (OPUS), Apple (M4A), and web streaming (WebM). Perfect for voice messages, podcasts, and cross-platform audio compatibility.

What Is Audio File Converter?

Audio File Converter is a cloud-based audio conversion API powered by FFmpeg. You provide an audio file URL, specify the target format and quality, and receive a converted file with a direct download link. The Actor processes each audio file individually and returns detailed metadata including duration, file size, and quality settings — no software installation, no command-line tools.

Key Features

  • 10 output formats — MP3, WAV, FLAC, OGG, AAC, M4A, OPUS, AMR, 3GP, WebM
  • Platform-specific optimization — each format uses codecs and settings tuned for its target platform
  • 4 quality levels — low (128 kbps), medium (192 kbps), high (256 kbps), or lossless
  • Custom sample rates — override the default (8,000-192,000 Hz)
  • No software installation — runs on the Apify platform with monitoring and logging
  • Automatic retries for failed downloads and proxy rotation for accessing blocked URLs
  • API access, scheduled runs, and integrations for programmatic and batch workflows

Supported Audio Formats

Input: MP3, WAV, FLAC, M4A, AAC, OGG, OPUS, and most common audio formats Output: MP3, WAV, FLAC, OGG, AAC, M4A, OPUS, AMR, 3GP, WebM

Platform mapping:

  • Telegram voice messages → optimized OGG Vorbis with small file sizes
  • WhatsApp voice notes → AMR/OPUS format for modern compatibility
  • Discord voice communication → OPUS codec optimized for WebRTC
  • Apple ecosystem → M4A format for iTunes and iOS devices
  • Web streaming → WebM with HTML5 browser support
  • Universal use → MP3 for maximum compatibility everywhere

Use Cases

  • Voice messages — prepare Telegram, WhatsApp, and Discord-ready audio with small file sizes
  • Podcasts & music — convert between MP3, FLAC, and WAV at high quality or lossless
  • Web streaming — WebM output tuned for HTML5 players
  • Cross-platform compatibility — one source file, any target device or app
  • Batch automation — run conversions on a schedule or through the Apify API

Input Parameters

ParameterTypeRequiredDefaultDescription
file_urlstringYes—Direct URL to the audio file (MP3, WAV, FLAC, M4A, AAC, etc.)
target_formatstringNomp3Output format: mp3, wav, flac, ogg, aac, m4a, opus, amr, 3gp, webm
qualitystringNomediumlow (128 kbps), medium (192 kbps), high (256 kbps), or lossless
sample_rateintegerNo44100Sample rate in Hz (8,000-192,000)

Example input:

{
"file_url": "https://example.com/audio.mp3",
"target_format": "opus",
"quality": "high",
"sample_rate": 48000
}

Sample Output

{
"success": true,
"original_filename": "audio.mp3",
"output_filename": "audio.opus",
"input_format": "mp3",
"output_format": "opus",
"file_size_mb": 0.45,
"conversion_duration_seconds": 3.2,
"download_url": "https://api.apify.com/v2/key-value-stores/...",
"timestamp": "2024-02-21T12:00:00Z",
"quality_settings": {
"quality_level": "high",
"bitrate": "256k",
"sample_rate": 48000,
"channels": 2
},
"platform_info": {
"primary_use": "Discord voice communication",
"platforms": "Discord, WebRTC, modern browsers",
"optimization": "Real-time voice/music"
},
"input_duration_seconds": 3.5,
"input_channels": 2,
"input_sample_rate": 44100
}

Each conversion produces one dataset item with file information, conversion details, the direct download URL, quality settings, platform information, and input metadata. Error messages are included in the dataset if conversion fails. Converted files are stored in the key-value store.

How to Use the Audio File Converter

  1. Open the Actor page on Apify Store and click Start Actor.
  2. Paste a direct URL to your audio file into file_url.
  3. Select the target_format and quality level (optionally override sample_rate).
  4. Run the Actor and download your converted file from the direct download URL in the Output tab.

Connect via API

cURL:

curl -X POST "https://api.apify.com/v2/acts/akash9078/audio-file-converter/runs" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"file_url":"https://example.com/audio.mp3","target_format":"opus","quality":"high"}'

Python:

import requests
response = requests.post(
"https://api.apify.com/v2/acts/akash9078/audio-file-converter/runs",
headers={"Authorization": "Bearer YOUR_API_TOKEN"},
json={"file_url": "https://example.com/audio.mp3", "target_format": "opus", "quality": "high"},
)
print(response.json())

Node.js with the Apify Client:

const { ApifyClient } = require('apify-client');
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('akash9078/audio-file-converter').call({
file_url: 'https://example.com/audio.mp3',
target_format: 'opus',
quality: 'high',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Tips and Advanced Options

Optimize for Your Use Case

Voice messages (Telegram, WhatsApp):

  • Use quality: "low" for small file sizes
  • Target opus or amr format
  • Sample rate: 8000 or 16000 Hz

High-quality audio (music, podcasts):

  • Use quality: "high" or lossless
  • Target mp3, flac, or wav format
  • Sample rate: 44100 or 48000 Hz

Web streaming:

  • Use quality: "medium" for balance
  • Target webm format
  • Sample rate: 48000 Hz

Limit Compute Unit Usage

  • Use "low" quality for faster conversions and lower costs
  • Skip conversion if the file is already in the target format
  • Process shorter files individually instead of large batches

Improve Performance

  • Use direct URLs (no redirects) for faster downloads
  • Avoid very large files (over 500 MB) as they may timeout
  • Test with small sample files before processing large batches

Audio File Converter Pricing

The Audio File Converter uses pay-per-event pricing. You're charged $0.01 per converted audio file, regardless of file size or duration.

EventPriceWhen charged
Audio conversion$0.01For each audio file processed (success or failure)
Actor start$0.00005Covers initialization (free 5 seconds from Apify)

What's included?

  • Download from public URLs (no platform usage fees)
  • Audio conversion processing
  • File storage for 7 days
  • Conversion metadata and quality information
  • Direct download links
  • Error handling and retries

Free usage:

  • Check the Free plan to see available monthly credit
  • Use the prefilled sample URL to test for free
  • Only successful conversions consume credits

View full pricing details

Why Use This Instead of Desktop Conversion Tools?

CapabilityAudio File ConverterDesktop tools
InstallationNone — runs in the cloudSoftware setup
Platform presetsTelegram/WhatsApp/Discord/Apple optimizedManual codec config
API & schedulingBuilt inNot available
Proxy rotation for blocked URLsBuilt inNot available
Monitoring and logsEvery run trackedLocal logs

Limitations

  • Processes one file per run; use automation for batch conversions
  • Maximum download size is 500 MB per file; larger files may exceed the 1-hour run limit
  • Requires direct download URLs — streaming URLs (YouTube, Spotify, etc.) are not supported
  • Converted files are retained in key-value storage for 7 days
  • The conversion event is charged whether conversion succeeds or fails (the download attempt and validation work is performed)

Common Issues and Fixes

IssueFix
"Download failed"Verify the URL is publicly accessible — try opening it in your browser first
"Not a valid audio file"The URL points to a non-audio or corrupted file; check the file type
"Conversion timeout"File too large or processing exceeded 1 hour; split the file or use lower quality
"Format not supported"Check the target format is in the supported list; this Actor doesn't handle video-to-audio extraction

This Actor converts audio files but does not bypass any DRM or copyright protection. Users are responsible for ensuring they have the legal right to convert and use the audio content. The Actor processes files provided by the user via public URLs and does not store or redistribute the content beyond the 7-day retention period for download purposes only.

FAQ

The Audio File Converter does not download or modify copyrighted content without authorization. Users are responsible for ensuring they have the right to convert and use the audio files they provide. The Actor simply processes files that users make accessible via public URLs.

What audio file size limit is supported?

The maximum download size is 500 MB per file. Larger files may exceed the run time limit (1 hour) and fail to complete.

Can I convert multiple files in one run?

Currently, the Actor processes one file per run. For batch processing, use automation to run the Actor multiple times with different URLs, or integrate with other Apify tools for batch operations.

Does the Actor work with streaming services?

No, the Actor requires direct download URLs for audio files. Streaming URLs (YouTube, Spotify, etc.) are not supported. Use a tool that can extract direct audio links first.

What happens if conversion fails?

If conversion fails, an error item is still added to the dataset with the error message. You're still charged because the work (download attempt, validation) was performed. Common failures include invalid URLs, corrupted files, or unsupported formats.

How long are converted files stored?

Converted files are retained in key-value storage for 7 days after the run completes. Download your files promptly to avoid losing access.

Can I use this programmatically?

Yes! The Audio File Converter provides a REST API and SDK clients for Python, JavaScript, and other languages. See the API documentation for details.

If you need more media and document processing tools, check out my other Apify Actors:

Get Help

  • Documentation: Apify Documentation
  • Community: Apify Discord
  • Issues: Report bugs on the Actor's issue tracker
  • Custom solutions: Contact for tailored audio processing workflows

Built and maintained by akash9078 on the Apify platform.