Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Sonos TTS + GEA


jompa68

Question

I have created a simple virtual device that send text strings to Krikroff's Sonos TTS virtual device. From GEA lua script on wanted time i press button in my virtual device to send the text to Sonos TTS.

Example setup:

GEA

Please login or register to see this code.

My virtual device example

Please login or register to see this code.

Another example

Please login or register to see this code.

Source

GEA -

Please login or register to see this link.

Sonos TTS version 0.0.8

Please login or register to see this link.

Please login or register to see this attachment.

Please login or register to see this attachment.

Link to comment
Share on other sites

Recommended Posts

  • 0

jompa68,

Thanks! Can you also post the SONOS TTS 0.0.8 version? I have an account on your forum, but I have no permission to download it.

Thanks!

Link to comment
Share on other sites

  • 0
  • Inquirer
  • jompa68,

    Thanks! Can you also post the SONOS TTS 0.0.8 version? I have an account on your forum, but I have no permission to download it.

    Thanks!

    Added to my first post

    Link to comment
    Share on other sites

    • 0
    Guest David R

    Hi I have sonos and would like to do something like this. But I dont really understand how to do it or what it actually does. Could you explain for us beginers please

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Hi I have sonos and would like to do something like this. But I dont really understand how to do it or what it actually does. Could you explain for us beginers please

    David,

    start to install the Sonos virtual device from my first post. Add Sonos IP and port 1400 in the virtual device.

    Create 2 variables, SonosLastCmd and SonosTTS.

    Import my Notifications virtual device.

    From a scene (LUA or block) you can press your wanted button in Notifications virtual device.

    The txt string from that button will be added to SonosTTS variable and Sonos virtual device will read that variable and speak the text.

    More question, you are welcome to ask

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    Link to comment
    Share on other sites

    • 0

    jompa68, thanks! look forward to having a play !

    cheers,

    al.

    Link to comment
    Share on other sites

    • 0
    Guest David R

    jompa68,

    Thanks. I looks forward to testing it out! Im sure ill be back with questions

    Please login or register to see this image.

    /emoticons/default_icon_wink.gif" alt=";-)" />

    Link to comment
    Share on other sites

    • 0

    Jompa68,

    Will the TTS string be "converted" every time or common MP3 files will be stored?

    If yes, you see any delayes in this?

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • It will be converted everytime. From when button is pressed to Sonos start to speak its about 3-5sec.

    Link to comment
    Share on other sites

    • 0
    Guest David R

    jompa68,

    Jonny I am struggling to download these? It just opens a window with scripts in?

    Please login or register to see this image.

    /emoticons/default_icon_question.gif" alt=":?:" />

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • You should save them first then import them as virtual device in your HC2

    Link to comment
    Share on other sites

    • 0
    Guest David R

    jompa68,

    Thanks the problem was with internet explorer. Krikoffs device is so much better than the plugin! And yours is good to!!

    Please login or register to see this image.

    /emoticons/default_icon_cool.gif" alt="8-)" />

    [ Added: 2015-01-10, 18:14 ]

    What values do the variables need?

    Link to comment
    Share on other sites

    • 0

    Could someone help out with a button to group all devices in Kirkoffs VD. It would help a lot upon triggering an alarm TTS, or playing radio in whole house when entering home.

    Link to comment
    Share on other sites

    • 0

    Maybe someone can help me here. I try to use Krikroff's VD but it doesn't really work. I have 4 Play:1 and 2 are set to stereo.

    1. I made the 2 variables

    2. I made 3 VD's and just change the IP and port to 1400

    That's it

    When I press the pause button on let's say Play:1 kitchen, that can pause kitchen or bathroom or bedroom, although they are of course different IP's. What am I doing wrong??

    Edit: Seems as if the VD "runs" through my 3 rooms. When I set 3 different volumes in the rooms, the slider jumps through those 3 volumes in the VD and it does that in all 3 VD's...

    Link to comment
    Share on other sites

    • 0
    Guest David R

    Im a little confused of how to get sonos to talk. Here is my night time scene. I would like to make Sonos say goodnight? What do I have to add to it? Thanks

    --[[

    %% properties

    131 sceneActivation

    %% globals

    --]]

    local startSource = fibaro:getSourceTrigger();

    if (

    ( tonumber(fibaro:getValue(131, "sceneActivation")) == 15 )

    or

    startSource["type"] == "other"

    )

    then

    fibaro:call(131, "setValue", "25");

    fibaro:call(79, "turnOff");

    fibaro:call(81, "turnOff");

    fibaro:call(85, "turnOff");

    fibaro:call(83, "turnOff");

    setTimeout(function()

    fibaro:call(92, "turnOff");

    fibaro:call(96, "turnOff");

    fibaro:call(100, "turnOff");

    fibaro:call(119, "turnOff");

    end, 2000)

    setTimeout(function()

    fibaro:call(155, "turnOff");

    end, 4000)

    setTimeout(function()

    fibaro:call(121, "turnOff");

    end, 6000)

    setTimeout(function()

    fibaro:call(158, "turnOff");

    end, 8000)

    setTimeout(function()

    fibaro:call(127, "turnOff");

    fibaro:call(139, "turnOff");

    end, 10000)

    setTimeout(function()

    fibaro:call(124, "turnOff");

    end, 14000)

    setTimeout(function()

    fibaro:call(129, "turnOff");

    end, 16000)

    setTimeout(function()

    fibaro:call(131, "turnOff");

    fibaro:call(133, "turnOff");

    fibaro:call(135, "turnOff");

    end, 18000)

    end

    Link to comment
    Share on other sites

    • 0

    fibaro:setGlobal("SonosTTS", "lng=en|dr=auto|vol=10|txt=YOUR TEXT !|");

    Link to comment
    Share on other sites

    • 0
    Guest David R

    Great thanks. Is it possible to create a while loop so it would repeat. Eg. The house alarm acivated..("the police have been notified") repeated?

    [ Added: 2015-01-11, 16:27 ]

    I find the plugin quite a bit faster than the VD but the TTS is brilliant!

    Link to comment
    Share on other sites

    • 0

    Maybe someone can help me here. I try to use Krikroff's VD but it doesn't really work. I have 4 Play:1 and 2 are set to stereo.

    1. I made the 2 variables

    2. I made 3 VD's and just change the IP to the ip of the players and port to 1400

    That's it

    When I press the pause button on let's say Play:1 kitchen, that can pause kitchen or bathroom or bedroom, although they are of course different IP's. What am I doing wrong??

    Edit: Seems as if the VD "runs" through my 3 rooms. When I set 3 different volumes in the rooms, the slider jumps through those 3 volumes in the VD and it does that in all 3 VD's...

    Anyone knows what I'm doing wrong here? I guess something is wrong with my IP adresses.

    Link to comment
    Share on other sites

    • 0
    Guest David R

    When I use TTS for say "Goodbye" sometimes it comes out of my play 3 and sometimes out of my play 1 and sometimes out of my connect amp. How do I choose which one or group them together? Also how do I assign a radio station to the virtual device buttons? Thanks

    Please login or register to see this image.

    /emoticons/default_icon_question.gif" alt=":?:" />

    Link to comment
    Share on other sites

    • 0

    The radio stations u have to chose in TuneIn at "My Radio stations". For the TTS, I wish I could help u, but I can't even reliably pause and play. When I push pause on 1 of my 3 Virtual devices, it pause whatever Sonos it wants. Do u have different IP adresses for different virtual devices? I don't really understand what Krikroff means by IP of "maitre" which means master and port 1400. Every Virtual device has same IP??

    Link to comment
    Share on other sites

    • 0
    Guest David R

    I have different ips for each sonos. I guessed you used tune in but where do I get the info for the virtual device buttons as in what station I need to input in button one etc. Thanks

    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...