Mycroft Mimic: Difference between revisions
| (3 intermediate revisions by 2 users not shown) | |||
| Line 13: | Line 13: | ||
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 "force mimic".<blockquote>./dev_setup.sh -fm</blockquote>You can do the opposite, by running flag to "skip mimic":<blockquote>./dev_setup.sh -sm</blockquote> | 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 "force mimic".<blockquote>./dev_setup.sh -fm</blockquote>You can do the opposite, by running flag to "skip mimic":<blockquote>./dev_setup.sh -sm</blockquote> | ||
== | == Installation (mimic v1) == | ||
===== On Arch based distros ===== | |||
Install from the AUR: https://aur.archlinux.org/packages/mimic | |||
===== On Debian based distros ===== | |||
<code>$ sudo apt-get install gcc make pkg-config automake libtool libasound2-dev</code> | |||
===== On Fedora based distros ===== | |||
<code>$ sudo dnf install gcc make pkgconfig automake libtool alsa-lib-devel</code> | |||
Mimic v1 source: https://github.com/MycroftAI/mimic1 | |||
== KDE & gnome integration (mimic v1) == | |||
This setup will let you read text with mimic tts from '''any application''' on your system simply by pressing a keyboard command. | |||
| Line 22: | Line 36: | ||
Stop mimic with: | Stop mimic with: | ||
<code>pkill mimic</code> | <code>pkill mimic</code> | ||
'''Important:''' 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 & usr/bin/mimic etc. | |||
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 <code>pkill mimic</code> command. | |||
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 <code>pkill mimic</code> command. | |||
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). | |||
'''What do these commands and switch’s do:''' | '''What do these commands and switch’s do:''' | ||
| Line 42: | Line 67: | ||
There are quite a few voices installed with Mimic, the voice slt was my favourite. Type: <code>mimic -lv</code> in terminal to see a list of installed voices. Type: <code>man mimic</code> to see all the options and switches. | There are quite a few voices installed with Mimic, the voice slt was my favourite. Type: <code>mimic -lv</code> in terminal to see a list of installed voices. Type: <code>man mimic</code> to see all the options and switches. | ||
Mimic is built on flite tts and the commands are the same as far as I can see. | Mimic is built on [https://github.com/festvox/flite flite-tts] and the commands are the same as far as I can see. | ||
Source: https://ebenfarnworth.substack.com/p/text-to-speech-tts-on-linux | |||