Speex 4-Encoder/decoder command line

Source: Internet
Author: User

The basic description of speex includes a command line encoder and decoder. these tools generate and read the speex files packaged in the Ogg container. although it can encapsulate speex in any container, Ogg is recommended as a file container. this section describes how to use the command line tool for the speex file of Ogg.

4.1 speexenc
The speexenc unit is used to create a speex file through a raw PCM or wave file. You can use the following command:
Speexenc [operation] input_file output_file
Values input_file and output_file correspond to stdin and stdout respectively.

Valid settings:
-Narrowband (-N) indicates that the input signal of speex is a narrow band (8 kHz). This is the default value.
-Wideband (-W) tells speex that the input signal is broadband (16 kHz)
-Ultra-Wideband (-u) tells speex to treat the input signal as ultra-broadband (32 kHz)
-Quality N: sets the encoding quality (0-10). The default value is 8.
-Bitrate n encoding bit rate (bit rate less than or equal to N)
-Enable VBR (Variable Bit Rate). VBR is disabled by default.
-The abr n is enabled at N kbps (average bit rate) and is disabled by default.
-Vad enables VAD (Voice Activity Detection), which is disabled by default.
-Dtx enables dtx (intermittent transmission), which is disabled by default.
-Nframes n packages N frames to each Ogg package (which saves space)
-The higher the value of-N, the lower the encoding speed and quality trade-off (default value: 3)
-V lengthy operations to print the currently used Bit Rate
-Help (-h) print help
-Version (-V): Print Version Information

Speex content:
-Comment adds the given string as additional content. This can be used multiple times.
-Author of author
-Title

Bare input settings:
-Rate N bare input sampling rate
-Stereo assumes that the raw video is stereo.
-Le Bare input is a small-end
-Be bare input is large-end
-8-bit bare input is 8-bit unsigned
-The 16-bit bare input is 16-Bit Signed

4.2 speexdec
The unit of speex decoding is used to decode the speex file. It can be called if it is used:
Speexdec [operation] speex file [output file]
If no output file is specified, the file will be played through the sound card.

Valid settings:
-ENH: enable post-filter (default)
-No-ENH: Disable post-filter.
-Force-NB: Use narrowband decoding forcibly
-Force-WB forced broadband Decoding
-Force-ultra-wideband Decoding
-Mono enforces single-channel decoding.
-Stereo forced stereo Decoding
-Rate N forced nhz sampling rate Decoding
-Packet-loss simulates n % random packet loss
-V lengthy operations to print the currently used Bit Rate
-Help (-h) print help

-Version (-V): Print Version Information

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.