Announcement

Collapse
No announcement yet.

second speaker app

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    second speaker app

    Ok another newbie question, I am trying to run a second speaker app on second sound card, following instructions in help files, I guess i just dont get it. I right clic on the shortcut,change target field exactly as in example and get error message PROBLEM WITH SHORTCUT NAME SPECIFIED IN TARGETBOX NOT VALID, MAKE SURE PATH AND FILE ARE CORRECT.
    can someone make this idiot proof for me?


    Example

    To start the speaker client with an instance name of 'Night':
    C:\Program Files\HomeSeer 2\Speaker.exe Night
    If you are starting the speaker client from a shortcut that you have added to your Startup folder in Windows, you would add the instance name to the Target field of the shortcut, which would look like this:
    <!--(Table)===================================================== ====--><TABLE class=whs3 cellSpacing=0 width="64.09%" x-use-null-cells><SCRIPT language=JavaScript><!--if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4)) document.write("</table><table x-use-null-cells width='64.092%' cellspacing='0' border='1' bordercolor='black' bordercolorlight='black' bordercolordark='black'>");//--></SCRIPT><COLGROUP><COL class=whs4><COL class=whs5><TBODY><TR vAlign=top><TD class=whs6 width="50%">
    </TD></TR></TBODY></TABLE>

    Thanks

    Jim

    #2
    Jim,
    The best way to start another speaker app is to edit the startup.txt file an add the second instance there is you are starting these from the HomeSeer server. Are you starting these on the HS server or a remote server?
    -Rupp
    sigpic

    Comment


      #3
      thanks for the quick response,

      i am TRYING to start a second at the HS server

      jim

      Comment


        #4
        Here's the lines from my startup.txt file to lauch 2 speaker apps.

        ' if speaker client is not running, start it
        if not hs.IsApplicationRunning("Speaker") then
        hs.Launch hs.GetAppPath & "\Speaker.exe","Main","",0
        hs.Launch hs.GetAppPath & "\Speaker.exe","HomePC","",0
        end if

        Once they startup you need to edit the connection info by right clicking on them.
        -Rupp
        sigpic

        Comment


          #5
          Some times the second Speaker client may throw an error if two speaker clients are trying to access the grammar file simultaneously. To avoid that give hs.waitsecs between two launches.
          Like this:
          ' if speaker client is not running, start it
          if not hs.IsApplicationRunning("Speaker") then
          hs.Launch hs.GetAppPath & "\Speaker.exe","Main","",0

          hs.WaitSecs 2

          Comment


            #6
            Rupp you are a gentleman thanks again,
            was that information available somewhere?
            I searched everywhere and found only that info on modifying the shortcut

            Jim

            Comment


              #7
              and thanks ssk I did have a grammar file error on one start up, perhaps due to both apps starting close to simultanously, so i did add your suggested pause

              Jim

              Comment


                #8
                Originally posted by Rupp View Post
                Here's the lines from my startup.txt file to lauch 2 speaker apps.

                ' if speaker client is not running, start it
                if not hs.IsApplicationRunning("Speaker") then
                hs.Launch hs.GetAppPath & "\Speaker.exe","Main","",0
                hs.Launch hs.GetAppPath & "\Speaker.exe","HomePC","",0
                end if

                Once they startup you need to edit the connection info by right clicking on them.
                Looking for an example for doing this in HS3 with startup.vb (instead of startup.txt). I'm sure there is one somewhere but I can't seem to find it.

                Comment


                  #9
                  Here just run different speaker apps on different directories on my SAPI VB. Each of the speaker apps running use a different TTS and have a different name. On the Oracle VB they all share one audio card on the Ubuntu main OS.

                  IE:

                  speaker 1 ==> /homeseer/speaker1/speaker.exe
                  speaker 2 ==> /homeseer/speaker2/speaker.exe

                  on and on here for 5 instances of speaker dot exe. You can also run multiple instances using different config files...

                  speaker.exe name

                  In the windows Start Up Delayer application to start speaker and if need be Homeseer. If it starts and there is no HS connection then after HS starts it will connect.

                  It is a PITA to direct SAPI to two different audio cards as it will keep defaulting to primary card even after you save it. Years ago Dan here on the forum did his HS sound using multiple USB audio cards and adjusted the registry to make this work. Today with Windows 10 it will be much more difficult.
                  - Pete

                  Auto mator
                  Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb- Mono 6.12.X - HSTouch on Intel tabletop tablets
                  Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro - Mono 6.12.X
                  HS4 Pro - V4.1.11.0 - Ubuntu 20.01/VB W7e 64 bit Intel Kaby Lake CPU - 32Gb - Mono
                  6.10.0.104
                  HS4 Lite -

                  X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Smartthings hub, Hubitat Hub, and Home Assistant

                  Comment

                  Working...
                  X