USA
Asked — Edited
Resolved Resolved by DJ Sures!

Mobile Say Command

I have been using the "SAY" command in a few of my subroutines. Since I updated my ARC version this week however, I've noticed that the SAY command no longer works on my Mobile, unless I've done something else wrong, as I'm continually trying to add more functionality to my robot.

When my code comes to the SAY command when I'm running my robot from my PC however, it works. It only doesn't work when I'm connected to my tablet, and the same programs worked last week. And yes, the volume is turned on my tablet, and it will make other sounds not emanating from EZB.

Has anybody else experienced this as of this week, or am I overlooking some other setting in EZB that I accidentally changed?


ARC Pro

Upgrade to ARC Pro

Experience the transformation – subscribe to Synthiam ARC Pro and watch your robot evolve into a marvel of innovation and intelligence.

PRO
Synthiam
#2  

The Say() command works on both my iOS and Android device. Has there been an update to your mobile device that might have changed the language or region?

Check the Application Log and see if there are any errors that you can share.

#3  

Speaking of the Say command. By accident I recently found that if this character sequence "<p>" is anywhere in a string to be spoken, the command doesn't work. At least, if it is working, there is no sound coming from either the PC speakers or the robot. Like this:


SayWait(&quot;Testing this  message&quot;) #Normal
SayWait(&quot;Testing this &lt;p&gt;  message&quot;) #Silence
SayWait(&quot;&lt;p&gt;Testing this  message&quot;) #Silence
SayWait(&quot;Testing this  message &lt;p&gt;&quot;) #Silence

I think it causes the system to skip the usual operation since, when inserted into the string, the red color indicating how long the command is running (in a SayWait command) just flashes for a moment. Whereas, normally it takes a couple of seconds or so to say the message I gave as an example above. Perhaps there are other such sequences that inhibit sound as well?

#4  

I didn't think to look in the application log. I just looked at it and saw this error;

Error on line 4: Cannot change synthesizer's output while speaking.

This is line $ that it is referring to:


sayEZB(&quot;Distance&quot; + $Distance + &quot;inches&quot;)

Does this help?

#5  

I should also probably add that the sayEZB command does work on my tablet, it's only the SAY command that does not work.

PRO
Synthiam
#6  

First, please post code using the [ code ] and [ /code] tags for proper formatting. I've edited your posts.

Second, perhaps the speech synthesizer on the device that you're using is not able to parse the phrase to be spoken. There are no spaces in the phrase which you have pasted, so the number and words all blend together. Because android is not a regulated operating system, every device and manufacturer is different - making it very very difficult for ezrobot to support every android flavor. I would recommend fixing the syntax is the say command to include a space between the number variable and words.


SayEZB(&quot;distance &quot; + $distance + &quot; inches&quot;

Notice how there are spaces between the words and quotes.

#7  

I tried the spaces in the text to be spoken as you suggested, but unfortunately this did not help. I might also add, that last week I had the text without the spaces and it was working them.

I have added other subroutines unrelated to this on since that time. Could there be a conflict somewhere that I should be looking for?

#8  

@WBS00001 Am I missing something? Why does it matter? How is "<p>" used in text to speech synthesis anyway?