完整的音频分类软件包
audio-classification-features的Python项目详细描述
音频分类功能
它是为了从任何音频数据集中提取特征。用户必须提供数据集文件夹的位置,此库将生成x和y npy文件。我们还提供定制的Keras模型用于培训。在
安装
$ pip install audio_classification_features
使用
制作训练数据集
^{pr2}$这些npy文件使用以下命令加载numpy:
importnumpyx=np.load('x.npy')y=np.load('y.npy')
训练定制模型
#input_shape generated by this package is of shape (9,13,1)input_shape=(9,13,1)
做出预测
fromaudio_classification_featuresimportaudio_featuresasaf#filename example: audio_test.wav#num_classes same as above #modelaf().make_prediction(filename,num_classes,model)
数据集结构
folder name of audio will be used as label.
- 数据集
- 音频1级
- 在音频文件.wav在
- 音频2级
- 在音频文件.wav在
- 音频1级
许可证
GNU General Public License v3.0
- 项目
标签: