Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Google TTS problem with large numbers

I am using Google TTS and running into this error:

 

Google has returned an error: 400 This request contains sentences that are too long.

 

with this text which is only 155 bytes:

The Assessment Review Board of Canada has determined that the assessment of 185 Corkstown Road in Ottawa should be reduced from 35447892 to 31537798 in the Large Industrial Class and 66985690 total assessed value.

Why am I receiving this error?  Could it have something to do with the large numbers?

Solved Solved
0 4 1,082
1 ACCEPTED SOLUTION

Sadly, I am not familiar with the "make.com" system.  Google Cloud provides a rich array of services that can be invoked over the Internet.  The text to speech is an example of one such service.  Google makes APIs available that can be called to request the service function and, when a request is received, Google satisfies that request.  The API call for a text to speech request  can be found here.  As we look at the API request, we see that it has expected parameters which includes the text to verbalize.  In the demo/web site, we pasted in what we think is the text we want verbalized and it comes back correctly.  However, all this does is exercise the Google Cloud API ... it doesn't tell us anything about how the "Make.com" module either works or the parameters that are actually being passed when you invoke your "make.com" application.   About the best I can suggest is to examine very carefully your configuration of the make.com app (scenario?).  Be as sure as possible that what you are sending to Google Cloud to verbalize is the actual text you think you are sending.  Look also at other parameters and see if you can map those to what are expected by the API.  You might also want to reach out to help to the good folks at make.com.  Maybe they have a recipe to add debugging to your application to see what is actually being passed in to the Google Text To Speech call.

View solution in original post

4 REPLIES 4