-
Notifications
You must be signed in to change notification settings - Fork 8
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
coqui_ai_tts TypeError TTS.list_models() in Ubuntu22.04 #18
Comments
I have the same issue too. Have you got the solution? |
I have the same issue too. windows 11,python 3.11 During handling of the above exception, another exception occurred: ......, line 13, in |
Hello, I have Same problem on Mac OS and windows Example on windows 11 and python.12.4 Code : import pyttsx4 engine4 = pyttsx4.init('coqui_ai_tts') ` During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last):
|
import pyttsx4
engine = pyttsx4.init('coqui_ai_tts')
engine.say('this is an english text to voice test, listen it carefully and tell who i am.')
engine.runAndWait()
Traceback (most recent call last):
File "/home/dearfad/miniconda3/envs/breastvsp/lib/python3.10/site-packages/pyttsx4/init.py", line 20, in init
eng = _activeEngines[driverName]
File "/home/dearfad/miniconda3/envs/breastvsp/lib/python3.10/weakref.py", line 137, in getitem
o = self.datakey
KeyError: 'coqui_ai_tts'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/dearfad/Repositories/breastvsp/libs/tts/coqui.py", line 3, in
engine = pyttsx4.init('coqui_ai_tts')
File "/home/dearfad/miniconda3/envs/breastvsp/lib/python3.10/site-packages/pyttsx4/init.py", line 22, in init
eng = Engine(driverName, debug)
File "/home/dearfad/miniconda3/envs/breastvsp/lib/python3.10/site-packages/pyttsx4/engine.py", line 30, in init
self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug)
File "/home/dearfad/miniconda3/envs/breastvsp/lib/python3.10/site-packages/pyttsx4/driver.py", line 52, in init
self._driver = self._module.buildDriver(weakref.proxy(self))
File "/home/dearfad/miniconda3/envs/breastvsp/lib/python3.10/site-packages/pyttsx4/drivers/coqui_ai_tts.py", line 15, in buildDriver
return TTSDriver(proxy)
File "/home/dearfad/miniconda3/envs/breastvsp/lib/python3.10/site-packages/pyttsx4/drivers/coqui_ai_tts.py", line 21, in init
self.model_name = TTS(TTS.list_models()[0])
TypeError: TTS.list_models() missing 1 required positional argument: 'self'
How to solve it...
The text was updated successfully, but these errors were encountered: