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 - Dave.ca

Pages: [1]
1
General Discussion / Re: Recommended TTS voices
« on: April 15, 2014, 07:43:45 AM »
I am using Bridget as well (hmmm... that sounds rude). I followed a link here on the forum to a reseller and paid US$19.99. Considering what we pay for VoxCommando, it did seem a little steeep for just a voice. But I heard it in Jitterjames' utube video and was so impressed with how natural it sounded that I had to have her (uh...).

While it wouldn't be very practical as an all-around voice, the original 1980s Battlestar Galactica Cylon voice answering "By Your Command" to a "Start Listening" command would be pretty interesting... Especially if you had an unsuspecting guest over.

2
General Discussion / Re: Rounding Numbers with Decimals
« on: April 15, 2014, 07:30:22 AM »
http://overapi.com/regex/?_nospa=true
http://www.regexr.com/
Not sure if these are applicable or what you are referring to but I've used for some regex hell in the past.

Wow... Be carefull what you ask for...  ;D

Thanks.

3
General Discussion / Re: Rounding Numbers with Decimals
« on: April 15, 2014, 12:18:52 AM »
Hi Dave.ca,

I guess maybe you're just asking in general terms for future reference, but it seems to me that in this particular example, it would make more sense to implement James's second solution, which is three basic actions. As in:
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<command id="222" name="Tell me the temperature" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>WUnder.GetCustom</cmdType>
    <cmdString>The current temperature is {C.temp_c} degrees Celsius or {C.temp_f} Fahrenheit, and it feels like {C.feelslike_c} or {c.feelslike_f} Fahrenheit.</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.RegExReplace</cmdType>
    <cmdString>(\d)\.\d&amp;&amp;$1</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>OSD.ShowText</cmdType>
    <cmdString>{LastResult}</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>Please</phrase>
  <phrase>Tell me the temperature</phrase>
</command>

This is a much more efficent piece of code. It took me a few minutes to grasp the synatx, as I could not find a reference to the "\d" (for digit)  in the wiki explanation for Results.RegExReplace. Are there other codes and if so is there a link to a list (as there is for the Custom DateTime Codes, )?

4
General Discussion / Re: Rounding Numbers with Decimals
« on: April 14, 2014, 08:02:44 PM »
Are you rolling in VoxCommando big bucks and aspiring to that 90210 zip code?  ;D

Here's a question. Is there any way to call a subroutine in any of the modules? The code below basicly does the same thing four times to say "The current temperature is 14 degrees celsius or 58 degrees farenheit, and feels like 18 or 64."

Code: [Select]

<?xml version="1.0" encoding="utf-16"?>
<command id="404" name="Tell Me The Temperature" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>WUnder.GetCustom</cmdType>
    <cmdString>{c.temp_c}</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>PY.ExecString</cmdType>
    <cmdString>result= int({LastResult})</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.SetVar</cmdType>
    <cmdString>degreesC&amp;&amp;{LastResult}</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>WUnder.GetCustom</cmdType>
    <cmdString>{c.temp_f}</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>PY.ExecString</cmdType>
    <cmdString>result= int({LastResult})</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.SetVar</cmdType>
    <cmdString>degreesF&amp;&amp;{LastResult}</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>WUnder.GetCustom</cmdType>
    <cmdString>{c.feelslike_c}</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>PY.ExecString</cmdType>
    <cmdString>result= int({LastResult})</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.SetVar</cmdType>
    <cmdString>feelsC&amp;&amp;{LastResult}</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>WUnder.GetCustom</cmdType>
    <cmdString>{c.feelslike_f}</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>PY.ExecString</cmdType>
    <cmdString>result= int({LastResult})</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.SetVar</cmdType>
    <cmdString>feelsF&amp;&amp;{LastResult}</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>TTS.Speak</cmdType>
    <cmdString>The current temperature is {Var.degreesC} degrees celsius or {Var.degreesF} degrees farenheit, and feels like {Var.feelsC} or {Var.feelsF}.</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>Please</phrase>
  <phrase>Tell me the temperature</phrase>
</command>


5
General Discussion / Re: Rounding Numbers with Decimals
« on: April 14, 2014, 06:36:35 PM »
Yes, after posting I continued to dig and found that the python module gives us the ability to perform math (and other) functions. As it is only the temperature that I am concerned with it turned out to be a rather simple process.

Code: [Select]

<?xml version="1.0" encoding="utf-16"?>
<command id="404" name="Tell Me The Temperature" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>WUnder.GetCustom</cmdType>
    <cmdString>{c.temp_c}</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>PY.ExecString</cmdType>
    <cmdString>result= int({LastResult})</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>TTS.Speak</cmdType>
    <cmdString>The current temperature is {LastResult} degrees celsius.</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>Please</phrase>
  <phrase>Tell me the temperature</phrase>
</command>


It is curious that I am receiving the temperature to decimal precision and you are not.

6
General Discussion / Rounding Numbers with Decimals
« on: April 14, 2014, 03:49:04 PM »
The Wunder plugin returns temperatures in a form that is not condusive to "natural" speech. Example:

Me: "Computer, please tell me the current temperature."

Computer: "The current temperature is 20.3 degrees celsius."

I would much rather hear:

Computer: "The current temperature is 20 degress celsius."

Is there a RND or INT command that would convert {c.temp_c} to an integer number? Is there a way to do this in the Wunder plugin itself?

7
Well, that did it. I would have actually tried something like this myself if I hadn't been confused by the "profile" directory...

Off to buy the full version!

8
Thank-you for this. I will try it out and report back.

In my travels I did see code similar to this, but was confused by the "special://profile/playlists/video/..." parameter as I could not find a "profile" directory anywhere in XBMC or VoxCommander...

I will create two new playlists called "T.V. Old" and "T.V. New" and see what happens.

Cheers.

9
Hello Mr. Ca.

We are just sitting down to eat so will be offline for a bit, but let me just clarify what you are looking for.

Do you already have smart playlists set up for your various categories, and you are simply trying to find a way to load them?

Assuming this is true, are you hoping to open them to be able to browse through the items (I am guessing yes) or are you hoping to have them play automatically (i.e. load a playlist of these items).

Firstly, thank-you for your prompt response.

Yes, the smart playlists already exist in XBMC. I have sub-menus off the home screen TV menu (something the skin faciltates) that when selected display only the programs in the playlist. I can then scroll through the programs, select, play, etc. The programs are displayed the same way as in the full TV selection, ie: Program-Season-Episodes. It is a simply a subset of the full listing. So, no, I am NOT looking for them to play automatically.

Thanks again.

10
Hello, VoxCommando Community. I am a long time XBMC user who has recently discovered VoxCommando. I am very impressed with its ability to handle the basics in XBMC (navigation, media play), but must admit to frustration with more advanced tasks, specificaly video smart playlists. I have spent a lot of time googling the interweb and playing with the examples and suggestions I have found there and here (all it would seem relating to MUSIC playlists), without any success. Let me explain my set up.

I have TV programs on multiple drives. Each drive is set up as follows:

\TV\CURRENT\
\TV\DAVID\
\TV\SHEILAGH\
\TV\KIDS\

The programs in the various CURRENT directories are those that both my wife and I watch together. The programs in the various DAVID directories are those only I watch. The programs in the various SHEILAGH directories are those that only my wife watches. And the programs in the various KIDS directories are those the grandkids watch when they visit. Smart playlists for each group combined with the Aeon MQ 5 skin tie it all together, making for a great user experience for all.

I would LOVE to add VoxCommando into the mix, but cannot for the life of me get it to work with my existing playlists.

Example of the CURRENT playlist:

TYPE: TV SHOWS
NAME OF THE PLAYLIST: CURRENT
FIND ITEMS WHERE: PATH CONTAINS CURRENT
all other entries are default.

I am using XBMC 12.0.2 frodo, with the Aeon MQ 5 skin, and VoxCommando 1.191.

If anyone can take me by the hand and show me the code to accomplish a "Browse Current TV" command, I would be very grateful (and ready to buy the full version of VoxCommando).  If for some reason this can't be accomplished, I would be disappointed but still gratefull for the head's up.

Thanks.

Pages: [1]