8000 GitHub - CtrCodex/Voice-Writer: A python code that types what your saying at where the cursor is placed.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

CtrCodex/Voice-Writer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Speech-to-Text Dictation using Python

This Python script utilizes the speech_recognition library to enable speech-to-text dictation. The code allows for continuous speech recognition, converting spoken words into text and typing them using the pyautogui library.

Prerequisites

  • Python 3

  • Install required Python libraries:

    pip install pyautogui
    pip install SpeechRecognition

How to Use

  1. Clone this repository:

    git clone https://github.com/your-username/your-repository.git
  2. Navigate to the project directory:

    cd your-repository
  3. Run the script:

    python your_script.py

Features

  • Start and stop dictation using voice commands.
  • Continuously transcribe spoken words into text.
  • Typing the transcribed text using pyautogui.
  • Graceful handling of stop commands to end dictation.

Code Overview

Dictation Class

  • start: Initiates the dictation process and continuously listens in the background.
  • stop: Stops the dictation process.
  • callback: Callback function for speech recognition, typing the recognized words using pyautogui.

test Function

  • Creates an instance of the Dictation class and starts the dictation process.

spell_word Function

  • Takes an input text and returns a string spelling out each letter.

Example

To test the script, run the provided test() function. Speak into the microphone, and the recognized words will be typed using pyautogui. The dictation will stop when you say "stop," "dictate," or "jarvis."

from your_script import test

test()

About

A python code that types what your saying at where the cursor is placed.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0