---
name: "speexdec"
section: "1"
platform: "linux"
package: "speex"
version: "1.2.1-3"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/speexdec"
---

# speexdec(1)

The reference implementation speex decoder.

## NAME

speexdec - The reference implementation speex decoder.

## SYNOPSIS

**speexdec** \[*options*\] *input\_file.spx* \[*output\_file*\]

## DESCRIPTION

Decodes a Speex file and produce a WAV file or raw file

### input\_file can be:

- filename.spx

  regular Speex file

- \-

  stdin

### output\_file can be:

- filename.wav

  Wav file

- filename.\*

  Raw PCM file (any extension other that .wav)

- \-

  stdout

- (nothing)

  Will be played to soundcard

## OPTIONS

- **--enh**

  Enable perceptual enhancement (default)

- **--no-enh**

  Disable perceptual enhancement

- **--force-nb**

  Force decoding in narrowband

- **--force-wb**

  Force decoding in wideband

- **--force-uwb**

  Force decoding in ultra-wideband

- **--mono**

  Force decoding in mono

- **--stereo**

  Force decoding in stereo

- **--rate** n

  Force decoding at sampling rate n Hz

- **--packet-loss** n

  Simulate n % random packet loss

- **-V**

  Verbose mode (show bit-rate)

- **-h**, **--help**

  This help

- **-v**, **--version**

  Version information

- **--pf**

  Deprecated, use **--enh** instead

- **--no-pf**

  Deprecated, use **--no-enh** instead

More information is available from the Speex site: http://www.speex.org

Please report bugs to the mailing list \`speex-dev@xiph.org'.

## COPYRIGHT

Copyright © 2002 Jean-Marc Valin
