I have installed mimic3 tts. I can use it from command line. I can access it from browser. So it works alone. But if I configure it into Speech Dispatcher, the dispatcher does not restart. Here is the according log:
[Fri Jan 20 15:00:46 2023 : 296216] speechd: Speech Dispatcher Logging to file /run/speech-dispatcher/.cache/speech-dispatcher/log//speech-dispatcher.log
[Fri Jan 20 15:00:46 2023 : 296317] speechd: Configuration has been read from “/etc/speech-dispatcher/speechd.conf”
[Fri Jan 20 15:00:46 2023 : 296392] speechd: Initializing output module mimic3 with binary /usr/lib/speech-dispatcher-modules/mimic3 and configuration /etc/speech-dispatcher/modules/mimic3-generic.conf
[Fri Jan 20 15:00:46 2023 : 296398] speechd: Output module is logging to file /run/speech-dispatcher/.cache/speech-dispatcher/log//mimic3.log
[Fri Jan 20 15:00:46 2023 : 296654] speechd: Module mimic3 loaded.
[Fri Jan 20 15:00:47 2023 : 629280] speechd: Unknown response from output module!
[Fri Jan 20 15:00:47 2023 : 629527] speechd: Unknown response from output module!
[Fri Jan 20 15:00:47 2023 : 629532] speechd: ERROR: Can’t initialize audio in output module, see reason above.
[Fri Jan 20 15:00:47 2023 : 629622] speechd: Speech Dispatcher Logging to file /run/speech-dispatcher/.cache/speech-dispatcher/log//speech-dispatcher.log
[Fri Jan 20 15:00:47 2023 : 629632] speechd: Error [speechd.c:672]:No speech output modules were loaded - aborting…
command gives no error message. But there is no sound neither from spd-say, nor from the Calibre read aloud function. The log says no clients connected, stops and unloads everything.
If I give for AudioOutputMethod “pulse” (which is default audio system in my Kubuntu) then speech-dispatcher does not restart, in the log there are:
Sat Feb 4 15:56:57 2023 : 289898] speechd: Reply from output module: |300-Opening sound device failed. Reason: Couldn’t open pulse plugin.
300 MODULE ERROR
|
[Sat Feb 4 15:56:57 2023 : 289903] speechd: Error: Module reported error in request from speechd (code 3xx): 300-Opening sound device failed. Reason: Couldn’t open pulse plugin.
300 MODULE ERROR
Alas, it did not. I made the post after reading that tutorial and experimenting with the configuration.
Since that time I have upgraded my Linux to the Lunar and now mimic3 does not work even in command line. There is probably some incompability in the new packages.
Make sure the double-quotes you just pasted within the previous 5 lines are simple ASCII double-quotes. It’s always a problem copying from a web page.
From the mimic3 source code, copy examples/speech-dispatcher/mimic3-generic.conf to $HOME/.config/speech-dispatcher/modules/
At this point, you should be able to use mimic3 from the command line. If you run ‘mimic3-server’ you should be able to hear speech with a command like ‘spd-say testing’
If the previous step (8.) failed, sorry but I can’t help you
If you had success and want mimic3 as a service, follow the steps in DOCURL#systemd-service
I’m happy to report that it works.
Kubuntu 23.04 (Lunar) Python version (3.11.2-1) was not suitable due to some minor incompatibility. So I installed Anaconda (my computer is already full of giant snakes…) and created a virtual environment for Python 3.9 This is where mimic3 tts works.
Speech Dispatcher version 0.11.4-2. This has a mixed relationship with mimic3. It contains the mimic3-generic module, but it was omitted from the list of the speechd.conf file. After I wrote in the lines also recommended by joaovsilva the module works.
The last problem came from the components of my computer: 3 different playback devices are available in it. With the pavucontrol program, the paplay player had to be assigned to the device on which I wanted to hear the sound.
Now I can make Calibre or Okular read aloud my favourite ebooks.
Please help. I am on Manjaro Linux. I want to use mimic3 in Okular via speech-despatcher.
I installed in env, via pip. Here is my instillation process.
Make sure to change /path/to/mimic3-server to wherever you installed Mimic 3.
How can I locate where the server is on my installation?
Do I need to create file in /etc /etc/speech-dispatcher/modules/mimic3-generic.conf
or it is enough to create one in /home/user/.config/speech-dispatcher/
Also this is unclear to me: Put mimic3 executables on PATH by creating symlinks to the executables in $HOME/.local/bin/
Can you tell me from where to where exactly did you create symlinks?
The /home/user/.config/speech-dispatcher is OK. Here You do not need root privileges.
As I have written previously, I used Anaconda for the virtual environment. The installation process had made for me all out of box. I have the symlinks to the executables in ~/bin. I do not know where they are in Manjaro with (env). You have search for mimic3-server on Your computer.