VoxCommando

Help and Support (Using VoxCommando) => Other Plugins => Topic started by: monkee on June 17, 2016, 07:48:32 PM

Title: TTS.Speak pronunciation issue in VC (Ivona voice)
Post by: monkee on June 17, 2016, 07:48:32 PM
I'm trying to adjust how the IVONA TTS voice pronounces a few words.  I've found instructions to do so HERE (http://developer.ivona.com/en/ttsresources/text_normalization/text_normalization_en.html) and they work, however, if I put any text BEFORE the code to change the pronunciation, the voice reads all the code.  If I put text only AFTER the code, it works fine.  TTS.Speaksync does the same thing too.

If that sounds confusing, make a new action of TTS.Speak, try entering each of these and play them.  You'll see (hear) what I mean :)

Works fine:
Code: [Select]
<w role="ivona:VBD">read</w> the book yesterday
Preceding word breaks things:
Code: [Select]
I <w role="ivona:VBD">read</w> the book yesterday
Do I have to put a character after my text but before the code, to let VC know not to pronounce the code possibly??
Title: Re: TTS.Speak pronunciation issue in VC (Ivona voice)
Post by: jitterjames on June 17, 2016, 09:54:40 PM
I think it needs to start with a tag for it to know you are using SSML so to get around it you can probably get away with using an empty tag like this:

Code: [Select]
<W/>
Or if that doesn't work

Code: [Select]
<W></W>
You may have to play around with it a bit.
Title: Re: TTS.Speak pronunciation issue in VC (Ivona voice)
Post by: Kalle on June 18, 2016, 06:26:25 AM
you can use it in this way:

Code: [Select]
<w role="ivona:VBD">I read</w> the book yesterday

this work too:


Code: [Select]
<w role="ivona:VBD">I read the book yesterday</w>
Title: Re: TTS.Speak pronunciation issue in VC (Ivona voice)
Post by: nime5ter on June 18, 2016, 08:53:16 AM
I just tested with an empty tag at the beginning, and that also seemed to work:

e.g.
Code: [Select]
<>Rain expected tomorrow, <w role="ivona:NN">winds</w> at 35km/h, from the northeast.
Title: Re: TTS.Speak pronunciation issue in VC (Ivona voice)
Post by: monkee on June 18, 2016, 04:18:48 PM
Thanks everyone!  I'll experiment with it tonight and let you know how it turns out.  I knew there had to be a way to get around it!
Title: Re: TTS.Speak pronunciation issue in VC (Ivona voice)
Post by: monkee on June 19, 2016, 04:37:18 AM
Code: [Select]
<>
Putting that before the first bit of text works perfectly!  Thanks everyone.

Now, even though that works, I'm still having an issue getting the pronunciation the way I want it. The phrase that I'm working with is: "I've turned on the light for you."  The voice says "turned on" as if they used to be friends who turned on each other instead of turned ON.  Does anyone have a clue how to get the voice to emphasize "turned on" the correct way?

Title: Re: TTS.Speak pronunciation issue in VC (Ivona voice)
Post by: jitterjames on June 19, 2016, 06:05:33 PM
Depending on what TTS voice you have (and what version) this may work for you:

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.2.0-->
<command id="667" name="I turned on the sexy lights" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>TTS.Speak</cmdType>
    <params>
      <param>&lt;emphasis level="reduced"&gt;I turned&lt;/emphasis&gt; awn  the lights.</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>Talk funny to me</phrase>
</command>
Title: Re: TTS.Speak pronunciation issue in VC (Ivona voice)
Post by: monkee on June 19, 2016, 11:01:19 PM
Thanks, I'll give that a shot and let you know!