Python语音信号处理的一些kit

    科技2025-10-08  3

    librosa

    音频信号处理的工具包

    librosa uses soundfile and audioread to load audio files. Note that soundfile does not currently support MP3, which will cause librosa to fall back on the audioread library.

    librosa使用与安装

    https://blog.csdn.net/zzc15806/article/details/79603994

    https://www.cnblogs.com/LXP-Never/p/11561355.htm

    https://www.cnblogs.com/xingshansi/p/6816308.html

    librosa的文件

    https://github.com/librosa/librosa/releases/

    https://github.com/librosa/librosa

    官网:https://librosa.org/doc/latest/index.html

    安装llvmlite错误的解决方案

    在安装librosa的过程中,需要安装llvmlite,但是总是提升无法安装成功:

    解决方案如下:

    参考:https://blog.csdn.net/zt1091574181/article/details/108222306

    安装文件:https://github.com/numba/llvmlite

    按照其中最后一步操作,安装成功:

    LLVM和LLvmlite的版本是有对应关系的,所以我直接选取了llvmlite==0.31.0 ,即使用一下命令:

    $ pip3 install llvmlite==0.31.0

     

    直接搞定安装,不需要修改任何源码等,最为简单的安装~

    soundfile

    主要用来读取和写入音频文件

    安装文件:https://pypi.org/project/SoundFile/

    https://www.cnpython.com/pypi/soundfile

    介绍:https://blog.csdn.net/zz_hh_uu_/article/details/86711404

     

    phkit

    https://github.com/andylida/phkit

    安装的命令为:

    pip install -U phkit

    如果提示下列错误:

    则用下面命令安装即可安装成功

    pip install -U phkit --user

    如果提示下列错误:

    用pip下载:

    pip install PyHamcrest

     

    phoneme toolkit: 音素相关的文本处理工具箱。

    适用于中文、英文和中英混合的音素,其中汉字拼音采用清华大学的音素,英文字符分字母和英文。

    phkit的安装中包含了jieba的安装。

    jieba是中文分词的工具包。

    Processed: 0.016, SQL: 8