Hi
I am looking at a way to speech text throught a specific SONOS device by sending a HTTP command from WAN
I had been working around a solution where I was changing a device string and have a script catch the LAST-CHANGE value to speak the device value but it looks like the plugin don't like the way I am doing thing, I have a lot of :
Error in DoCheckAnnouncementQueue. 100 seconds expired since the announcement started and no end was received after wich all speak command stops for a while
Here is my script where I pass the ID of a device that contains a string separated in two parts : "Sonos_speaker"|"message to speak"
Sub Main(ByVal parm as String)
Dim WhichSpkr as string
Dim Msg As String
Msg=""
Dim DeviceString as string
Dim ParmArray() As String
Dim Speaker as string
DeviceString = hs.DeviceString(parm)
ParmArray = DeviceString.ToString.Split("|")
WhichSpkr = ParmArray(0)
Msg = ParmArray(1)
Speaker = "$SONOS$" & WhichSpkr & "$"
hs.WriteLog("Speak.vb", "Message received from HomeRemote: " & WhichSpkr & "---" & Msg & " " & Speaker)
hs.speak(" " & Msg, True, Speaker)
End Sub
Can someone either tell me if I am doing something wrong in my script or another way to have Sonos speak a string I send from my Ios app ?
thanks
I am looking at a way to speech text throught a specific SONOS device by sending a HTTP command from WAN
I had been working around a solution where I was changing a device string and have a script catch the LAST-CHANGE value to speak the device value but it looks like the plugin don't like the way I am doing thing, I have a lot of :
Error in DoCheckAnnouncementQueue. 100 seconds expired since the announcement started and no end was received after wich all speak command stops for a while
Here is my script where I pass the ID of a device that contains a string separated in two parts : "Sonos_speaker"|"message to speak"
Sub Main(ByVal parm as String)
Dim WhichSpkr as string
Dim Msg As String
Msg=""
Dim DeviceString as string
Dim ParmArray() As String
Dim Speaker as string
DeviceString = hs.DeviceString(parm)
ParmArray = DeviceString.ToString.Split("|")
WhichSpkr = ParmArray(0)
Msg = ParmArray(1)
Speaker = "$SONOS$" & WhichSpkr & "$"
hs.WriteLog("Speak.vb", "Message received from HomeRemote: " & WhichSpkr & "---" & Msg & " " & Speaker)
hs.speak(" " & Msg, True, Speaker)
End Sub
Can someone either tell me if I am doing something wrong in my script or another way to have Sonos speak a string I send from my Ios app ?
thanks
Comment