Traceback (most recent call last):
File "sppech_to_text.py", line 34, in <module>
response = client.recognize(config, audio)
File "C:\speech\sp\lib\site-packages\google\cloud\speech_v1\gapic\speech_client.py", line 241, in recognize
request, retry=retry, timeout=timeout, metadata=metadata
File "C:\speech\sp\lib\site-packages\google\api_core\gapic_v1\method.py", line 143, in __call__
return wrapped_func(*args, **kwargs)
File "C:\speech\sp\lib\site-packages\google\api_core\retry.py", line 273, in retry_wrapped_func
on_error=on_error,
File "C:\speech\sp\lib\site-packages\google\api_core\retry.py", line 182, in retry_target
return target()
File "C:\speech\sp\lib\site-packages\google\api_core\timeout.py", line 214, in func_with_timeout
return func(*args, **kwargs)
File "C:\speech\sp\lib\site-packages\google\api_core\grpc_helpers.py", line 59, in error_remapped_callable
six.raise_from(exceptions.from_grpc_error(exc), exc)
File "<string>", line 3, in raise_from
google.api_core.exceptions.InvalidArgument: 400 RecognitionAudio not set.
我在Windows的Google Cloud SDK Shell上遇到此错误。 有人解决了这些问题吗?