Python speech Client error: Rendezvous of RPC that terminated with (StatusCode.DEADLINE_EXCEEDED)

I am a newbie in Google Speech API and I want to use it. Below is what I have done till now. 1. I have installed google cloud speech in Windows

  1. I am running behind corporate proxy so I have added the proxy in environment variable HTTP_PROXY and GPRC_PROXY_EXP
  2. I am trying the example https://cloud.google.com/speech/docs/reference/libraries#client-libraries-usage-python.
  3. When I encounter response = client.recognize(config, audio), I get the following error -
  4. google.gax.errors.RetryError: RetryError(Retry total timeout exceeded with exception, caused by <_Rendezvous of RPC that terminated with (StatusCode.DEADLINE_EXCEEDED, Deadline Exceeded)>)

Please let me know if anything else is needed.

Thanks

Upvotes: 0

Views: 3981

Answers (1)

vinaymk
vinaymk

Reputation: 84

I guess you are using the sample transcribe_async.py. If yes then you need to increase the wait time-out for response from async call. It depends on the duration of your audio file, may be from 90 to say 250 (?)

response = operation.result(timeout=90)

Upvotes: 2

Related Questions