Giter VIP home page Giter VIP logo

fernandolpz / speechrecognition Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 2.0 121 KB

This repository contains the implementation of an Automatic Speech Recognition system in python, using a client-server architecture with Web Sockets.

Home Page: https://youtu.be/gdSUyI1z50o

Python 100.00%
automatic-speech-recognition python speech-recognition speech-to-text transformers wav2vec2 websockets

speechrecognition's Introduction

Medium Twitter Linkedin YouTube

Automatic Speech Recognition

This repository contains the implementation of an Automatic Speech Recognition system in python, using a client-server architecture with Web Sockets.

If you want to know the explanation, I leave you the link to my video on YouTube. YouTube: Speech Recognition in Your PC

1. Files

  • The docs directory the list of resources used for this project.
  • The client.py script defines the client websocket. It handles stuff related to recognizing mic, setting audio features, etc.
  • The server.py script defines the server websocket. It handles stuff related to loading Speech Recognition Models, inference, etc.

2. The architecture

3. Dependencies

In order to install the correct versions of each dependency, it is highly suggested to work under a virtual environment. In this case, I'm using the pipenv environment. To install the dependencies you just need type:

pipenv install -r requirements.txt

then, in order to lauch the environment you would need to type:

pipenv shell

4. How to use

Once you have correctly installed the requirements. You must set in line 17 of client.py your input device. In my case, my device is defined as INPUT_DEVICE = "UMC204HD 192k".

Server

First, you need to launch the server. My recommendation is to use one terminail (or session) for the server. You can also run the server in background.

$ python -B server.py -l [EN | ES]

Client

Then, you will be able to lauch the client.

$ python -B client.py

5. Comments

Any comment, suggestion or colaboration, just reach me out at: [email protected]

Feel free to clone or fork!

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.