speech_recognition icon indicating copy to clipboard operation
speech_recognition copied to clipboard

What is the difference between Google Cloud Speech API and the one that recognizer.recognize_google is using?

Open j-j-kam opened this issue 3 years ago • 3 comments

I know that the Google Cloud Speech API is not free. What about the one that that recognizer.recognize_google is using? Is it the Google Web Speech API? Is it free for commercial use?

j-j-kam avatar Jun 20 '21 10:06 j-j-kam

The Google Cloud Speech API are based on the newer versions and also it has minimum latency compared to the recognizer in python. The recognizer.recognize_google limits you when you are doing for longer audio files. Thats all I know. If you know anything more than this feel free to mention. Good luck!

amcareem avatar Aug 22 '21 12:08 amcareem

I am not sure if the module works correctly . Keeps getting the error AssertionError: credentials_json must be None or a valid JSON string . Though the json credential file is downloaded from google

pulkit21aug avatar Dec 30 '21 10:12 pulkit21aug

Did you import as import os ["GOOGLE_APPLICATION_CREDENTIALS"]="/path/to/file.json"

or

import os from google.oauth2 import service_account

credentials = service_account.Credentials.from_service_account_file("your-json-path-with-filename.json") client = language.LanguageServiceClient(credentials=credentials)

amcareem avatar Jan 01 '22 17:01 amcareem

How to pay for the google cloud api and use it ?

UtkuDenizAltiok avatar Jun 04 '23 19:06 UtkuDenizAltiok

The Google Cloud Speech API are based on the newer versions and also it has minimum latency compared to the recognizer in python. The recognizer.recognize_google limits you when you are doing for longer audio files. Thats all I know. If you know anything more than this feel free to mention. Good luck!

j-j-kam avatar Jun 06 '23 12:06 j-j-kam