Group Announcement Error

Posted on
Mon Nov 30, 2015 4:51 am
farberm offline
Posts: 303
Joined: Feb 24, 2008

Group Announcement Error

Nick:

Can you give me any help with this error

Traceback (most recent call last):
File "plugin.py", line 175, in actionZP_announcementMP3
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1237, in actionAnnouncement
File "./lib/gtts/tts.py", line 90, in save
File "./lib/gtts/tts.py", line 108, in write_to_fp
File "./lib/requests/models.py", line 837, in raise_for_status
<class 'requests.exceptions.HTTPError'>: 503 Server Error: Service Unavailable for url: http://translate.google.com/translate_t ... 1&ie=UTF-8

Posted on
Mon Nov 30, 2015 10:01 am
nlagaros offline
Posts: 1627
Joined: Dec 20, 2010

Re: Group Announcement Error

This is Google - they are fighting back hard on automated requests to their TTS system. It is not something that we can resolve. Would you try the IVONA TTS as an alternative. I've switched to it and it has been pretty solid thus far.

Posted on
Mon Nov 30, 2015 6:17 pm
farberm offline
Posts: 303
Joined: Feb 24, 2008

Re: Group Announcement Error

Ok so still do not have it working. Here is how I have things set up.

1. Choose New Action - Name is Sonos Living Room Test Speak
2. Set type to Sonos: Group Announcemet MPS (from Sonos Actions)
3. Click Edit Action settings
4. Under first Zonos Player I chose Living Room (which is my Playbar)
5. Source is Ivona Test to Speech. (Yes I registered and entered my credentialss)
6. Message: I entered Lynne is home
7. Undder voice choose English,American-Salli
8. Under Level: 40
9. Save

Went to Browser actions an choose Sonos Living Room Test Speak

No sound comes from the speaker but the music cutsoff and does not come back on. Here is the output from the event log (debug)

WebServer request to execute action group "Sonos Living Room Test Speak" from 127.0.0.1
Action Group Sonos Living Room Test Speak
Sonos Debug zoneIP: 192.168.1.153, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetMediaInfo
Sonos Debug zoneIP: 192.168.1.153, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetPositionInfo
Sonos Debug zoneIP: 192.168.1.156, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetMediaInfo
Sonos Debug zoneIP: 192.168.1.156, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetPositionInfo
Sonos Debug zoneIP: 192.168.1.154, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetMediaInfo
Sonos Debug zoneIP: 192.168.1.154, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetPositionInfo
Sonos Debug zoneIP: 192.168.1.155, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetMediaInfo
Sonos Debug zoneIP: 192.168.1.155, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetPositionInfo
Sonos Debug zoneIP: 192.168.1.150, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetMediaInfo
Sonos Debug zoneIP: 192.168.1.150, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetPositionInfo
Sonos Debug zoneIP: 192.168.1.13, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetMediaInfo
Sonos Debug zoneIP: 192.168.1.13, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetPositionInfo
Sonos Debug zoneIP: 192.168.1.151, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetMediaInfo
Sonos Debug zoneIP: 192.168.1.151, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetPositionInfo
Sonos Debug zoneIP: 192.168.1.152, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetMediaInfo
Sonos Debug zoneIP: 192.168.1.152, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: GetPositionInfo
Sonos Announcement: lynne is home, Volume: 40
Sonos Debug Announcement: mute
Sonos Debug Announcement: set standalone, stop, turn off queue repeat
Sonos remove zone from group: Sonos - Living Room Playbar
Sonos Debug zoneIP: 192.168.1.153, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: BecomeCoordinatorOfStandaloneGroup
Sonos Debug zoneIP: 192.168.1.153, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: SetAVTransportURI
Sonos Debug Announcement: add announcement zones to group
Sonos Debug Announcement: set volume, unmute
Sonos Debug Current Volume: 40, New Volume: 40
Sonos Debug zoneIP: 192.168.1.153, soapRoot: /MediaRenderer, soapBranch: /RenderingControl, soapAction: SetVolume
Sonos Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "plugin.py", line 175, in actionZP_announcementMP3
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1296, in actionAnnouncement
File "./lib/mutagen/__init__.py", line 73, in __init__
File "./lib/mutagen/id3.py", line 2096, in load
File "./lib/mutagen/mp3.py", line 103, in __init__
File "./lib/mutagen/mp3.py", line 140, in __try
<class 'mutagen.mp3.HeaderNotFoundError'>: can't sync to an MPEG frame

Posted on
Tue Dec 01, 2015 1:08 pm
nlagaros offline
Posts: 1627
Joined: Dec 20, 2010

Re: Group Announcement Error

I am upgrading the mutagen libraries in the next release. Hopefully this resolves the error. Odd thing is that this exact action (with the same parameters) works fine for me.

Posted on
Sat Jan 02, 2016 7:57 am
nlagaros offline
Posts: 1627
Joined: Dec 20, 2010

Re: Group Announcement Error

I just posted v0.8.32. Can you give it a try and see if this error has gone away. Thanks.

Posted on
Wed Oct 17, 2018 2:49 pm
wideglidejrp offline
User avatar
Posts: 529
Joined: Jan 15, 2012
Location: Danbury, CT

Re: Group Announcement Error

I am using AWS Polly for a daily announcement. It works fine, but I am getting the following errors filling up my log. Anyone seen this?

Announcements Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 159, in runConcurrentThread
File "plugin.py", line 466, in updateAnnouncementStates
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 49, in literal_eval
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 37, in parse
SyntaxError: unexpected EOF while parsing (<unknown>, line 0)

Announcements Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

John R Patrick
Author of
Home Attitude

Posted on
Wed Oct 17, 2018 3:13 pm
jay (support) offline
Site Admin
User avatar
Posts: 16778
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Group Announcement Error

wideglidejrp wrote:
I am using AWS Polly for a daily announcement. It works fine, but I am getting the following errors filling up my log. Anyone seen this?

Announcements Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 159, in runConcurrentThread
File "plugin.py", line 466, in updateAnnouncementStates
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 49, in literal_eval
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 37, in parse
SyntaxError: unexpected EOF while parsing (<unknown>, line 0)

Announcements Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)


I think you posted this in the wrong place - that error appears to be from the Announcements plugin (not the Sonos plugin).

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Oct 17, 2018 3:16 pm
wideglidejrp offline
User avatar
Posts: 529
Joined: Jan 15, 2012
Location: Danbury, CT

Re: Group Announcement Error

Sorry; yes, I just figured that out. I do use announcements with Sonos but not with the Announcements plugin.

John R Patrick
Author of
Home Attitude

Posted on
Thu Oct 18, 2018 5:58 am
DaveL17 offline
User avatar
Posts: 5900
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Group Announcement Error

Hi John - Just to be sure I understand--you're using the Announcements Plugin but not with Sonos. As Jay suggests, we should move any discussion of errors to that forum, but before we do that, it looks like you're using an out of date version. The most current version is v1.0.01. Please update to the most current version to see if that takes care of it for you. If not, please do post a message to the Announcements Plugin forum and we'll work it out.

Dave

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Sun Jun 16, 2019 4:48 pm
denno offline
Posts: 77
Joined: Sep 17, 2004

Re: Group Announcement Error

Just tried this with Sonos plugin v1.0.15 and action configured with Google TTS. Got this error

Thanks–

---

Jun 16, 2019, 5:47:15 PM
Action Group office sonos test speak
Sonos Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "plugin.py", line 198, in actionZP_announcementMP3
File "/Library/Application Support/Perceptive Automation/Indigo 7.3/Plugins/Sonos-2.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1934, in actionAnnouncement
File "./lib/gtts/tts.py", line 111, in save
File "./lib/gtts/tts.py", line 124, in write_to_fp
File "./lib/gtts_token/gtts_token.py", line 28, in calculate_token
File "./lib/gtts_token/gtts_token.py", line 61, in _get_token_key
AttributeError: 'NoneType' object has no attribute 'group'

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests