Skip to main content

A simple package for voice classifiaction

Project description


A module for classifying voice samples. The layout/Class diagram of package is as follows.

Package Layout


Run this command in terminal

pip install voiceclassifier

This package has dependancy on librosa and other audio related packages. Please check the requirement.txt for further details.

Please note that this package is extensively tested on Linux enviourment(Ubuntu.)


Let's have a look at some examples to gain more understanding.

1. Trainning on your own data :

  • For this you can simply run file from the package if you downloaded zip from github. For this please keep your voice_samples ready. The name of the voice file will be considerd as a class label.Pass list of all your voice_samples path when asked. Train Samples

  • If you have downloaded the package using pip, then you can train as follow...

from voiceClassifier import evaluate

2. classifying the voice sample

Herewith the code...

from voiceClassifier.voiceClassify import VoiceClassify

vc = VoiceClassify()
# to get classes

# pass voice_samples for actual prediciton...
prediciton,probabilities,classes_ = vc.predict("/home/rshinde/Desktop/Dhruvesh.wav")


Audio preprocessed..
(array(['Dhruvesh'], dtype=object),
 array([[0.55461039, 0.05390575, 0.03683959, 0.35464427]]),
 array(['Dhruvesh', 'Rohit', 'Shekhar', 'Shubham'], dtype=object))

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for voiceClassifier, version
Filename, size File type Python version Upload date Hashes
Filename, size voiceClassifier- (5.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page