This script uses OpenAI's Whisper model to transcribe speech from your microphone in real-time and type it into any window you choose. The application supports multiple languages and provides visual feedback during transcription.
- Real-time speech transcription using OpenAI's Whisper model
- Multi-language support with interface localization
- Visual feedback during active transcription
- Optional detection logging
- Cross-platform support (Windows and Linux)
- Automatic language detection option
- Python 3.7+
- OpenAI Whisper
- PyAudio
- NumPy
- Pynput
- Pillow (for icon creation)
- Tkinter (for GUI)
- Windows: Pywin32 and Winshell (for desktop shortcut creation)
- Linux: portaudio19-dev (for PyAudio)
- Run the setup script:
python setup.py- Install system dependencies:
sudo apt-get update
sudo apt-get install -y portaudio19-dev python3-dev python3-tk- Run the setup script:
python3 setup.py-
Language Selection:
- Choose from multiple supported languages including:
- English
- Portuguese
- Chinese
- German
- Spanish
- French
- Italian
- Japanese
- Korean
- Russian
- Auto-detect option available
- Interface language updates automatically with selection
- Choose from multiple supported languages including:
-
Detection Logging:
- Toggle logging on/off using the checkbox
- When enabled, shows all detection attempts and transcriptions
- Logs are saved to
whisper_detection_log.txt
-
Visual Feedback:
- Interface changes color during active transcription
- Returns to normal color when transcription is paused/stopped
-
Status Display:
- Shows current status and model loading progress
- Displays first-time download information
- Indicates when ready for trigger phrase
- Start the application using the desktop shortcut or command line
- Select your preferred transcription language
- Enable/disable logging as needed
- Say "Hey Jarvis" to activate transcription
- Speak your text to be transcribed
- Uses any mouse/keyboard input to stop current transcription
You can stop the transcription program by:
- Clicking the Stop button
- Closing the application window
- First-time startup will download the Whisper model large (about 2.9GB)
- The trigger detection is language-agnostic for better recognition
- Transcription automatically pauses when keyboard/mouse is used
- Interface language changes affect all text elements including acknowledgments
- Log toggle affects only detection logging, not status messages
-
PyAudio Installation:
sudo apt-get install -y portaudio19-dev python3-dev pip3 install pyaudio
-
Desktop Shortcut:
chmod +x ~/Desktop/real-time-transcriber.desktop
- Icon Not Showing: Try running as administrator once
- Desktop Shortcut: Verify all paths in the shortcut are correct