Author Topic: TalkingHeads  (Read 2732 times)

0 Members and 2 Guests are viewing this topic.

bp_pbs

  • Contributor
  • ***
  • Posts: 94
  • Karma: 1
    • View Profile
TalkingHeads
« on: June 10, 2014, 07:34:57 PM »
Team, I'm killing my simple mind over here.  >:( . How do I get the TTS talkinghead to appear over XBMC in fullscreen.

example I say "Vox Where are you?"
TTS Head appears "Here I am"

I tried using Windows.Focus and Windows.BringtoFront both with not bring the box over XBMC

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: TalkingHeads
« Reply #1 on: June 10, 2014, 07:56:20 PM »
It is not possible to get any kind of window in front of XBMC in "true" fullscreen. You can probably use another fullscreen setting in XBMC to get the talking head in front.
« Last Edit: June 10, 2014, 09:12:51 PM by jitterjames »
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: TalkingHeads
« Reply #2 on: June 10, 2014, 09:11:17 PM »
Once you solve the fullscreen issue you will want to use the action TTS.ShowHead, and not Window.Focus

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: TalkingHeads
« Reply #3 on: June 10, 2014, 09:19:33 PM »
I tried ... and Windows.BringtoFront

Henh?  ???  Where did that come from?  You can't just make up actions!

bp_pbs

  • Contributor
  • ***
  • Posts: 94
  • Karma: 1
    • View Profile
Re: TalkingHeads
« Reply #4 on: June 11, 2014, 12:52:56 AM »
Still working on it. Making sure it shows up every time.

@James...Hey I'm trying everything to get it to work.... :biglaugh.....I think I saw it on one of these forums.

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: TalkingHeads
« Reply #5 on: June 11, 2014, 12:09:14 PM »
 :)

Careful what you're looking at on the forum; you could end up wasting a lot of your time.

The posts that referred to Window.BringToFront were sharing Eventghost xml, not VC commands.

Real VC actions are documented in the wiki and in the VC action selection tree.

The wiki isn't always 100% up-to-date, but the selection tree in the program is. If if doesn't show up when you start to type "Windo_ _ _" it ain't gonna work.

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

Core actions are listed here: http://voxcommando.com/mediawiki/index.php?title=Actions
(Plugins have their own wiki pages that list their actions.)
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: TalkingHeads
« Reply #6 on: June 11, 2014, 01:51:08 PM »
I don't know whether you're using Frodo or Gotham, but I believe you need to go into System > Settings > Video Output to change from "true" full-screen to a fake full-screen. http://wiki.xbmc.org/index.php?title=Settings/System

If you're trying to use the new talking head avatar that James just introduced in 1.9.5.5, I recommend using a command that shows the talking head when the event "TTS.start" occurs, and then hides it again when the event "TTS.end" occurs (or maybe slightly after that event occurs). This could be done in 2 separate commands, or in 1 command with some logic conditions.

e.g.
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 1.9.5.5-->
<command id="252" name="talking head" 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>{LastEvent}&amp;&amp;TTS.start</ifParams>
    <then>
      <action>
        <cmdType>Window.Focus</cmdType>
        <params>
          <param>voxcommando</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>TTS.ShowHead</cmdType>
        <params>
          <param>True</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else />
  </if>
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)==(B)</ifType>
    <ifParams>{LastEvent}&amp;&amp;TTS.end</ifParams>
    <then>
      <action>
        <cmdType>VC.Pause</cmdType>
        <params>
          <param>400</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>TTS.ShowHead</cmdType>
        <params>
          <param>False</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else />
  </if>
  <event>tts.*</event>
</command>

When he has time, I think James plans to post more information on what users can do with the talking head. At this point, it's in an early phase.
« Last Edit: June 11, 2014, 01:55:20 PM by nime5ter »
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

bp_pbs

  • Contributor
  • ***
  • Posts: 94
  • Karma: 1
    • View Profile
Re: TalkingHeads
« Reply #7 on: June 11, 2014, 02:34:53 PM »
I changed XBMC video output to full-screen and off the True full-screen. Here is the code I have so far.

Code: [Select]
<?xml version="1.0" encoding="utf-8"?>
<!--C:\Users\Nick\Downloads\VcGrp_Daphne.xml-->
<VoiceCommands version="">
    <!--this is an exported VoxCommando group-->
    <commandGroup open="True" name="Daphne" enabled="True" prefix="" priority="0" requiredProcess="" description="">
        <command id="811" name="Show/Hide" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <if ifBlockDisabled="False" ifNot="False">
                <ifType>(A)Contains(B)</ifType>
                <ifParams>show,reveal,where, i need&amp;&amp;{1}</ifParams>
                <then>
                    <action>
                        <cmdType>Window.Focus</cmdType>
                        <params>
                            <param>xbmc</param>
                        </params>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>Window.Maximize</cmdType>
                        <params />
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>TTS.ShowHead</cmdType>
                        <params>
                            <param>True</param>
                        </params>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>Window.focus</cmdType>
                        <params>
                            <param>voxcommando</param>
                        </params>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>TTS.Speak</cmdType>
                        <params>
                            <param>How can I help you Mr. Ivory?| Yes Mr. Ivory!|Here I am Mr. Ivory.</param>
                        </params>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </then>
                <else />
            </if>
            <if ifBlockDisabled="False" ifNot="False">
                <ifType>(A)Contains(B)</ifType>
                <ifParams>conceal,hide, thats&amp;&amp;{1}</ifParams>
                <then>
                    <action>
                        <cmdType>TTS.Speak</cmdType>
                        <params>
                            <param>Okay, let me know if you need anything else.| Ok, I'll be over here if you need me.| Ok, let me know if I can help you.</param>
                        </params>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>TTS.ShowHead</cmdType>
                        <params>
                            <param>False</param>
                        </params>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>Window.Focus</cmdType>
                        <params>
                            <param>xbmc</param>
                        </params>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>Window.Normalize</cmdType>
                        <params />
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </then>
                <else />
            </if>
            <payloadList>show,hide,reveal,conceal, where, thats,i need</payloadList>
            <phrase>yourself,are you,all,you,your help</phrase>
            <phrase optional="true">for now</phrase>
        </command>
    </commandGroup>
</VoiceCommands>

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: TalkingHeads
« Reply #8 on: June 11, 2014, 03:59:42 PM »
In the next release I will see if there is a way to make the talking head appear in front of other windows without having to focus the rest of VoxCommando.