rayzurbock
(Brian S. Lowrance)
November 9, 2015, 10:34pm
71
So when will the textToSpeech() function be resolved?
textToSpeech()
is the function that translates desired text phrases and returns audible files (mp3) to be played by connected SmartThings devices.
In it’s current state, when called, it often throws a terminating error stating “java.lang.reflect.UndeclaredThrowableException
” if the requested phrase/audible file is not already cached on SmartThings servers. Sometimes it will convert and cache the phrase properly and then when the same phrase is called, it will work from then on, but most of the time new phrases throw this error and the SmartApps that rely on this function stop processing at this point (unless they use a try/catch routine).
I am handling this with a try/catch and notify in in the latest BigTalker SmartApp, but it would be nice for the issue to be resolved once and for all for all apps.
This has been an issue for many months! Why has it not been prioritized and resolved yet?
Related threads:
Hi, This is a try to work around the TextToSpeach function Problem,
I have created a new function using Google TTS,
Google API is now requesting captcha to use the function, but the parameters here avoid the captcha, I have tested and works fine to me.
Google function have a limit to avoid abuse, but most of common users will have not problems, heavy duty users can be blocked for some minutes
Update:
Google have some problems with several request, they block for some time if you request frequently,
I have found a great service, this service allows free 350 request per day, with almost not characters limit and great quality voice.
You must to register to get an API Key, the register is so easy and you don´t need to answer the email to confirm registration.
http://www.voicerss.org/re…
No duration required… I’m literally just doing exactly what you describe except I’m adding ‘&return_url=1’ to the tts-api URL. Make sure to url encode what you want to say to avoid bugs with special characters.
Yeah. The platform is kinda shaky right now due to transition to hub V2 and mobile app 2.0. A lot of things are broken or in flux. I’m gonna hunker down for a few weeks until the dust settles.
I can confirm same sonos issue not playing multiple stacked forecasts (current, daily, tomorrow, etc) and same observation – reducing smart app to one weather forecast works while having multiple does not. I noticed the break in sonos/ST about two weeks ago.
Thank you!
I experienced the problem, but didn’t have a chance to follow up. This is a fantastic project, thank you for your continual support and development!
No problem, while editing an app’s code look in the upper right and there should be a link to “browse smartapps” or something similar.
This will show you a list of apps and the so is stuff is at the bottom. Clicking one will open a modal with the code and allow you to view diff and overwrite your app code. Or just copy/paste the bit you need!
Hope this helps,
Cheers!
I have sent a note to support as well. Waiting for a fix This app is why I spent so much money switching to Sonos. Does anyone know details of the bug? What sequence of characters or lengths triggers it? I’m trying different combinations to get something to work, but I’m having zero luck.
Wow! What a quick turnaround. I was actually in the middle of trying to add this capability when I saw your response.
A couple things I’ve noticed…
Looks like line 97 should have “capability.musicPlayer” instead of “capability.speechSynthesis”
It appears that this update fails at the same point I’m currently stuck. If anything other than a single word variable is passed to the playText() method the following error is thrown:
java.lang.reflect.UndeclaredThrowableException @ line 818
Any thoughts on how to resolve? I don’t believe I’ve seen the same error for Sonos notifications with the Big Talker SmartApp.
Thanks.
I planned to release a new version this weekend. I’m backtracking slightly. I’ve added weather functions tonight and due to this, I am instead releasing a Beta version before calling it good to go.
Important Note: I’m still seeing issues with SmartThings ability to convert some text to speech (mainly new unspoken phrases). I’m catching the error that SmartThings throws when it has trouble converting text to speech ( java.lang.reflect.UndeclaredThrowableException ) and am instead throwing your message to your phone/device/SmartThings App via your notification settings (push/text) so that you at least still get the notification when the speech phrase cannot be converted from text to audio.
BigTalker 1.1.4-Beta1 has been published.
Please test and let me know via PM or by posting an i…
Hey Tim,
Folks are starting to contact me directly about my Talking Alarm Clock app because of the whole TextToSpeech API issue. Is there any progress on this? Something I can tell those who contact me? Behind the scenes, I sense since this wasn’t corrected quickly that there is something a bit more difficult to fix than some sort of change in code. Can you share with me, just for my own edification?
and so many more threads…
Please, SmartThings, resolve the issues with textToSpeech().
1 Like