Pause in speech output

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Pause in speech output

Post by MURTUMA » 09 Apr 2015 04:32

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?

lchiocca
Posts: 69
Joined: 15 Aug 2013 10:11

Re: Pause in speech output

Post by lchiocca » 09 Apr 2015 05:56

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

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Pause in speech output

Post by MURTUMA » 09 Apr 2015 06:24

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\"

lchiocca
Posts: 69
Joined: 15 Aug 2013 10:11

Re: Pause in speech output

Post by lchiocca » 10 Apr 2015 15:23

What about "Battery is charging at ... 54%." ?

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Pause in speech output

Post by MURTUMA » 10 Apr 2015 16:30

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.

lchiocca
Posts: 69
Joined: 15 Aug 2013 10:11

Re: Pause in speech output

Post by lchiocca » 15 Apr 2015 06:23

Maybe another idea: what about creating two tasks for the speech output?

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Pause in speech output

Post by MURTUMA » 15 Apr 2015 15:18

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.

Post Reply