Convert SPX to OPUS

Turn SPX recordings into OPUS. Re-encoded as Opus at 96 kbit/s and at 48 kHz, unless audio.bitrate is given, which loses a little more than the Speex already did.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop SPX files on the dialor turn it to pick what to do

Speex speech turned into Opus.One OPUS file at 96 kbit/s and 48 kHz, with the tags kept.

  1. What you get

    A single Opus file re-encoded from the Speex audio in the Ogg container. Unless you set Audio bitrate (kbit/s), it is written at 96 kbit/s and 48 kHz.

    Tags in the SPX file are kept in the OPUS file.

  2. What it costs in quality

    Speex is already lossy, and the conversion encodes it again as Opus. That loses a little more than the Speex already did, so the result is not identical to the original sound.

  3. Options

    Set Audio bitrate (kbit/s) to a value from 32 to 320. A higher value gives a bigger file. 128 is fine for speech and casual listening, and 192 to 320 suits music.

    Set Channels to 1 to mix the sound down to mono, which halves its size and suits speech. Set it to 2 to keep stereo.

    Turn on Reduce noise to lower steady background noise such as hum, hiss and fans. Sudden noises such as a door are left in. Turn on Normalize loudness to bring quiet and loud recordings to -16 LUFS, the level podcasts and streaming services aim for.

    Set Speed from 0.25 to 4 to play faster or slower, and voices keep their pitch. Set Start at (s) to cut seconds from the beginning, and Stop at (s) to end at a second counted from the start of the original. Stop at (s) must be later than Start at (s).

  4. When it fails

    If the SPX file cannot be parsed, the conversion stops with input_corrupted.

SPX and OPUS.What each format is, and the options this conversion takes.

  1. 01 · audio.bitrate

    Audio bitrate (kbit/s)

    How much data each second of sound gets. 128 is fine for speech and casual listening, 192 to 320 for music. Higher makes a bigger file.

    32 to 320
  2. 02 · audio.channels

    Channels

    1 mixes the sound down to mono, which halves its size and suits speech. 2 keeps it stereo.

    1 to 2
  3. 03 · audio.denoise

    Reduce noise

    Lowers steady background noise such as hum, hiss and fans. Sudden noises such as a door are left in.

  4. 04 · audio.normalize

    Normalize loudness

    Makes quiet and loud recordings play at the same loudness, -16 LUFS, the level podcasts and streaming services aim for.

  5. 05 · audio.pitch

    Pitch

    Moves the pitch up or down by whole semitones while the speed stays the same. 12 is one octave up and -12 one octave down.

    -12 to 12
  6. 06 · speed

    Speed

    Plays faster or slower. 2 is twice as fast and 0.5 half as fast. Voices keep their pitch.

    0.25 to 4
  7. 07 · trim_end

    Stop at (s)

    Stops at this second of the original. It counts from the start of the original, not from where trimming starts, so it must be later than Start at.

    0 to 86400
  8. 08 · trim_start

    Start at (s)

    Cuts this many seconds from the beginning. Decimals such as 1.5 work.

    0 to 86400

The formats

From · SPX

Speex

Speex speech audio in an Ogg container, the predecessor of Opus.

Extensions
.spx
MIME type
audio/x-speex
Kind
Audio
To · OPUS

Opus Audio

Opus audio, the best lossy codec for speech and music at low bitrates.

Extensions
.opus
MIME type
audio/opus
Kind
Audio

In your code.The same SPX to OPUS conversion through the API, for your app or your agent.

terminal
$ cv convert recording.spx recording.opus
$ cv convert recording.spx recording.opus

Questions.What people ask about SPX to OPUS.

01OF 04

Yes. The tags in the SPX file are kept in the OPUS file.

Yes, a little. Speex is already lossy, and encoding it again as Opus loses a little more.

Yes. Set Channels to 1 to mix the sound down to mono, which halves its size and suits speech.

Yes. Set Start at (s) to cut seconds from the beginning and Stop at (s) to end at a given second of the original. Stop at (s) counts from the start of the original, not from where trimming starts.

More conversions.Other ways in and out of SPX and OPUS.