I have installed TextToSpeech via Package Control. When I try do list commands for it in command pallet none of the commands are present.
TextToSpeech Package not working
Yes, I uninstalled and install it a couple of times. I’m Windows 10 22H2 19045.4291
I still can’t make TTS to work. I tried installing Speech SDK 5.1 with no luck.
I also removed TTS package a couple of times, but TTS commands are not coming up in Sublime’s Control Panel.
It used to work before package got updated automatically.
At least on my end there seems to be an issue with the python-pywin32 dependency on package control, causing an import error for this package when it tries to load:
Traceback (most recent call last):
File "C:\Program Files\Sublime Text\Lib\python33\sublime_plugin.py", line 308, in reload_plugin
reloading plugin Default.copy_path
m = importlib.import_module(modulename)
File "./python3.3/importlib/__init__.py", line 90, in import_module
File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
reloading plugin Default.echo
File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
File "C:\Program Files\Sublime Text\Lib\python33\sublime_plugin.py", line 1635, in load_module
reloading plugin Default.exec
exec(compile(source, source_path, 'exec'), mod.__dict__)
File "C:\Users\Ben\AppData\Roaming\Sublime Text\Installed Packages\TextToSpeech.sublime-package\tts_commands.py", line 15, in <module>
File "C:\Program Files\Sublime Text\Lib\python33\sublime_plugin.py", line 1635, in load_module
exec(compile(source, source_path, 'exec'), mod.__dict__)
File "C:\Users\Ben\AppData\Roaming\Sublime Text\Installed Packages\TextToSpeech.sublime-package\simple_tts/__init__.py", line 213, in <module>
File "C:\Program Files\Sublime Text\Lib\python33\sublime_plugin.py", line 1635, in load_module
exec(compile(source, source_path, 'exec'), mod.__dict__)
File "C:\Users\Ben\AppData\Roaming\Sublime Text\Installed Packages\TextToSpeech.sublime-package\simple_tts/tts_win.py", line 16, in <module>
File "C:\Users\Ben\AppData\Roaming\Sublime Text\Lib\python33\win32com\__init__.py", line 5, in <module>
import win32api, sys, os
ImportError: No module named 'win32api'
reloading plugin Default.fold
pywin32 basically requires https://github.com/sublimehq/sublime_text/issues/6255 as it relies on .pth files being imported and respected by interpreter.
As I can see, from the thread, this will be fixed in new versions of Sublime xD
Thanks xD
Hi @deathaxe
Those lines that you added in the package, can I add them by myself in my installation of Sublime.
The only way to do it once, is to hack it into sublime.py or create a 0_init.sublime-package with a simple plugin containing just those 2 lines, just like Package Control 3 created such 0_loader package to inject custom library paths before any other 3rd-party-package is loaded.