Sonos - The Beginning

Posted on
Mon Jul 06, 2015 9:32 am
teejay6 offline
Posts: 44
Joined: Jan 31, 2011
Location: Menlo Park, CA

Re: Sonos - The Beginning

Just installed the Sonos plugin. Great work, Nick. This will keep me busy for a while.

Posted on
Mon Jul 06, 2015 1:21 pm
wideglidejrp offline
User avatar
Posts: 555
Joined: Jan 15, 2012
Location: Danbury, CT

Re: Sonos - The Beginning

I love the Sonos plugin! Most of what it can do is intuitive, but some things are not. Is there any documentation? If not, perhaps a community effort could create a user guide. I would be glad to participate in such an effort if others are interested. My immediate problem is I cannot get Sonos Favorite to play. I get the following....

Sonos Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "plugin.py", line 145, in actionZP_SonosFavorites
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos-2.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1026, in actionDirect
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos-2.indigoPlugin/Contents/Server Plugin/Sonos.py", line 994, in actionDirect
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'get'

John R Patrick
Author of
Home Attitude

Posted on
Tue Jul 28, 2015 2:56 am
shapa offline
Posts: 483
Joined: Sep 08, 2014
Location: Swindon

Re: Sonos - The Beginning

Sonos announcements stopped to work today, restart does not help.

" Sonos Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "plugin.py", line 172, in actionZP_announcementMP3
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1152, 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 Jul 28, 2015 7:28 am
shapa offline
Posts: 483
Joined: Sep 08, 2014
Location: Swindon

Re: Sonos - The Beginning

So, announcement creates empty announcement.mp3

What is the reason?

MacServer:Server Plugin macserver$ ls -la
total 592
drwxr-xr-x 18 macserver admin 612 Jul 28 14:27 .
drwxr-xr-x 4 macserver admin 136 Jul 5 13:12 ..
-rw-r--r-- 1 macserver admin 23326 Apr 1 06:45 Actions.xml
-rw-r--r-- 1 macserver admin 8307 Jan 12 2015 Devices.xml
-rw-r--r-- 1 macserver admin 167 Jul 28 2013 MenuItems.xml
-rw-r--r-- 1 macserver admin 365 Oct 17 2014 NOTES
-rw-r--r-- 1 macserver admin 6343 Mar 24 09:46 PluginConfig.xml
-rw-r--r-- 1 macserver admin 73153 Apr 17 08:17 Sonos.py
-rw-r--r-- 1 macserver admin 62357 Apr 17 17:30 Sonos.pyc
-rw-r--r-- 1 macserver admin 40124 Jan 30 2013 Sonos_silence.mp3
-rw-r--r-- 1 macserver admin 0 Jul 28 14:27 announcement.mp3
-rw-r----- 1 macserver admin 18417 Jul 28 14:27 coherence.log
-rw-r--r-- 1 macserver admin 7191 Jul 28 2013 indigoPluginUpdateChecker.py
-rw-r--r-- 1 macserver admin 4483 Apr 17 17:30 indigoPluginUpdateChecker.pyc
drwxr-xr-x 11 macserver admin 374 Jul 5 13:14 lib
-rw-r--r-- 1 macserver admin 7560 Apr 1 06:46 plugin.py
-rw------- 1 macserver admin 13441 Jul 21 2012 sonos_art.jpg
-rw-r--r-- 1 macserver admin 6111 Jan 15 2015 sonos_tv.jpg

Posted on
Tue Jul 28, 2015 8:45 pm
dsds offline
Posts: 8
Joined: Mar 01, 2015

Re: Sonos - The Beginning

shapa wrote:
Sonos announcements stopped to work today, restart does not help.

" Sonos Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "plugin.py", line 172, in actionZP_announcementMP3
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1152, 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"


I have this exact same issue as well.

Posted on
Tue Jul 28, 2015 8:47 pm
lkmiller offline
Posts: 2
Joined: May 19, 2014

Re: Sonos - The Beginning

hi -, great plugin, basic user everything been working in reference to announcements. Today, announcements stopped working. no changes to indigo or plugin. Tried restarting plugin and indigo, nothing worked, upgraded to latest plugin v0.8.13 from v08.09. Still not working, announcements have been working with triggers to announce Door open....., Further information, about 2 or 3 weeks ago, anytime announcement would execute Sonos would never return to the last playlist. I had to manually go reset the playlist and start play again. but as of recently 2/3 weeks once announcement would happen sonos would return to last song playing and resume play? (no changes made).

Indigo 6.0.14
Mac Mini OSX 10.9.4

any help appreciated-
thanks


from event log
Sonos Error Error in plugin execution ExecuteAction:

Traceback (most recent call last):
File "plugin.py", line 172, in actionZP_announcementMP3
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1152, 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
Wed Jul 29, 2015 5:28 pm
jens offline
Posts: 265
Joined: May 03, 2015
Location: Sweden

Re: Sonos - The Beginning

The same problem for me... Started today....
//Jens


Skickat från min iPad med Tapatalk

Posted on
Wed Jul 29, 2015 6:56 pm
dproctor offline
Posts: 48
Joined: Apr 23, 2012

Re: Sonos - The Beginning

Add me to the list of having the same issue now. Started yesterday for me. I hadn't changed anything. Just came home from work and the group announcements weren't working.

Posted on
Thu Jul 30, 2015 3:41 pm
shapa offline
Posts: 483
Joined: Sep 08, 2014
Location: Swindon

Re: Sonos - The Beginning

Probably something changed on the Google TTS side...

IMHO it is better to use build-in MacOS TTS engine - may be the quality is not that good (but for Russian in fact its sounds better than Google TTS), but it's not linked to Google and voice can be generated locally.

Many voices and languages are available

Just try (from a terminal window)

say "just a sample"

or

say "hello" -o hello.aiff
lame -m m hello.aiff hello.mp3

That's is.
It's truly not bad.

Everything is built-in. We don't need Google and internet connection dependency!

p.s. from 2011:

"These new voices, sourced from Nuance, are not only available in several dialects of English but also, in an OS X first, in several other languages. Text-to-speech voices are now available in Arabic, three different Chinese dialects, Czech, Danish, two varieties of Dutch, Finnish, two French dialects, German, Greek, Hindi, Hungarian, Indonesian, Italian, Japanese, Korean, Norwegian, Polish, two Portuguese dialects, Romanian, Russian, Slovak, two Spanish dialects, Swedish, Thai, and Turkish."

Maxims-MacBook-Pro:~ shapa$ say -v '?'
Agnes en_US # Isn't it nice to have a computer that will talk to you?
Albert en_US # I have a frog in my throat. No, I mean a real frog!
Alex en_US # Most people recognize me by my voice.
Alice it_IT # Salve, mi chiamo Alice e sono una voce italiana.
Alva sv_SE # Hej, jag heter Alva. Jag är en svensk röst.
Amelie fr_CA # Bonjour, je m’appelle Amelie. Je suis une voix canadienne.
Anna de_DE # Hallo, ich heiße Anna und ich bin eine deutsche Stimme.
Bad News en_US # The light you see at the end of the tunnel is the headlamp of a fast approaching train.
Bahh en_US # Do not pull the wool over my eyes.
Bells en_US # Time flies when you are having fun.
Boing en_US # Spring has sprung, fall has fell, winter's here and it's colder than usual.
Bruce en_US # I sure like being inside this fancy computer
Bubbles en_US # Pull the plug! I'm drowning!
Carmit he_IL # שלום. קוראים לי כרמית, ואני קול בשפה העברית.
Cellos en_US # Doo da doo da dum dee dee doodly doo dum dum dum doo da doo da doo da doo da doo da doo da doo
Damayanti id_ID # Halo, nama saya Damayanti. Saya berbahasa Indonesia.
Daniel en_GB # Hello, my name is Daniel. I am a British-English voice.
Deranged en_US # I need to go on a really long vacation.
Diego es_AR # Hola, me llamo Diego y soy una voz española.
Ellen nl_BE # Hallo, mijn naam is Ellen. Ik ben een Belgische stem.
Fiona en-scotland # Hello, my name is Fiona. I am a Scottish-English voice.
Fred en_US # I sure like being inside this fancy computer
Good News en_US # Congratulations you just won the sweepstakes and you don't have to pay income tax again.
Hysterical en_US # Please stop tickling me!
Ioana ro_RO # Bună, mă cheamă Ioana . Sunt o voce românească.
Joana pt_PT # Olá, chamo-me Joana e dou voz ao português falado em Portugal.
Junior en_US # My favorite food is pizza.
Kanya th_TH # สวัสดีค่ะ ดิฉันชื่อKanya
Karen en_AU # Hello, my name is Karen. I am an Australian-English voice.
Kathy en_US # Isn't it nice to have a computer that will talk to you?
Kyoko ja_JP # こんにちは、私の名前はKyokoです。日本語の音声をお届けします。
Laura sk_SK # Ahoj. Volám sa Laura . Som hlas v slovenskom jazyku.
Lekha hi_IN # नमस्कार, मेरा नाम लेखा है.Lekha मै हिंदी मे बोलने वाली आवाज़ हूँ.
Luciana pt_BR # Olá, o meu nome é Luciana e a minha voz corresponde ao português que é falado no Brasil
Maged ar_SA # مرحبًا اسمي Maged. أنا عربي من السعودية.
Mariska hu_HU # Üdvözlöm! Mariska vagyok. Én vagyok a magyar hang.
Mei-Jia zh_TW # 您好,我叫美佳。我說國語。
Melina el_GR # Γεια σας, ονομάζομαι Melina. Είμαι μια ελληνική φωνή.
Milena ru_RU # Здравствуйте, меня зовут Milena. Я – русский голос системы.
Moira en_IE # Hello, my name is Moira. I am an Irish-English voice.
Monica es_ES # Hola, me llamo Monica y soy una voz española.
Nora nb_NO # Hei, jeg heter Nora. Jeg er en norsk stemme.
Paulina es_MX # Hola, me llamo Paulina y soy una voz mexicana.
Pipe Organ en_US # We must rejoice in this morbid voice.
Princess en_US # When I grow up I'm going to be a scientist.
Ralph en_US # The sum of the squares of the legs of a right triangle is equal to the square of the hypotenuse.
Samantha en_US # Hello, my name is Samantha. I am an American-English voice.
Sara da_DK # Hej, jeg hedder Sara. Jeg er en dansk stemme.
Satu fi_FI # Hei, minun nimeni on Satu. Olen suomalainen ääni.
Sin-ji zh_HK # 您好,我叫 Sin-ji。我講廣東話。
Tessa en_ZA # Hello, my name is Tessa. I am a South African-English voice.
Thomas fr_FR # Bonjour, je m’appelle Thomas. Je suis une voix française.
Ting-Ting zh_CN # 您好,我叫Ting-Ting。我讲中文普通话。
Trinoids en_US # We cannot communicate with these carbon units.
Veena en_IN # Hello, my name is Veena. I am an Indian-English voice.
Vicki en_US # Isn't it nice to have a computer that will talk to you?
Victoria en_US # Isn't it nice to have a computer that will talk to you?
Whisper en_US # Pssssst, hey you, Yeah you, Who do ya think I'm talking to, the mouse?
Xander nl_NL # Hallo, mijn naam is Xander. Ik ben een Nederlandse stem.
Yelda tr_TR # Merhaba, benim adım Yelda. Ben Türkçe bir sesim.
Yuna ko_KR # 안녕하세요. 제 이름은 Yuna입니다. 저는 한국어 음성입니다.
Zarvox en_US # That looks like a peaceful planet.
Zosia pl_PL # Witaj. Mam na imię Zosia, jestem głosem kobiecym dla języka polskiego.
Zuzana cs_CZ # Dobrý den, jmenuji se Zuzana. Jsem český hlas.

Posted on
Fri Jul 31, 2015 12:05 am
jens offline
Posts: 265
Joined: May 03, 2015
Location: Sweden

Sonos - The Beginning

Get the same error when I t try this to...


Sent from my iPhone 6 using Tapatalk

Posted on
Fri Jul 31, 2015 9:26 pm
Indy_Larry offline
Posts: 133
Joined: Dec 03, 2013
Location: Indianapolis

Re: Sonos - The Beginning

Just tried re-enableing the Sonos plugin and I'm getting the following errors

Enabling plugin "Sonos 0.8.13"
Starting plugin "Sonos 0.8.13" (pid 95875)
Started plugin "Sonos 0.8.13"
Sonos Your plugin version, v0.8.13, is current.
Sonos Error There was an error reading the plugin preferences. Please check your configuration.
Sonos Restarting Sonos Plugin...
Sonos Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 58, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 191, in runConcurrentThread
File "plugin.py", line 63, in stopConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 289, in stopConcurrentThread
File "./lib/SonosEventLib.py", line 93, in ZMQ_Kill
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'close'

Sonos Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Sonos Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Sonos Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Sonos Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Sonos Manually checking for updates
Sonos Your plugin version, v0.8.13, is current.
Sonos Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Disabling plugin "Sonos 0.8.13"
Stopping plugin "Sonos 0.8.13" (pid 95875)
Sonos Error Error in plugin execution stopConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 63, in stopConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 289, in stopConcurrentThread
File "./lib/SonosEventLib.py", line 93, in ZMQ_Kill
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'close'

Stopped plugin "Sonos 0.8.13"

I have Indigo running on a MacPro v10.7.5 and Indigo v6.1.2

Larry

Insteon, Z Wave, Hue, Sonos

Posted on
Sat Aug 01, 2015 9:40 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos - The Beginning

Google made a change to their translate service, now requiring CAPTCHA responses to anything automated. There may be a workaround and I will look into this tonight. Also have been experimenting with MAC generated TTS, but that is longer term. Hopefully back soon with a fix.

Posted on
Wed Aug 05, 2015 4:26 am
jens offline
Posts: 265
Joined: May 03, 2015
Location: Sweden

Re: Sonos - The Beginning

Some news on this? Get the same error when using mp3 text??
Regards Jens


Sent from my iPhone 6 using Tapatalk

Posted on
Sun Aug 09, 2015 4:15 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Sonos - The Beginning

I just posted an update that should resolve the issue. Worked on my machine -- let me know how it fares on yours.

Posted on
Sun Aug 09, 2015 9:17 am
jens offline
Posts: 265
Joined: May 03, 2015
Location: Sweden

Re: Sonos - The Beginning

Now it works, but not MP3 files, Jens


Sent from my iPhone 6 using Tapatalk

Page 32 of 37 1 ... 29, 30, 31, 32, 33, 34, 35 ... 37

Who is online

Users browsing this forum: No registered users and 2 guests