zoukankan      html  css  js  c++  java
  • audio audio audio

    Sox

     #

    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)[均方根]

  • 相关阅读:
    Spring IOC注入接口多实现解决
    Spring Security 学习总结
    Spring Boot自动配置与Spring 条件化配置
    1403. Minimum Subsequence in Non-Increasing Order
    1457. Pseudo-Palindromic Paths in a Binary Tree
    1368. Minimum Cost to Make at Least One Valid Path in a Grid
    1456. Maximum Number of Vowels in a Substring of Given Length
    1455. Check If a Word Occurs As a Prefix of Any Word in a Sentence
    1472. Design Browser History
    1471. The k Strongest Values in an Array
  • 原文地址:https://www.cnblogs.com/winditsway/p/14356547.html
Copyright © 2011-2022 走看看