SoundTouch爲聲音添加特效(soundstretch)

遷移程序服務器導致應用聲音添加特效失效,記錄以方便以後安裝配置。

介紹

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)
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章