Ivona TTS issues

Posted on
Tue Jan 05, 2016 4:33 pm
Asconasny offline
Posts: 161
Joined: Jan 16, 2015

Ivona TTS issues

Hi.
Great plugin!

Im trying to get group announcement working with Ivona.
Have done the registration part and everything seems ok.

But when i try to execute an group announcement i get this error message:

Sonos Error Error in plugin execution ExecuteAction:
Traceback (most recent call last):
File "plugin.py", line 196, in actionZP_announcementMP3
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1396, in actionAnnouncement
File "./lib/mutagen/_file.py", line 42, in __init__
File "./lib/mutagen/id3/__init__.py", line 1093, in load
File "./lib/mutagen/mp3.py", line 185, in __init__
File "./lib/mutagen/mp3.py", line 223, in __try
<class 'mutagen.mp3.HeaderNotFoundError'>: can't sync to an MPEG frame

Any clue whats going on?

i use the Sonos 0.8.32 version

Regards
Asconasny

Posted on
Sun Jan 10, 2016 7:24 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Ivona TTS issues

I just posted a new version (v0.8.33) that should deal with this error. I'm pretty sure it was a timing issue. Please give it a shot. Thanks.

Posted on
Sun Jan 10, 2016 10:54 am
Asconasny offline
Posts: 161
Joined: Jan 16, 2015

Re: Ivona TTS issues

Hi,
Thanks for the update, i now get this error when i try to make a announcement

Sonos Error Error in plugin execution ExecuteAction:
Traceback (most recent call last):
File "plugin.py", line 202, in actionZP_announcementMP3
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1526, in actionAnnouncement
<type 'exceptions.AttributeError'>: 'module' object has no attribute 'errorLog'

Any suggestions what is going on?

Regards
Asconasny

Posted on
Sun Jan 10, 2016 11:34 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Ivona TTS issues

It's actually the same error. I have a typo in the source code that prints out the error. This is pretty strange. Are you able to navigate to the plugin directory in a terminal window and look for the file announcement.mp3? Check that the file size is greater than zero. Also, can you tell me all the parameters that you used in the announcement action.

Thanks.

Posted on
Mon Jan 11, 2016 3:08 am
Asconasny offline
Posts: 161
Joined: Jan 16, 2015

Re: Ivona TTS issues

Hi.

As i can see the Announcement.mp3 shows 0B

Please see screenshots
Image

Image

Posted on
Mon Jan 11, 2016 5:47 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Ivona TTS issues

Just came to me now - but have you correctly entered the Ivona access key and password into the plugin configuration? I also read that the activation for Ivona sometimes can take a few hours.


Sent from my iPhone using Tapatalk

Posted on
Mon Jan 11, 2016 7:44 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Ivona TTS issues

We can find out for sure what is going wrong by running the script that creates the MP3 file manually. In the same directory you posted earlier, execute the script pyvona_voices.py. It will read parameters from the pyvona.input file that was created when you first executed the announcement action. Any errors should be displayed in the terminal.

Posted on
Mon Jan 11, 2016 9:57 am
kidney offline
Posts: 240
Joined: Jul 15, 2007

Re: Ivona TTS issues

Here is the result for me

Traceback (most recent call last):
File "Server Plugin/pyvona_voices.py", line 7, in <module>
import pyvona
ImportError: No module named pyvona
Last edited by kidney on Mon Jan 11, 2016 10:19 am, edited 1 time in total.

Posted on
Mon Jan 11, 2016 10:12 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Ivona TTS issues

That is a pretty odd one. What version of OS X are you running? If you type which python2.7 in a terminal window, does it find it? If it is really not on the machine, I suppose it can be installed. Hopefully not too big of an issue for you?

kidney wrote:
here is the result for me
Code: Select all
env: python2.7: No such file or directory

Posted on
Mon Jan 11, 2016 10:24 am
kidney offline
Posts: 240
Joined: Jul 15, 2007

Re: Ivona TTS issues

I'M running 10.6 and just re-installed python 2.7.11 , just to be on the safe side

Posted on
Mon Jan 11, 2016 10:55 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Ivona TTS issues

I hope that works!

Posted on
Mon Jan 11, 2016 11:01 am
kidney offline
Posts: 240
Joined: Jul 15, 2007

Re: Ivona TTS issues

Here is the result

Code: Select all
24:Contents root# python2.7 Server\ Plugin/pyvona_voices.py
Traceback (most recent call last):
  File "Server Plugin/pyvona_voices.py", line 7, in <module>
    import pyvona
ImportError: No module named pyvona

Posted on
Mon Jan 11, 2016 11:03 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Ivona TTS issues

The path is wrong. You have to run the script from the directory in which it sits. I would just try to execute the action from Indigo at this point. It should work.

Posted on
Mon Jan 11, 2016 11:20 am
kidney offline
Posts: 240
Joined: Jul 15, 2007

Re: Ivona TTS issues

OK it's work in the terminal window....
On the indigo side i get it to work once after that, I have to manuallyy raise or lower the volume to unjam the player for it to work again.

here is the error
Code: Select all
  Sonos Debug                     zoneIP: 10.0.1.153, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: Seek
  Sonos Error                     UPNP Error: Restricted Object
  Sonos Error                     Offending Command -> zoneIP: 10.0.1.153, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: Seek
  Sonos Debug                     Error Response: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>711</errorCode></UPnPError></detail></s:Fault></s:Body></s:Envelope>
  Sonos Debug                     RINCON_000E5832D4C601400: Restore Relative Time: 0:00:00
  Sonos Debug                     zoneIP: 10.0.1.153, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: Seek
  Sonos Error                     UPNP Error: Restricted Object
  Sonos Error                     Offending Command -> zoneIP: 10.0.1.153, soapRoot: /MediaRenderer, soapBranch: /AVTransport, soapAction: Seek
  Sonos Debug                     Error Response: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>711</errorCode></UPnPError></detail></s:Fault></s:Body></s:Envelope>

Posted on
Mon Jan 11, 2016 1:19 pm
Asconasny offline
Posts: 161
Joined: Jan 16, 2015

Re: Ivona TTS issues

Its a couple of days ago since i register at Ivona and the access key, password is copy and paste so it should be okey.

I get this when i try to run pyvona_voices.py via terminal.

Mac-Indigo:Server Plugin mini$ python pyvona_voices.py
Traceback (most recent call last):
File "pyvona_voices.py", line 17, in <module>
v = pyvona.pyvona.create_voice(IVONAaccessKey, IVONAsecretKey)
File "./lib/pyvona/pyvona.py", line 43, in create_voice
return Voice(access_key, secret_key)
File "./lib/pyvona/pyvona.py", line 226, in __init__
self.region = 'us-east'
File "./lib/pyvona/pyvona.py", line 76, in region
self._host = 'tts.{}.ivonacloud.com'.format(self._region)
ValueError: zero length field name in format
Mac-Indigo:Server Plugin mini$

When i do python --version
i get 2.6.1
Should it be 2.7 for this to work?

Regards
Asconasny

Who is online

Users browsing this forum: No registered users and 5 guests

cron