Announcement

Collapse
No announcement yet.

Speak causes disconnect to Squeezebox

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

    Speak causes disconnect to Squeezebox

    I have a simple manual event to test Speak to squeezebox players using TTS.

    It runs and speaks on the squeezeboxes as expected however the plugin has an issue and has to restart whenever a speak cmd is sent. See log

    Code:
    [COLOR=#000000]Dec-21 08:05:28 [/COLOR] <table class="log_table_row" cellspacing="0"><tbody><tr><td class="LogDateShort LogDateTime1" colspan="1" style=" white-space: nowrap;" align="left">
    </td><td class="LogPri1" colspan="1" align="left">  </td><td class="LogType1" colspan="3" align="left"> [COLOR=#000000] Info [/COLOR] </td><td class="LogEntry1" colspan="8" align="left"> [COLOR=#000000] Plugin SqueezeBox has connected. IP:127.0.0.1:62812 [/COLOR] </td></tr> </tbody></table>  <table class="log_table_row" cellspacing="0"><tbody><tr> <td class="LogDateShort LogDateTime0" colspan="1" style=" white-space: nowrap;" align="left"> [COLOR=#D58000] Dec-21 08:05:28 [/COLOR] </td><td class="LogPri0" colspan="1" align="left">  </td><td class="LogType0" colspan="3" align="left"> [COLOR=#D58000] Warning [/COLOR] </td><td class="LogEntry0" colspan="8" align="left"> [COLOR=#D58000] I/O interface SqueezeBox is down, executable is not running, restarting ... [/COLOR] </td></tr> </tbody></table>  <table class="log_table_row" cellspacing="0"><tbody><tr> <td class="LogDateShort LogDateTime1" colspan="1" style=" white-space: nowrap;" align="left"> [COLOR=#000000] Dec-21 08:05:02 [/COLOR] </td><td class="LogPri1" colspan="1" align="left">  </td><td class="LogType1" colspan="3" align="left"> [COLOR=#000000] Info [/COLOR] </td><td class="LogEntry1" colspan="8" align="left"> [COLOR=#000000] Plugin SqueezeBox with instance: Player_01d154f3853a has disconnected [/COLOR] </td></tr> </tbody></table>  <table class="log_table_row" cellspacing="0"><tbody><tr> <td class="LogDateShort LogDateTime0" colspan="1" style=" white-space: nowrap;" align="left"> [COLOR=#000000] Dec-21 08:05:02 [/COLOR] </td><td class="LogPri0" colspan="1" align="left">  </td><td class="LogType0" colspan="3" align="left"> [COLOR=#000000] Info [/COLOR] </td><td class="LogEntry0" colspan="8" align="left"> [COLOR=#000000] Plugin SqueezeBox with instance: Player_016620d5ed93 has disconnected [/COLOR] </td></tr> </tbody></table>  <table class="log_table_row" cellspacing="0"><tbody><tr> <td class="LogDateShort LogDateTime1" colspan="1" style=" white-space: nowrap;" align="left"> [COLOR=#000000] Dec-21 08:05:02 [/COLOR] </td><td class="LogPri1" colspan="1" align="left">  </td><td class="LogType1" colspan="3" align="left"> [COLOR=#000000] Info [/COLOR] </td><td class="LogEntry1" colspan="8" align="left"> [COLOR=#000000] Plugin SqueezeBox with instance: Player_00042026ad81 has disconnected [/COLOR] </td></tr> </tbody></table>  <table class="log_table_row" cellspacing="0"><tbody><tr> <td class="LogDateShort LogDateTime0" colspan="1" style=" white-space: nowrap;" align="left"> [COLOR=#000000] Dec-21 08:05:02 [/COLOR] </td><td class="LogPri0" colspan="1" align="left">  </td><td class="LogType0" colspan="3" align="left"> [COLOR=#000000] Info [/COLOR] </td><td class="LogEntry0" colspan="8" align="left"> [COLOR=#000000] Plugin SqueezeBox with instance: Player_0004202c16ee has disconnected [/COLOR] </td></tr> </tbody></table>  <table class="log_table_row" cellspacing="0"><tbody><tr> <td class="LogDateShort LogDateTime1" colspan="1" style=" white-space: nowrap;" align="left"> [COLOR=#000000] Dec-21 08:05:02 [/COLOR] </td><td class="LogPri1" colspan="1" align="left">  </td><td class="LogType1" colspan="3" align="left"> [COLOR=#000000] Info [/COLOR] </td><td class="LogEntry1" colspan="8" align="left"> [COLOR=#000000] Plugin SqueezeBox with instance: Player_0004202d864a has disconnected [/COLOR] </td></tr> </tbody></table>  <table class="log_table_row" cellspacing="0"><tbody><tr> <td class="LogDateShort LogDateTime0" colspan="1" style=" white-space: nowrap;" align="left"> [COLOR=#000000] Dec-21 08:05:02 [/COLOR] </td><td class="LogPri0" colspan="1" align="left">  </td><td class="LogType0" colspan="3" align="left"> [COLOR=#000000] Info [/COLOR] </td><td class="LogEntry0" colspan="8" align="left"> [COLOR=#000000] Plugin SqueezeBox with instance: Player_000420232915 has disconnected [/COLOR] </td></tr> </tbody></table>  <table class="log_table_row" cellspacing="0"><tbody><tr> <td class="LogDateShort LogDateTime1" colspan="1" style=" white-space: nowrap;" align="left"> [COLOR=#000000] Dec-21 08:05:02 [/COLOR] </td><td class="LogPri1" colspan="1" align="left">  </td><td class="LogType1" colspan="3" align="left"> [COLOR=#000000] Info [/COLOR] </td><td class="LogEntry1" colspan="8" align="left"> [COLOR=#000000] Plugin SqueezeBox with instance: Player_0004202212d4 has disconnected [/COLOR] </td></tr> </tbody></table>  <table class="log_table_row" cellspacing="0"><tbody><tr> <td class="LogDateShort LogDateTime0" colspan="1" style=" white-space: nowrap;" align="left"> [COLOR=#000000] Dec-21 08:05:02 [/COLOR] </td><td class="LogPri0" colspan="1" align="left">  </td><td class="LogType0" colspan="3" align="left"> [COLOR=#000000] Info [/COLOR] </td><td class="LogEntry0" colspan="8" align="left"> [COLOR=#000000] Plugin SqueezeBox with instance: Player_00042016c22e has disconnected [/COLOR] </td></tr> </tbody></table>  <table class="log_table_row" cellspacing="0"><tbody><tr> <td class="LogDateShort LogDateTime1" colspan="1" style=" white-space: nowrap;" align="left"> [COLOR=#000000] Dec-21 08:05:02 [/COLOR] </td><td class="LogPri1" colspan="1" align="left">  </td><td class="LogType1" colspan="3" align="left"> [COLOR=#000000] Info [/COLOR] </td><td class="LogEntry1" colspan="8" align="left"> [COLOR=#000000] Plugin SqueezeBox with instance:  has disconnected [/COLOR] </td></tr> </tbody></table>  <table class="log_table_row" cellspacing="0"><tbody><tr> <td class="LogDateShort LogDateTime0" colspan="1" style=" white-space: nowrap;" align="left"> [COLOR=#000000] Dec-21 08:05:00 [/COLOR] </td><td class="LogPri0" colspan="1" align="left">  </td><td class="LogType0" colspan="3" align="left"> [COLOR=#000000] Event [/COLOR] </td><td class="LogEntry0" colspan="8" align="left"> [COLOR=#000000] Event Trigger "Speaker Speak Time" [/COLOR] </td></tr> </tbody></table>  <table class="log_table_row" cellspacing="0"><tbody><tr> <td class="LogDateShort LogDateTime1" colspan="1" style=" white-space: nowrap;" align="left"> [COLOR=#000000] Dec-21 08:05:00 [/COLOR] </td><td class="LogPri1" colspan="1" align="left">  </td><td class="LogType1" colspan="3" align="left"> [COLOR=#000000] Event [/COLOR] </td><td class="LogEntry1" colspan="8" align="left"> [COLOR=#000000] Event Speaker Speak Time triggered by the event page 'Run' button. [/COLOR]</td></tr></tbody></table>

    #2
    No one can help with this issue? It really reduces the usefulness of this feature.

    Comment


      #3
      Originally posted by hagak View Post
      No one can help with this issue? It really reduces the usefulness of this feature.
      What versions of HS, the plugin and OS are you running on? If the plugin crashes, check the Windows logs (assuming you are running on Windows) to see if there are any additional details on the reasons for the crash. Maybe post screenshots of the Windows TTS (text to speech config) and also the plugin's Speak Proxy tab under Configuration. The more detailed the info you provide, the more likely someone can help you. I'm using the speech functionality on W7 64 bit without any problems, and under XP 32 bit before, but did have to stop using remote desktop to my HS system as it messed up the sound/TTS settings. I use VNC now and it's been very reliable since I did that.

      Cheers
      Al
      HS 4.2.8.0: 2134 Devices 1252 Events
      Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

      Comment


        #4
        Where is the Windows TTS config found?

        Current Date/Time: 1/1/2017 8:16:14 PM
        HomeSeer Version: HS3 Standard Edition 3.0.0.298
        Operating System: Microsoft Windows Server 2016 Standard - Server
        System Uptime: 1 Day 22 Hours 11 Minutes 38 Seconds
        IP Address: 192.168.10.134
        Number of Devices: 427
        Number of Events: 12
        Available Threads: 400

        Enabled Plug-Ins
        3.0.0.13: Ecobee
        3.6.5.0: Harmony Hub
        3.0.0.68: HSTouch Server
        3.0.0.31: ISYInsteon
        3.1.4.9: SqueezeBox
        3.0.6020.17037: UltraM1G3
        Attached Files

        Comment


          #5
          Control Panel: %windir%\SysWOW64\speech\SpeechUX\sapi.cpl

          My guess is that the Server version of the OS is missing some files. Are you connecting to it using RDP? Any errors in the Windows Event Viewer when the plugin crashes?
          HS 4.2.8.0: 2134 Devices 1252 Events
          Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

          Comment


            #6
            Check the event logs and this is the output:
            Code:
            Faulting application name: HSPI_SqueezeBox.exe, version: 3.1.4.9, time stamp: 0x57e7ed76
            Faulting module name: OLEAUT32.dll, version: 10.0.14393.447, time stamp: 0x5819c2b5
            Exception code: 0xc0000005
            Fault offset: 0x00013a9c
            Faulting process id: 0x1618
            Faulting application start time: 0x01d26312a3e4b1be
            Faulting application path: C:\Program Files (x86)\HomeSeer HS3\HSPI_SqueezeBox.exe
            Faulting module path: C:\Windows\System32\OLEAUT32.dll
            Report Id: f06ff6c0-24fa-4f35-a90d-c5fa9b82cbc8
            Faulting package full name: 
            Faulting package-relative application ID:
            Code:
            Application: HSPI_SqueezeBox.exe
            Framework Version: v4.0.30319
            Description: The process was terminated due to an unhandled exception.
            Exception Info: System.AccessViolationException
               at Microsoft.Win32.Win32Native.SysStringByteLen(IntPtr)
               at System.StubHelpers.BSTRMarshaler.ConvertToManaged(IntPtr)
               at HSPI_SqueezeBox.HSPI.mciGetErrorString(Int32, System.String ByRef, UInt32)
            Possible that it does not have enough permission to run?

            Comment


              #7
              That's pretty much the same errors I had when I was using RDP to access my system. The issue went away when I started using VNC.

              Code:
              Faulting application name: HSPI_SqueezeBox.exe, version: 3.1.4.8, time stamp: 0x575c11a8
              Faulting module name: OLEAUT32.dll, version: 6.1.7601.23452, time stamp: 0x57349ed8
              Exception code: 0xc0000005
              Fault offset: 0x000046b1
              Faulting process id: 0x2114
              Faulting application start time: 0x01d1fb46fcc1db34
              Faulting application path: C:\program files (x86)\homeseer hs3\HSPI_SqueezeBox.exe
              Faulting module path: C:\Windows\syswow64\OLEAUT32.dll
              Report Id: 9c3ea1be-675f-11e6-b11e-003018cb7d33
              Code:
              Application: HSPI_SqueezeBox.exe
              Framework Version: v4.0.30319
              Description: The process was terminated due to an unhandled exception.
              Exception Info: System.AccessViolationException
                 at Microsoft.Win32.Win32Native.SysStringByteLen(IntPtr)
                 at System.StubHelpers.BSTRMarshaler.ConvertToManaged(IntPtr)
                 at HSPI_SqueezeBox.HSPI.mciGetErrorString(Int32, System.String ByRef, UInt32)
              HS 4.2.8.0: 2134 Devices 1252 Events
              Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

              Comment


                #8
                Okay I have a theory as to the issue. Apparently the SAPI requires a soundcard to work. Well my homeseer server is a VM on an Esxi machine, no soundcard. However if I RDP into the server and connect the Remote soundcard via RDP it works fine everytime.

                Really annoying that it requires on a soundcard device even though it really has no need for one. This may be a windows limitation but I am not sure.

                Comment


                  #9
                  Suppose one solution would be to just plug a USB soundcard into my Esxi host and pass it through to homeseer, but that is a bit of a kludge. Also I believe if I do this I can not pass through usb devices to any other VM.

                  Comment


                    #10
                    Sorry hagak missed that one and thanks sparkman for responding. The plugin is using hs.spreaktofile to generate the voice files and for this it needs a sound backend (and at least one voice installed); you could try this script API separately to ensure this is working fine and/or the HS3 speaker client to get things setup.

                    Comment

                    Working...
                    X