Announcement

Collapse
No announcement yet.

Speak events no longer working

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

    Speak events no longer working

    None of my speak event is working. When i try to do test speak nothing happens. I've repeatedly click the test button more than 10 times and nada.

    This is what I'm seeing in the log

    12/15/2020 10:47:30 AM

    Chromecast
    Error
    System.Exception: Could not get seed from https://translate.google.com/ at HSPI_Chromecast.GTTSToken.GetTokenKey() at HSPI_Chromecast.GTTSToken.CalculateToken(String text, String seed) at HSPI_Chromecast.ChromecastTarget.SpeakTextEventHandler(Objec t sender, SpeakTextEventArgs args)

    12/15/2020 10:47:29 AM

    Chromecast
    Error
    System.Exception: Could not get seed from https://translate.google.com/ at HSPI_Chromecast.GTTSToken.GetTokenKey() at HSPI_Chromecast.GTTSToken.CalculateToken(String text, String seed) at HSPI_Chromecast.ChromecastTarget.SpeakTextEventHandler(Objec t sender, SpeakTextEventArgs args)

    12/15/2020 10:47:28 AM

    Chromecast
    Error
    System.Exception: Could not get seed from https://translate.google.com/ at HSPI_Chromecast.GTTSToken.GetTokenKey() at HSPI_Chromecast.GTTSToken.CalculateToken(String text, String seed) at HSPI_Chromecast.ChromecastTarget.SpeakTextEventHandler(Objec t sender, SpeakTextEventArgs args)

    12/15/2020 10:47:27 AM

    Chromecast
    Error
    System.Exception: Could not get seed from https://translate.google.com/ at HSPI_Chromecast.GTTSToken.GetTokenKey() at HSPI_Chromecast.GTTSToken.CalculateToken(String text, String seed) at HSPI_Chromecast.ChromecastTarget.SpeakTextEventHandler(Objec t sender, SpeakTextEventArgs args)

    12/15/2020 10:47:26 AM

    Chromecast
    Error
    System.Exception: Could not get seed from https://translate.google.com/ at HSPI_Chromecast.GTTSToken.GetTokenKey() at HSPI_Chromecast.GTTSToken.CalculateToken(String text, String seed) at HSPI_Chromecast.ChromecastTarget.SpeakTextEventHandler(Objec t sender, SpeakTextEventArgs args)


    #2
    you need to update to version beta 4.0.7
    read this thread for more information about this problem: https://forums.homeseer.com/forum/hs...hrows-an-error

    Comment


      #3
      Thanks switched over to latest beta and it's responding now.

      Comment


        #4
        I have a similar issue but with another error message when I try to run an event with TTS. It works the first time I restart HS4 but then it stops working.
        Latest Chromecast plugin 4.0.18 and latest HS4 4.1.18.0. It has been like this for 6 months. What is wrong:

        7/11/2021 8:09:12 AM

        HomeSeer
        Event
        Event Trigger "Lights Blink Hue Lights 2 times"

        7/11/2021 8:09:12 AM

        HomeSeer
        Device Control
        Device: First Floor Kitchen Dishwasher Status to Off (0)

        7/11/2021 8:09:08 AM

        Chromecast
        Error
        System.AggregateException: One or more errors occurred. (Too many open files) ---> System.Net.Http.HttpRequestException: Too many open files ---> System.Net.Sockets.SocketException: Too many open files at System.Net.Sockets.Socket..ctor (System.Net.Sockets.AddressFamily addressFamily, System.Net.Sockets.SocketType socketType, System.Net.Sockets.ProtocolType protocolType) [0x00069] in :0 at System.Net.Sockets.DualSocketMultipleConnectAsync..ctor (System.Net.Sockets.SocketType socketType, System.Net.Sockets.ProtocolType protocolType) [0x0000d] in :0 at System.Net.Sockets.Socket.ConnectAsync (System.Net.Sockets.SocketType socketType, System.Net.Sockets.ProtocolType protocolType, System.Net.Sockets.SocketAsyncEventArgs e) [0x00056] in :0 at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) [0x00058] in :0 --- End of inner exception stack trace --- at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) [0x001ac] in :0 at System.Net.Http.HttpConnectionPool.CreateConnectionAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00134] in :0 at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionA sync (System.Threading.Tasks.ValueTask`1[TResult] creationTask) [0x000a2] in :0 at System.Net.Http.HttpConnectionPool.SendWithRetryAsync (System.Net.Http.HttpRequestMessage request, System.Boolean doRequestAuth, System.Threading.CancellationToken cancellationToken) [0x00089] in :0 at System.Net.Http.RedirectHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x000ba] in :0 at HSPI_Chromecast.GoogleTts+LoggingHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x0014b] in :0 at System.Net.Http.HttpClient.FinishSendAsyncBuffered (System.Threading.Tasks.Task`1[TResult] sendTask, System.Net.Http.HttpRequestMessage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts) [0x0017e] in :0 --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in :0 at System.Threading.Tasks.Task`1[TResult].GetResultCore (System.Boolean waitCompletionNotification) [0x0002b] in :0 at System.Threading.Tasks.Task`1[TResult].get_Result () [0x0000f] in :0 at HSPI_Chromecast.GoogleTts.SpeakToFile (System.String text, System.String voice, System.String filePath) [0x0009f] in :0 ---> (Inner Exception #0) System.Net.Http.HttpRequestException: Too many open files ---> System.Net.Sockets.SocketException: Too many open files at System.Net.Sockets.Socket..ctor (System.Net.Sockets.AddressFamily addressFamily, System.Net.Sockets.SocketType socketType, System.Net.Sockets.ProtocolType protocolType) [0x00069] in :0 at System.Net.Sockets.DualSocketMultipleConnectAsync..ctor (System.Net.Sockets.SocketType socketType, System.Net.Sockets.ProtocolType protocolType) [0x0000d] in :0 at System.Net.Sockets.Socket.ConnectAsync (System.Net.Sockets.SocketType socketType, System.Net.Sockets.ProtocolType protocolType, System.Net.Sockets.SocketAsyncEventArgs e) [0x00056] in :0 at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) [0x00058] in :0 --- End of inner exception stack trace --- at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) [0x001ac] in :0 at System.Net.Http.HttpConnectionPool.CreateConnectionAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00134] in :0 at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionA sync (System.Threading.Tasks.ValueTask`1[TResult] creationTask) [0x000a2] in :0 at System.Net.Http.HttpConnectionPool.SendWithRetryAsync (System.Net.Http.HttpRequestMessage request, System.Boolean doRequestAuth, System.Threading.CancellationToken cancellationToken) [0x00089] in :0 at System.Net.Http.RedirectHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x000ba] in :0 at HSPI_Chromecast.GoogleTts+LoggingHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x0014b] in :0 at System.Net.Http.HttpClient.FinishSendAsyncBuffered (System.Threading.Tasks.Task`1[TResult] sendTask, System.Net.Http.HttpRequestMessage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts) [0x0017e] in :0 <---

        7/11/2021 8:09:07 AM

        HomeSeer
        TTS
        Speak (CHROMECAST:GOOGLE HOME LIVING ROOM,CHROMECAST:GOOGLE HOME MINI):The dishwasher cycle is finished

        7/11/2021 8:09:05 AM

        HomeSeer
        Event
        Event Trigger "Announcements Dishwasher cycle is finished"

        Comment


          #5
          Originally posted by srki View Post
          I have a similar issue but with another error message when I try to run an event with TTS. It works the first time I restart HS4 but then it stops working.
          Latest Chromecast plugin 4.0.18 and latest HS4 4.1.18.0. It has been like this for 6 months. What is wrong:

          7/11/2021 8:09:12 AM

          HomeSeer
          Event
          Event Trigger "Lights Blink Hue Lights 2 times"

          7/11/2021 8:09:12 AM

          HomeSeer
          Device Control
          Device: First Floor Kitchen Dishwasher Status to Off (0)

          7/11/2021 8:09:08 AM

          Chromecast
          Error
          System.AggregateException: One or more errors occurred. (Too many open files) ---> System.Net.Http.HttpRequestException: Too many open files ---> System.Net.Sockets.SocketException: Too many open files at System.Net.Sockets.Socket..ctor (System.Net.Sockets.AddressFamily addressFamily, System.Net.Sockets.SocketType socketType, System.Net.Sockets.ProtocolType protocolType) [0x00069] in :0 at System.Net.Sockets.DualSocketMultipleConnectAsync..ctor (System.Net.Sockets.SocketType socketType, System.Net.Sockets.ProtocolType protocolType) [0x0000d] in :0 at System.Net.Sockets.Socket.ConnectAsync (System.Net.Sockets.SocketType socketType, System.Net.Sockets.ProtocolType protocolType, System.Net.Sockets.SocketAsyncEventArgs e) [0x00056] in :0 at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) [0x00058] in :0 --- End of inner exception stack trace --- at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) [0x001ac] in :0 at System.Net.Http.HttpConnectionPool.CreateConnectionAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00134] in :0 at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionA sync (System.Threading.Tasks.ValueTask`1[TResult] creationTask) [0x000a2] in :0 at System.Net.Http.HttpConnectionPool.SendWithRetryAsync (System.Net.Http.HttpRequestMessage request, System.Boolean doRequestAuth, System.Threading.CancellationToken cancellationToken) [0x00089] in :0 at System.Net.Http.RedirectHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x000ba] in :0 at HSPI_Chromecast.GoogleTts+LoggingHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x0014b] in :0 at System.Net.Http.HttpClient.FinishSendAsyncBuffered (System.Threading.Tasks.Task`1[TResult] sendTask, System.Net.Http.HttpRequestMessage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts) [0x0017e] in :0 --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in :0 at System.Threading.Tasks.Task`1[TResult].GetResultCore (System.Boolean waitCompletionNotification) [0x0002b] in :0 at System.Threading.Tasks.Task`1[TResult].get_Result () [0x0000f] in :0 at HSPI_Chromecast.GoogleTts.SpeakToFile (System.String text, System.String voice, System.String filePath) [0x0009f] in :0 ---> (Inner Exception #0) System.Net.Http.HttpRequestException: Too many open files ---> System.Net.Sockets.SocketException: Too many open files at System.Net.Sockets.Socket..ctor (System.Net.Sockets.AddressFamily addressFamily, System.Net.Sockets.SocketType socketType, System.Net.Sockets.ProtocolType protocolType) [0x00069] in :0 at System.Net.Sockets.DualSocketMultipleConnectAsync..ctor (System.Net.Sockets.SocketType socketType, System.Net.Sockets.ProtocolType protocolType) [0x0000d] in :0 at System.Net.Sockets.Socket.ConnectAsync (System.Net.Sockets.SocketType socketType, System.Net.Sockets.ProtocolType protocolType, System.Net.Sockets.SocketAsyncEventArgs e) [0x00056] in :0 at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) [0x00058] in :0 --- End of inner exception stack trace --- at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) [0x001ac] in :0 at System.Net.Http.HttpConnectionPool.CreateConnectionAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00134] in :0 at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionA sync (System.Threading.Tasks.ValueTask`1[TResult] creationTask) [0x000a2] in :0 at System.Net.Http.HttpConnectionPool.SendWithRetryAsync (System.Net.Http.HttpRequestMessage request, System.Boolean doRequestAuth, System.Threading.CancellationToken cancellationToken) [0x00089] in :0 at System.Net.Http.RedirectHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x000ba] in :0 at HSPI_Chromecast.GoogleTts+LoggingHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x0014b] in :0 at System.Net.Http.HttpClient.FinishSendAsyncBuffered (System.Threading.Tasks.Task`1[TResult] sendTask, System.Net.Http.HttpRequestMessage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts) [0x0017e] in :0 <---

          7/11/2021 8:09:07 AM

          HomeSeer
          TTS
          Speak (CHROMECAST:GOOGLE HOME LIVING ROOM,CHROMECAST:GOOGLE HOME MINI):The dishwasher cycle is finished

          7/11/2021 8:09:05 AM

          HomeSeer
          Event
          Event Trigger "Announcements Dishwasher cycle is finished"
          the "System.Net.Http.HttpRequestException: Too many open files" indicates you've exhausted the open file descriptor limit on Linux.

          Can you run the following command in a console opened on your HS machine:

          Code:
          cat /proc/sys/fs/file-nr
          The file-nr file displays three parameters:
          • the total allocated file handles.
          • the number of currently used file handles (with the 2.4 kernel); or the number of currently unused file handles (with the 2.6 kernel).
          • the maximum file handles that can be allocated (also found in /proc/sys/fs/file-max).

          Comment


            #6
            Originally posted by spud View Post

            the "System.Net.Http.HttpRequestException: Too many open files" indicates you've exhausted the open file descriptor limit on Linux.

            Can you run the following command in a console opened on your HS machine:

            Code:
            cat /proc/sys/fs/file-nr
            The file-nr file displays three parameters:
            • the total allocated file handles.
            • the number of currently used file handles (with the 2.4 kernel); or the number of currently unused file handles (with the 2.6 kernel).
            • the maximum file handles that can be allocated (also found in /proc/sys/fs/file-max).
            Hi
            Output:

            running command cat /proc/sys/fs/file-nr
            2080 0 2147483647

            Comment


              #7
              I have the same problems that my TTS isn't spoken. The speakers stay on buffering. I already found out what is going wrong, i only can't find a way to fix it.
              My system has 2 lan adapters, 1 is actually a virtual one and only needed for some legacy software.
              And when i test a TTS the IP/Chromecast/audio/***.mp3 is the IP of the wrong adapter and not the IP of homeseer.
              Any suggestions to fix this?

              The homeseer help page also shows the wrong IP. Seems to be a HS4 problem instead of a plugin in
              fixed it with: the following in the settings.ini
              gServerAddressBind=192.168.x.y (where x y is the correct IP)

              Comment


                #8
                Originally posted by The-Source View Post
                I have the same problems that my TTS isn't spoken. The speakers stay on buffering. I already found out what is going wrong, i only can't find a way to fix it.
                My system has 2 lan adapters, 1 is actually a virtual one and only needed for some legacy software.
                And when i test a TTS the IP/Chromecast/audio/***.mp3 is the IP of the wrong adapter and not the IP of homeseer.
                Any suggestions to fix this?
                In Setup > Labs, enter the correct IP of homeseer in "Bind Server to IP address", Save then restart HS4

                Comment


                  #9
                  Originally posted by spud View Post

                  In Setup > Labs, enter the correct IP of homeseer in "Bind Server to IP address", Save then restart HS4
                  I've been experiencing a failure of the Chromecast devices to "speak" phrases. I tried your suggestion, and it killed the HS4 UI (I can't reach the page's IP address in a browser). I can still SSH into the machine. How can I undo this? Thanks.

                  Comment


                    #10
                    Originally posted by SteveW View Post

                    I've been experiencing a failure of the Chromecast devices to "speak" phrases. I tried your suggestion, and it killed the HS4 UI (I can't reach the page's IP address in a browser). I can still SSH into the machine. How can I undo this? Thanks.
                    edit Config/settings.ini and delete the "gServerAddressBind=..." line

                    Comment


                      #11
                      Originally posted by spud View Post

                      edit Config/settings.ini and delete the "gServerAddressBind=..." line
                      Thanks!

                      Comment

                      Working...
                      X