Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - SteveB69

Pages: 1 [2] 3 4 5
16
I'm trying to get VC to respond to a given name & respond, "Hello {1}" & then a custom reply for that name.

If I do this using a payload range then all works fine.

But if I do it using a payload.xml it doesn't work. Obviously because I am doing something wrong.
I have created an xml, attached, & in the phrase put the name of the person & in the value put out the text I would like read.

But can't figure out how to tell VC to do this. If I use only the payload.xml then nothing happens.

The code I've upped has a payload list & a payload range, currently the payload range works if I keep the payload xml disabled or optional.

Is there a way to do this via the payload xml as this would be easier for future lists than have to add a logic block for each individual name.

Any chance of a pointer to get me going?

(I did also try using a payload dictation regular but again got no joy & anyway this method would be a bit more hit and miss with the names heard.)

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.1.2-->
<command id="533" name="Say hello to {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)==(B)</ifType>
    <ifParams>{1}&amp;&amp;tony</ifParams>
    <then>
      <action>
        <cmdType>TTS.Speak</cmdType>
        <params>
          <param>Ahh, hello {1}. It is my pleasure to make your acquaintance</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else />
  </if>
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)==(B)</ifType>
    <ifParams>{1}&amp;&amp;steve</ifParams>
    <then>
      <action>
        <cmdType>TTS.Speak</cmdType>
        <params>
          <param>Ahh, hello {1}. It is my pleasure to make your acquaintance</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else />
  </if>
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)==(B)</ifType>
    <ifParams>{1}&amp;&amp;karyn</ifParams>
    <then>
      <action>
        <cmdType>TTS.Speak</cmdType>
        <params>
          <param>Ahh, hello {1}. It is my pleasure to make your acquaintance</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else />
  </if>
  <phrase>Jenkins Say hello to</phrase>
  <payloadList>Steve, Karyn, Tony</payloadList>
</command>

Since typing the above I've tried using a payload get phrase but that's doing nothing on the Save & Execute, but here's the code for that, really not sure which way to go with this.

An example tied to two names would be brill???

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.1.2-->
<command id="533" name="Say hello to {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>PayloadXML.GetPhrase</cmdType>
    <params>
      <param>D:\VoxCommando\payloads\sayhelloto.xml</param>
      <param>{1}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>TTS.Speak</cmdType>
    <params>
      <param>{LastResult}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>Jenkins Say hello to</phrase>
  <payloadList>Steve, Karyn, Tony</payloadList>
  <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="True">payloads\sayhelloto.xml</payloadFromXML>
</command>

17
Sorry my bad, didn't occur to me to look at the TTS plugin  :bonk

http://voxcommando.com/mediawiki/index.php?title=TTS_settings

18
Other Plugins / Re: Questions about GgCal plugin
« on: January 04, 2016, 04:32:27 AM »
Thanks Kalle, honest I do use the wiki but it can all be a tad overwhelming  ::confused
Your links by the way came out weird, but still clickable???

Am feeling chuffed though as tonight I created a windows snap left or right using a payload range rather than 2 separate commands.  8) 8)

19
Strange one, VC won't play my default Win 7 voice.

I have Ivona Brian installed & set as my default voice.

As I understand it VC uses the default Windows TTS voice, I can't see any options within VC to change the voice & what I read on the wiki makes me believe the TTS voice is windows controlled.

I've run VC as VoxCommando.exe & as VoxCommandoSP.exe but TTS remains what sounds like Microsoft Anna?

Any ideas anyone? Thanks

20
VoxCommando Basics and Core Features / Re: Page Up / Down Multiple Times
« on: January 04, 2016, 12:38:20 AM »
Yeah the group is yellow under groups.

I changed the payload range to 1,10

As said it works fine on all other numbers, it's just 7. I'll do a full PC reboot later just in case & if still not working will do the log event as you suggested. Am now trying to get gg.cal to work, which I've mentioned on another thread :-)

21
VoxCommando Basics and Core Features / Re: Page Up / Down Multiple Times
« on: January 04, 2016, 12:11:34 AM »
Thanks PegLeg, no I'm not using Kodi & rarely do.
I just want to use the Page Down multiple times within windows, I did disable the Kodi Simple Actions command & restart.

It seems hit and miss though, sometimes it will work as the Window Navigation folder I have the command in, sometimes it will just OSD Page Down & have it listed under the Kodi Simple Actions, so I'm just surprised as I have disabled the Simple Actions tree. Not really an issue as I just won't use 7 but I'm confused why a disabled action is still coming up on the screen?

22
Other Plugins / Questions about GgCal plugin
« on: January 04, 2016, 12:07:15 AM »
Thought I'd post this here rather than start a new topic?

I'm going through the excellent you tube Google Calendar Plug In but VC history is not giving me an GCaleventalert in the history.

If I click Get Event or GGCal set timer via the ggcal plugin I get the information in a dialogue box ala the tutorial, but the event does not show up in the VC history window???
I'm running VC 2.2.1.2 & GCal plugin V3.

Anyway I have copied the above code & whilst modifying it I'm trying to understand what each bit does.

{PF 1} Why is this used in the show OSD as all it does is show up as {PF.1} & when I delete it the command works fine without?
{Match 1} Am I right this will read out whatever has been

Lastly is there a way to say, "what's on my calendar on Friday", I imagine this would be done using the payload.xml but not sure what value I give to a day? Or is this as mentioned elsewhere a case of getting into the python plugin?

Oh & lastly lastly, is there a way to create a new line for the OSD rather than have all information showing on one. Checked the wiki OSD section & searched the forum but couldn't find.

So the below code is what I have done & it's working fine.

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.1.2-->
<command id="139" name="What's on my Google Calendar {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="Each event for that day is returns as a match: {Match.1}, {Match.1} etc. Currently will use your default calendar feed.">
  <action>
    <cmdType>GgCal.GetDay</cmdType>
    <params>
      <param>{1}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>OSD.ShowText</cmdType>
    <params>
      <param>{Match.{i}}</param>
      <param>4000</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>TTS.Speak</cmdType>
    <params>
      <param>{Match.{i}}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType />
    <params />
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>What's on my Calendar, Do I have any appointments</phrase>
  <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="True">payloads\Google days.xml</payloadFromXML>
</command>

23
Tips and Tricks / Re: Fun with files
« on: January 03, 2016, 10:43:12 PM »
Yeah thanks nime5ter, way to many emails in my life but for some reason this did end up over 2 topics.
Apologies

24
VoxCommando Basics and Core Features / Re: Page Up / Down Multiple Times
« on: January 03, 2016, 10:41:33 PM »
Brilliant, that's got it, thanks, I had no idea that a payload you want repeated could be put into the repeat box & would not have figured that one out.  :bonk

On a side note, my Kodi Simple Actions was interfering with this, I'm not a massive Koid user so not a problem, I disabled the Kodi Simple Action Command tree, right click, disable.
However for Page Down 7, VC will not recognise the 7 (this is probably down to training?) but only happens on 7 & does nothing, just wondering why?

So whenever I say Page Down 7 this comes up on the OSD
Page Down
Kodi Simple Actions

And in the history.

Quote
Page Down  (96.1%)

Quote
XJson.Raw:Input.ExecuteAction&&"action":"pagedown"
Error: System.Exception: Failed to connect to XBMC:
System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 192.168.0.2:80
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
   at System.Net.HttpWebRequest.GetRequestStream()
   at vcPlugin.xJsonHttpCommunicator.PostRequest(String strRequest)
   at vcPlugin.xJsonHttpCommunicator.PostRequest(String strRequest)
   at vcPlugin.xJsonHttpCommunicator.getObj(String[] allParameters)
   at vcPlugin.xJsonHttpCommunicator.jsonRaw(String[] allParameters, Boolean convertSlashToFwd)
   at vcPlugin.Plugin.doAction(String[] parsedActions, String[] parsedParams)
Plugin: D:\VoxCommando\Plugins\XJson\XJson.dll
Quote
<event>VC.NotRecognized</event>

25
VoxCommando Basics and Core Features / Re: OSD Display Time
« on: January 03, 2016, 10:21:33 PM »
Ahh ok, my OSD is about 10 seconds...

26
Thanks for the help guys.
Quote
/C dir "E:\Tencent\My Music\"  /b /s
That got VC to scan & log my music files.

Couple more questions.
What software is the music playing in, I can't find any related window & thus can't stop of pause the music manually?
How do I get it to open whatever song in Winamp?
I've had a twiddle with the play mp3 command, it opens winamp, but doesn't play it.

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.1.2-->
<command id="326" name="play mp3" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>OSD.ShowText</cmdType>
    <params>
      <param>Playing {PF.1}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Launch.RawParam</cmdType>
    <params>
      <param>D:\Program Files (x86)\Winamp\winamp.exe</param>
      <param>{1}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>Play Winamp</phrase>
  <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">payloads\myMp3s.xml</payloadFromXML>
</command>

Stop playing.
Command is coming up as recognized but not stopping. I guess it won't matter once I get this playing in winamp but it's coming back with a history of
Quote
Sound.StopStreamUnexpected error:

Re what to play with, I used to DJ a few yearsback & I have always found winamp 2.95 a very solid bit of kit with crossover & excellent library organisers. Then when windows brought in the search box on top of all explorer bars it got even easier to use.
I did DL MediaMoneky a couple of weeks back but honestly, I'd rather stick with winamp as I have been using it since around 2000.

27
Thanks for that, that works & gives me a future example of how to use payloads.

One thing though, by having a payload list it can limit the reminder options, so I tried deleting the payload list & added a payload dictation regular (in exactly the same place) but then nothing works, VC comes up with command unrecognized.

(I've changed the minutes to seconds just for test purposes)

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.1.2-->
<command id="717" name="Remind me to {1} in {2} Minutes" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="10" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>TTS.Speak</cmdType>
    <params>
      <param>I set a reminder to {1} for {2} minutes</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>VC.SetEventTimer</cmdType>
    <params>
      <param>{2}s</param>
      <param>Reminder</param>
      <param>{1}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>Remind me to</phrase>
  <payloadDictation>payloadDictation: Regular</payloadDictation>
  <phrase>in</phrase>
  <payloadRange>1,60</payloadRange>
  <phrase>minutes</phrase>
</command>
***********************************************************************************************
Solved, the above code uses payload dication regular, thought I'd leave the above code which is working with payload dictation regular, of course this method isn't as accurate

28
VoxCommando Basics and Core Features / Re: Page Up / Down Multiple Times
« on: January 03, 2016, 08:16:56 PM »
The code below is where I am at.
i am kinda getting to grips with payloads but what I am talking about, Page Down (followed by a spoken number)
Should I use a payload range, a payload list or a payload xml?

This is a screenshot of my command, where should I put the payload {1} as where it is placed at the moment, the command is being recognized but the action is only doing Page Down x 1. Despite the OSD confirmation displaying whatever number I say as well.

I'm not following what you mean re a phrase is underlined if a phrase is used.
Example, using the 4directions.
If I say Jump Up 2, nothing is underlined in the OSD & nothing is underlined in the history window???





Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.1.2-->
<command id="697" name="Page Down" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>SendKeys</cmdType>
    <params>
      <param>{PGDN}{1}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>Page Down, Go Down</phrase>
  <payloadRange>1,4</payloadRange>
</command>

29
VoxCommando Basics and Core Features / Re: OSD Display Time
« on: January 03, 2016, 07:42:14 PM »
I have show OSD on command & only show OSD display if command is executed checked.
I don't use the Must Confirm command at the moment.

I'd like a 1 second or so showing of the OSD??

30
VoxCommando Basics and Core Features / Re: OSD Display Time
« on: January 02, 2016, 02:26:22 AM »
Thanks for the reply PegLegTV.

I've dropped the code you posted in, changed the milliseconds to 1000, what now? Restarted VC & the OCD when confirming commands is still on screen for around 10 secs.

Maybe you mis understood, I'm talking about the overall OSD that confirms every command, I know it can be turned off but I'd like it on, just not for 10 seconds??

Pages: 1 [2] 3 4 5