Author Topic: Star Trek Computer "Personality"  (Read 3976 times)

0 Members and 1 Guest are viewing this topic.

AgileHumor

  • Contributor
  • ***
  • Posts: 62
  • Karma: 3
    • View Profile
Star Trek Computer "Personality"
« on: February 27, 2014, 06:40:51 PM »
So this is my attempt at setting up a Start Trek computer personality to mimic the TNG LCARS computer terminal access.  Needs some work, would love to get feedback.

Settings should have:
* This wave file for "recognized" sound: input_ok.wav
* Prefix set to "computer"

PS - Thanks to JitterJames and Kalle for getting me this far.

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<commandGroup open="True" name="Star Trek TNG Computer Personality" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="92" name="Communicator On" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>VC.SetSpeechInput</cmdType>
      <cmdString>TTS</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Sound.PlayWav</cmdType>
      <cmdString>S:\VOX\wav\commbadge.wav</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>Amulet.On</event>
  </command>
  <command id="101" name="Communicator Off" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>VC.SetSpeechInput</cmdType>
      <cmdString />
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>Amulet.Off</event>
  </command>
  <command id="1636" name="Computer Acknowledgement" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Sound.PlayWav</cmdType>
      <cmdString>S:\VOX\wav\computerbeep_29.wav&amp;&amp;false</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Sound.PartialMute</cmdType>
      <cmdString>50</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.OnSingle</cmdType>
      <cmdString />
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.Off</cmdType>
      <cmdString />
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.OnSingle</cmdType>
      <cmdString />
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>VC.Prefix.Start</event>
  </command>
  <command id="128" name="Standby" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Sound.PartialUnMute</cmdType>
      <cmdString />
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Sound.PlayWav</cmdType>
      <cmdString>S:\VOX\wav\deskviewer1.wav&amp;&amp;false</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>VC.Standby</event>
  </command>
  <command id="103" name="Not Recognized" 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>VC.On&amp;&amp;True</ifParams>
      <then>
        <action>
          <cmdType>Sound.PlayWav</cmdType>
          <cmdString>S:\VOX\wav\input_failed.wav&amp;&amp;true</cmdString>
          <cmdRepeat>1</cmdRepeat>
        </action>
      </then>
      <else />
    </if>
    <event>VC.NotRecognized</event>
  </command>
  <command id="106" name="Not Recognized Too Low" 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>VC.On&amp;&amp;true</ifParams>
      <then>
        <action>
          <cmdType>Sound.PlayWav</cmdType>
          <cmdString>S:\VOX\wav\input_failed.wav&amp;&amp;true</cmdString>
          <cmdRepeat>1</cmdRepeat>
        </action>
      </then>
      <else />
    </if>
    <event>VC.Reco.TooLow</event>
  </command>
  <command id="87" name="Startup" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>VC.Standby</cmdType>
      <cmdString />
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>VC.Loaded</event>
  </command>
</commandGroup>

« Last Edit: February 27, 2014, 07:24:58 PM by AgileHumor »

AgileHumor

  • Contributor
  • ***
  • Posts: 62
  • Karma: 3
    • View Profile
Re: Star Trek Computer "Personality"
« Reply #1 on: February 27, 2014, 07:29:11 PM »
Input_OK.wav file also attached

AgileHumor

  • Contributor
  • ***
  • Posts: 62
  • Karma: 3
    • View Profile
Re: Star Trek Computer "Personality"
« Reply #2 on: March 14, 2014, 03:15:11 PM »
Here is version 2.0 prototype (not related to VOX new version in beta).  It provides a nested command structure to minimize false positives.  It also has a simple "What can I say" at each menu level.

Vox Commando primarily serves as my "Audio Out" for Vera, either playing wav files or text to speech message like "Outdoor Perimeter Alert, Motion Detected at the Front Door".

Occasionally, I play with my "Audio In" to, and trying to match it to a known voice computer persona Star Trek.

Computer:
 * Security (non functional)
 * Tactical
    **  Red Alert - Vera based scenes to dim all lights to 1%, except 12 Hue lights which get set to red.
    **  Fire Phasers - Trigger Backyard Sprinklers to Scare Racoon.
    **  Shields Up - Lock All Doors, Lower All Blinds
 * Sensors
    **  Weather
    **  Temperature
    **  Goto Camera (not working as Vox WMC implementation is not working for certain circumstances when file paths are used.
 * Information Access
    **  Date Time
    **  Note - Time plays every hour from Startup group
 * Operations
    **  Vera commands to turn on/dim/off lights, run room or whole house scenes (like bedtime or party mode), and raise lower blinds.
 * Holodeck (Video/Audio)
    **  Windows Media Center Controls
    **  Music Play by Artist
 * What can I say
 * Main Menu

Thing yet to energize:
* Protect the Security Menu with voice password (to disarm alarm system when tripped from Vera)
* Figure out Skype to call a limited contacts landlines or mobile (10 family + 4-5 local delivery services).  Haven't installed Skype on this PC yet. Will use "hail contact" and "Incoming hail from contact"
* Wait patiently for someone to build of JitterJames work on reminders protype plugin..to be able to set a reminder for a specific time (assumes today), or a date in the future.  There should also be an important reminder glag that requires voice confirmation of receipt of a reminder.
* Wait patiently for a Media Browser plugin so I can play TV (or specific subset like unmatched comedies or seasons) or movies by name.

PS - Search and replace C:\Vox\Wav with your path in voicecommands.xml. Current WAV files here: http://1drv.ms/1nq19iz
« Last Edit: March 23, 2014, 03:18:06 AM by AgileHumor »

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: Star Trek Computer "Personality"
« Reply #3 on: March 14, 2014, 03:25:03 PM »
Cool thanks  :clap
***********  get excited and make things  **********

vulcanjedi

  • $upporter
  • Sr. Member
  • *****
  • Posts: 213
  • Karma: 8
    • View Profile
Re: Star Trek Computer "Personality"
« Reply #4 on: March 14, 2014, 03:37:06 PM »
LOL are you serious? The tacticals are awesome.
I want to see youtube vid please! :o


Here is version 2.0 prototype (not related to VOX new version in beta).  It provides a nested command structure to minimize false positives.  It also has a simple "What can I say" at each menu level.

Computer:
 * Security (non functional)
 * Tactical
    **  Red Alert - Vera based scenes to dim all lights to 1%, except 12 Hue lights which get set to red.
    **  Fire Phasers - Trigger Backyard Sprinklers to Scare Racoon.
    **  Shields Up - Lock All Doors, Lower All Blinds
 * Sensors
    **  Weather
    **  Temperature
    **  Goto Camera (not working as Vox WMC implementation is not working for certain circumstances when file paths are used.
 * Information Access
    **  Date Time
    **  Note - Time plays every hour from Startup group
 * Operations
    **  Vera commands to turn on/dim/off lights, run room or whole house scenes (like bedtime or party mode), and raise lower blinds.
 * Holodeck (Video/Audio)
    **  Windows Media Center Controls
    **  Music Play by Artist
 * What can I say
 * Main Menu

Thing yet to energize:
* Protect the Security Menu with voice password (to disarm alarm system when tripped from Vera)
* Figure out Skype to call a limited contacts landlines or mobile (10 family + 4-5 local delivery services).  Haven't installed Skype on this PC yet. Will use "hail contact" and "Incoming hail from contact"
* Wait patiently for someone to build of JitterJames work on reminders protype plugin..to be able to set a reminder for a specific time (assumes today), or a date in the future.  There should also be an important reminder glag that requires voice confirmation of receipt of a reminder.
* Wait patiently for a Media Browser plugin so I can play TV (or specific subset like unmatched comedies or seasons) or movies by name.

PS - Search and replace C:\Vox\Wav with your path in voicecommands.xml. Current WAV files here: http://1drv.ms/1nq19iz

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Star Trek Computer "Personality"
« Reply #5 on: March 14, 2014, 04:23:34 PM »
   **  Goto Camera (not working as Vox WMC implementation is not working for certain circumstances when file paths are used.


This was discussed in another thread where I proposed two different working solutions.  Here is an example of one of them (the simpler method).

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<command id="182" name="wmc launch video file" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Launch</cmdType>
    <cmdString>C:\Windows\ehome\ehshell.exe&amp;&amp;\\i7\J\0 Video encoded\uuirt learning.mp4</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
</command>


The other uses the TCP plugin. http://voxcommando.com/forum/index.php?topic=779.msg12262#msg12262

The new WMC plugin for VC2 should also work natively if you chose the TCP connection in the WMC plugin settings, but it has not been extensively tested.  It does not *seem* to be possible to encode a file path correctly using the http.get method that VC1 uses to talk to the VMC plugin for WMC.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Star Trek Computer "Personality"
« Reply #6 on: March 14, 2014, 04:27:12 PM »
Here is version 2.0 prototype (not related to VOX new version in beta).  It provides a nested command structure to minimize false positives.  It also has a simple "What can I say" at each menu level.
...
...

Thanks for posting your XML.   ;D

Anyone who is interested in exploring the possibilities using Enable/Disable groups should definitely check it out!

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Star Trek Computer "Personality"
« Reply #7 on: March 14, 2014, 04:29:21 PM »
I'd also like to see the "Fire Phasers" video, especially if you can wait until you have an actual raccoon. (or someone in a racoon suit would be OK too)  :biglaugh
« Last Edit: March 14, 2014, 06:10:00 PM by jitterjames »

AgileHumor

  • Contributor
  • ***
  • Posts: 62
  • Karma: 3
    • View Profile
Re: Star Trek Computer "Personality"
« Reply #8 on: March 17, 2014, 01:28:02 AM »
I'll work on getting them on camera  >:D