Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fnbubbles420-org/speech-to-text-help-disabled
The Speech Recognition Assistant is a Python tool that helps individuals with speech difficulties convert spoken words into text. It uses advanced speech recognition, audio processing, and natural language techniques, all within a user-friendly Tkinter GUI.
https://github.com/fnbubbles420-org/speech-to-text-help-disabled
accessibility-matters charity disability-assistance fnbubbles420org non-profit organization speech-assistant speech-recognition speech-to-text
Last synced: 8 days ago
JSON representation
The Speech Recognition Assistant is a Python tool that helps individuals with speech difficulties convert spoken words into text. It uses advanced speech recognition, audio processing, and natural language techniques, all within a user-friendly Tkinter GUI.
- Host: GitHub
- URL: https://github.com/fnbubbles420-org/speech-to-text-help-disabled
- Owner: FNBUBBLES420-ORG
- License: mit
- Created: 2024-08-13T15:38:43.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-11-07T11:16:38.000Z (about 2 months ago)
- Last Synced: 2024-11-07T12:25:36.610Z (about 2 months ago)
- Topics: accessibility-matters, charity, disability-assistance, fnbubbles420org, non-profit, organization, speech-assistant, speech-recognition, speech-to-text
- Language: Python
- Homepage: https://www.fnbubbles420.org/ourmission
- Size: 68.4 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Speech Recognition Assistant
## Overview
The Speech Recognition Assistant is a Python-based tool designed to help individuals with speech difficulties convert their spoken words into text. This tool leverages advanced speech recognition models, audio processing, and natural language processing techniques to provide accurate and contextually appropriate text output. It includes a user-friendly GUI built with Tkinter.
[FNBubbles420 ORG on github](https://github.com/FNBUBBLES420-ORG/readme.md)
## [Funding](https://github.com/FNBUBBLES420-ORG/speech-to-text-help-disabled/blob/main/.github/FUNDING.yml)
## Features
- **Deep Learning with Wav2Vec 2.0**: Utilizes Facebook's Wav2Vec 2.0 model for robust and adaptable speech recognition.
- **Advanced Audio Pre-processing**: Includes noise reduction, dynamic range compression, and time stretching for better clarity.
- **Contextual Phrase Matching**: Implements Natural Language Processing (NLP) to match recognized speech with predefined phrases.
- **Continuous Learning**: Includes a feedback loop where the system learns from user corrections, improving over time.
- **User-Friendly GUI**: A simple graphical user interface (GUI) built with Tkinter makes the application easy to use.### If you dont have a pet python here is a couple below:
- **YOU ONLY NEED ONLY VERSION OF PYTHON TO RUN THIS !!**
- [Python 3.11.6](https://github.com/KernFerm/Py3.11.6installer)
- [Python 3.11.9](https://github.com/KernFerm/Py3.11.9installer)
- [Python 3.12.1](https://github.com/KernFerm/Py3.12.1-installer-batch)## Requirements
Before running the application, ensure you have the following dependencies installed:
```
pip install torch transformers pydub librosa fuzzywuzzy nltk soundfile tk
```
- Alternatively, you can use the provided requirements.bat script to install these packages separately.## How to Use
1. **Run the Application:**
- Execute the `main.py` script to launch the GUI.
- The application will display a window with a "Start Recognition" button.2. **Start Speech Recognition:**
- Click the "Start Recognition" button.
- The application will listen to your speech and attempt to convert it to text.3. **Feedback and Correction:**
- The application will display the recognized text and ask if it's correct.
- If the text is incorrect, you can provide the correct phrase, which the system will learn and remember for future use.4. **View Final Output:**
- After processing and possible correction, the final recognized text will be displayed in a message box.## Customization
- **Predefined Phrases:** You can edit or add to the `predefined_phrases` list in the script to match the most common phrases the user might say.
- **Model Training:** While the script uses a pre-trained model, you can replace it with a custom-trained model if necessary.## Contribution
- Feel free to fork this repository, make improvements, and submit pull requests. Your contributions are welcome!
## Acknowledgements
- **[Facebook AI](https://github.com/pytorch/fairseq)**: For the Wav2Vec 2.0 model.
- **[NLTK](https://www.nltk.org/)**: For providing NLP tools.
- **[Librosa](https://librosa.org/)**: For audio processing.
- **[Pydub](https://github.com/jiaaro/pydub)**: For simple and easy audio manipulation.
- **[Tkinter](https://docs.python.org/3/library/tkinter.html)**: For the GUI framework.
- **[FuzzyWuzzy](https://github.com/seatgeek/fuzzywuzzy)**: For string matching and scoring.
- **[SoundFile](https://pysoundfile.readthedocs.io/en/latest/)**: For reading and writing sound files.
- **[Hugging Face Transformers](https://github.com/huggingface/transformers)**: For providing state-of-the-art machine learning models.
- **[Python-Levenshtein](https://github.com/ztane/python-Levenshtein)**: For fast and efficient Levenshtein distance computation.
- **[SpeechRecognition](https://github.com/Uberi/speech_recognition)**: For converting speech to text.-----------------
### How to Use:1. **Save the Files**:
- Save the Python script as `main.py`.
- Save the batch script as `requirements.bat`.
- Save the README content as `README.md` in your project directory.2. **Run the Batch Script**:
- Double-click the `requirements.bat` file to install all necessary packages.
- If an error occurs during installation, the script will notify you and stop.3. **Run the Main Script**:
- After installing the dependencies, run `main.py` to start the application.This setup should provide everything you need to get the project up and running, with clear instructions and a straightforward workflow.
## 🎥 How to Install `ffmpeg` on Windows
### 🛠️ Step 1: Download `ffmpeg`
- **🌐 Visit the Official `ffmpeg` Website**:
- Go to the [official `ffmpeg` download page](https://ffmpeg.org/download.html).
- [BtbN](https://github.com/BtbN/FFmpeg-Builds/releases)
- **💻 Select the Windows Build**:
- Under "Get packages & executable files", look for "Windows builds by BtbN" and click on the link.- **⬇️ Download the Latest Release**:
- On the BtbN page, select the latest release version.
- Choose the build based on your system architecture (`ffmpeg-master-latest-win64-gpl.zip` for 64-bit or `ffmpeg-master-latest-win32-gpl.zip` for 32-bit).
- Click the link to download the zip file.### 📁 Step 2: Extract the Files
- **📂 Extract the Downloaded Zip File**:
- Locate the downloaded `ffmpeg` zip file in your Downloads folder.
- Right-click the zip file and select "Extract All..." or use a tool like 7-Zip or WinRAR.
- Extract the contents to a folder, for example, `C:\ffmpeg`.### ⚙️ Step 3: Add `ffmpeg` to Your System Path
- **🖥️ Open System Properties**:
- Right-click on "This PC" or "Computer" on your desktop or in File Explorer, and select "Properties".
- Click on "Advanced system settings" on the left side.
- In the System Properties window, click on the "Environment Variables" button.- **🔧 Edit the System Path**:
- In the Environment Variables window, under the "System variables" section, scroll down and select the `Path` variable, then click "Edit".
- In the Edit Environment Variable window, click "New" and enter the path to the `bin` directory inside your `ffmpeg` folder (e.g., `C:\ffmpeg\bin`).
- Click "OK" to close all windows.### ✅ Step 4: Verify the Installation
- **💬 Open Command Prompt**:
- Press `Win + R`, type `cmd`, and press Enter.- **🔍 Check `ffmpeg` Version**:
- In the Command Prompt, type `ffmpeg -version` and press Enter.
- If installed correctly, you'll see information about the `ffmpeg` version and configuration.### 📝 Summary
By following these steps, you'll have `ffmpeg` installed and configured on your Windows system, ready for use with `pydub` and other audio processing tasks.