akras14 / speech-to-text

Example transcribing audio file (speech) to text with Google Cloud Speech API and Python
177 stars 89 forks source link

Can anyone tell me what is the reason of this issue, please. #7

Closed makaraduman closed 4 years ago

makaraduman commented 4 years ago

I am a beginner and could not find anything on google. WAV docs are in Turkish. I don't know if it is related. Might be Thank you for your time. Ali

`Traceback (most recent call last): File "fast.py", line 28, in all_text = pool.map(transcribe, enumerate(files)) File "C:\Users\ASUS-25\AppData\Local\Programs\Python\Python38-32\lib\multiprocessing\pool.py", line 364, in map return self._map_async(func, iterable, mapstar, chunksize).get() File "C:\Users\ASUS-25\AppData\Local\Programs\Python\Python38-32\lib\multiprocessing\pool.py", line 768, in get raise self._value File "C:\Users\ASUS-25\AppData\Local\Programs\Python\Python38-32\lib\multiprocessing\pool.py", line 125, in worker result = (True, func(*args, *kwds)) File "C:\Users\ASUS-25\AppData\Local\Programs\Python\Python38-32\lib\multiprocessing\pool.py", line 48, in mapstar return list(map(args)) File "fast.py", line 21, in transcribe text = r.recognize_google_cloud(audio, credentials_json=GOOGLE_CLOUD_SPEECH_CREDENTIALS) File "C:\Users\ASUS-25\AppData\Local\Programs\Python\Python38-32\lib\site-packages\speech_recognition__init__.py", line 937, in recognize_google_cloud if "results" not in response or len(response["results"]) == 0: raise UnknownValueError() speech_recognition.UnknownValueError

C:\Users\ASUS-25\Google Drive\Work\speech-to-text-master>`