<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://openvoice-tech.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Eben</id>
	<title>Open Voice Technology Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://openvoice-tech.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Eben"/>
	<link rel="alternate" type="text/html" href="https://openvoice-tech.net/wiki/Special:Contributions/Eben"/>
	<updated>2026-04-18T03:58:31Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://openvoice-tech.net/index.php?title=ESpeak&amp;diff=2236</id>
		<title>ESpeak</title>
		<link rel="alternate" type="text/html" href="https://openvoice-tech.net/index.php?title=ESpeak&amp;diff=2236"/>
		<updated>2022-01-16T02:09:48Z</updated>

		<summary type="html">&lt;p&gt;Eben: /* KDE &amp;amp; gnome integration (eSpeak-NG) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What are eSpeak and eSpeak-NG? ==&lt;br /&gt;
eSpeak is a compact open source (GNU GPL license) software speech synthesizer for English and other languages, for Linux and Windows. It uses a &amp;quot;formant synthesis&amp;quot; method. This allows many languages to be provided in a small size. The speech is clear, and can be used at high speeds, but is not as natural or smooth as larger synthesizers which are based on human speech recordings.&lt;br /&gt;
&lt;br /&gt;
Originally known as &#039;&#039;&#039;speak&#039;&#039;&#039; and originally written for Acorn/RISC_OS computers starting in 1995, eSpeak is an enhancement and re-write, including a relaxation of the original memory and processing power constraints and comes with support for additional languages.&amp;lt;ref&amp;gt;http://espeak.sourceforge.net/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In 2010 Reece H. Dunn started maintaining a version of eSpeak on GitHub that was forked in late 2015 and renamed to &#039;&#039;&#039;eSpeak NG&#039;&#039;&#039;. The new eSpeak NG project is a significant departure from the eSpeak project with the intention of cleaning up the existing codebase, adding new features and improving the supported languages.&amp;lt;ref&amp;gt;https://github.com/espeak-ng/espeak-ng&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Advantages ==&lt;br /&gt;
Although it has been practically around since the dawn of time (or at least the personal computer) there are still good reasons to use eSpeak:&lt;br /&gt;
&lt;br /&gt;
* It is blazing fast, audio generation is almost instant even on SBCs like the Raspberry Pi Zero&lt;br /&gt;
* It is very small and memory consumption is negligible on modern systems (~5MB [source?])&lt;br /&gt;
* It is available on basically any platform either as command line program, shared library, SAPI5 version for Windows screen-readers, etc..&lt;br /&gt;
* Although the voice sounds rather robotic it has a certain charm, especially if you are building little robots ;-)&lt;br /&gt;
* It is available in dozens of languages&lt;br /&gt;
* It can translate text into phoneme codes and is often used to generate new dictionary entries for other systems (e.g. STT)&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
Debian command line tool (espeak-ng recommended):&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get install -y espeak-ng espeak-ng-espeak&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;NOTE: eSpeak is often found in other projects like [[OpenTTS]] or [https://github.com/SEPIA-Framework/sepia-assist-server/tree/master/Xtensions/TTS SEPIA Assist Server] and ready to use out-of-the-box.&lt;br /&gt;
&lt;br /&gt;
== Performance ==&lt;br /&gt;
eSpeak-NG (en):&lt;br /&gt;
&lt;br /&gt;
* Test system: Raspberry Pi4 4GB&lt;br /&gt;
* Sentence: &amp;quot;Hello this is a test&amp;quot;&lt;br /&gt;
* Run-time: 0.08 s&lt;br /&gt;
* Real-time-factor: 0.062&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
[UNDER CONSTRUCTION]&lt;br /&gt;
&lt;br /&gt;
[[Category:TTS]]&lt;br /&gt;
[[Category:Project]]&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;KDE &amp;amp; gnome integration (eSpeak-NG)&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This setup will let you read text with eSpeak-NG from &#039;&#039;&#039;any application&#039;&#039;&#039; on your system simply by pressing a keyboard command.&lt;br /&gt;
&lt;br /&gt;
After installing eSpeak-ng on your system adding this line to a custom keyboard shortcut in KDE or Gnome.&lt;br /&gt;
 &amp;lt;code&amp;gt;xsel &amp;gt; /tmp/speak.txt | espeak-ng -f &amp;quot;/tmp/speak.txt&amp;quot; | pkill xsel&amp;lt;/code&amp;gt; &lt;br /&gt;
Type &amp;lt;code&amp;gt;man espeak-ng&amp;lt;/code&amp;gt; in your terminal to see a list of options for this speech engine.&lt;br /&gt;
&lt;br /&gt;
To stop espeak-ng we can use the following command:&lt;br /&gt;
 &amp;lt;code&amp;gt;pkill espeak-ng&amp;lt;/code&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Important:&#039;&#039;&#039; as these commands are run as a scrip instead of in a full shell environment its best to put the full path to each application you call, for example: usr/bin/xsel &amp;amp; usr/bin/espeak-ng etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In gnome open system settings then go to: Keyboard » Customise Shortcuts » Custom Shortcuts » + and make two new shortcuts, one to start reading using the line above and another shortcut to stop reading with the &amp;lt;code&amp;gt;pkill espeak-ng&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
In KDE open system settings then go to: Shortcuts » Custom Shortcuts and make to new shortcuts one to start reading using the line above and another shortcut to stop reading with the &amp;lt;code&amp;gt;pkill espeak-ng&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
Create a file for xsel to store the text you want to read. In this example this file is in the /tmp directory and is called speak.txt (but you can use a different file name and directory if you like).&lt;br /&gt;
&#039;&#039;&#039;What do these commands and switch’s do:&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;code&amp;gt;xsel &amp;gt; my_file_name.txt&amp;lt;/code&amp;gt; (over rights the text in the file with highlighted text)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;espeak-ng -f&amp;lt;/code&amp;gt; (calls the espeak-ng tts engine to start reading a file inside the &amp;quot;&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;pkill xsel&amp;lt;/code&amp;gt; (stops the computer starting a new process for xsel every time this command is run).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;pkill espeak-ng&amp;lt;/code&amp;gt; (stops espeak-ng).&lt;/div&gt;</summary>
		<author><name>Eben</name></author>
	</entry>
	<entry>
		<id>https://openvoice-tech.net/index.php?title=ESpeak&amp;diff=2235</id>
		<title>ESpeak</title>
		<link rel="alternate" type="text/html" href="https://openvoice-tech.net/index.php?title=ESpeak&amp;diff=2235"/>
		<updated>2022-01-16T02:06:43Z</updated>

		<summary type="html">&lt;p&gt;Eben: /* KDE &amp;amp; gnome integration (eSpeak-NG) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What are eSpeak and eSpeak-NG? ==&lt;br /&gt;
eSpeak is a compact open source (GNU GPL license) software speech synthesizer for English and other languages, for Linux and Windows. It uses a &amp;quot;formant synthesis&amp;quot; method. This allows many languages to be provided in a small size. The speech is clear, and can be used at high speeds, but is not as natural or smooth as larger synthesizers which are based on human speech recordings.&lt;br /&gt;
&lt;br /&gt;
Originally known as &#039;&#039;&#039;speak&#039;&#039;&#039; and originally written for Acorn/RISC_OS computers starting in 1995, eSpeak is an enhancement and re-write, including a relaxation of the original memory and processing power constraints and comes with support for additional languages.&amp;lt;ref&amp;gt;http://espeak.sourceforge.net/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In 2010 Reece H. Dunn started maintaining a version of eSpeak on GitHub that was forked in late 2015 and renamed to &#039;&#039;&#039;eSpeak NG&#039;&#039;&#039;. The new eSpeak NG project is a significant departure from the eSpeak project with the intention of cleaning up the existing codebase, adding new features and improving the supported languages.&amp;lt;ref&amp;gt;https://github.com/espeak-ng/espeak-ng&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Advantages ==&lt;br /&gt;
Although it has been practically around since the dawn of time (or at least the personal computer) there are still good reasons to use eSpeak:&lt;br /&gt;
&lt;br /&gt;
* It is blazing fast, audio generation is almost instant even on SBCs like the Raspberry Pi Zero&lt;br /&gt;
* It is very small and memory consumption is negligible on modern systems (~5MB [source?])&lt;br /&gt;
* It is available on basically any platform either as command line program, shared library, SAPI5 version for Windows screen-readers, etc..&lt;br /&gt;
* Although the voice sounds rather robotic it has a certain charm, especially if you are building little robots ;-)&lt;br /&gt;
* It is available in dozens of languages&lt;br /&gt;
* It can translate text into phoneme codes and is often used to generate new dictionary entries for other systems (e.g. STT)&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
Debian command line tool (espeak-ng recommended):&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get install -y espeak-ng espeak-ng-espeak&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;NOTE: eSpeak is often found in other projects like [[OpenTTS]] or [https://github.com/SEPIA-Framework/sepia-assist-server/tree/master/Xtensions/TTS SEPIA Assist Server] and ready to use out-of-the-box.&lt;br /&gt;
&lt;br /&gt;
== Performance ==&lt;br /&gt;
eSpeak-NG (en):&lt;br /&gt;
&lt;br /&gt;
* Test system: Raspberry Pi4 4GB&lt;br /&gt;
* Sentence: &amp;quot;Hello this is a test&amp;quot;&lt;br /&gt;
* Run-time: 0.08 s&lt;br /&gt;
* Real-time-factor: 0.062&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
[UNDER CONSTRUCTION]&lt;br /&gt;
&lt;br /&gt;
[[Category:TTS]]&lt;br /&gt;
[[Category:Project]]&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;KDE &amp;amp; gnome integration (eSpeak-NG)&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This setup will let you read text with mimic tts from &#039;&#039;&#039;any application&#039;&#039;&#039; on your system simply by pressing a keyboard command.&lt;br /&gt;
&lt;br /&gt;
After installing eSpeak-ng on your system adding this line to a custom keyboard shortcut in KDE or Gnome.&lt;br /&gt;
 &amp;lt;code&amp;gt;xsel &amp;gt; /tmp/speak.txt | espeak-ng -f &amp;quot;/tmp/speak.txt&amp;quot; | pkill xsel&amp;lt;/code&amp;gt; &lt;br /&gt;
Type &amp;lt;code&amp;gt;man espeak-ng&amp;lt;/code&amp;gt; in your terminal to see a list of options for this speech engine.&lt;br /&gt;
&lt;br /&gt;
To stop espeak-ng we can use the following command:&lt;br /&gt;
 &amp;lt;code&amp;gt;pkill espeak-ng&amp;lt;/code&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Important:&#039;&#039;&#039; as these commands are run as a scrip instead of in a full shell environment its best to put the full path to each application you call, for example: usr/bin/xsel &amp;amp; usr/bin/espeak-ng etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In gnome open system settings then go to: Keyboard » Customise Shortcuts » Custom Shortcuts » + and make two new shortcuts, one to start reading using the line above and another shortcut to stop reading with the &amp;lt;code&amp;gt;pkill espeak-ng&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
In KDE open system settings then go to: Shortcuts » Custom Shortcuts and make to new shortcuts one to start reading using the line above and another shortcut to stop reading with the &amp;lt;code&amp;gt;pkill espeak-ng&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
Create a file for xsel to store the text you want to read. In this example this file is in the /tmp directory and is called speak.txt (but you can use a different file name and directory if you like).&lt;br /&gt;
&#039;&#039;&#039;What do these commands and switch’s do:&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;code&amp;gt;xsel &amp;gt; my_file_name.txt&amp;lt;/code&amp;gt; (over rights the text in the file with highlighted text)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;espeak-ng -f&amp;lt;/code&amp;gt; (calls the espeak-ng tts engine to start reading a file inside the &amp;quot;&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;pkill xsel&amp;lt;/code&amp;gt; (stops the computer starting a new process for xsel every time this command is run).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;pkill espeak-ng&amp;lt;/code&amp;gt; (stops espeak-ng).&lt;/div&gt;</summary>
		<author><name>Eben</name></author>
	</entry>
	<entry>
		<id>https://openvoice-tech.net/index.php?title=Mycroft_Mimic&amp;diff=2234</id>
		<title>Mycroft Mimic</title>
		<link rel="alternate" type="text/html" href="https://openvoice-tech.net/index.php?title=Mycroft_Mimic&amp;diff=2234"/>
		<updated>2022-01-16T02:05:44Z</updated>

		<summary type="html">&lt;p&gt;Eben: /* KDE &amp;amp; gnome integration (mimic v1) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Mycroft]]&lt;br /&gt;
[[Category:TTS]]&lt;br /&gt;
&lt;br /&gt;
==What&#039;s Mycroft Mimic==&lt;br /&gt;
It is a TTS system delivered with Mycroft (&#039;&#039;by Nov 2021 it&#039;s english only&#039;&#039;). It&#039;s available in two installation types:&lt;br /&gt;
&lt;br /&gt;
*Mimic (&#039;&#039;version 1&#039;&#039;) runs locally on device and has an understable but not great quality. But runs on small computer devices like a Raspberry Pi. It&#039;s by default the &amp;quot;fallback&amp;quot; if other voices are not available.&lt;br /&gt;
*Mimic (version 2) is provided by Mycroft AI server/cloud backend infrastructure and offers a better voice quality (&#039;&#039;english only&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
==Tips &amp;amp; Tricks==&lt;br /&gt;
&lt;br /&gt;
===Build Mimic 1 on device===&lt;br /&gt;
While setting up a Mycroft device installer will ask to build Mimic 1 locally. If you initially skipped this you can also re-run dev_setup.sh with a -fm flag for &amp;quot;force mimic&amp;quot;.&amp;lt;blockquote&amp;gt;./dev_setup.sh -fm&amp;lt;/blockquote&amp;gt;You can do the opposite, by running flag to &amp;quot;skip mimic&amp;quot;:&amp;lt;blockquote&amp;gt;./dev_setup.sh -sm&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation (mimic v1) ==&lt;br /&gt;
&lt;br /&gt;
===== On Arch based distros =====&lt;br /&gt;
Install from the AUR: https://aur.archlinux.org/packages/mimic&lt;br /&gt;
&lt;br /&gt;
===== On Debian based distros =====&lt;br /&gt;
 &amp;lt;code&amp;gt;$ sudo apt-get install gcc make pkg-config automake libtool libasound2-dev&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== On Fedora based distros =====&lt;br /&gt;
 &amp;lt;code&amp;gt;$ sudo dnf install gcc make pkgconfig automake libtool alsa-lib-devel&amp;lt;/code&amp;gt;&lt;br /&gt;
Mimic v1 source: https://github.com/MycroftAI/mimic1&lt;br /&gt;
&lt;br /&gt;
== KDE &amp;amp; gnome integration (mimic v1) ==&lt;br /&gt;
&lt;br /&gt;
This setup will let you read text with mimic tts from &#039;&#039;&#039;any application&#039;&#039;&#039; on your system simply by pressing a keyboard command.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After installing mimic on your system adding this line to a custom keyboard shortcut in KDE or Gnome.&lt;br /&gt;
 &amp;lt;code&amp;gt;xsel &amp;gt; /tmp/speak.txt | sleep 0.3 | mimic -f /tmp/speak.txt | pkill xsel&amp;lt;/code&amp;gt;&lt;br /&gt;
I further optimised this by adding some configuration options that change the pitch and speed of the voice:&lt;br /&gt;
 &amp;lt;code&amp;gt;xsel &amp;gt; /tmp/speak.txt | mimic -voice slt --setf duration_stretch=0.85 --setf int_f0_target_mean=165 -f /tmp/speak.txt | pkill xsel&amp;lt;/code&amp;gt;&lt;br /&gt;
Stop mimic with:&lt;br /&gt;
 &amp;lt;code&amp;gt;pkill mimic&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important:&#039;&#039;&#039; as these commands are run as a scrip instead of in a full shell environment its best to put the full path to each application you call, for example: usr/bin/xsel &amp;amp; usr/bin/mimic etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In gnome open system settings then go to: Keyboard » Customise Shortcuts » Custom Shortcuts » + and make two new shortcuts, one to start reading using the line above and another shortcut to stop reading with the &amp;lt;code&amp;gt;pkill mimic&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
In KDE open system settings then go to: Shortcuts » Custom Shortcuts and make to new shortcuts one to start reading using the line above and another shortcut to stop reading with the &amp;lt;code&amp;gt;pkill mimic&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
Create a file for xsel to store the text you want to read. In this example this file is in the /tmp directory and is called speak.txt (but you can use a different file name and directory if you like).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;What do these commands and switch’s do:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;xsel &amp;gt; my_file_name.txt&amp;lt;/code&amp;gt; (over rights the text in the file with highlighted text)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sleep 0.3&amp;lt;/code&amp;gt; (tells the next command to wait for 0.3 seconds)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mimic&amp;lt;/code&amp;gt; (calls the mimic tts engine to start speaking)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;-voice slt&amp;lt;/code&amp;gt; (sets the voice to the slt voice)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;--setf duration_stretch=0.85&amp;lt;/code&amp;gt; (makes it speak 25% faster (1 = normal speed and 1.5 in slower 50%)).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;--setf int_f0_target_mean=165&amp;lt;/code&amp;gt; (makes the pitch higher and =1 would make the pitch very low).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;-f&amp;lt;/code&amp;gt; (means read text from file)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;pkill xsel&amp;lt;/code&amp;gt; (stops the computer starting a new process for xsel every time this command is run).&lt;br /&gt;
&lt;br /&gt;
There are quite a few voices installed with Mimic, the voice slt was my favourite. Type: &amp;lt;code&amp;gt;mimic -lv&amp;lt;/code&amp;gt; in terminal to see a list of installed voices. Type: &amp;lt;code&amp;gt;man mimic&amp;lt;/code&amp;gt; to see all the options and switches.&lt;br /&gt;
&lt;br /&gt;
Mimic is built on [https://github.com/festvox/flite flite-tts] and the commands are the same as far as I can see.&lt;br /&gt;
&lt;br /&gt;
Source: https://ebenfarnworth.substack.com/p/text-to-speech-tts-on-linux&lt;/div&gt;</summary>
		<author><name>Eben</name></author>
	</entry>
	<entry>
		<id>https://openvoice-tech.net/index.php?title=Mycroft_Mimic&amp;diff=2233</id>
		<title>Mycroft Mimic</title>
		<link rel="alternate" type="text/html" href="https://openvoice-tech.net/index.php?title=Mycroft_Mimic&amp;diff=2233"/>
		<updated>2022-01-15T05:59:09Z</updated>

		<summary type="html">&lt;p&gt;Eben: /* Arch based distros */  spelling fix&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Mycroft]]&lt;br /&gt;
[[Category:TTS]]&lt;br /&gt;
&lt;br /&gt;
==What&#039;s Mycroft Mimic==&lt;br /&gt;
It is a TTS system delivered with Mycroft (&#039;&#039;by Nov 2021 it&#039;s english only&#039;&#039;). It&#039;s available in two installation types:&lt;br /&gt;
&lt;br /&gt;
*Mimic (&#039;&#039;version 1&#039;&#039;) runs locally on device and has an understable but not great quality. But runs on small computer devices like a Raspberry Pi. It&#039;s by default the &amp;quot;fallback&amp;quot; if other voices are not available.&lt;br /&gt;
*Mimic (version 2) is provided by Mycroft AI server/cloud backend infrastructure and offers a better voice quality (&#039;&#039;english only&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
==Tips &amp;amp; Tricks==&lt;br /&gt;
&lt;br /&gt;
===Build Mimic 1 on device===&lt;br /&gt;
While setting up a Mycroft device installer will ask to build Mimic 1 locally. If you initially skipped this you can also re-run dev_setup.sh with a -fm flag for &amp;quot;force mimic&amp;quot;.&amp;lt;blockquote&amp;gt;./dev_setup.sh -fm&amp;lt;/blockquote&amp;gt;You can do the opposite, by running flag to &amp;quot;skip mimic&amp;quot;:&amp;lt;blockquote&amp;gt;./dev_setup.sh -sm&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation (mimic v1) ==&lt;br /&gt;
&lt;br /&gt;
===== On Arch based distros =====&lt;br /&gt;
Install from the AUR: https://aur.archlinux.org/packages/mimic&lt;br /&gt;
&lt;br /&gt;
===== On Debian based distros =====&lt;br /&gt;
 &amp;lt;code&amp;gt;$ sudo apt-get install gcc make pkg-config automake libtool libasound2-dev&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== On Fedora based distros =====&lt;br /&gt;
 &amp;lt;code&amp;gt;$ sudo dnf install gcc make pkgconfig automake libtool alsa-lib-devel&amp;lt;/code&amp;gt;&lt;br /&gt;
Mimic v1 source: https://github.com/MycroftAI/mimic1&lt;br /&gt;
&lt;br /&gt;
== KDE &amp;amp; gnome integration (mimic v1) ==&lt;br /&gt;
&lt;br /&gt;
This setup will let you read text with mimic tts from &#039;&#039;&#039;any application&#039;&#039;&#039; on your system simply by pressing a keyboard command.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After installing mimic on your system adding this line to a custom keyboard shortcut in KDE or Gnome.&lt;br /&gt;
 &amp;lt;code&amp;gt;xsel &amp;gt; /tmp/speak.txt | sleep 0.3 | mimic -f /tmp/speak.txt | pkill xsel&amp;lt;/code&amp;gt;&lt;br /&gt;
I further optimised this by adding some configuration options that change the pitch and speed of the voice:&lt;br /&gt;
 &amp;lt;code&amp;gt;xsel &amp;gt; /tmp/speak.txt | mimic -voice slt --setf duration_stretch=0.85 --setf int_f0_target_mean=165 -f /tmp/speak.txt | pkill xsel&amp;lt;/code&amp;gt;&lt;br /&gt;
Stop mimic with:&lt;br /&gt;
 &amp;lt;code&amp;gt;pkill mimic&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In gnome open system settings then go to: Keyboard » Customise Shortcuts » Custom Shortcuts » + and make two new shortcuts, one to start reading using the line above and another shortcut to stop reading with the &amp;lt;code&amp;gt;pkill mimic&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
In KDE open system settings then go to: Shortcuts » Custom Shortcuts and make to new shortcuts one to start reading using the line above and another shortcut to stop reading with the &amp;lt;code&amp;gt;pkill mimic&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
Create a file for xsel to store the text you want to read. In this example this file is in the /tmp directory and is called speak.txt (but you can use a different file name and directory if you like).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;What do these commands and switch’s do:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;xsel &amp;gt; my_file_name.txt&amp;lt;/code&amp;gt; (over rights the text in the file with highlighted text)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sleep 0.3&amp;lt;/code&amp;gt; (tells the next command to wait for 0.3 seconds)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mimic&amp;lt;/code&amp;gt; (calls the mimic tts engine to start speaking)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;-voice slt&amp;lt;/code&amp;gt; (sets the voice to the slt voice)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;--setf duration_stretch=0.85&amp;lt;/code&amp;gt; (makes it speak 25% faster (1 = normal speed and 1.5 in slower 50%)).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;--setf int_f0_target_mean=165&amp;lt;/code&amp;gt; (makes the pitch higher and =1 would make the pitch very low).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;-f&amp;lt;/code&amp;gt; (means read text from file)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;pkill xsel&amp;lt;/code&amp;gt; (stops the computer starting a new process for xsel every time this command is run).&lt;br /&gt;
&lt;br /&gt;
There are quite a few voices installed with Mimic, the voice slt was my favourite. Type: &amp;lt;code&amp;gt;mimic -lv&amp;lt;/code&amp;gt; in terminal to see a list of installed voices. Type: &amp;lt;code&amp;gt;man mimic&amp;lt;/code&amp;gt; to see all the options and switches.&lt;br /&gt;
&lt;br /&gt;
Mimic is built on [https://github.com/festvox/flite flite-tts] and the commands are the same as far as I can see.&lt;br /&gt;
&lt;br /&gt;
Source: https://ebenfarnworth.substack.com/p/text-to-speech-tts-on-linux&lt;/div&gt;</summary>
		<author><name>Eben</name></author>
	</entry>
	<entry>
		<id>https://openvoice-tech.net/index.php?title=Mycroft_Mimic&amp;diff=2232</id>
		<title>Mycroft Mimic</title>
		<link rel="alternate" type="text/html" href="https://openvoice-tech.net/index.php?title=Mycroft_Mimic&amp;diff=2232"/>
		<updated>2022-01-15T05:55:00Z</updated>

		<summary type="html">&lt;p&gt;Eben: Installing mimic v1&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Mycroft]]&lt;br /&gt;
[[Category:TTS]]&lt;br /&gt;
&lt;br /&gt;
==What&#039;s Mycroft Mimic==&lt;br /&gt;
It is a TTS system delivered with Mycroft (&#039;&#039;by Nov 2021 it&#039;s english only&#039;&#039;). It&#039;s available in two installation types:&lt;br /&gt;
&lt;br /&gt;
*Mimic (&#039;&#039;version 1&#039;&#039;) runs locally on device and has an understable but not great quality. But runs on small computer devices like a Raspberry Pi. It&#039;s by default the &amp;quot;fallback&amp;quot; if other voices are not available.&lt;br /&gt;
*Mimic (version 2) is provided by Mycroft AI server/cloud backend infrastructure and offers a better voice quality (&#039;&#039;english only&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
==Tips &amp;amp; Tricks==&lt;br /&gt;
&lt;br /&gt;
===Build Mimic 1 on device===&lt;br /&gt;
While setting up a Mycroft device installer will ask to build Mimic 1 locally. If you initially skipped this you can also re-run dev_setup.sh with a -fm flag for &amp;quot;force mimic&amp;quot;.&amp;lt;blockquote&amp;gt;./dev_setup.sh -fm&amp;lt;/blockquote&amp;gt;You can do the opposite, by running flag to &amp;quot;skip mimic&amp;quot;:&amp;lt;blockquote&amp;gt;./dev_setup.sh -sm&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installation (mimic v1) ==&lt;br /&gt;
&lt;br /&gt;
===== Arch based distros =====&lt;br /&gt;
Install form the AUR: https://aur.archlinux.org/packages/mimic&lt;br /&gt;
&lt;br /&gt;
===== On Debian/Ubuntu =====&lt;br /&gt;
 &amp;lt;code&amp;gt;$ sudo apt-get install gcc make pkg-config automake libtool libasound2-dev&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== On Fedora =====&lt;br /&gt;
 &amp;lt;code&amp;gt;$ sudo dnf install gcc make pkgconfig automake libtool alsa-lib-devel&amp;lt;/code&amp;gt;&lt;br /&gt;
Mimic v1 source: https://github.com/MycroftAI/mimic1&lt;br /&gt;
&lt;br /&gt;
== KDE &amp;amp; gnome integration (mimic v1) ==&lt;br /&gt;
&lt;br /&gt;
This setup will let you read text with mimic tts from &#039;&#039;&#039;any application&#039;&#039;&#039; on your system simply by pressing a keyboard command.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After installing mimic on your system adding this line to a custom keyboard shortcut in KDE or Gnome.&lt;br /&gt;
 &amp;lt;code&amp;gt;xsel &amp;gt; /tmp/speak.txt | sleep 0.3 | mimic -f /tmp/speak.txt | pkill xsel&amp;lt;/code&amp;gt;&lt;br /&gt;
I further optimised this by adding some configuration options that change the pitch and speed of the voice:&lt;br /&gt;
 &amp;lt;code&amp;gt;xsel &amp;gt; /tmp/speak.txt | mimic -voice slt --setf duration_stretch=0.85 --setf int_f0_target_mean=165 -f /tmp/speak.txt | pkill xsel&amp;lt;/code&amp;gt;&lt;br /&gt;
Stop mimic with:&lt;br /&gt;
 &amp;lt;code&amp;gt;pkill mimic&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In gnome open system settings then go to: Keyboard » Customise Shortcuts » Custom Shortcuts » + and make two new shortcuts, one to start reading using the line above and another shortcut to stop reading with the &amp;lt;code&amp;gt;pkill mimic&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
In KDE open system settings then go to: Shortcuts » Custom Shortcuts and make to new shortcuts one to start reading using the line above and another shortcut to stop reading with the &amp;lt;code&amp;gt;pkill mimic&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
Create a file for xsel to store the text you want to read. In this example this file is in the /tmp directory and is called speak.txt (but you can use a different file name and directory if you like).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;What do these commands and switch’s do:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;xsel &amp;gt; my_file_name.txt&amp;lt;/code&amp;gt; (over rights the text in the file with highlighted text)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sleep 0.3&amp;lt;/code&amp;gt; (tells the next command to wait for 0.3 seconds)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mimic&amp;lt;/code&amp;gt; (calls the mimic tts engine to start speaking)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;-voice slt&amp;lt;/code&amp;gt; (sets the voice to the slt voice)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;--setf duration_stretch=0.85&amp;lt;/code&amp;gt; (makes it speak 25% faster (1 = normal speed and 1.5 in slower 50%)).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;--setf int_f0_target_mean=165&amp;lt;/code&amp;gt; (makes the pitch higher and =1 would make the pitch very low).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;-f&amp;lt;/code&amp;gt; (means read text from file)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;pkill xsel&amp;lt;/code&amp;gt; (stops the computer starting a new process for xsel every time this command is run).&lt;br /&gt;
&lt;br /&gt;
There are quite a few voices installed with Mimic, the voice slt was my favourite. Type: &amp;lt;code&amp;gt;mimic -lv&amp;lt;/code&amp;gt; in terminal to see a list of installed voices. Type: &amp;lt;code&amp;gt;man mimic&amp;lt;/code&amp;gt; to see all the options and switches.&lt;br /&gt;
&lt;br /&gt;
Mimic is built on [https://github.com/festvox/flite flite-tts] and the commands are the same as far as I can see.&lt;br /&gt;
&lt;br /&gt;
Source: https://ebenfarnworth.substack.com/p/text-to-speech-tts-on-linux&lt;/div&gt;</summary>
		<author><name>Eben</name></author>
	</entry>
	<entry>
		<id>https://openvoice-tech.net/index.php?title=ESpeak&amp;diff=2231</id>
		<title>ESpeak</title>
		<link rel="alternate" type="text/html" href="https://openvoice-tech.net/index.php?title=ESpeak&amp;diff=2231"/>
		<updated>2022-01-15T04:34:05Z</updated>

		<summary type="html">&lt;p&gt;Eben: Use Espeak-ng to read text on your system from any application&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What are eSpeak and eSpeak-NG? ==&lt;br /&gt;
eSpeak is a compact open source (GNU GPL license) software speech synthesizer for English and other languages, for Linux and Windows. It uses a &amp;quot;formant synthesis&amp;quot; method. This allows many languages to be provided in a small size. The speech is clear, and can be used at high speeds, but is not as natural or smooth as larger synthesizers which are based on human speech recordings.&lt;br /&gt;
&lt;br /&gt;
Originally known as &#039;&#039;&#039;speak&#039;&#039;&#039; and originally written for Acorn/RISC_OS computers starting in 1995, eSpeak is an enhancement and re-write, including a relaxation of the original memory and processing power constraints and comes with support for additional languages.&amp;lt;ref&amp;gt;http://espeak.sourceforge.net/&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In 2010 Reece H. Dunn started maintaining a version of eSpeak on GitHub that was forked in late 2015 and renamed to &#039;&#039;&#039;eSpeak NG&#039;&#039;&#039;. The new eSpeak NG project is a significant departure from the eSpeak project with the intention of cleaning up the existing codebase, adding new features and improving the supported languages.&amp;lt;ref&amp;gt;https://github.com/espeak-ng/espeak-ng&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Advantages ==&lt;br /&gt;
Although it has been practically around since the dawn of time (or at least the personal computer) there are still good reasons to use eSpeak:&lt;br /&gt;
&lt;br /&gt;
* It is blazing fast, audio generation is almost instant even on SBCs like the Raspberry Pi Zero&lt;br /&gt;
* It is very small and memory consumption is negligible on modern systems (~5MB [source?])&lt;br /&gt;
* It is available on basically any platform either as command line program, shared library, SAPI5 version for Windows screen-readers, etc..&lt;br /&gt;
* Although the voice sounds rather robotic it has a certain charm, especially if you are building little robots ;-)&lt;br /&gt;
* It is available in dozens of languages&lt;br /&gt;
* It can translate text into phoneme codes and is often used to generate new dictionary entries for other systems (e.g. STT)&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
Debian command line tool (espeak-ng recommended):&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get install -y espeak-ng espeak-ng-espeak&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;NOTE: eSpeak is often found in other projects like [[OpenTTS]] or [https://github.com/SEPIA-Framework/sepia-assist-server/tree/master/Xtensions/TTS SEPIA Assist Server] and ready to use out-of-the-box.&lt;br /&gt;
&lt;br /&gt;
== Performance ==&lt;br /&gt;
eSpeak-NG (en):&lt;br /&gt;
&lt;br /&gt;
* Test system: Raspberry Pi4 4GB&lt;br /&gt;
* Sentence: &amp;quot;Hello this is a test&amp;quot;&lt;br /&gt;
* Run-time: 0.08 s&lt;br /&gt;
* Real-time-factor: 0.062&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
[UNDER CONSTRUCTION]&lt;br /&gt;
&lt;br /&gt;
[[Category:TTS]]&lt;br /&gt;
[[Category:Project]]&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;KDE &amp;amp; gnome integration (eSpeak-NG)&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This setup will let you read text with mimic tts from &#039;&#039;&#039;any application&#039;&#039;&#039; on your system simply by pressing a keyboard command.&lt;br /&gt;
&lt;br /&gt;
After installing eSpeak-ng on your system adding this line to a custom keyboard shortcut in KDE or Gnome.&lt;br /&gt;
 &amp;lt;code&amp;gt;xsel &amp;gt; /tmp/speak.txt | espeak-ng -f &amp;quot;/tmp/speak.txt&amp;quot; | pkill xsel&amp;lt;/code&amp;gt; &lt;br /&gt;
Type &amp;lt;code&amp;gt;man espeak-ng&amp;lt;/code&amp;gt; in your terminal to see a list of options for this speech engine.&lt;br /&gt;
&lt;br /&gt;
To stop espeak-ng we can use the following command:&lt;br /&gt;
 &amp;lt;code&amp;gt;pkill espeak-ng&amp;lt;/code&amp;gt;&lt;br /&gt;
In gnome open system settings then go to: Keyboard » Customise Shortcuts » Custom Shortcuts » + and make two new shortcuts, one to start reading using the line above and another shortcut to stop reading with the &amp;lt;code&amp;gt;pkill espeak-ng&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
In KDE open system settings then go to: Shortcuts » Custom Shortcuts and make to new shortcuts one to start reading using the line above and another shortcut to stop reading with the &amp;lt;code&amp;gt;pkill espeak-ng&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
Create a file for xsel to store the text you want to read. In this example this file is in the /tmp directory and is called speak.txt (but you can use a different file name and directory if you like).&lt;br /&gt;
&#039;&#039;&#039;What do these commands and switch’s do:&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;code&amp;gt;xsel &amp;gt; my_file_name.txt&amp;lt;/code&amp;gt; (over rights the text in the file with highlighted text)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;espeak-ng -f&amp;lt;/code&amp;gt; (calls the espeak-ng tts engine to start reading a file inside the &amp;quot;&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;pkill xsel&amp;lt;/code&amp;gt; (stops the computer starting a new process for xsel every time this command is run).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;pkill espeak-ng&amp;lt;/code&amp;gt; (stops espeak-ng).&lt;/div&gt;</summary>
		<author><name>Eben</name></author>
	</entry>
	<entry>
		<id>https://openvoice-tech.net/index.php?title=Mycroft_Mimic&amp;diff=2229</id>
		<title>Mycroft Mimic</title>
		<link rel="alternate" type="text/html" href="https://openvoice-tech.net/index.php?title=Mycroft_Mimic&amp;diff=2229"/>
		<updated>2022-01-14T12:49:39Z</updated>

		<summary type="html">&lt;p&gt;Eben: /* KDE &amp;amp; gnome integration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Mycroft]]&lt;br /&gt;
[[Category:TTS]]&lt;br /&gt;
&lt;br /&gt;
==What&#039;s Mycroft Mimic==&lt;br /&gt;
It is a TTS system delivered with Mycroft (&#039;&#039;by Nov 2021 it&#039;s english only&#039;&#039;). It&#039;s available in two installation types:&lt;br /&gt;
&lt;br /&gt;
*Mimic (&#039;&#039;version 1&#039;&#039;) runs locally on device and has an understable but not great quality. But runs on small computer devices like a Raspberry Pi. It&#039;s by default the &amp;quot;fallback&amp;quot; if other voices are not available.&lt;br /&gt;
*Mimic (version 2) is provided by Mycroft AI server/cloud backend infrastructure and offers a better voice quality (&#039;&#039;english only&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
==Tips &amp;amp; Tricks==&lt;br /&gt;
&lt;br /&gt;
===Build Mimic 1 on device===&lt;br /&gt;
While setting up a Mycroft device installer will ask to build Mimic 1 locally. If you initially skipped this you can also re-run dev_setup.sh with a -fm flag for &amp;quot;force mimic&amp;quot;.&amp;lt;blockquote&amp;gt;./dev_setup.sh -fm&amp;lt;/blockquote&amp;gt;You can do the opposite, by running flag to &amp;quot;skip mimic&amp;quot;:&amp;lt;blockquote&amp;gt;./dev_setup.sh -sm&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;KDE &amp;amp; gnome integration (mimic v1)&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After installing mimic on your system adding this line to a custom keyboard shortcut in KDE or Gnome.&lt;br /&gt;
 &amp;lt;code&amp;gt;xsel &amp;gt; /tmp/speak.txt | sleep 0.3 | mimic -f /tmp/speak.txt | pkill xsel&amp;lt;/code&amp;gt;&lt;br /&gt;
I further optimised this by adding some configuration options that change the pitch and speed of the voice:&lt;br /&gt;
 &amp;lt;code&amp;gt;xsel &amp;gt; /tmp/speak.txt | mimic -voice slt --setf duration_stretch=0.85 --setf int_f0_target_mean=165 -f /tmp/speak.txt | pkill xsel&amp;lt;/code&amp;gt;&lt;br /&gt;
Stop mimic with:&lt;br /&gt;
 &amp;lt;code&amp;gt;pkill mimic&amp;lt;/code&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;What do these commands and switch’s do:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;xsel &amp;gt; my_file_name.txt&amp;lt;/code&amp;gt; (over rights the text in the file with highlighted text)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sleep 0.3&amp;lt;/code&amp;gt; (tells the next command to wait for 0.3 seconds)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mimic&amp;lt;/code&amp;gt; (calls the mimic tts engine to start speaking)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;-voice slt&amp;lt;/code&amp;gt; (sets the voice to the slt voice)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;--setf duration_stretch=0.85&amp;lt;/code&amp;gt; (makes it speak 25% faster (1 = normal speed and 1.5 in slower 50%)).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;--setf int_f0_target_mean=165&amp;lt;/code&amp;gt; (makes the pitch higher and =1 would make the pitch very low).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;-f&amp;lt;/code&amp;gt; (means read text from file)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;pkill xsel&amp;lt;/code&amp;gt; (stops the computer starting a new process for xsel every time this command is run).&lt;br /&gt;
&lt;br /&gt;
There are quite a few voices installed with Mimic, the voice slt was my favourite. Type: &amp;lt;code&amp;gt;mimic -lv&amp;lt;/code&amp;gt; in terminal to see a list of installed voices. Type: &amp;lt;code&amp;gt;man mimic&amp;lt;/code&amp;gt; to see all the options and switches.&lt;br /&gt;
&lt;br /&gt;
Mimic is built on flite tts and the commands are the same as far as I can see.&lt;/div&gt;</summary>
		<author><name>Eben</name></author>
	</entry>
	<entry>
		<id>https://openvoice-tech.net/index.php?title=Mycroft_Mimic&amp;diff=2228</id>
		<title>Mycroft Mimic</title>
		<link rel="alternate" type="text/html" href="https://openvoice-tech.net/index.php?title=Mycroft_Mimic&amp;diff=2228"/>
		<updated>2022-01-14T12:47:11Z</updated>

		<summary type="html">&lt;p&gt;Eben: Added mimic KDE and gnome instructions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Mycroft]]&lt;br /&gt;
[[Category:TTS]]&lt;br /&gt;
&lt;br /&gt;
==What&#039;s Mycroft Mimic==&lt;br /&gt;
It is a TTS system delivered with Mycroft (&#039;&#039;by Nov 2021 it&#039;s english only&#039;&#039;). It&#039;s available in two installation types:&lt;br /&gt;
&lt;br /&gt;
*Mimic (&#039;&#039;version 1&#039;&#039;) runs locally on device and has an understable but not great quality. But runs on small computer devices like a Raspberry Pi. It&#039;s by default the &amp;quot;fallback&amp;quot; if other voices are not available.&lt;br /&gt;
*Mimic (version 2) is provided by Mycroft AI server/cloud backend infrastructure and offers a better voice quality (&#039;&#039;english only&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
==Tips &amp;amp; Tricks==&lt;br /&gt;
&lt;br /&gt;
===Build Mimic 1 on device===&lt;br /&gt;
While setting up a Mycroft device installer will ask to build Mimic 1 locally. If you initially skipped this you can also re-run dev_setup.sh with a -fm flag for &amp;quot;force mimic&amp;quot;.&amp;lt;blockquote&amp;gt;./dev_setup.sh -fm&amp;lt;/blockquote&amp;gt;You can do the opposite, by running flag to &amp;quot;skip mimic&amp;quot;:&amp;lt;blockquote&amp;gt;./dev_setup.sh -sm&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;KDE &amp;amp; gnome integration&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After installing mimic on your system adding this line to a custom keyboard shortcut in KDE or Gnome.&lt;br /&gt;
 &amp;lt;code&amp;gt;xsel &amp;gt; /tmp/speak.txt | sleep 0.3 | mimic -f /tmp/speak.txt | pkill xsel&amp;lt;/code&amp;gt;&lt;br /&gt;
I further optimised this by adding some configuration options that change the pitch and speed of the voice:&lt;br /&gt;
 &amp;lt;code&amp;gt;xsel &amp;gt; /tmp/speak.txt | mimic -voice slt --setf duration_stretch=0.85 --setf int_f0_target_mean=165 -f /tmp/speak.txt | pkill xsel&amp;lt;/code&amp;gt;&lt;br /&gt;
Stop mimic with:&lt;br /&gt;
 &amp;lt;code&amp;gt;pkill mimic&amp;lt;/code&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;What do these commands and switch’s do:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;xsel &amp;gt; my_file_name.txt&amp;lt;/code&amp;gt; (over rights the text in the file with highlighted text)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sleep 0.3&amp;lt;/code&amp;gt; (tells the next command to wait for 0.3 seconds)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mimic&amp;lt;/code&amp;gt; (calls the mimic tts engine to start speaking)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;-voice slt&amp;lt;/code&amp;gt; (sets the voice to the slt voice)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;--setf duration_stretch=0.85&amp;lt;/code&amp;gt; (makes it speak 25% faster (1 = normal speed and 1.5 in slower 50%)).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;--setf int_f0_target_mean=165&amp;lt;/code&amp;gt; (makes the pitch higher and =1 would make the pitch very low).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;-f&amp;lt;/code&amp;gt; (means read text from file)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;pkill xsel&amp;lt;/code&amp;gt; (stops the computer starting a new process for xsel every time this command is run).&lt;br /&gt;
&lt;br /&gt;
There are quite a few voices installed with Mimic, the voice slt was my favourite. Type: &amp;lt;code&amp;gt;mimic -lv&amp;lt;/code&amp;gt; in terminal to see a list of installed voices. Type: &amp;lt;code&amp;gt;man mimic&amp;lt;/code&amp;gt; to see all the options and switches.&lt;br /&gt;
&lt;br /&gt;
Mimic is built on flite tts and the commands are the same as far as I can see.&lt;/div&gt;</summary>
		<author><name>Eben</name></author>
	</entry>
</feed>