# speexenc

This element encodes audio as a Speex stream. Speex is a royalty-free audio codec maintained by the Xiph.org Foundation.

## Example pipelines

     gst-launch-1.0 audiotestsrc num-buffers=100 ! speexenc ! oggmux ! filesink location=beep.ogg

Encode an Ogg/Speex file.

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstAudioEncoder
                        ╰──speexenc

## Implemented interfaces

    GstPreset
    GstTagSetter

## Factory details

Authors: – Wim Taymans

Classification: – `Codec/Encoder/Audio`

Rank – primary

Plugin – speex

Package – GStreamer Good Plug-ins

## Pad Templates

### `sink`

    audio/x-raw:
             format: S16LE
             layout: interleaved
               rate: [ 6000, 48000 ]
           channels: 1
    audio/x-raw:
             format: S16LE
             layout: interleaved
               rate: [ 6000, 48000 ]
           channels: 2
       channel-mask: 0x0000000000000003

Presence – always

Direction – sink

Object type – GstPad

### `src`

    audio/x-speex:
               rate: [ 6000, 48000 ]
           channels: [ 1, 2 ]

Presence – always

Direction – src

Object type – GstPad

## Properties

### abr

    “abr” gint

Enable average bit-rate (0 = disabled)

Flags : Read / Write / Construct

Default value : 0

### bitrate

    “bitrate” gint

Specify an encoding bit-rate (in bps). (0 = automatic)

Flags : Read / Write / Construct

Default value : 0

### complexity

    “complexity” gint

Set encoding complexity

Flags : Read / Write / Construct

Default value : 3

### dtx

    “dtx” gboolean

Enable discontinuous transmission

Flags : Read / Write / Construct

Default value : false

### last-message

    “last-message” gchararray

The last status message

Flags : Read

Default value : NULL

### mode

    “mode” Speex-enc-mode *

The encoding mode

Flags : Read / Write / Construct

Default value : auto (0)

### nframes

    “nframes” gint

Number of frames per buffer

Flags : Read / Write / Construct

Default value : 1

### quality

    “quality” gfloat

Encoding quality

Flags : Read / Write / Construct

Default value : 8

### vad

    “vad” gboolean

Enable voice activity detection

Flags : Read / Write / Construct

Default value : false

### vbr

    “vbr” gboolean

Enable variable bit-rate

Flags : Read / Write / Construct

Default value : false

## Named constants

### Speex-enc-mode

#### Members

`auto` (0) – Auto
`uwb` (1) – Ultra Wide Band
`wb` (2) – Wide Band
`nb` (3) – Narrow Band

The results of the search are