I've added some new features to this plugin:
- Added event after speaking finished
- {DATE} context is working properly
- Added option for selection of output device
Pako
Of course, there is some possibility.OklahomaGreyBeard wrote:Is there a way to change the output of {TIME} to not include the seconds?
Code: Select all
Exception in thread Thread-1520:
Traceback (most recent call last):
File "threading.pyc", line 532, in __bootstrap_inner
File "C:\Program Files (x86)\EventGhost\plugins\Speech\__init__.py", line 218, in run
tts.Speak(self.text,0)
File "<COMObject SAPI.SpVoice>", line 3, in Speak
com_error: (-2147352567, 'Exception occurred.', (0, None, None, None, 0, -2147221164), None)
I'm sorry, but I do not intend to make any non-standard acts, such as editing the registry. For this reason, I have no option to work to fix the problem.kalia wrote:I added additional voices using the following tutorial (https://forums.robertsspaceindustries.c ... n7-8-64bit).
I can see the additional voices in the Speech macro, but the following error comes up when I try to use the additional voices.
I cannot delete the plugin within EVENTGHOST as I have far too many related actions21:58:58 Exception in thread Thread-2005:
21:58:58 Traceback (most recent call last):
21:58:58 File "threading.pyc", line 532, in __bootstrap_inner
21:58:58 File "C:\PROGRA~2\EVENTG~1\plugins\Speech\__init__.py", line 222, in run
21:58:58 self.plugin.text.suffix,
21:58:58 AttributeError: class EmptyDefaultText has no attribute 'suffix'
Exception in thread Thread-19:
Traceback (most recent call last):
File "threading.pyc", line 532, in __bootstrap_inner
File "C:\Program Files (x86)\EventGhost\plugins\Speech\__init__.py", line 220, in run
tts.Speak(self.text,0)
File "<COMObject SAPI.SpVoice>", line 3, in Speak
com_error: (-2147352567, 'Exception occurred.', (0, None, u"SSML input not valid; cannot find 'speak' element.", None, 0, -2147200925), None)
When Speech is called 2 times, the 2 phrases are spoken one after the other so the SAPI "queues" the incoming speech. What I tried to do in my code is to stop (pause) any on-going Speech before queuing a new phrase. And you are right, the thread is incorrectly handled in my codekgschlosser wrote: ↑Mon Nov 20, 2017 3:44 amI see what ya did here.
I do not use this plugin at all. So I do not know what the original plugin does when you have it speak 2 times.
Does it speak one right over he other?
Does it stop the one then play the other?
Does it play one after the other with or without a pause?