迁移程序服务器导致应用声音添加特效失效,记录以方便以后安装配置。
介绍
SoundTouch是一个开源的音频处理库,主要实现包含变速、变调、变速同时变调等三个 功能模块,能够对媒体流实时操作,也能对音频文件操作。
下载地址
官方下载地址:http://soundtouch.surina.net/soundtouch-1.9.2.tar.gz
百度下载地址:http://pan.baidu.com/s/1nuCa3VV
安装方法
解压tar.gz包
tar cgvf soundtouch-1.9.2.tar.gz
进入解压目录
cd soundtouch
执行安装引导命令,用于生成configure和Make文件
./bootstrap
安装
./configure --prefix=/usr/local/soundtouch-1.9.2
make & make install
添加MP3组件
cd /usr/local/soundtouch-1.9.2/bin
将soundstretch4Lame放入该目录下(该文件是一个shell脚本,用于处理mp3文件。soundTouch工具本身并不支持mp3的编码,需要使用LAME工具对mp3文件进行解码和编码操作)。
chmod +x soundstretch4Lame
验证
[root@home ~]# soundstretch
SoundStretch v1.9.2 - Written by Olli Parviainen 2001 - 2015
==================================================================
author e-mail: <[email protected]> - WWW: http://www.surina.net/soundtouch
This program is subject to (L)GPL license. Run "soundstretch -license" for
more information.
This application processes WAV audio files by modifying the sound tempo,
pitch and playback rate properties independently from each other.
Usage :
soundstretch infilename outfilename [switches]
To use standard input/output pipes, give 'stdin' and 'stdout' as filenames.
Available switches are:
-tempo=n : Change sound tempo by n percents (n=-95..+5000 %)
-pitch=n : Change sound pitch by n semitones (n=-60..+60 semitones)
-rate=n : Change sound rate by n percents (n=-95..+5000 %)
-bpm=n : Detect the BPM rate of sound and adjust tempo to meet 'n' BPMs.
If '=n' is omitted, just detects the BPM rate.
-quick : Use quicker tempo change algorithm (gain speed, lose quality)
-naa : Don't use anti-alias filtering (gain speed, lose quality)
-speech : Tune algorithm for speech processing (default is for music)
-license : Display the program license text (LGPL)