Skip to main content

voiceClassifier

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

Package Layout

Installation:

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.)

Examples:

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

1. Trainning on your own data :

  • For this you can simply run evaluate.py 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
evaluate.train(
               ["/home/rshinde/Desktop/data/Shekhar.m4a","/home/rshinde/Desktop/data/Shubham.m4a",
                "/home/rshinde/Desktop/data/Dhruvesh.m4a","/home/rshinde/Desktop/data/Rohit.m4a"]

2. classifying the voice sample

Herewith the code...

from voiceClassifier.voiceClassify import VoiceClassify

vc = VoiceClassify()
# to get classes
print(vc.classes_())

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

Output

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

Metadata

Release files for voiceClassifier 1.1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for voiceClassifier 1.1.2.1
File Size Uploaded Provenance Actions
voiceClassifier-1.1.2.1.tar.gz 5.6 kB Without provenance Details for voiceClassifier-1.1.2.1.tar.gz

Release files / voiceClassifier-1.1.2.1.tar.gz

Download URL voiceClassifier-1.1.2.1.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
39ec54cb6e224d8067be1aaca445d158de9ec84b3fa08df10ae3301a894e43f9
BLAKE2b-256 checksum
How to use checksums
ca83168f0c5ed238a63cf4a892ae78907710c7e58d325e84843f8603407b14ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.4

Security for voiceClassifier 1.1.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page