<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.domoticz.com/index.php?action=history&amp;feed=atom&amp;title=Talking_Domoticz</id>
	<title>Talking Domoticz - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.domoticz.com/index.php?action=history&amp;feed=atom&amp;title=Talking_Domoticz"/>
	<link rel="alternate" type="text/html" href="https://wiki.domoticz.com/index.php?title=Talking_Domoticz&amp;action=history"/>
	<updated>2026-09-19T17:23:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wiki.domoticz.com/index.php?title=Talking_Domoticz&amp;diff=17331&amp;oldid=prev</id>
		<title>Walter vl: /* Other ressources for Raspberry */</title>
		<link rel="alternate" type="text/html" href="https://wiki.domoticz.com/index.php?title=Talking_Domoticz&amp;diff=17331&amp;oldid=prev"/>
		<updated>2022-03-30T12:13:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Other ressources for Raspberry&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Give a voice to Domoticz so It may inform you about a device that was triggered, read some news during breakfast, or even speak to a burglar... &lt;br /&gt;
&lt;br /&gt;
There are generally two ways to do this: with a stand-alone piece of software you install in your server, or by using an online service that generates the voice file. The latter may give more attractive results, but does mean you lose some privacy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=eSpeak on RaspBerry Pi=&lt;br /&gt;
&lt;br /&gt;
A SW package named „eSpeak“ let Domoticz speak any text in different languages. &amp;lt;br&amp;gt;&lt;br /&gt;
eSpeak is not a Domoticz feature but can be started e.g. by pressing a button or called from Domoticz_main.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Pro&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: Standalone. No need of internet connexion.&lt;br /&gt;
*Con&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: The voice is synthetic. Just horrible unless you like robots from &amp;#039;1950s.&lt;br /&gt;
&lt;br /&gt;
==Reference==&lt;br /&gt;
The author used following setup:&lt;br /&gt;
&lt;br /&gt;
*Raspberry Pi Type B 2nd revision&lt;br /&gt;
*Domoticz version 1.1773&lt;br /&gt;
&lt;br /&gt;
The last stable version is also working. &lt;br /&gt;
&lt;br /&gt;
*Analog out connected to a stereo amplifier for testing.&lt;br /&gt;
&lt;br /&gt;
For normal usage a mini PC speaker is recommended with a 3.5mm plug and a USB power connector.&lt;br /&gt;
&lt;br /&gt;
==Installation of eSpeak==&lt;br /&gt;
Like always before doing an installation on a live system make a backup of the domoticz.db and better also a copy of the whole SD card (Image) before starting.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get upgrade&lt;br /&gt;
 sudo reboot&lt;br /&gt;
 sudo su&lt;br /&gt;
 cd&lt;br /&gt;
 sudo apt-get install espeak&lt;br /&gt;
 sudo apt-get install alsa-utils&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Optionally (instead of &amp;quot;sudo apt-get install espeak&amp;quot;):&lt;br /&gt;
&amp;lt;code&amp;gt;sudo apt-get install mplayer espeak&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Configuration for analog audio (jack):&lt;br /&gt;
&amp;lt;code&amp;gt; sudo amixer cset numid=3 1&amp;lt;/code&amp;gt;&lt;br /&gt;
Configuration for HDMI audio out:&lt;br /&gt;
&amp;lt;code&amp;gt; sudo amixer cset numid=3 2&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Usage== &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt; espeak &amp;quot;Hello world, I&amp;#039;m a raspberry pi.&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or in another language like German:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt; espeak –v de &amp;quot;Hallo Welt, ich gruesse euch”&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create a new bash script like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;nano lamp-voice.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And then in the Nano editor write this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt; #!/bin/bash&lt;br /&gt;
 espeak &amp;quot;Lamp on&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save the file by pressing ctrl-o, hit enter to save it, and then press ctrl-x to close the nano editor.&lt;br /&gt;
&lt;br /&gt;
Name it &amp;quot;lamp-voice.sh&amp;quot; and make it executable:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;chmod +x lamp-voice.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Try it out by typing&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./lamp-voice.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you get a bash error, then you may need to renove the &amp;lt;code&amp;gt;#!/bin/bash&amp;lt;/code&amp;gt;. Just open the file again like you did above.&lt;br /&gt;
&lt;br /&gt;
Add &amp;quot;script:///home/pi/domoticz/scripts/lamp-voice.sh&amp;quot; to the &amp;quot;On action&amp;quot; field of the switch.&lt;br /&gt;
&lt;br /&gt;
==Info== &lt;br /&gt;
Find info and parameters&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
*[http://espeak.sourceforge.net/]http://espeak.sourceforge.net/&lt;br /&gt;
*man espeak&lt;br /&gt;
&lt;br /&gt;
[http://jeffskinnerbox.wordpress.com/2012/11/15/getting-audio-out-working-on-the-raspberry-pi/]http://jeffskinnerbox.wordpress.com/2012/11/15/getting-audio-out-working-on-the-raspberry-pi/ &amp;lt;br&amp;gt;&lt;br /&gt;
You can discuss here: [http://www.domoticz.com/forum/viewtopic.php?f=21&amp;amp;t=2573]http://www.domoticz.com/forum/viewtopic.php?f=21&amp;amp;t=2573&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thanks to “drogert” for support. &amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;:-)&lt;br /&gt;
&lt;br /&gt;
=Speak with VOICERSS WebService on RaspBerry Pi=&lt;br /&gt;
&lt;br /&gt;
Simple to run, text-to-speech (TTS) system for the Raspberry Pi. The only solution to have a good sound quality. &lt;br /&gt;
There is a lot of good Text to speech API:&lt;br /&gt;
&lt;br /&gt;
*http://www.acapela-group.com/&lt;br /&gt;
*https://www.voxygen.fr&lt;br /&gt;
*google speech (Captcha protected now, so useless !)&lt;br /&gt;
*http://www.naturalreaders.com&lt;br /&gt;
*https://www.ivona.com/us/&lt;br /&gt;
*http://www.voicerss.org/ .  I choose this one. With basic free plan , you will be able to do 350 requests per day. Gratis.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install git-core&lt;br /&gt;
 sudo apt-get install mpg123&lt;br /&gt;
 git clone https://github.com/StevenHickson/PiAUISuite.git&lt;br /&gt;
 cd PiAUISuite/Install&lt;br /&gt;
 ./InstallAUISuite.sh&lt;br /&gt;
&lt;br /&gt;
Say Yes to install the dependencies. (Around 250Mb) &amp;lt;br&amp;gt;&lt;br /&gt;
Say No to install playvideo, downloader, gvapi, gtextcommand, youtube.&amp;lt;br&amp;gt;&lt;br /&gt;
Say Yes to install voicecommand   (the last one)&amp;lt;br&amp;gt;&lt;br /&gt;
Say No to the Self set up voicecommand. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, register to Voice RSS [http://www.voicerss.org/] and get your API Key. &lt;br /&gt;
&lt;br /&gt;
And adapt the script&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: insert your API key, your language, bit rate. look here&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: [http://www.voicerss.org/api/documentation.aspx]&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
 sudo nano /usr/bin/tts&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 string=$@&lt;br /&gt;
 #lang=&amp;quot;en-gb&amp;quot;&lt;br /&gt;
 lang=&amp;quot;fr-fr&amp;quot;&lt;br /&gt;
 MYAPIKEY=&amp;quot;kkkkk from voice RSS yyyy&amp;quot;&lt;br /&gt;
 if [ &amp;quot;$1&amp;quot; == &amp;quot;-l&amp;quot; ] ; then&lt;br /&gt;
    lang=&amp;quot;$2&amp;quot;&lt;br /&gt;
    string=`echo &amp;quot;$string&amp;quot; | sed -r &amp;#039;s/^.{6}//&amp;#039;`&lt;br /&gt;
 fi&lt;br /&gt;
 #empty the original file&lt;br /&gt;
 echo &amp;quot;&amp;quot; &amp;gt; &amp;quot;/dev/shm/speak.mp3&amp;quot;&lt;br /&gt;
 len=${#string}&lt;br /&gt;
 wget -q -U Mozilla -O &amp;quot;/dev/shm/tmp.mp3&amp;quot; &amp;quot;http://api.voicerss.org/?key=$MYAPIKEY&amp;amp;src=$string&amp;amp;f=44khz_16bit_mono&amp;amp;hl=$lang&amp;quot;&lt;br /&gt;
 cat &amp;quot;/dev/shm/tmp.mp3&amp;quot; &amp;gt;&amp;gt; &amp;quot;/dev/shm/speak.mp3&amp;quot;&lt;br /&gt;
 #now we finally say the whole thing&lt;br /&gt;
 cat &amp;quot;/dev/shm/speak.mp3&amp;quot; | mpg123 - 1&amp;gt;&amp;gt;/dev/shm/voice.log 2&amp;gt;&amp;gt;/dev/shm/voice.log&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
The command can now be used with&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
 tts &amp;quot;Hello, world&amp;quot;&lt;br /&gt;
&lt;br /&gt;
which will convert your text to speech, which can be heard on your default sound card and audio out. &lt;br /&gt;
&lt;br /&gt;
==Info==&lt;br /&gt;
Voice RSS allows for up to 10 000 characters per call.&lt;br /&gt;
&lt;br /&gt;
API documentation&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: [http://www.voicerss.org/api/documentation.aspx]&lt;br /&gt;
&lt;br /&gt;
From&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: [http://www.behind-the-scenes.co.za/using-voicerss-to-make-a-raspberry-pi-talk/]&lt;br /&gt;
&lt;br /&gt;
From Steven Hickson’s PiAUISuite.&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: [https://github.com/StevenHickson/PiAUISuite]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= izSynth =&lt;br /&gt;
TTS/Text To Speech synthesizer, background music overlay assembler and audio file converter for PBX and Home Automation Systems&lt;br /&gt;
&lt;br /&gt;
See for more info wiki page [[izSynth]]&lt;br /&gt;
&lt;br /&gt;
=Other resources for Raspberry=&lt;br /&gt;
http://raspberrypi.stackexchange.com/questions/10384/speech-processing-on-the-raspberry-pi&lt;br /&gt;
&lt;br /&gt;
https://github.com/DougGore/picopi&lt;br /&gt;
&lt;br /&gt;
https://www.youtube.com/watch?v=frH9HaQTFL8&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Windows=&lt;br /&gt;
Use SAPI Windows voice synthesis with&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
==VBS script==&lt;br /&gt;
speak.vbs&lt;br /&gt;
&lt;br /&gt;
 Set MyVoice = CreateObject(&amp;quot;Sapi.SpVoice&amp;quot;)&lt;br /&gt;
 MyVoice.Speak WScript.Arguments(0)&lt;br /&gt;
&lt;br /&gt;
Execute with &lt;br /&gt;
 cscript.exe speak.vbs &amp;quot;Hello world !&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Balabolka Console Application==&lt;br /&gt;
This Freeware console software is excellent to easy text to speech.&lt;br /&gt;
&lt;br /&gt;
*No installation required.&lt;br /&gt;
*Use the voice of windows. So excellent quality.&lt;br /&gt;
*Compact.&lt;br /&gt;
*Flexible and easy to use.&lt;br /&gt;
*Low system requirements.&lt;br /&gt;
&lt;br /&gt;
It can be found here&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: [http://www.cross-plus-a.com/bconsole.htm]&lt;br /&gt;
&lt;br /&gt;
 balabolka_console.exe -t &amp;quot;Hello World&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Keywords&amp;lt;span&amp;gt; &amp;lt;/span&amp;gt;: Text to speech. TTS. Speak. Voice. Voice synthesis.&lt;br /&gt;
&lt;br /&gt;
[[Category:Domoticz]]&lt;br /&gt;
[[Category:Manual]]&lt;br /&gt;
[[Category:Setup]]&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:TTS]]&lt;br /&gt;
[[Category:Scripting]]&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:Raspberry Pi]]&lt;/div&gt;</summary>
		<author><name>Walter vl</name></author>
	</entry>
</feed>