Google Text-to-Speech Synthesize REST API 500 Internal Error

Viewed 234

Using Google REST API - usually getting 500 error

{
  "error": {
    "code": 500,
    "message": "Internal error encountered.",
    "status": "INTERNAL"
  }
}

I have few questions:

  • Is it me using API incorrectly?
  • Could such behaviour reproduce with any text? Should I add some retry logic?

I'm using a simple sentence - With Cloud Machine Learning, your application interprets images, texts and so much more. repeated for N times. In this particular case, it's 56 times (4928 chars) to meet the limits of the API which is 5000 chars. Reproducing in about 50% times or more. Not reproducing with different texts like Lorem Ipsum (500 chars repeated) etc.

jsfiddle demo (Google TTS API Key required)

0 Answers
Related