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

[Bug]: Failed to load TTS engines (Linux Mint) #98

Open
4 tasks done
delargewiu opened this issue Sep 3, 2024 · 10 comments
Open
4 tasks done

[Bug]: Failed to load TTS engines (Linux Mint) #98

delargewiu opened this issue Sep 3, 2024 · 10 comments
Assignees
Labels
bug Something isn't working more info needed Further information has been requested to diagnose the problem

Comments

@delargewiu
Copy link

Checklist

  • I have used the search function for OPEN issues to see if someone else has already submitted the same bug report.
  • I have also used the search function for CLOSED issues to see if the problem is already solved and just waiting to be released.
  • I have described the problem with as much detail as possible.
  • If the bug only to occurs with a certain paper, I will include its details.

Zotero version

7.0.3

ZoTTS version

1.2.1

OS

Linux

OS (specific)

Linux Mint 22 Cinnamon 6.2.9, Linux Kernel 6.8.0-40-generic

Steps to reproduce

  1. Installed the ZoTTS plugin
  2. Close and open Zotero

Expected behaviour

Open with ZoTTS GUI buttons available

Actual behaviour

Zotero opens with a dialog box that states, "ZoTTS, ERROR: ZoTTS failed to load TTS engines. Please submit a bug report for assistance." The GUI buttons for ZoTTS are also missing. This issue is identical on two different computers running the above-stated operating system.

@delargewiu delargewiu added the bug Something isn't working label Sep 3, 2024
@ImperialSquid
Copy link
Owner

Hi @delargewiu, thanks for your bug report!

Can you try going to this website and confirming if you see any voices listed in the dropdown?

If you don't see any voices it means you don't have a way to do TTS on your machines. You'll need to install speech-dispatcher as well as some kind of engine like espeak.

@HynDuf

This comment has been minimized.

@ImperialSquid

This comment has been minimized.

@ImperialSquid
Copy link
Owner

@delargewiu

Also, are you using Zotero in flatpak/some other sandboxed environment?

As mentioned in this issue (comment), Firefox (which Zotero is based on) was missing support for speech-dispatcher until version 123 (Z7 is based on v115 ESR)

@delargewiu
Copy link
Author

@ImperialSquid

I had Zotero installed using apt from a repository. I purged that and am now running from the extracted tarball as described on the Zotero website. Issue was still there. I was able to go to the website and see the voices and use the tool. Still had the issue. My system did have speech-dispatcher but not espeak so I installed it. I still have the issue.

@ImperialSquid
Copy link
Owner

ImperialSquid commented Sep 8, 2024

Hmmm, annoying that it wasn't an easy fix but oh well lol

In Zotero, from the top menu bar, go to Tools > Developer > Error Console, then paste the following code in and run it:

var utt = new window.SpeechSynthesisUtterance("test")
utt.onstart = () => {console.log("start")}
utt.onend = () => {console.log("end")}
utt.onerror = (error) => {console.log(error.error)}
window.speechSynthesis.speak(utt)

Let me know what output you see, may need to give it a couple of seconds for something to show up

Future versions of ZoTTS will have better error reporting ZoTTS should have better error reporting in the latest version, if you see a cause in the popup, you can also let me know what that says

@ImperialSquid ImperialSquid added the more info needed Further information has been requested to diagnose the problem label Sep 9, 2024
@trhi

This comment has been minimized.

@Dav1com

This comment has been minimized.

@ImperialSquid
Copy link
Owner

@trhi so just to confirm, you're not having issues any more?

@Dav1com since failed start ups can have a variety of causes, please open a new issue just to avoid confusion and cross talk while we diagnose everything (I know the bug template says about checking open issues, sorry for the confusion!)

@trhi

This comment has been minimized.

@ImperialSquid ImperialSquid changed the title [Bug]: Failed to load TTS engines [Bug]: Failed to load TTS engines (Linux Mint) Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working more info needed Further information has been requested to diagnose the problem
Projects
None yet
Development

No branches or pull requests

5 participants