Convert SPH to SPX

Turn SPH recordings into Speex. Encoded as Speex speech coding in an Ogg file at 8, 16 or 32 kHz in mono or stereo, unless audio.sample_rate or audio.channels say otherwise.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

Speex audio from SPH recordings.One SPX file comes out, encoded as Speex speech coding in an Ogg container.

  1. What you get

    A single SPX file in an Ogg container, encoded with Speex speech coding. The sample rate is 8, 16 or 32 kHz, in mono or stereo, unless you set Sample rate (Hz) or Channels yourself.

    Speex is made for speech, so music loses detail.

  2. Shaping the sound

    Set Channels to 1 to mix the sound down to mono, which halves its size. Set it to 2 to keep stereo. Set Sample rate (Hz) to a value from 8000 to 32000. A lower rate makes a smaller file and dulls high sounds.

    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. Normalizing also resamples to 32 kHz unless you set Sample rate (Hz).

  3. Pitch, speed and trimming

    Set Pitch to move the sound up or down by whole semitones, from -12 to 12, while the speed stays the same. Set Speed to play faster or slower, from 0.25 to 4. Voices keep their pitch.

    Set Start at (s) to cut seconds from the beginning. Set Stop at (s) to end at a second counted from the start of the original, so it must be later than Start at. To cut a file you already have in SPX, you can trim SPX.

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

  1. 01 · audio.channels

    Channels

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

    1 to 2
  2. 02 · audio.denoise

    Reduce noise

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

  3. 03 · audio.normalize

    Normalize loudness

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

  4. 04 · 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
  5. 05 · audio.sample_rate

    Sample rate (Hz)

    How many times per second the sound is measured. 44100 is the CD rate and 48000 the video rate. Lower makes a smaller file and dulls high sounds.

    8000 to 32000
  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 · SPH

NIST SPHERE Audio

Speech recordings in the NIST SPHERE format of the TIMIT and LDC speech corpora.

Extensions
.sph
MIME type
audio/x-nist-sphere
Kind
Audio
To · SPX

Speex

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

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

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

terminal
$ cv convert recording.sph recording.spx
$ cv convert recording.sph recording.spx

Questions.What people ask about SPH to SPX.

01OF 04

Yes. Each conversion gives one SPX file.

No. Speex is made for speech, so music loses detail.

It uses 8, 16 or 32 kHz unless you set Sample rate (Hz). The option accepts 8000 to 32000. Normalizing resamples to 32 kHz if you do not set it.

Yes. Set Channels to 1 and the sound is mixed down to mono, which halves its size.

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