Uberi / speech_recognition

Speech recognition module for Python, supporting several engines and APIs, online and offline.
https://pypi.python.org/pypi/SpeechRecognition/
BSD 3-Clause "New" or "Revised" License
8.2k stars 2.39k forks source link

google speech api access credentials need #387

Open naquraishi opened 5 years ago

naquraishi commented 5 years ago

I am using following piece of code to recognize audio using speech_recognition. I am successfully able to convert the audio to text but looks like this uses google speech API internally which require some user credentials perhaps(key etc.). I did not have to supply any credentials to this code in order to convert, how and which credentials are used to access this API and would there be any limitation in terms of number of conversions per day? Please help with the details.

import speech_recognition as sr

r = sr.Recognizer()
audio_file = sr.AudioFile('path_to_recorded_audio')

with audio_file as source:
    audio_file_record = r.record(source, offset=10)

print(r.recognize_google(audio_file_record, language='en-US'))

System information

(Delete all the statements that don't apply.)

My system is Windows 10 x64

My Python version is 3.6

My Pip version is 3

My SpeechRecognition library version is 3.8.1

AlexandreUser commented 5 years ago

still the error?