SoX — wav 音频拼接

1.sox 安装

    mac: brew install sox
    liunx:源码下载:https://sourceforge.net/projects/sox/files/sox/
    liunx安装:
                    1.解压
                    2./configure
                    3.make & make install

2.python 扩展安装
源码下载:https://github.com/chirlu/sox 安装:python setup.py install
或直接pip install sox
3.音频拼接

    import sox

    cbn = sox.Combiner()
    data = [filename1,filename2]
    cbn.build(data, new_file, 'concatenate')

终端执行:

            sox --combine concatenate 1.wav 2.wav out.wav
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

请勿发布不友善或者负能量的内容。与人为善,比聪明更重要!