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
Factory details
Authors: – Wim Taymans
Classification: – Codec/Encoder/Audio
Rank – primary
Plugin – gstspeex
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
src
audio/x-speex:
rate: [ 6000, 48000 ]
channels: [ 1, 2 ]
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
hard-resync
“hard-resync” gboolean
Perform clipping and sample flushing upon discontinuity
Flags : Read / Write
Default value : false
mark-granule
“mark-granule” gboolean
Apply granule semantics to buffer metadata (implies perfect-timestamp)
Flags : Read
Default value : true
mode
“mode” GstSpeexEncMode *
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
perfect-timestamp
“perfect-timestamp” gboolean
Favour perfect timestamps over tracking upstream timestamps
Flags : Read / Write
Default value : true
tolerance
“tolerance” gint64
Consider discontinuity if timestamp jitter/imperfection exceeds tolerance (ns)
Flags : Read / Write
Default value : 40000000
vad
“vad” gboolean
Enable voice activity detection
Flags : Read / Write / Construct
Default value : false
Named constants
GstSpeexEncMode
Members
auto
(0) – Auto
uwb
(1) – Ultra Wide Band
wb
(2) – Wide Band
nb
(3) – Narrow Band
The results of the search are