Hi,
I solved this issue using this script in a script block before the Message block;
yourVariable = context.getVariable("yourVariable")
newVariable = '[pause:x]' + yourVariable.replaceAll( /\s/, '').collect{ "[$it]" }.join( ' [pause:x] ' )
context.setVariable("yourVariable",newVariable)
return "success";
This script gets your variable, removes any spaces and joins it with the TTS operator "[pause:x]" (x being pause length in milliseconds) between each digit.
You'll have to play around with the value of x until you're happy with the length of the pause. The default "[pause]" is 750ms long which is quite long and was not good for our long number, so we went with [pause:10]
e.g. "12345" becomes "[pause:x] 1 [pause:x] 2 [pause:x] 3 [pause:x] 4 [pause:x] 5"
------------------------------
Oscar Alvarez
Link Market Services Limited
------------------------------
Original Message:
Sent: 02-11-2019 20:34
From: Jarryd Tuyau
Subject: GAAP/GIA/Speechstorm controlling TTS speed
Hi Rod,
Haven't had a chance to get back on here. Not working for me either.
In my case I need to read out a long number, I'm thinking of scripting it to break it into lots of 3 digit numbers with pauses in between. It would be better if there was an actual way of controlling this though..
Anyone else know how?
------------------------------
Jarryd Tuyau
Link Market Services Limited
Original Message:
Sent: 11-15-2018 20:50
From: Rod Dinis
Subject: GAAP/GIA/Speechstorm controlling TTS speed
Hi,
thanks for that answer, however for me that did not work. I created one TTS item with :
<prosody rate="slow">
another with my variable:
[var:details]
and the last TTS item with:
</prosody>
And I continue listening to the prosody as TTS, not a XML tag to change the TTS. How is that working for you mates?
cheers,
------------------------------
Rod Dinis
Spark NZ Trading
Original Message:
Sent: 08-13-2018 09:16
From: Jorge Cornejo
Subject: GAAP/GIA/Speechstorm controlling TTS speed
You create an item of type Text in your prompt block with
<prosody ....>
Another item with your variable
and finally another item with </prosody> as Text again
So at the end you have 3 Prompt items
------------------------------
Jorge Cornejo
VS Telecom LTDA.
Original Message:
Sent: 08-12-2018 23:50
From: Jarryd Tuyau
Subject: GAAP/GIA/Speechstorm controlling TTS speed
Hi Everyone,
I've created a call flow in GAAP that is fetching a long number and playing it back to a customer via TTS. The issue is that it's being read back extremely quickly and I need to slow it down so that callers can keep up with it.
Having a look through the Nuance Vocalizer developer guide, there appears to be a setting:
<prosody rate="50%">Hello this is a test</prosody>
But if I add this to a message block in GAAP it just reads it out, tags and all.
Has anyone found a better way to do this?
Thanks,
Jarryd.
------------------------------
Jarryd Tuyau
------------------------------