Code Monkey home page Code Monkey logo

hotworddetection's Introduction

HotWord Detection

This library provides functionality for detecting a hotword in given audio file using MFCC features and Dynamic Time Warping (DTW) pattern matching algorithm.

Installation

This project is on pypi

To install from pypi:

pip install hotword_detection

From this repository:

git clone https://github.com/sakethgsharma/HotWordDetection.git
python setup.py install

Usage

Example scripts

For training a hotword, run:

python bin/trainHotword.py

For testing, run:

python bin/checkHotword.py

Supported features

  • Mel Frequency Cepstral Coefficients
  • Choice of selecting any suitable hot word through appropriate training paradigm
  • Supports variable sampling frequencies
  • Amplitude based Voice Activity Detector(VAD) used during recordings to remove extraneous noise
  • Personalization using automatic DTW thresholding

MFCC Features

MFCC vectors are used in this module since they are the most commonly extracted features used for speech recognition systems.

Parameter Description
alpha Parameter used in pre-emphasis filtering. Should be any value between 0 and 1.
N Number of FFT points.
fs Sampling frequency of stored audio file.
frame_dur Duration of 1 speech frame.
num_filters Number of filters used in the Mel filterbank.
lower_freq Lower frequency bound used for constructing filterbank.
upper_freq Upper frequency bound used for constructing filterbank. Should be less than fs/2.

Dynamic Time Warping

Dynamic time warping (DTW) is an algorithm for measuring similarity between two temporal sequences which may vary in speed.

Reference

MFCC tutorial DTW Wiki

hotworddetection's People

Contributors

tulsianihitesh26 avatar sakethgsharma avatar prakhar1103 avatar

Watchers

James Cloos 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.