sox聲音格式轉檔工具

安裝
apt-get install sox

Introduction
SoX reads and writes audio files in most popular formats and can optionally apply effects to them; it can combine
multiple input sources, synthesise audio, and, on many systems, act as a general purpose audio player or a multi-
track audio recorder. It also has limited ability to split the input in to multiple output files.

sox支援MP3格式
sudo aptitude install libsox-fmt-all

範例
[host]$ sox /usr/share/sounds/KDE_Chimes_1.ogg -r 8192 -b -u -c 1 Chimes.raw
-r -> sampling rate
-b -> byte/8bit signal
-u -> linear /not compressed
-c 1 -> Mono / 1 channel

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s