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

Synth can't load #42

Closed
M3198 opened this issue Apr 19, 2024 · 13 comments
Closed

Synth can't load #42

M3198 opened this issue Apr 19, 2024 · 13 comments

Comments

@M3198
Copy link

M3198 commented Apr 19, 2024

Hi,

Hope you're doing well.
Once I download the voices, I want to use them. However, whenever I select sanata tts from the NVDA settings, it gives me the following error: Error:Cannot load speach synthesizer.
Please fix as urgently as possible.

@mush42
Copy link
Owner

mush42 commented Apr 19, 2024

Hi
I want more details please.
Can you copy the entire NVDA log after trying to load the synthesizer?

@mush42 mush42 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 19, 2024
@mikebayus
Copy link

What version of NVDA are you running? If you are running an older version, it is very likely that the new version of the add-on won't work as it now works with NVDA 2024.1 I have NVDA 2024.1 running and it works great for me. Try Piper V2.0-beta2 and see if it works with NVDA 2023.3.4 or earlier. It should. Update NVDA.

@M3198
Copy link
Author

M3198 commented Apr 19, 2024

INFO - main (14:18:20.011) - MainThread (1220):
Starting NVDA version 2024.1
INFO - core.main (14:18:20.053) - MainThread (1220):
Config dir: C:\Users\Muhamed Deniz\AppData\Roaming\nvda
INFO - config.ConfigManager._loadConfig (14:18:20.056) - MainThread (1220):
Loading config: C:\Users\Muhamed Deniz\AppData\Roaming\nvda\nvda.ini
INFO - core.main (14:18:20.830) - MainThread (1220):
Windows version: Windows 10 22H2 (10.0.19045) workstation AMD64
INFO - core.main (14:18:20.830) - MainThread (1220):
Using Python version 3.11.6 (tags/v3.11.6:8b6ee5b, Oct 2 2023, 14:40:55) [MSC v.1935 32 bit (Intel)]
INFO - core.main (14:18:20.830) - MainThread (1220):
Using comtypes version 1.2.0
INFO - core.main (14:18:20.830) - MainThread (1220):
Using configobj version 5.1.0 with validate version 1.0.1
INFO - synthDriverHandler.setSynth (14:18:21.711) - MainThread (1220):
Loaded synthDriver eloquence
WARNING - mathPres.initialize (14:18:21.719) - MainThread (1220):
MathPlayer 4 not available
INFO - core.main (14:18:21.719) - MainThread (1220):
Using wx version 4.2.2a1 msw (phoenix) wxWidgets 3.2.4 with six version 1.16.0
INFO - brailleInput.initialize (14:18:21.721) - MainThread (1220):
Braille input initialized
INFO - braille.initialize (14:18:21.721) - MainThread (1220):
Using liblouis version 3.28.0
INFO - braille.initialize (14:18:21.721) - MainThread (1220):
Using pySerial version 3.5
ERROR - braille.BrailleHandler.setDisplayByName (14:18:21.723) - MainThread (1220):
Error initializing display driver 'freedomScientific'
Traceback (most recent call last):
File "braille.pyc", line 2191, in setDisplayByName
File "braille.pyc", line 2258, in _setDisplay
File "braille.pyc", line 2228, in _switchDisplay
File "extensionPoints\util.pyc", line 216, in callWithSupportedKwargs
File "brailleDisplayDrivers\freedomScientific.pyc", line 261, in init
RuntimeError: No Freedom Scientific display found
INFO - braille.BrailleHandler.setDisplay (14:18:21.726) - MainThread (1220):
Loaded braille display driver 'noBraille', current display has 0 cells.
INFO - core.main (14:18:21.906) - MainThread (1220):
Java Access Bridge support initialized
INFO - UIAHandler.UIAHandler.MTAThreadFunc (14:18:21.958) - UIAHandler.UIAHandler.MTAThread (16052):
UIAutomation: IUIAutomation6
WARNING - gui.getattr (14:18:22.564) - MainThread (1220):
Importing SettingsPanel from here is deprecated. Import SettingsPanel from gui.settingsDialogs instead.
Stack trace:
File "nvda.pyw", line 415, in
File "core.pyc", line 757, in main
File "globalPluginHandler.pyc", line 30, in initialize
File "globalPluginHandler.pyc", line 23, in listPlugins
File "importlib_init
.pyc", line 126, in import_module
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in find_and_load_unlocked
File "", line 690, in load_unlocked
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Users\Muhamed Deniz\AppData\Roaming\nvda\addons\whatsAppPlus\globalPlugins\WhatsAppPlus_init
.py", line 178, in
class WhatsAppPlusSettings(gui.SettingsPanel):
File "gui_init
.pyc", line 110, in getattr
ERROR - globalPluginHandler.listPlugins (14:18:23.453) - MainThread (1220):
Error importing global plugin unmute
Traceback (most recent call last):
File "globalPluginHandler.pyc", line 23, in listPlugins
File "importlib_init.pyc", line 126, in import_module
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in load_unlocked
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Users\Muhamed Deniz\AppData\Roaming\nvda\addons\unmute\globalPlugins\unmute_init
.py", line 19, in
from .pycaw import AudioDevice, IMMDevice, AudioUtilities, IAudioEndpointVolume, ISimpleAudioVolume
File "C:\Users\Muhamed Deniz\AppData\Roaming\nvda\addons\unmute\globalPlugins\unmute\pycaw.py", line 11, in
from . import psutil
File "C:\Users\Muhamed Deniz\AppData\Roaming\nvda\addons\unmute\globalPlugins\unmute\psutil_init
.py", line 109, in
from . import _pswindows as _psplatform
File "C:\Users\Muhamed Deniz\AppData\Roaming\nvda\addons\unmute\globalPlugins\unmute\psutil_pswindows.py", line 35, in
from ._psutil_windows import ABOVE_NORMAL_PRIORITY_CLASS
ModuleNotFoundError: No module named 'globalPlugins.unmute.psutil._psutil_windows'
INFO - external:sonata_neural_voices.aio.thread_target (14:18:26.005) - piper4nvda_asyncio (11156):
Starting asyncio event loop
WARNING - external:sonata_neural_voices.grpc_client.initialize (14:18:26.034) - piper4nvda_asyncio (11156):
Attempted to re-initialize an already initialized GRPC connection
INFO - external:sonata_neural_voices.grpc_client.initialize (14:18:28.614) - piper4nvda_asyncio (11156):
Bench: 2.5803894999990007
INFO - external:globalPlugins.openai.GlobalPlugin.init (14:18:29.712) - MainThread (1220):
Open AI initialized. Version: 24.04.17. 3 providers
INFO - external:globalPlugins.numpadNavMode.GlobalPlugin.init (14:18:29.767) - MainThread (1220):
numpadNavMode: initialized numpad to Windows mode.
INFO - external:globalPlugins.brailleExtender.GlobalPlugin.init (14:18:30.260) - MainThread (1220):
BrailleExtender 24.03.09-e200897 loaded (0.05s)
ERROR - globalPluginHandler.listPlugins (14:18:30.341) - MainThread (1220):
Error importing global plugin autoLangSwitch
Traceback (most recent call last):
File "globalPluginHandler.pyc", line 23, in listPlugins
File "importlib_init
.pyc", line 126, in import_module
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in load_unlocked
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Users\Muhamed Deniz\AppData\Roaming\nvda\addons\autoLangSwitch\globalPlugins\autoLangSwitch_init
.py", line 31, in
from . configPanel import (
File "C:\Users\Muhamed Deniz\AppData\Roaming\nvda\addons\autoLangSwitch\globalPlugins\autoLangSwitch\configPanel.py", line 82, in
checkSynth()
File "C:\Users\Muhamed Deniz\AppData\Roaming\nvda\addons\autoLangSwitch\globalPlugins\autoLangSwitch\configPanel.py", line 65, in checkSynth
synthLangs.append(lang.split("
")[0])
^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'split'
INFO - core.main (14:18:31.185) - MainThread (1220):
NVDA initialized
WARNING - stdout (14:18:31.258) - MainThread (1220):
vRemote : 240417, vLocal : 240417
INFO - external:synthDrivers.sonata_neural_voices.aio.thread_target (14:18:38.260) - piper4nvda_asyncio (16896):
Starting asyncio event loop
WARNING - external:synthDrivers.sonata_neural_voices.grpc_client.initialize (14:18:38.261) - piper4nvda_asyncio (16896):
Attempted to re-initialize an already initialized GRPC connection
INFO - external:synthDrivers.sonata_neural_voices.grpc_client.initialize (14:18:40.226) - piper4nvda_asyncio (16896):
Bench: 1.965873000001011
INFO - external:synthDrivers.sonata_neural_voices.SynthDriver.init (14:18:40.227) - MainThread (1220):
Sonata GRPC server running on port 50423
INFO - external:synthDrivers.sonata_neural_voices.SynthDriver.init (14:18:40.227) - MainThread (1220):
Connected to Sonata GRPC server
INFO - external:synthDrivers.sonata_neural_voices.SynthDriver.init (14:18:40.227) - MainThread (1220):
Sonata GRPC server version: 0.2.0
WARNING - synthDriverHandler.SynthDriver.loadSettings (14:18:41.834) - MainThread (1220):
Invalid voice: ar_JO-kareem-medium
ERROR - synthDriverHandler.setSynth (14:18:41.836) - MainThread (1220):
setSynth failed for sonata_neural_voices
Traceback (most recent call last):
File "synthDriverHandler.pyc", line 350, in loadSettings
File "synthDriverHandler.pyc", line 399, in changeVoice
File "C:\Users\Muhamed Deniz\AppData\Roaming\nvda\addons\sonata_neural_voices\synthDrivers\sonata_neural_voices_init
.py", line 537, in _set_voice
update_displaied_params_on_voice_change(self)
File "C:\Users\Muhamed Deniz\AppData\Roaming\nvda\addons\sonata_neural_voices\synthDrivers\sonata_neural_voices\helpers.py", line 67, in update_displaied_params_on_voice_change
voice_panel.speakerList.SetItems([s.displayName for s in speakers])
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'VoiceSettingsPanel' object has no attribute 'speakerList'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "synthDriverHandler.pyc", line 484, in setSynth
File "synthDriverHandler.pyc", line 451, in getSynthInstance
File "synthDriverHandler.pyc", line 341, in initSettings
File "synthDriverHandler.pyc", line 356, in loadSettings
File "synthDriverHandler.pyc", line 399, in changeVoice
File "C:\Users\Muhamed Deniz\AppData\Roaming\nvda\addons\sonata_neural_voices\synthDrivers\sonata_neural_voices_init_.py", line 537, in set_voice
update_displaied_params_on_voice_change(self)
File "C:\Users\Muhamed Deniz\AppData\Roaming\nvda\addons\sonata_neural_voices\synthDrivers\sonata_neural_voices\helpers.py", line 67, in update_displaied_params_on_voice_change
voice_panel.speakerList.SetItems([s.displayName for s in speakers])
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'VoiceSettingsPanel' object has no attribute 'speakerList'
INFO - synthDriverHandler.setSynth (14:18:41.875) - MainThread (1220):
Falling back to previous synthDriver eloquence
INFO - synthDriverHandler.setSynth (14:18:42.118) - MainThread (1220):
Loaded synthDriver eloquence
INFO - external:synthDrivers.sonata_neural_voices.SynthDriver.init (14:20:20.671) - MainThread (1220):
Sonata GRPC server running on port 50423
INFO - external:synthDrivers.sonata_neural_voices.SynthDriver.init (14:20:20.671) - MainThread (1220):
Connected to Sonata GRPC server
INFO - external:synthDrivers.sonata_neural_voices.SynthDriver.init (14:20:20.671) - MainThread (1220):
Sonata GRPC server version: 0.2.0
WARNING - synthDriverHandler.SynthDriver.loadSettings (14:20:20.899) - MainThread (1220):
Invalid voice: ar_JO-kareem-medium
ERROR - synthDriverHandler.setSynth (14:20:20.901) - MainThread (1220):
setSynth failed for sonata_neural_voices
Traceback (most recent call last):
File "synthDriverHandler.pyc", line 350, in loadSettings
File "synthDriverHandler.pyc", line 399, in changeVoice
File "C:\Users\Muhamed Deniz\AppData\Roaming\nvda\addons\sonata_neural_voices\synthDrivers\sonata_neural_voices_init
.py", line 537, in _set_voice
update_displaied_params_on_voice_change(self)
File "C:\Users\Muhamed Deniz\AppData\Roaming\nvda\addons\sonata_neural_voices\synthDrivers\sonata_neural_voices\helpers.py", line 67, in update_displaied_params_on_voice_change
voice_panel.speakerList.SetItems([s.displayName for s in speakers])
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'VoiceSettingsPanel' object has no attribute 'speakerList'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "synthDriverHandler.pyc", line 484, in setSynth
File "synthDriverHandler.pyc", line 451, in getSynthInstance
File "synthDriverHandler.pyc", line 341, in initSettings
File "synthDriverHandler.pyc", line 356, in loadSettings
File "synthDriverHandler.pyc", line 399, in changeVoice
File "C:\Users\Muhamed Deniz\AppData\Roaming\nvda\addons\sonata_neural_voices\synthDrivers\sonata_neural_voices_init_.py", line 537, in _set_voice
update_displaied_params_on_voice_change(self)
File "C:\Users\Muhamed Deniz\AppData\Roaming\nvda\addons\sonata_neural_voices\synthDrivers\sonata_neural_voices\helpers.py", line 67, in update_displaied_params_on_voice_change
voice_panel.speakerList.SetItems([s.displayName for s in speakers])
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'VoiceSettingsPanel' object has no attribute 'speakerList'
INFO - synthDriverHandler.setSynth (14:20:20.926) - MainThread (1220):
Falling back to previous synthDriver eloquence
INFO - synthDriverHandler.setSynth (14:20:21.175) - MainThread (1220):
Loaded synthDriver eloquence
ERROR - unhandled exception (14:20:21.320) - MainThread (1220):
Traceback (most recent call last):
File "wx\core.pyc", line 3427, in
File "gui\settingsDialogs.pyc", line 1475, in refreshGui
RuntimeError: wrapped C/C++ object of type BoxSizer has been deleted

I'm using NVDA 2024.1

@mikebayus
Copy link

mikebayus commented Apr 19, 2024 via email

@M3198
Copy link
Author

M3198 commented Apr 19, 2024

Tried all of that. After I deleted the piper folder and things, I created a portable copy without the Sanata addon as well as the associated files with it then I uninstalled NVDA and reinstalled from a portable copy.
Then I tried installing sanata again, still same problem.

@mikebayus
Copy link

mikebayus commented Apr 19, 2024 via email

@M3198
Copy link
Author

M3198 commented Apr 19, 2024

I don't think it's a windows 10/11 issue.
When I first installed it it was working. Then when I switched back to eloquence it stopped working, and I've been having a problem since then.
Tried even trying to start the tts using other synths like acapela, same problem.

Let's hope the developer can issue a fix

@mikebayus
Copy link

mikebayus commented Apr 19, 2024 via email

@mush42
Copy link
Owner

mush42 commented Apr 19, 2024

Weird.
Another update is coming. Maybe it'll fix this issue.

@M3198
Copy link
Author

M3198 commented Apr 19, 2024

Tried that, still same issue.
I don't think it's to do with eloquence.

@M3198
Copy link
Author

M3198 commented Apr 19, 2024

Just to ask, what's the easiest way to reply on github?
When I receive a notification that my issue has been replied to, should I directly reply to the email normally i.e. pressing control r in thunderbird for example?
I'm new to this github, by the way.
Best regards,
Muhammad.

@M3198
Copy link
Author

M3198 commented Apr 20, 2024

Here's another error log that might be much clearer on the subject. I updated to the pre release version just today, by the way..

Traceback (most recent call last):
File "synthDriverHandler.pyc", line 484, in setSynth
File "synthDriverHandler.pyc", line 451, in getSynthInstance
File "synthDriverHandler.pyc", line 341, in initSettings
File "synthDriverHandler.pyc", line 356, in loadSettings
File "synthDriverHandler.pyc", line 399, in changeVoice
File "C:\Users\Muhamed Deniz\AppData\Roaming\nvda\addons\sonata_neural_voices\synthDrivers\sonata_neural_voices_init_.py", line 534, in _set_voice
update_displaied_params_on_voice_change(self)
File "C:\Users\Muhamed Deniz\AppData\Roaming\nvda\addons\sonata_neural_voices\synthDrivers\sonata_neural_voices\helpers.py", line 67, in update_displaied_params_on_voice_change
voice_panel.speakerList.SetItems([s.displayName for s in speakers])
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'VoiceSettingsPanel' object has no attribute 'speakerList'
INFO - synthDriverHandler.setSynth (17:52:37.746) - MainThread (8744):
Falling back to previous synthDriver eloquence
INFO - synthDriverHandler.setSynth (17:52:37.992) - MainThread (8744):
Loaded synthDriver eloquence
INFO - globalCommands.script_navigatorObject_devInfo (17:52:40.788) - MainThread (8744):
Developer info for navigator object:
name: 'OK'
role: BUTTON
processID: 11296
roleText: None
states: FOCUSABLE, FOCUSED
isFocusable: True
hasFocus: True
Python object: <NVDAObjects.IAccessible.Button object at 0x0C09E3B0>
Python class mro: (<class 'NVDAObjects.IAccessible.Button'>, <class 'NVDAObjects.IAccessible.IAccessible'>, <class 'NVDAObjects.window.Window'>, <class 'NVDAObjects.NVDAObject'>, <class 'documentBase.TextContainerObject'>, <class 'baseObject.ScriptableObject'>, <class 'baseObject.AutoPropertyObject'>, <class 'garbageHandler.TrackedObject'>, <class 'object'>)
description: None
location: RectLTWH(left=1071, top=510, width=87, height=29)
value: None
TextInfo: <class 'NVDAObjects.NVDAObjectTextInfo'>
appModule: AppModule(nvda, appName='nvda', processID=11296)
appModule.productName: 'NVDA'
appModule.productVersion: '2024.1'
appModule.helperLocalBindingHandle: c_long(45104600)
windowHandle: 6685816
windowClassName: 'Button'
windowControlID: 0
windowStyle: 1342177281
extendedWindowStyle: 0
windowThreadID: 8744
windowText: 'OK'
displayText: 'OK'
IAccessibleObject: <POINTER(IAccessible) ptr=0xb47be48 at 623dd00>
IAccessibleChildID: 0
IAccessible event parameters: windowHandle=6685816, objectID=-4, childID=0
IAccessible accName: 'OK'
IAccessible accRole: ROLE_SYSTEM_PUSHBUTTON
IAccessible accState: STATE_SYSTEM_FOCUSED, STATE_SYSTEM_DEFAULT, STATE_SYSTEM_FOCUSABLE, STATE_SYSTEM_VALID (1048836)
IAccessible accDescription: None
IAccessible accValue: None

@mush42
Copy link
Owner

mush42 commented May 18, 2024

@M3198 please try the latest release.

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