Giter Club home page Giter Club logo

voice_recognition_ros's Introduction

voice_recognition_ros

I created this ros package for voice recognition to use in a personal project. It uses VGGVOX keras model for creating speaker embeddings. For analysing the speech and providing the speaker intent, bot developed on wit.ai is used.

Package details

This package contains contains the following python scripts to add, enroll or delete users:

  1. create_user_dataset.py: to record or delete the datasets.
  2. enroll_speaker: to create the speaker embedding from dataset and save as pickle file
  3. listener.py: a ros node to continously listen for voices
  4. speaker_verification.py: a ros node to verify the speaker and connect to wit.ai for voice analysis and getting the response.

Requirements

  • Tensorflow
  • Keras
  • librosa
  • Pyaudio
  • wit
  • scipy

Using the package

Adding the speaker data to the dataset

Run the following line of code and follow the instruction

foo@bar:~$ python /path/to/create_user_dataset.py 

Enrolling the speaker

To enroll(create embeddings) the new user run the following command with 'new' or to enroll all the speaker present in the dataset use 'full'

foo@bar:~$ python /path/to/enroll_speakers.py --add new/full

Deleting the speaker

To delete the speaker embeddings and dataset run follow command in terminal. Replace speaker_name with the speaker name to delete.

foo@bar:~$ python /path/to/enroll_speakers.py --delete speaker_name

Ros Speaker Verification

Do following modifications and run the launch file voice_launch.launch file.

  • Add the users name in config/users_list.yaml for which the application has to accessed.
  • Add the wit.ai access token in src/speaker_verification.py.

References

This package contains code and data from other github users and Stackoverflow answers which are mentioned below

  1. The voice recorder used in this project is taken from a Stackeoverflow answer written by user Primusa.
  2. Noice removal: the denoise.py script used in this package for noise removal has been written by Tim Sainburg.
  3. The VGGVOX keras model used for creating speaker embedding is trained by Linh Vu and used here.

voice_recognition_ros's People

Contributors

hgupta01 avatar

Stargazers

 avatar

Watchers

 avatar

voice_recognition_ros's Issues

Rospy

Please guide us installation of rospy in this project.

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.