BloodwebMicroservices Sign in
← All microservices

Audio converter

Media

Convert audio between MP3, OGG, Opus, M4A, WAV and FLAC. Trim it, make it mono, or change the sample rate.

Create an account

It comes with 10,000 free tokens a month.

What it does

  • MP3, OGG, Opus, M4A, WAV and FLAC
  • Trim to any start and length
  • Even out loudness for voice and podcasts
  • Fade in and out, mono, resample

Good for

  • Podcasts
  • Voice notes
  • Sound from video clips

The audio track of an MP4 or WebM video works too, so it doubles as a way to pull the sound out of a clip.

Try it now

No account needed. Up to 10 runs a day here, files up to 2MB, and nothing is kept.

More options

Example

POST https://bloodweb.net/api/v1/audio-convert

curl -H "Authorization: Bearer YOUR_KEY" -F file=@voice.wav -F to=mp3 -F bitrate=128 https://bloodweb.net/api/v1/audio-convert -o voice.mp3

Complete, tested code for this call: curl · Node.js · Python · PHP

Options

NameDescription
file
file
The audio, up to 50MB and 30 minutes: mp3, wav, ogg, flac, m4a, mp4, aac, webm (the audio track of an MP4 or WebM is used).
to
required
Output format.
One of: mp3, ogg, opus, m4a, wav, flac
bitrate kbps, for MP3, OGG, Opus and M4A. 128 is fine for speech, 192 or more for music.
Default: 192
channels Keep the channels, or mix to mono or stereo.
One of: keep, mono, stereo
Default: keep
sample_rate Hz. Opus only takes 8000, 16000, 24000 or 48000; other values become 48000.
One of: keep, 8000, 16000, 22050, 24000, 32000, 44100, 48000
Default: keep
start Start at this many seconds in.
duration Keep this many seconds.
normalize Even out the loudness to -16 LUFS, the usual level for podcasts and voice.
Default: false
fade_in Fade in over this many seconds.
fade_out Fade out over this many seconds at the end.

Returns

The converted audio. X-Duration gives its length in seconds.

Good to know