speex 笔记(一)

不是做android啊!

准备用speex做音频编码,软编码啊,之前研究过嵌入式设备编码10s中的文件大概需要30min左右,后来对.configure 进行配置后去掉 float api 配置后编码速率提升了。

Usage: speexenc [options] input_file output_file

Encodes input_file using Speex. It can read the WAV or raw files.

input_file can be:
  filename.wav      wav file
  filename.*        Raw PCM file (any extension other than .wav)
  -                 stdin

output_file can be:
  filename.spx      Speex file
  -                 stdout

Options:
 -n, --narrowband   Narrowband (8 kHz) input file									窄带(8K)输入
 -w, --wideband     Wideband (16 kHz) input file									宽带(16K)输入
 -u, --ultra-wideband "Ultra-wideband" (32 kHz) input file							超宽带(32K)输入
 --quality n        Encoding quality (0-10), default 8								编码质量(0-10),默认8
 --bitrate n        Encoding bit-rate (use bit-rate n or lower)						编码 bit-rate (使用 bit-rate n 或者 更低)
 --vbr              Enable variable bit-rate (VBR)									启用可变比特率
 --vbr-max-bitrate  Set max VBR bit-rate allowed									设置允许的最大可变比特率
 --abr rate         Enable average bit-rate (ABR) at rate bps						在rate bps使平均比特率(ABR)
 --vad              Enable voice activity detection (VAD)							启用语音活动检测(VAD)
 --dtx              Enable file-based discontinuous transmission (DTX)				启用基于文件的不连续传输(DTX)
 --comp n           Set encoding complexity (0-10), default 3						设置编码复杂度(0-10),默认为3
 --nframes n        Number of frames per Ogg packet (1-10), default 1				每的Ogg包的帧号(1-10),默认为1
 --denoise          Denoise the input before encoding								在编码之前降噪输入
 --agc              Apply adaptive gain control (AGC) before encoding				在编码之前应用自适应增益控制(AGC)
 --skeleton         Outputs ogg skeleton metadata (may cause incompatibilities)		 --comment          Add the given string as an extra comment. This may be           添加给定的字符串作为额外的注释。
                     used multiple times
 --author           Author of this track
 --title            Title for this track
 -h, --help         This help
 -v, --version      Version information
 -V                 Verbose mode (show bit-rate)
Raw input options:
 --rate n           Sampling rate for raw input
 --stereo           Consider raw input as stereo
 --le               Raw input is little-endian
 --be               Raw input is big-endian
 --8bit             Raw input is 8-bit unsigned
 --16bit            Raw input is 16-bit signed
Default raw PCM input is 16-bit, little-endian, mono

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

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

[root@localhost bin]# ./configure --prefix=/opt/speex_2014 --enable-shared --enable-fixed-point --disable-float-api --host=mipsel-linux  --enable-static --with-ogg=/opt/ogg/ CC=mipsel-linux-gcc

配置完成。





评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值