ImperialSquid / zotero-zotts

A Zotero plugin adding text to speech (TTS) functionality to various screens
GNU Affero General Public License v3.0
86 stars 1 forks source link

[Bug]: Failed to load TTS engine (macOS Sequoia) #124

Closed egli-nina closed 3 weeks ago

egli-nina commented 3 weeks ago

Checklist

Zotero version

7.0.7

ZoTTS version

1.3.0

OS

Mac

OS (specific)

macOS Sequoia 15.0.1

Steps to reproduce

  1. Installed the ZoTTS plugin.
  2. Closed and reopened Zotero.
  3. Restarted computer just in case.
  4. Checked that voices appeared in https://mdn.github.io/dom-examples/web-speech-api/speak-easy-synthesis/ - they do.

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.

ImperialSquid commented 3 weeks ago

Hi @egli-nina, thanks for your bug report!

Can you navigate to the error console, from the top navigation bar click Tools > Developer > Error Console.

In the text box at the bottom, paste in the following lines and let me know what values you see for each:

egli-nina commented 3 weeks ago

Hello @ImperialSquid! Thanks for developing this :)

Both lines yield TypeError: Zotero.ZoTTS.data.tts.engines.webSpeech is undefined upon typing and

Uncaught TypeError: Zotero.ZoTTS.data.tts.engines.webSpeech is undefined
    <anonymous> debugger eval code:1
    getEvalResult resource://devtools/server/actors/webconsole/eval-with-debugger.js:238
    evalWithDebugger resource://devtools/server/actors/webconsole/eval-with-debugger.js:166
    evaluateJS resource://devtools/server/actors/webconsole.js:940
    evaluateJSAsync resource://devtools/server/actors/webconsole.js:846
    makeInfallible resource://devtools/shared/ThreadSafeDevToolsUtils.js:103

upon entering.

ImperialSquid commented 3 weeks ago

I believe I've found and solved the issue, just going to do some more testing to be sure but a fix should be released soon! 😊

egli-nina commented 3 weeks ago

Awesome, thank you for the fix and the super speedy answers!

github-actions[bot] commented 1 week ago

:rocket: This ticket has been resolved in v1.4.0. See Release v1.4.0 for release notes.

ImperialSquid commented 1 week ago

Hi @egli-nina, thanks for your patience.

The bug should be resolved now so you should be able to use ZoTTS!

Let me know if you run into any further issues.

egli-nina commented 1 week ago

Works perfectly, thank you very much!