SpeechRecognition
This repository contains the implementation of an Automatic Speech Recognition system in python, using a client-server architecture with Web Sockets.
Install / Use
/learn @FernandoLpz/SpeechRecognitionREADME
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. <a href="https://youtu.be/gdSUyI1z50o">YouTube: Speech Recognition in Your PC</a>
1. Files
- The
docsdirectory the list of resources used for this project. - The
client.pyscript defines the client websocket. It handles stuff related to recognizing mic, setting audio features, etc. - The
server.pyscript defines the server websocket. It handles stuff related to loading Speech Recognition Models, inference, etc.
2. The architecture
<p align="center"> <img src='img/asr.jpg'> </p>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: fer.neutron@gmail.com
Feel free to clone or fork!
Related Skills
node-connect
352.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
111.5kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
111.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
352.9kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
