A Python application that converts speech to text with background processing capability.
- List all available microphone devices
- Select specific microphone device for recording
- Single speech recognition mode
- Background continuous listening mode
- Export transcripts to file
- Interactive menu interface
- Command-line interface
- Install required dependencies:
pip install -r requirements.txt- Make sure you have a working microphone connected to your system.
python main.pyList available audio devices:
python main.py --list-devicesSingle recognition with specific device:
python main.py --single --device 1Background mode with output file:
python main.py --background --device 1 --output transcripts.txtThe interactive mode provides a menu with the following options:
- List audio devices - Shows all available microphone devices
- Select audio device - Choose a specific microphone to use
- Single recognition - Listen once and convert speech to text
- Background mode - Continuous listening with real-time transcription
- Exit - Quit the application
In background mode, the application:
- Continuously listens for speech
- Transcribes speech in real-time
- Displays timestamps with each transcription
- Optionally saves to a file
- Provides a summary when stopped (Ctrl+C)
- Offers to export all transcripts
- Python 3.6+
- PyAudio for audio input
- SpeechRecognition for speech-to-text conversion
- Internet connection (uses Google Speech Recognition)
- PyAudio installation issues: Install portaudio first or use conda
- No microphone detected: Check system audio settings
- Speech recognition errors: Ensure stable internet connection
- Permission issues: Grant microphone access to Python/Terminal