Page 1 of 1
Pause in speech output
Posted: 09 Apr 2015 04:32
by MURTUMA
I have a flow which tells me my battery level with speech output action. I'm trying to make a little pause between "battery is charging at" and the percentage value, which would make the it more clear: Battery is charging at *pause* 54%.
I've tried two methods:
Putting the percentage value in different speech output action sounds good when it works but sometimes the second action hangs a bit, which makes it unusable.
I've also tried putting perion after "at" which works too but it causes the "at" word to be pronounced unnaturally.
Changing line with \n does not have any effect.
Is there a viable method so I could use only one speech putput action?
Re: Pause in speech output
Posted: 09 Apr 2015 05:56
by lchiocca
Searching a bit on the web, there isn't a standard functionality for pausing. But people have used a couple of ideas.
(1) You can make the TTS pause between sentences, or anywhere you want by adding up to three periods (".") all followed by a single space " "
(2) Also, an escaped quote (\") seems to have it pause somewhat as well - at least, if you put it around a word it adds space around the word.
Ref:
http://stackoverflow.com/questions/4970 ... xttospeech
Re: Pause in speech output
Posted: 09 Apr 2015 06:24
by MURTUMA
Yes, both methods works but it causes TTS to put emphasis on the word "at" which makes it sound unnatural. Just as I explained in the second example.
Putting quotes around the word at removes the emphasis but also adds pause before the word which is not wanted: \"at\"
Re: Pause in speech output
Posted: 10 Apr 2015 15:23
by lchiocca
What about "Battery is charging at ... 54%." ?
Re: Pause in speech output
Posted: 10 Apr 2015 16:30
by MURTUMA
Every method I've tried, puts emphasis on the word "at". I know it's a problem(feature) of the TTS engine and not Automagic and it's starting to seem that I have to settle for emhasized word.
What I've tried so far: ":", ",", "...", "\"" and a few others, I don't remember. They all produce the same outcome.
Re: Pause in speech output
Posted: 15 Apr 2015 06:23
by lchiocca
Maybe another idea: what about creating two tasks for the speech output?
Re: Pause in speech output
Posted: 15 Apr 2015 15:18
by MURTUMA
I explained that in my first example in op. While it sounds good, it's too unreliable.
Anyway, this topic can be considered closed. I broke my phone and fixed it by flashing. In the process I also changed the TTS engine from Pico to Google's one. It doesn't have that weird emphasis problem.