Author Topic: VoxWav TTS questions  (Read 8682 times)

0 Members and 1 Guest are viewing this topic.

gizak

  • $upporter
  • Jr. Member
  • *****
  • Posts: 27
  • Karma: 0
    • View Profile
VoxWav TTS questions
« on: April 18, 2013, 08:06:06 PM »
I don't have VoxWav Pro (yet), so wanted to ask a few questions.  I assume VoxWav responds with the TTS you programmed in VoxCommando?  And if so, do you get TTS feedback from both your computer running VoxCommando AND your Android device running VoxWav at the same time?  Or do it only respond to the device it receives input from?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: VoxWav TTS questions
« Reply #1 on: April 18, 2013, 09:38:00 PM »
All TTS actions in your commands will be executed directly in VoxCommando (always) and will be sent to the last VoxWav device that VC received input from.  So if your android is in the same room as your VC system, and the VC system has audio output capabilities, then you'll hear it twice, but if you have multiple androids using VoxWav, it should only play on a single Android device, hopefully the one you last used ;)

gizak

  • $upporter
  • Jr. Member
  • *****
  • Posts: 27
  • Karma: 0
    • View Profile
Re: VoxWav TTS questions
« Reply #2 on: April 19, 2013, 02:36:58 AM »
Thanks for the quick response James!  Kind of what I thought.  Any plans to add an option to disable Vox TTS on the computer if source comes from Android?  I can probably find a few tricks to do this on my own, it will just be messy lol...  ie, look for a trigger of tcp wav and mute TTS audio source.  Or maybe externally use a motion sensor tied into speakers power outlet to only turn on speakers if in room....eh, maybe not the latter, wife will still trigger it.

Just thinking of the future scenario - Use VoxWav to tell VoxCommando to turn off light source in bedroom, but VoxCommando is in the living room where the wife is watching TV when all of a sudden...  TTS "BEDROOM LIGHT IS OFF!"  lol

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: VoxWav TTS questions
« Reply #3 on: April 19, 2013, 07:05:09 PM »
Thanks for the quick response James!  Kind of what I thought.  Any plans to add an option to disable Vox TTS on the computer if source comes from Android?  I can probably find a few tricks to do this on my own, it will just be messy lol...  ie, look for a trigger of tcp wav and mute TTS audio source.  Or maybe externally use a motion sensor tied into speakers power outlet to only turn on speakers if in room....eh, maybe not the latter, wife will still trigger it.

Just thinking of the future scenario - Use VoxWav to tell VoxCommando to turn off light source in bedroom, but VoxCommando is in the living room where the wife is watching TV when all of a sudden...  TTS "BEDROOM LIGHT IS OFF!"  lol

You can essentially mute the TTS for VC by setting its volume to 0, but knowing when to mute and unmute it is not so straightforward.

gizak

  • $upporter
  • Jr. Member
  • *****
  • Posts: 27
  • Karma: 0
    • View Profile
Re: VoxWav TTS questions
« Reply #4 on: April 20, 2013, 10:46:30 PM »
Ok, another beer or two for ya James, picked up Pro and got it working.  It was a simple fix.  I'll throw it up for those who might want to do the same thing.  
Basically 2 commands....  

TCPWav.Open AV.Mic.On > TTS.SetVolume:0
Wav.Reco.Complete AV.Mic.Off > TTS.SetVolume:100

Now if AV.Mic.On occurs from the Android, it immediately sets TTS volume to 0 and I get my TTS response only on my phone/tablet.
As soon as it finishes, AV.Mic.Off triggers and returns TTS to 100.

First Command:
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<command id="454" name="Mute TTS on Android AV.Mic.On" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>VC.Off</cmdType>
    <cmdString />
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>TTS.SetVolume</cmdType>
    <cmdString>0</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <event>AV.Mic.On</event>
</command>

Second Command:
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<command id="469" name="Unmute TTS on Android AV.Mic.Off" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>TTS.SetVolume</cmdType>
    <cmdString>100</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>VC.Standby</cmdType>
    <cmdString />
    <cmdRepeat>1</cmdRepeat>
  </action>
  <event>AV.Mic.Off</event>
</command>
« Last Edit: April 24, 2013, 01:42:38 AM by gizak »

gizak

  • $upporter
  • Jr. Member
  • *****
  • Posts: 27
  • Karma: 0
    • View Profile
Re: VoxWav TTS questions
« Reply #5 on: April 21, 2013, 01:19:58 PM »
FYI:  Weird bug I came across when playing around with VoxWav.  If I speak through VoxWav, but am also close enough to my desk mic, it gets picked up by both and will execute the command twice even if VoxCommando is in Standby mode.

Not usually an issue, unless I yell talk too loud while in a fight with Doris (Vox), as she always gets the last word.....TWICE! lol.

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: VoxWav TTS questions
« Reply #6 on: April 21, 2013, 01:53:30 PM »
FYI:  Weird bug I came across when playing around with VoxWav.  If I speak through VoxWav, but am also close enough to my desk mic, it gets picked up by both and will execute the command twice even if VoxCommando is in Standby mode.

Not usually an issue, unless I yell talk too loud while in a fight with Doris (Vox), as she always gets the last word.....TWICE! lol.
Haha, you can switch VoxCommando (Doris) to "Off mode", VoxWav will also works when your VoxCommando (Doris) is in "Off mode"  ;)
« Last Edit: April 21, 2013, 01:55:38 PM by Kalle »
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: VoxWav TTS questions
« Reply #7 on: April 21, 2013, 02:41:33 PM »
It's not a bug, it's a feature :-)

You can use events to turn VC off, when voxwav is transmitting, if you wish.

gizak

  • $upporter
  • Jr. Member
  • *****
  • Posts: 27
  • Karma: 0
    • View Profile
Re: VoxWav TTS questions
« Reply #8 on: April 21, 2013, 08:21:53 PM »
Darn, I was hoping that would work...but it didn't. 

I added. VC.Off and VC.Standby to my earlier two commands to mute TTS on TCPWav.Open, but the desktop mic is already listening and processes the voice command before VC.Off is triggered from TCPWav.Open.  In order for it to work, I'd need VC.Off at the end of all my commands (an ever growing list lol), but then I couldn't just walk up to my desk and say Listen/DORIS without hitting a hotkey or pulling out my phone to put it back into VC.On or VC.Standby again.

Having IR commands blasted twice turns on and turns off a device such as my fan light (or TV), thus accomplishing nothing if VoxCommando hears both local and Android mic.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: VoxWav TTS questions
« Reply #9 on: April 21, 2013, 10:20:46 PM »
Why don't you use the AV.Mic.On event to trigger VC.Off ?  This event should be fired as soon as VoxWav starts recording.

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: VoxWav TTS questions
« Reply #10 on: April 22, 2013, 02:09:08 AM »
Darn, I was hoping that would work...but it didn't.  

I added. VC.Off and VC.Standby to my earlier two commands to mute TTS on TCPWav.Open, but the desktop mic is already listening and processes the voice command before VC.Off is triggered from TCPWav.Open.  In order for it to work, I'd need VC.Off at the end of all my commands (an ever growing list lol), but then I couldn't just walk up to my desk and say Listen/DORIS without hitting a hotkey or pulling out my phone to put it back into VC.On or VC.Standby again.

Having IR commands blasted twice turns on and turns off a device such as my fan light (or TV), thus accomplishing nothing if VoxCommando hears both local and Android mic.
If it is not really clear, take a look on the attached picture - Drag and drop the the events from VC history window in the command tree. I have insert the "AV.Mic.Off"-Event in the Vox "listen" command, this change VC in ON-mode. If you use the prefix-mode you can insert the event in "don't listen" command to set VC in standby mode. In my case I use also a "ducking start" and "ducking end " event with VoxWav, this events trigger a partitial mute to all the music or other sounds from my pc to a specified level when you tilt your phone or press the mic button in VoxWav. If your command is fired it brings your sound back to the normal level that was set before. If you need more info, let me know  ;)
« Last Edit: April 22, 2013, 02:11:11 AM by Kalle »
***********  get excited and make things  **********

gizak

  • $upporter
  • Jr. Member
  • *****
  • Posts: 27
  • Karma: 0
    • View Profile
Re: VoxWav TTS questions
« Reply #11 on: April 22, 2013, 05:52:56 PM »
Thanks for this Kalle!  Maybe I missed seeing AV.Mic.On as an option in the history log...  I been multi-tasking too much.  Adding this to ducking will be beneficial as well.  I'll check it out when I get home.

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: VoxWav TTS questions
« Reply #12 on: April 22, 2013, 06:05:41 PM »
Thanks for this Kalle!  Maybe I missed seeing AV.Mic.On as an option in the history log...  I been multi-tasking too much.  Adding this to ducking will be beneficial as well.  I'll check it out when I get home.
No problem, you are welcome  ;)
***********  get excited and make things  **********

gizak

  • $upporter
  • Jr. Member
  • *****
  • Posts: 27
  • Karma: 0
    • View Profile
Re: VoxWav TTS questions
« Reply #13 on: April 22, 2013, 11:00:49 PM »
Doh, another no go...  AV.Mic.On / Off doesn't show up in my logs anywhere when using VoxWav  =(  Maybe that was a result of the amulet remote?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: VoxWav TTS questions
« Reply #14 on: April 23, 2013, 08:45:22 AM »
No, nothing to do with your Amulet.  It is most likely your network.  Those events are sent from VoxWav using UDP.  But if UDP is not getting through to VC then a bunch of other stuff would not be working as well (such as 'hello'). Are VoxWav and VC on the same subnet?
« Last Edit: April 23, 2013, 08:48:11 AM by jitterjames »