Amir Deutel
Amir Deutel

Reputation: 46

Google Speech-To-Text engine returns RESOURCE_EXHAUSTED

We have setup Google Speech-To-Text as a service, all the instances of our servers use the same Google cloud account for Speech-To-Text service.

However, one of the instances is constantly getting reply "RESOURCE_EXHAUSTED: Resource has been exhausted (e.g. check quota)" whenever it tries to activate the Speech-To-Text service. Looking in the service quota in Google Cloud console I can see that we are very far from reaching the limits.

I didn't find anyway to get info why this instance fails to activate the speech-to-text service (while other servers instances are working just fine), I also didn't find in Google Cloud service anyway to see logs that show failed access to the speech-to-text service I set up.

Any idea how I can find and correct this issue?

Upvotes: 0

Views: 421

Answers (1)

Vishal K
Vishal K

Reputation: 1464

The audio length should be

  • ~1 minute when performing synchronous speech recognition requests
  • ~480 minutes when performing asynchronous speech recognition requests
  • ~5 minutes when performing streaming speech recognition requests

And audio longer than ~1 minute must use the URI field to reference an audio file in Google Cloud Storage.

If you attempt to process content in excess of this limit will produce an error, which is why you're getting the RESOURCE_EXHAUSTED error message.

Upvotes: 1

Related Questions