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
Question
umbex 3
Hi all, this is my first message here.
I have an old Mac Mini as a mediacenter.
I'm just configured it as a speech device to announce relevant dynamic messages.
And it works! On the Mac, configure the speech voice according to your language, on the system preferences panel.
Then you need to:
1. Enable the apache webserver on your mac (this depends on your OS).
Search more info
Please login or register to see this link.
2. Enable php scripting
Search more info
Please login or register to see this link.
3. create a new php file on your webserver root folder (i.e. Macintosh HD/Library/WebServer/Documents/ )
This is a sample file voice.php:
Please login or register to see this code.
4. Create a virtual device with the IP and port of your Mac's webserver
You can send a string:
Please login or register to see this code.
or use a LUA script:
Please login or register to see this code.
I'm now playing with this in various ways.
Hope you enjoy it.
[ Added: 2013-11-04, 21:57 ]
In addition, you can play an audio fx file with as similar approach:
on the mac the player.php file:
Please login or register to see this code.
on fibaro virtual device the string:
Please login or register to see this code.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.