Python Forum

Full Version: speechrecognition 3.8.1
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am using speech_recognition library in python 3.6. Using google speech recognizer. The default api key works but has limited quota. I wanted to know if there is a way of using google apikey with recognize_google(this call uses default api key)
import speech_recognition as sr
r=sr.Recognizer()
with sr.Microphone() as source:
   r.adjust_for_ambient_noise(source)
   audio = r.listen(source)
   try:
      text=r.recognize_google(audio)
Thanks.
There is a way but it will cost you: https://cloud.google.com/speech/pricing