Author Topic: TTS.Speak pronunciation issue in VC (Ivona voice)  (Read 3809 times)

0 Members and 1 Guest are viewing this topic.

monkee

  • $upporter
  • Jr. Member
  • *****
  • Posts: 40
  • Karma: 4
    • View Profile
TTS.Speak pronunciation issue in VC (Ivona voice)
« 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 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??

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: TTS.Speak pronunciation issue in VC (Ivona voice)
« Reply #1 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.

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: TTS.Speak pronunciation issue in VC (Ivona voice)
« Reply #2 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>
« Last Edit: June 18, 2016, 06:30:33 AM by Kalle »
***********  get excited and make things  **********

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: TTS.Speak pronunciation issue in VC (Ivona voice)
« Reply #3 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.
« Last Edit: June 18, 2016, 09:08:04 AM by nime5ter »
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

monkee

  • $upporter
  • Jr. Member
  • *****
  • Posts: 40
  • Karma: 4
    • View Profile
Re: TTS.Speak pronunciation issue in VC (Ivona voice)
« Reply #4 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!

monkee

  • $upporter
  • Jr. Member
  • *****
  • Posts: 40
  • Karma: 4
    • View Profile
Re: TTS.Speak pronunciation issue in VC (Ivona voice)
« Reply #5 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?


jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: TTS.Speak pronunciation issue in VC (Ivona voice)
« Reply #6 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>

monkee

  • $upporter
  • Jr. Member
  • *****
  • Posts: 40
  • Karma: 4
    • View Profile
Re: TTS.Speak pronunciation issue in VC (Ivona voice)
« Reply #7 on: June 19, 2016, 11:01:19 PM »
Thanks, I'll give that a shot and let you know!