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


Text to Speech - Android phone/tablet 1.0

   (1 review)

5 Screenshots

About This File

First of all the entire credit goes to @davanha who has written this text to speech (and alarm control)  APK for android and continues to maintain the code.  Outstanding job.

Now, to my opinion, everyone should use this very simple and straight forward implementation. This is a great opportunity to give a voice to your home. I'm using TTS for years (UBI and EMIC solutions), but to have it on my phone at any place at home !!! sounds much better. Of course if you have tablet which runs Fibaro application and now you can make it speak... great feature for all your family, finally they can hear what you're doing. In my case the smart home is part of the family.

I know that many users use other solutions like SONOS, Google, but not one of them has this nice and convenience way to speak directly to you or any other member of your family at any place at home.

Please follow next installation steps:

1. Create TTS scene and copy the code (TTS scene v1.0-lua.txt) on your HC2.

2. Download zenitgatekeeper_0.1.651.txt to your phone or tablet. Change file extension to .apk and install the application.

3. Go to setting (initial password 1234) Application settings -> [check  'Autostart application after reboot' box] -> Http services [check all boxes on this page]  see fifth screenshot-> go back till you see "Text-To-Speech mode" window (as displayed on third screenshot)

4. Usually we're cleaning our phones by killing background applications, so please lock this application on your phone.

5. To verify proper installation run on web browser follow line http://<ipadress of android device>:8080/tts=testing Your android device should now play the speech

6. You can add to play intro announcement before the message.. like "ding dong" or any other. To do so please click "Settings" button (default password to settings menu is "1234")  -> Application Settings -> Http services ->  Play speech on device.

7. New releases of the app are available at https://github.com/davandev/AlarmController/releases

8. Now if the setup is OK... open any code on your HC2 and execute

  • fibaro:startScene('ttsSceneID',{"testing my text to speech setup","<IP address of android device:8080"})
  • fibaro:startScene('ttsSceneID',{"testing my text to speech setup","<IP address of android device>:8080",<volume level>})

           Usual volume level range is 1-15.  Please notice that the volume level of your phone or tablet will be changed accordingly.

9. Another great feature of zenitgatekeeper application, it can receive "wakeup" command and it will turn on the  android device screen. I've found this very useful for my tablet in living room. Till now the display was constantly on, now since I have motion sensor in the room, I'm able to turn on the display only if someone in the room. It extends my tablet display life cycle. To use wakeup just start TTS scene as shown below:

  • fibaro:startScene('ttsSceneID',{"wakeup","<IP address of android device:8080"})

For more information please visit this topic:  https://forum.fibaro.com/topic/25004-using-an-android-device-as-a-text-to-speech-engine/

 

Notes:

  1. This solution works on your local LAN- home network  only. When your device is out of range, no message will be received. But when you back to your area the device connects automatically and starts to "speak". My suggestion is to assign fixed IP address to your device on your home network. Otherwise the IP address could be changed and you'll need to change it in the code.
  2. You will hear the messages even if your phone is on mute. To stop to hear the messages you need to reduce the volume or to kill the application.

 

Some ideas of messages could be seen on first screenshot. In addition you can install the apk application on other members of the family and you can redirect relevant messages of smart home directly to them only.

 

 Share



User Feedback

Recommended Comments

Guest cag014

Posted (edited)

Due to Fibaro's restrictions on types of files, please open the scene code file with WordPad only. (this is .rtf document)

Edited by cag014
Link to comment
Share on other sites

Nice app and code.

Works great only when i remove my tabs on my phone it stopped the http server from the app

is there a way to put it on ad power on and stace on?

tryied wiother TTS or T2V but got the same thing

Link to comment
Share on other sites

What do you mean by " i remove my tabs on my phone " ?

In general you need to lock the application and to add zenitgatekeeper at BATTERY setup to UNMONITORED APPS. This should prevent from your phone to put the app into sleep.

Link to comment
Share on other sites

I don't know what phone you have, but you can lock the application, so when you're deleting all tabs the application remains to run.

 

Spoiler

Capture.PNG.7f69b9b7d96e0a3452d914f8c85bbdbb.PNG

As you can see there is a lock on the app. (Marked red)

Link to comment
Share on other sites

Is there possibility to slow talk even more ?

I have setting 1 and tried even 0 which didn't work, also tried to put decimals, but those didn't work either, and now with setting 1, it still talks way too hasty.

Link to comment
Share on other sites

Guest cag014

Posted (edited)

Interesting... it does work with decimal numbers

please set 0.1 (the slowest mode)

Personally mine preferred setup is 0.87.

Let me know if it works

Spoiler

Screenshot_20191214-002153_ZenitGatekeeper.thumb.jpg.d69e31e3922f63e311678833b344df42.jpg

 

Edited by cag014
Link to comment
Share on other sites

On 12/14/2019 at 12:21 AM, cag014 said:

Interesting... it does work with decimal numbers

please set 0.1 (the slowest mode)

Personally mine preferred setup is 0.87.

Let me know if it works

  Hide contents

Screenshot_20191214-002153_ZenitGatekeeper.thumb.jpg.d69e31e3922f63e311678833b344df42.jpg

 

This worked. I think I tried with comma when I should use dot.

Link to comment
Share on other sites

I think I know what it is wrong.

How did you open it?. This is not a text file... please open it with word-pad  and then copy the code to the scene

Edited by cag014
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
Add a comment...

×   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...