Author Topic: Vox reads Payload phrases to you  (Read 1618 times)

0 Members and 1 Guest are viewing this topic.

Indy

  • $upporter
  • Jr. Member
  • *****
  • Posts: 23
  • Karma: 1
    • View Profile
Vox reads Payload phrases to you
« on: March 02, 2014, 12:19:34 AM »
Hello all,

Sorry, I searched the forums and I'm also digging through James Welcome Home XML but don't quite understand it completely how it comes all together so I thought I would ask for a little guidance.  Sorry if this has already been asked, please just point me to the thread.

I have built my first command with a payload to play Internet Music by genre which is my payload.  I simply say "Play Internet Radio <genre>" and that station I've assigned play's.  I have quite a few genre's I can choose from and I can't always remember what I called them exactly so it would be nice if I can sometimes say "Play Internet Radio" and have vox read me back the choices in my payload.  Also because it may be annoying to have to listen to 20+ choices every time before you can make a choice, can it be interrupted to listen again once you hear what you want to play that choice?  Any help or guidance is appreciated.  Love this software, its not as intimidating as it looks like at first  :bonk ;)


Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: Vox reads Payload phrases to you
« Reply #1 on: March 02, 2014, 01:48:53 AM »
Hi Indy and welcome to VC-Forum.

I think this is the solution for you  ;)

http://voxcommando.com/forum/index.php?topic=1225.0

You can see two command-group "code-blocks". The first will read aloud all available alternates from your payloadXML and the second will show you how you can set a limit for the alternates which VC read aloud.


Kalle
« Last Edit: March 02, 2014, 02:03:18 AM by Kalle »
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Vox reads Payload phrases to you
« Reply #2 on: March 02, 2014, 08:19:15 AM »

Indy

  • $upporter
  • Jr. Member
  • *****
  • Posts: 23
  • Karma: 1
    • View Profile
Re: Vox reads Payload phrases to you
« Reply #3 on: March 02, 2014, 10:24:15 AM »
Thanks Kalle and James, I knew it was here, just need to put the right term into the search box to find it.  Let me play with them, hopefully I can figure it out.

Kalle, I see in your example that you give it 3 possible responses at a time, is it possible to read all of them but be interrupted when you hear the right one?  Or is this the workaround that you give 3 at a time and wait for a response and if not, give 3 more?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Vox reads Payload phrases to you
« Reply #4 on: March 02, 2014, 10:45:24 AM »
You can use TTS.Stop, but this will only work if you are using TTS.Speak, it won't work with TTS.SpeakSync because with speaksync VC is essentially frozen until the TTS finishes

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<command id="41" name="stop talking" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>TTS.Stop</cmdType>
    <cmdString />
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>stop talking, that's enough, ok got it</phrase>
</command>

Indy

  • $upporter
  • Jr. Member
  • *****
  • Posts: 23
  • Karma: 1
    • View Profile
Re: Vox reads Payload phrases to you
« Reply #5 on: March 02, 2014, 11:09:36 AM »
Genius thats good, thanks, going to try it when I get a minute.  Thanks for the help James and Kalle

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: Vox reads Payload phrases to you
« Reply #6 on: March 02, 2014, 11:27:09 AM »
You're welcome   ::wave
***********  get excited and make things  **********