Edit Content

Est adipisci rutrum minim hat dolorum, nobis nonummy natoque dolores delectus magna turpis.

Speech to Text (STT) Using “ + Google API

ABC AI & Robotics Research Institute Blog 2

Overview: Capture voice and convert it into text for real-time command processing or data logging.

Use Case: Integrate with robots to accept vocal commands.

Libraries Used:

  • speechrecognition
  • pyaudio (for mic input)

Installation:

pip install SpeechRecognition pyaudio

Working Code:

import speech_recognition as sr
r = sr.Recognizer()
with sr.Microphone() as source:
    print("Speak now...")
    audio = r.listen(source)
    text = r.recognize_google(audio)
    print("You said:", text)

Heads Up: This uses Google’s free API — reliable, but requires internet.

Colab Link: Test STT in Colab

About the Author

Leave a Reply

Your email address will not be published. Required fields are marked *

You may also like these