title: google speech api forbidden
body: <p>Hey Guys I am working on google speech api using python speech recognition model. I have tried using the default api along with them and it works. But when I try to use it along with my api. I am getting the following error:</p>
  
  <blockquote>
    <p>Could not request results from Google Speech Recognition service;
    recognition request failed: Forbidden</p>
  </blockquote>
  
  <p>And this is my code</p>
  
  <pre><code>import speech_recognition as sr
  from os import path
  AUDIO_FILE = path.join(path.dirname(path.realpath(__file__)), "file.wav")
  
  r = sr.Recognizer()
  with sr.AudioFile(AUDIO_FILE) as source:
      audio = r.record(source) # read the entire audio file
  try:
  # for testing purposes, we're just using the default API key
  # to use another API key, use `r.recognize_google(audio, key="GOOGLE_SPEECH_RECOGNITION_API_KEY")`
  # instead of `r.recognize_google(audio)`
  print("Google Speech Recognition thinks you said " + r.recognize_google(audio, key="AIzaSyAqwPcs_F6cyNltsrZPGRQKRFakDX3d85"))
  except sr.UnknownValueError:
     print("Google Speech Recognition could not understand audio")
  except sr.RequestError as e:
     print("Could not request results from Google Speech Recognition   service; {0}".format(e))
  </code></pre>
  
  <p>Any kind of help is appreciated.</p>