Raul212
Raul212

Reputation: 31

5000 characters limit exceeded - Google Apis Explorer

Using Cloud Text-to-Speech API v1 in Apis Explorer, I get this error when processing larger files: 5000 characters limit exceeded

https://developers.google.com/apis-explorer/

I checked my quota in Cloud Text-to-Speech API, the quota of characters in all requests par minute is 150000.

What could I do ? Thanks

Upvotes: 3

Views: 1846

Answers (2)

Utpal Kumar
Utpal Kumar

Reputation: 816

You can use the iterative approach (for/while loop) to process your data. This will limit the number of character at each request.

Upvotes: 0

John
John

Reputation: 339

This is a content limit per request. It is documented here. You can send up to 150000 characters in "all requests per minute", but each individual request may contain at most 5000 characters.

Upvotes: 1

Related Questions