Skip to content

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.

License

Notifications You must be signed in to change notification settings

FNBUBBLES420-ORG/speech-to-text-help-disabled

Repository files navigation

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

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:

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.
  1. Start Speech Recognition:
  • Click the "Start Recognition" button.
  • The application will listen to your speech and attempt to convert it to text.
  1. 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.
  1. 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


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:

  • πŸ’» 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.

About

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.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks