Scripted string to speech

Posted on
Fri Feb 13, 2015 7:50 am
pocster offline
User avatar
Posts: 276
Joined: Nov 15, 2014

Scripted string to speech

Hey!

Any update on this. This seems too me to be the next big thing! (apart from playing music!).
Then I can have the Sonos plugin read the news ; or create text strings based on triggers from devices and speak them!!!

Awesome stuff!!!!

:lol:

Posted on
Fri Feb 13, 2015 2:23 pm
richo offline
Posts: 158
Joined: Nov 25, 2014
Location: Pomorskie, Poland

Re: Scripted string to speech

You can do it already with Sonos plugin and group announcement action :)

Ryszard

Posted on
Fri Feb 13, 2015 2:33 pm
pocster offline
User avatar
Posts: 276
Joined: Nov 15, 2014

Re: Scripted string to speech

Yeah ????
So how do I build a string in a python script and get the sonos plugin to say it ???

Posted on
Fri Feb 13, 2015 4:47 pm
richo offline
Posts: 158
Joined: Nov 25, 2014
Location: Pomorskie, Poland

Re: Scripted string to speech

I did it in a simple way.

1. Created a variable "sonos_speak" where I can put a string from any source.
2. Created a trigger that activate action: sonos - group announcement mp3 when the variable is changed.

This way I can set the variable from python, apple script or even manually and let the sonos plugin do the rest :-)

Ryszard

Posted on
Sat Feb 14, 2015 10:05 am
pocster offline
User avatar
Posts: 276
Joined: Nov 15, 2014

Re: Scripted string to speech

Hey!

I must be missing something!!
In the Sonos group announcement MP3 where do I select the variable to play?. It still requires a hard coded text in the 'message' box.

What am I missing???

:cry:

Posted on
Sat Feb 14, 2015 3:00 pm
richo offline
Posts: 158
Joined: Nov 25, 2014
Location: Pomorskie, Poland

Re: Scripted string to speech

Here is how you setup Sonos with variable in the message field:
Attachments
Screen Shot 2015-02-14 at 21.59.03.png
Screen Shot 2015-02-14 at 21.59.03.png (92.04 KiB) Viewed 3640 times

Ryszard

Posted on
Mon Feb 16, 2015 5:06 am
pocster offline
User avatar
Posts: 276
Joined: Nov 15, 2014

Re: Scripted string to speech

Hey!

tried that doesn't work.
It just reads out the literal string i.e. it says percent,percent etc. etc. etc. :cry:

Posted on
Mon Feb 16, 2015 6:04 am
richo offline
Posts: 158
Joined: Nov 25, 2014
Location: Pomorskie, Poland

Re: Scripted string to speech

Have you created a variable in the system properly and inserted it's number here?
Do you have the latest v of Sonos plugin?


Wysłane z iPhone za pomocą Tapatalk

Ryszard

Posted on
Mon Feb 16, 2015 6:06 am
pocster offline
User avatar
Posts: 276
Joined: Nov 15, 2014

Re: Scripted string to speech

Yep ! Done all that .
Put the variable Id in ; just as your screenshot

Posted on
Thu Feb 19, 2015 6:56 am
pocster offline
User avatar
Posts: 276
Joined: Nov 15, 2014

Re: Scripted string to speech

Right!

I've had some luck with this after 'fiddling'.

One thing I do note is that after any speech any previous music/volume is not restored. The music is just simply 'gone' i.e. not even paused.
Be real nice if it just 'resumed' after the speech (including if streamed radio was playing)

Cheers!!

Posted on
Thu Feb 19, 2015 9:08 am
richo offline
Posts: 158
Joined: Nov 25, 2014
Location: Pomorskie, Poland

Re: Scripted string to speech

Hi,

I had the same issue with the previous version of Sonos plugin, but now it works well. Try to play a bit with the settings.

I decided to add an action Sonos -> set standalones as sometimes it had problems when 2 speakers where in one zone.

Ryszard

Posted on
Thu Feb 19, 2015 9:37 am
pocster offline
User avatar
Posts: 276
Joined: Nov 15, 2014

Re: Scripted string to speech

What settings specifically did toy play with???

Also sometimes I get 'double talk'. i.e. the speech string is said twice even though the trigger is set for 'change of variable' so presume a sonos plugin issue???

Cheers

Posted on
Mon Feb 23, 2015 10:45 am
pocster offline
User avatar
Posts: 276
Joined: Nov 15, 2014

Re: Scripted string to speech

Well! with the latest version all working great!

No double speech. Playing music is resumed after speech! :P :P

Just need to be able to enforce pauses in speech text.
Also if the 'announcement length' was available within a python script would be real helpful (I'm assuming it isn't already of course and I'm just missing something!!)

Superb stuff Nick! MUCH appreciated!

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 8 guests