question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SynthesizeSpeech timeout when using ssml

See original GitHub issue

Hi guys. The version of package 1.1.3. 08/14/2019 I noticed that requests through client.SynthesizeSpeech() failed by timeout. I sending parts of ssml with length 5000.

const request = {

                input: {ssml: someText},	              
                voice: languageConfig,	      
                audioConfig: {	                
                    audioEncoding: 'MP3',	                  
                    sampleRateHertz: 16000,	             
                    effectsProfileId: ['handset-class-device' ]
            }

Then I tried to send smaller pieces of ssml (2000 chars). And now I got the response but still, it works much slower than previous. Maybe be do you know what could be the reason of such behavior?

Also I almost sure that input: {text: someText} works pretty much faster

Thanks in advance!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
bbookmancommented, Aug 16, 2019

I can reproduce this. Next stop is to get the issue to the right folks.

<!DOCTYPE html>
<html lang=en>
  <meta charset=utf-8>
  <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
  <title>Error 502 (Server Error)!!1</title>
  <style>
    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
  </style>
  <a href=//www.google.com/><span id=logo aria-label=Google></span></a>
  <p><b>502.</b> <ins>That’s an error.</ins>
  <p>The server encountered a temporary error and could not complete your request.<p>Please try again in 30 seconds.  <ins>That’s all we know.</ins>
3reactions
jvandenaardwegcommented, Aug 16, 2019

Well, that did not work. Same problem exists on 1.1.2. Seems the Google Text To Speech service has troubles then. In the Google Cloud Community slack group some also report the same timeout troubles, since yesterday it seems.

This is really crap, my whole app is instantly unusable because of this. None of my speech requests seem to go through. They all timeout, on all voices it seems.

100% error rate, with 504’s on the service:

Screenshot 2019-08-16 at 14 02 05
Read more comments on GitHub >

github_iconTop Results From Across the Web

SynthesizeSpeech - Amazon Polly - AWS Documentation
Specifies whether the input text is plain text or SSML. The default value is plain text. For more information, see Using SSML. Type:...
Read more >
AWS Polly python synthesize_speech delayed response
I'm using it in a Django application, and in a helper file, towards the top ... OutputFormat="mp3", VoiceId="Justin", TextType="ssml" ) time2 = time.time()....
Read more >
How to synthesize speech from text - Azure Cognitive Services
You can use SSML to fine-tune the pitch, pronunciation, speaking rate, volume, and more in the text-to-speech output by submitting your ...
Read more >
Speech Synthesis Markup Language (SSML) Version 1.1 - W3C
The intended use of SSML is to improve the quality of synthesized ... have a fetchtimeout attribute that specifies the timeout for fetches....
Read more >
TTS is not able to proccess long ssml inputs [139429599]
Starting from today (August 14) my requests to TTS API fail with timeout error. ... 'synthesizeSpeech' method to use 'text' as the input...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found