realpython / python-speech-recognition

Speech Recognition with Python examples
https://realpython.com/python-speech-recognition/
MIT License
242 stars 186 forks source link

Alternative for Google Web Speech API #5

Open anujssmishra opened 6 years ago

anujssmishra commented 6 years ago

"Caution: The default key provided by SpeechRecognition is for testing purposes only, and Google may revoke it at any time. It is not a good idea to use the Google Web Speech API in production. Even with a valid API key, you’ll be limited to only 50 requests per day, and there is no way to raise this quota. Fortunately, SpeechRecognition’s interface is nearly identical for each API, so what you learn today will be easy to translate to a real-world project."

Sir, since the Google Web Speech API cannot be used in production, what is the alternative for it? I mean how can I use the speech recognition then?

somacdivad commented 6 years ago

@anujssmishra There are several alternatives listed in the article. For example, the Google Cloud Speech API.

The SpeechRecognition package supports most of the basic functionality of this API. You can find a short example in the SpeechRecognition docs here.

To use the Google Cloud Speech API, as well as the others listed in the article, you will need to sign up for an account. For Google, this means providing a valid credit card number, although you are given $300 of credit to start with good for up to 1 year, and you are charged nothing until either the $300 are used, or 1 year has passed, whichever comes first.

The process for obtaining credentials from each API provider varies, so you'll have to read their docs.

In the future, I may update the existing article, or write a new one, that describes how to obtain credentials and perform more complex speech recognition tasks. I'd love to hear any suggestions you may have on topics you'd like to learn about!