Sonos speech

Posted on
Sun Dec 21, 2014 8:27 am
pocster offline
User avatar
Posts: 276
Joined: Nov 15, 2014

Sonos speech

Hey Nick!

Fantastic plugin.
I've searched the forums and am sure this is possible but can't work it out!!

I want to be able to send speech (i.e. constructed speech not play an mp3) to a sonos device. (though perhaps the realtime speech simply creates an mp3??)

So (for example) the weather can be read out or some 'event' can be announced.

Can this be done?? :roll:

Cheers

Posted on
Sun Dec 21, 2014 8:39 am
pocster offline
User avatar
Posts: 276
Joined: Nov 15, 2014

Re: Sonos speech

I tried the group announcement thing but get

Sonos Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "plugin.py", line 159, in actionZP_announcement
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 994, in actionAnnouncement
<type 'exceptions.ValueError'>: invalid literal for int() with base 10: ''

Really I want to pragmatically create my speech string; then get the appropriate sonos player to say it.

Posted on
Sun Dec 21, 2014 8:45 am
pocster offline
User avatar
Posts: 276
Joined: Nov 15, 2014

Re: Sonos speech

Hmmm,

Seems to work kind of now. Volume is very low (even though Level is set to 100). Also any music doesn't resume after the speech (or do I need to set that up manually some how? ; like a trigger?)
So!; it seems I just need to be able to generate progmatically a string .....

Though some errors now!

Sonos Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "plugin.py", line 159, in actionZP_announcement
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 954, in actionAnnouncement
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 940, in actionStates
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 307, in SOAPSend
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/httplib.py", line 860, in endheaders
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/httplib.py", line 732, in _send_output
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/httplib.py", line 699, in send
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/httplib.py", line 683, in connect
<class 'socket.timeout'>: timed out

Posted on
Sun Dec 21, 2014 9:47 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos speech

You should be able to play constructed speech through either of the Announcement actions. For starters, can you tell me what version of the plugin you are running? You may not be on the latest (0.8.2) - if not, would you install and let's troubleshoot from there.

Thanks.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 4 guests