Giter Site home page Giter Site logo

voice-classification's Introduction

Voice Classification

This repository contains code and resources for voice classification, a machine learning task that involves categorizing audio samples into different classes based on their acoustic features.

Table of Contents

Introduction

Voice classification is a common task in the field of speech processing and machine learning. It involves training a model to recognize and categorize different types of voice samples, such as male vs. female, adult vs. child, or different languages.

This repository provides code and resources for building and training voice classification models using popular machine learning framework, TensorFlow.

Installation

To use the code in this repository, you will need to have Python installed on your system. You can install the required dependencies by running the following command:

pip install -r requirements.txt

This will install all the necessary packages for running the code in this repository

Usage

The main components of this repository include:

  • Data preprocessing scripts
  • Model training scripts
  • Evaluation scripts

To use these components, simply run the corresponding Python scripts with your input data. You can also modify the code to fit your specific use case or dataset.

You can download the dataset I've gathered and preprocessed from this link or you can use your own data to train the model.

Preprocess

Put your data in raw_data folder and run the following command

python preprocess.py --raw_data_path raw_data --min_silence_len YOUR_ARGUMENT --silence_thresh YOUR_ARGUMENT --chunk_duration YOUR_ARGUMENT   

The preprocessed data will be saved in dataset folder.

Train

To train the model on your own data, run the following command

python model.py

It will train the model and save the weights in model folder

Evaluation

To test the model run the following command:

python inference.py --model .h5 file --wav_file Test_wav_file

Contributing

If you would like to contribute to this repository, feel free to submit a pull request with your changes. I welcome contributions from the community and are open to new ideas and improvements.

voice-classification's People

Contributors

parisa-bagherzadeh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.