pyBegin / projects / voice-to-text
🔊

Voice-to-Text

Captures audio from the microphone and converts it to text using Google's speech recognition service.

30 lines🖥 Desktop only

Voice-to-Text

Captures audio from the microphone and converts it to text using Google's speech recognition service.

Example

Say something!
Recognising
hello how are you

The script listens for up to 8 seconds of speech, sends it to Google's speech recognition service, and prints the recognised text in lowercase. If the audio is unclear it prints Could not understand audio.

How to run on localhost

pip install SpeechRecognition googletrans pyaudio
python main.py

Dependencies