audio audio audio

Sox

 #

1
sox -c 2 -t raw -b 16 - e signed -r 48000 -L /tmp/moise-1677899.wav -c 1 -t raw -b 16 - e signed -r 48000 -L - remix 1

  

The heart of SoX is a library called libSoX. Those interested in extending SoX or using it in other pro-
grams should refer to the libSoX manual page: libsox(3).
SoX is a command-line audio processing tool, particularly suited to making quick, simple edits and to batch
processing. If you need an interactive, graphical audio editor, use audacity(1).
*
*
*
The overall SoX processing chain can be summarised as follows:
Input(s) → Combiner → Effects → Output(s)

The following four characteristics are used to describe the format of audio data such that it can be pro-
cessed with SoX:
sample rate
The sample rate in samples per second (‘Hertz’ or ‘Hz’). Digital telephony traditionally uses a
sample rate of 8000 Hz (8 kHz), though these days, 16 and even 32 kHz are becoming more com-
mon. Audio Compact Discs use 44100 Hz (44.1 kHz). Digital Audio Tape and many computer
systems use 48 kHz. Professional audio systems often use 96 kHz.
sample size
The number of bits used to store each sample. Today, 16-bit is commonly used. 8-bit was popular
in the early days of computer audio. 24-bit is used in the professional audio arena. Other sizes are
also used.
data encoding
The way in which each audio sample is represented (or ‘encoded’). Some encodings have variants
with different byte-orderings or bit-orderings. Some compress the audio data so that the stored
audio data takes up less space (i.e. disk space or transmission bandwidth) than the other format
parameters and the number of samples would imply. Commonly-used encoding types include
floating-point, μ-law, ADPCM, signed-integer PCM, MP3, and FLAC.
channels
The number of audio channels contained in the file. One (‘mono’) and two (‘stereo’) are widely
used. ‘Surround sound’ audio typically contains six or more channels.

 

#

noise

 

SNR

 

RMS(root mean square)[均方根]

posted @   碧水东流至此回  阅读(26)  评论(0编辑  收藏  举报
编辑推荐:
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
点击右上角即可分享
微信分享提示