Apple voice option

Posted on
Mon Jul 03, 2017 8:03 am
roussell offline
User avatar
Posts: 1108
Joined: Aug 18, 2008
Location: Alabama

Apple voice option

Hey Nick, here's a feature request for when you're bored.. :wink:

I personally find Apple's Allison and Samantha voices to be equal or superior to the online offerings of Amazon, Google, etc. Plus, the have the benefit of being local and not requiring a trip to the cloud for TTS. If possible, please incorporate the ability to use a locally-installed apple voice with Sonos announcements.

The terminal command, "say" has several options and if some of those could be incorporated in the plugin options that would be fantastic.

Example:
Code: Select all
say -v Samantha I think my voice sounds great on Sonos


Example, output to various file formats (mp3 doesn't seem to be supported):
Code: Select all
say -v Samantha I think my voice sounds great on Sonos -o test (no extension uses default .aiff encoding)
say -v Samantha I think my voice sounds great on Sonos -o test.ogg
say -v Samantha I think my voice sounds great on Sonos -o test.flac


As always, thanks for a fantastic plugin!
Terry

Posted on
Fri Jul 28, 2017 8:39 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Apple voice option

Hey Terry,

Samantha does sound pretty incredible so...

Download v1.05 here: http://vulture.lagaros.com:8000/wordpress/home/sonos/

roussell wrote:
Hey Nick, here's a feature request for when you're bored.. :wink:

I personally find Apple's Allison and Samantha voices to be equal or superior to the online offerings of Amazon, Google, etc. Plus, the have the benefit of being local and not requiring a trip to the cloud for TTS. If possible, please incorporate the ability to use a locally-installed apple voice with Sonos announcements.

The terminal command, "say" has several options and if some of those could be incorporated in the plugin options that would be fantastic.

Example:
Code: Select all
say -v Samantha I think my voice sounds great on Sonos


Example, output to various file formats (mp3 doesn't seem to be supported):
Code: Select all
say -v Samantha I think my voice sounds great on Sonos -o test (no extension uses default .aiff encoding)
say -v Samantha I think my voice sounds great on Sonos -o test.ogg
say -v Samantha I think my voice sounds great on Sonos -o test.flac


As always, thanks for a fantastic plugin!
Terry

Posted on
Sat Jul 29, 2017 7:48 am
agame offline
Posts: 514
Joined: Jul 13, 2017
Location: Melbourne, Australia

Re: Apple voice option

Access to the Apple voices is SO GOOD! amazing.
And finally TTS with an Australian accent :)

Posted on
Sat Jul 29, 2017 8:11 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Apple voice option

This looks interesting - I'm trying to understand how it works with out leaving my local network - what is generating the voice. Is it the mac Indigo is running on. I tried to look up Apple voice but had no luck.

_______
Norm

Posted on
Sat Jul 29, 2017 8:13 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Apple voice option

It is the Mac speech synthesizer. It is the machine running Indigo. Some of the voices are not so great, but there are a couple that sound very good.

norcoscia wrote:
This looks interesting - I'm trying to understand how it works with out leaving my local network - what is generating the voice. Is it the mac Indigo is running on. I tried to look up Apple voice but had no luck.

Posted on
Sat Jul 29, 2017 9:33 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Apple voice option

Thanks Nick!

_______
Norm

Posted on
Sat Jul 29, 2017 2:42 pm
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Apple voice option

I keep getting

Sonos Error Unable to read MP3 file. Announcement aborted.

Do I need a OS newer than El Capitan for this to work , that is what I'm running...?

_______
Norm

Posted on
Sat Jul 29, 2017 3:37 pm
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Apple voice option

No - I pushed the update on the same version twice within a very short period of time. You were quick to download -- can you pull it again and copy over the version you installed?

norcoscia wrote:
I keep getting

Sonos Error Unable to read MP3 file. Announcement aborted.

Do I need a OS newer than El Capitan for this to work , that is what I'm running...?

Posted on
Sat Jul 29, 2017 3:48 pm
roussell offline
User avatar
Posts: 1108
Joined: Aug 18, 2008
Location: Alabama

Re: Apple voice option

nlagaros wrote:
Hey Terry,

Samantha does sound pretty incredible so...

Download v1.05 here: http://vulture.lagaros.com:8000/wordpress/home/sonos/

roussell wrote:
Hey Nick, here's a feature request for when you're bored.. :wink:

I personally find Apple's Allison and Samantha voices to be equal or superior to the online offerings of Amazon, Google, etc. Plus, the have the benefit of being local and not requiring a trip to the cloud for TTS. If possible, please incorporate the ability to use a locally-installed apple voice with Sonos announcements.

The terminal command, "say" has several options and if some of those could be incorporated in the plugin options that would be fantastic.

Example:
Code: Select all
say -v Samantha I think my voice sounds great on Sonos


Example, output to various file formats (mp3 doesn't seem to be supported):
Code: Select all
say -v Samantha I think my voice sounds great on Sonos -o test (no extension uses default .aiff encoding)
say -v Samantha I think my voice sounds great on Sonos -o test.ogg
say -v Samantha I think my voice sounds great on Sonos -o test.flac


As always, thanks for a fantastic plugin!
Terry


Nice!! Thanks man, this is great!

Terry


Sent from my iPhone using Tapatalk

Posted on
Sat Jul 29, 2017 4:10 pm
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Apple voice option

Thanks Nick, that was it, working now - but I can't seem to figure out how to broadcast message to all speakers at once - when I put more than one in it only plays on one (but I see a lot of stuff happening in the event log for all speakers). Is it not possible to make it work like a PA (all speakers speak at the same time).

In the example below, only the living room unit speaks....

Thanks for any help....
Attachments
2017-07-29_15-08-01.png
2017-07-29_15-08-01.png (90.58 KiB) Viewed 3539 times

_______
Norm

Posted on
Sun Aug 06, 2017 1:43 am
haavarda offline
User avatar
Posts: 702
Joined: Aug 18, 2012
Location: Norway

Re: Apple voice option

Hi.
I am trying to get the apple voice to work, but I am struggling a bit, and get the error below. Any idea?

Code: Select all
Action Group                    sonos test
   Sonos                           Announcement: test, Volume: 25
   Sonos                           remove zone from group: Sonos - Hall
   Sonos                           ZonePlayer: Sonos - Hall, Current Volume: 25, New Volume: 25
   Sonos                           Announcement Length: 3.03016666667
   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/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1927, in actionAnnouncement
TypeError: cannot concatenate 'str' and 'NoneType' objects


Håvard

Posted on
Sun Aug 06, 2017 4:04 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Apple voice option

It should have grouped the ZonePlayers that you chose. If you have your Sonos Controller App open while you run this action, do you see the grouping happening? It may also be helpful to see log output during the announcement.

norcoscia wrote:
Thanks Nick, that was it, working now - but I can't seem to figure out how to broadcast message to all speakers at once - when I put more than one in it only plays on one (but I see a lot of stuff happening in the event log for all speakers). Is it not possible to make it work like a PA (all speakers speak at the same time).

In the example below, only the living room unit speaks....

Thanks for any help....

Posted on
Sun Aug 06, 2017 4:08 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Apple voice option

Are you running v1.0.5 of the plugin? The line number with the error does not correspond properly to a line of code.

haavarda wrote:
Hi.
I am trying to get the apple voice to work, but I am struggling a bit, and get the error below. Any idea?

Code: Select all
Action Group                    sonos test
   Sonos                           Announcement: test, Volume: 25
   Sonos                           remove zone from group: Sonos - Hall
   Sonos                           ZonePlayer: Sonos - Hall, Current Volume: 25, New Volume: 25
   Sonos                           Announcement Length: 3.03016666667
   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/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/Sonos.py", line 1927, in actionAnnouncement
TypeError: cannot concatenate 'str' and 'NoneType' objects


Posted on
Sun Aug 06, 2017 4:11 am
haavarda offline
User avatar
Posts: 702
Joined: Aug 18, 2012
Location: Norway

Re: Apple voice option

I think I am. Did you have a version change that did not increment the version number? I thought I updated for same time ago, but it said that it was already installed...


Sent from my iPhone using Tapatalk

Håvard

Posted on
Sun Aug 06, 2017 4:14 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Apple voice option

I did on v1.0.5 for a very short period of time. If you were one of the first to download, you may have gotten the bad version. Can you pull and over-write what you have. If not, I will be releasing v1.0.6 shortly.

Who is online

Users browsing this forum: No registered users and 3 guests