Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mimic3 not working after reboot #39

Open
TJH58 opened this issue Mar 30, 2023 · 12 comments
Open

Mimic3 not working after reboot #39

TJH58 opened this issue Mar 30, 2023 · 12 comments

Comments

@TJH58
Copy link

TJH58 commented Mar 30, 2023

I installed and built Mimic3 source on a Manjaro Linux machine. After installed the source, everything worked fine. After reboot, I get the following error when trying to use a simple command:

[tim@tim-pc ~]$ mimic3 "Hello World!"
Reading text from stdin...
INFO:mimic3_tts.tts:Loaded voice from /usr/share/mycroft/mimic3/voices/en_UK/apope_low
ALSA lib dlmisc.c:339:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_pcm_pulse.so (/usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_pulse.so: cannot open shared object file: No such file or directory)
aplay: main:831: audio open error: No such device or address
Traceback (most recent call last):
File "mimic3.py", line 40, in
File "mimic3_tts/main.py", line 129, in main
File "mimic3_tts/main.py", line 481, in process_lines
File "mimic3_tts/main.py", line 512, in play_wav_bytes
File "subprocess.py", line 424, in check_output
File "subprocess.py", line 528, in run
subprocess.CalledProcessError: Command '['aplay', '-q', '/tmp/tmpl417ya40.wav']' returned non-zero exit status 1.
[1624] Failed to execute script 'mimic3' due to unhandled exception!

I then created the folder and copied the file here: /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_pulse.so, but it just tells me another module that's missing.

@synesthesiam
Copy link
Collaborator

Sounds like a program you added or removed ended up installing/removing ALSA or PulseAudio.

@TJH58
Copy link
Author

TJH58 commented Mar 31, 2023 via email

@synesthesiam
Copy link
Collaborator

You might want to reinstall libasound2-plugins

@TJH58
Copy link
Author

TJH58 commented Apr 2, 2023 via email

@TJH58
Copy link
Author

TJH58 commented Apr 2, 2023 via email

@synesthesiam
Copy link
Collaborator

This isn't really a mimic3 issue, it's related to "aplay" which mimic3 will call if you don't add the command line argument to save the WAV file.

@TJH58
Copy link
Author

TJH58 commented Apr 3, 2023 via email

@TJH58
Copy link
Author

TJH58 commented Apr 3, 2023 via email

@TJH58
Copy link
Author

TJH58 commented Apr 4, 2023 via email

@synesthesiam
Copy link
Collaborator

Are you able to use aplay apart from Mimic 3?

@TJH58
Copy link
Author

TJH58 commented Apr 5, 2023 via email

@taiyu-len
Copy link

taiyu-len commented Oct 14, 2023

Hello, Ive come across this issue too.

The cause is mimic3 introducing new environment variables, which causes aplay to fail.

specifically, LD_LIBRARY_PATH

an easy solution is to simply unset that from os.environ before the subprocess.check_output call.
if you dont wish to change environ for anything else, making a copy and passing a unset version via the env= parameter to check_output would work as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants