Skip to content

Sumit189/Audio-Classification-Features

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Audio-Classification-Features

Downloads

It is made to extract the features from any audio dataset. User's have to provide location of the dataset folder and this library will produce x and y npy files.

Installation

$ pip install audio_classification_features

Usage

Making Training Dataset

from audio_classification_features import audio_features as af
af().extractor('dataset')

These npy files are loaded with numpy using following commands:

import numpy
x=np.load('x.npy')
y=np.load('y.npy')

Training Custom Built Model

#input_shape generated by this package is of shape (9,13,1)
input_shape=(9,13,1)

Making Predictions

from audio_classification_features import audio_features as af

#filename example: audio_test.wav
#num_classes same as above 
#model

af().make_prediction(filename,num_classes,model)

Dataset Structure

folder name of audio will be used as label.

  • dataset
    • audio class 1
      • audiofile.wav
    • audio class 2
      • audiofile.wav

LICENSE

GNU General Public License v3.0

About

Complete Package for Audio Classification

Resources

License

Stars

Watchers

Forks

Packages

No packages published