Skip to content

Commit 9c68e15

Browse files
Aline GuimarãesAline Guimarães
Aline Guimarães
authored and
Aline Guimarães
committed
fix recognize_google_cloud
1 parent 6a113a5 commit 9c68e15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

speech_recognition/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ def recognize_google_cloud(self, audio_data, credentials_json=None, language="en
964964
config = speech.RecognitionConfig(**config)
965965

966966
try:
967-
response = client.recognize(config, audio, **opts)
967+
response = client.recognize(config=config, audio=audio)
968968
except GoogleAPICallError as e:
969969
raise RequestError(e)
970970
except URLError as e:

0 commit comments

Comments
 (0)