Controlling delays in google TTS speech...

1,311 views
Skip to first unread message

eroge...@gmail.com

unread,
Jan 23, 2016, 3:35:23 PM1/23/16
to Automate
Hello,
  I am trying to control speech flow with punctuation and it doesn't seem to be analyzed as some of the google TTS for andriod documents might lead one to believe.  I am using the english (united states) for the language selection. 

I am trying to add simple delays between words.  There isn't currently any speed control settings in the speech block, so to help keep things not seem so ran together I would like to be able to put delays between words, etc.

Can anyone shed any light on a solution or work around?

Thanks!

Henrik "The Developer" Lindqvist

unread,
Jan 23, 2016, 6:52:10 PM1/23/16
to Automate, eroge...@gmail.com
It looks like the TTS engine do support x-SAMPA, maybe that can be used to prolong punctuations.
http://stackoverflow.com/a/3647869/445360

eroge...@gmail.com

unread,
Feb 2, 2016, 12:27:32 AM2/2/16
to Automate, eroge...@gmail.com
So here are the exact details of what I was doing to get the delay / pause I was looking for:

assign a word to a Var (variable set block):  
Variable field: Var1
Value = "test <break time=\"3s\"/> delay"

Speak block
Message field:  <speak xml:lang="en-US"> {Var1} </speak>

The result was that there was a 3 second delay between the words "test" and "delay"

The source code for this tag (and all tags) is found here:  https://www.w3.org/TR/speech-synthesis/

I found that if I didn't include the "<speak xml:lang="en-US">" and the "</speak>" in the speak block, the "<break time=\"3s\"/>" was read literally instead of interpreted as control language.

Henrik "The Developer" Lindqvist

unread,
Feb 2, 2016, 12:48:00 PM2/2/16
to Automate, eroge...@gmail.com
Cool. Thanks for submitting your findings.
Reply all
Reply to author
Forward
0 new messages