Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

IntelliSpeech

Questions and comments specific to a particular plugin should go here.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: IntelliSpeech

Post by Pako »

Sem;colon wrote:Hi Pako, IntelliSpeech doesn't work with EG 0.5.0 yet
I'm sorry, but now I do not have time to do it.
I did not install 5.0 so far.

Pako
You know flattr ? You can Image
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: IntelliSpeech

Post by Pako »

The new version (0.6) of the plugin is available.
No innovations, only forced modifications (to regain functionality).

Pako
You know flattr ? You can Image
dorr35
Posts: 5
Joined: Sat Oct 29, 2016 8:58 pm

Re: IntelliSpeech

Post by dorr35 »

When trying to test the microphone speech to text I get an error as defined below
Traceback (most recent call last) (1710):
File "C:\Program Files (x86)\EventGhost\plugins\IntelliSpeech\__init__.py", line 2034, in run
r = sr.Recognizer(language = self.lng)
TypeError: __init__() got an unexpected keyword argument 'language'
This is a great plugin and would love to get this to work. Your help is greatly appreciated.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: IntelliSpeech

Post by Pako »

dorr35 wrote:r = sr.Recognizer(language = self.lng)
TypeError: __init__() got an unexpected keyword argument 'language
'
It appears that you have the wrong version of some file. Please carefully follow all the steps to upgrade again.
Maybe it's my fault. I found that the ZIP file IntelliSpeech_0.6.zip was not assembled correctly.
There lacked the main directory IntelliSpeech. I added it in there and I did reupload.
You know flattr ? You can Image
dorr35
Posts: 5
Joined: Sat Oct 29, 2016 8:58 pm

Re: IntelliSpeech

Post by dorr35 »

Thank you for your reply. I replaced the folder with the new download but that did not fix the problem. The error has changed. When I activate mic to text the error is now
Exception in thread Thread-308:
Traceback (most recent call last):
File "threading.pyc", line 532, in __bootstrap_inner
File "threading.pyc", line 484, in run
File "C:\Program Files (x86)\EventGhost\plugins\IntelliSpeech\__init__.py", line 1841, in Animate
while self.run:
File "wx\_core.pyc", line 14619, in __getattr__
PyDeadObjectError: The C++ part of the Animation object has been deleted, attribute access no longer allowed.
Maybe I am implementing it wrong. I am fairly new to eventghost.
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1710">
<Macro Name="dictate" Expanded="True">
<Event Name="Intellispeech.dicate" />
<Action>
IntelliSpeech.MicToText([u'English', u'United States'], 2500, 0.80000000000000004, u'Success', u'Failure', True, u'Default input device', 1)
</Action>
</Macro>
</EventGhost>
Could you possibly show an example of the correct configuration?

I am running Windows 10 x64 with EventGhost 1.4.1.r1710

Thank you in advance for your reply.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: IntelliSpeech

Post by Pako »

Well, at least some progress. The error is changed, therefore, incorrect installation was confirmed.
So now we deal with a new bug.
I do not know how to get the same behavior for me - for me it works.
However, I tried to make some adjustments. Attached is a test version of the plugin.
Please try to replace __init__.py file in the root directory of the plugin.

Pako
Attachments
__init__.py
Test version 0.7
(156.11 KiB) Downloaded 190 times
You know flattr ? You can Image
dorr35
Posts: 5
Joined: Sat Oct 29, 2016 8:58 pm

Re: IntelliSpeech

Post by dorr35 »

Again thank you for your assistance. The above attached file was not successful. I am still receiving errors. I am pretty sure this is a problem with configuration. Would it be possible you could upload a working tree for me to look at? I have used speakeasy but this would allow me to mic to text which I could surely use.
Thank you again in advance for your assistance in this matter.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: IntelliSpeech

Post by Pako »

dorr35 wrote:... I am still receiving errors. I am pretty sure this is a problem with configuration.
I am afraid that it is not so.
I think it will rather cover the operating system and the like.
However, we can try it differently. Give your configuration file as an attachment and I will test how it behaves in my computer.

Pako
You know flattr ? You can Image
dorr35
Posts: 5
Joined: Sat Oct 29, 2016 8:58 pm

Re: IntelliSpeech

Post by dorr35 »

Here is an example of a configuration file I am currently working on. Once I quit speaking it gives this error in eventghost:
Exception in thread Thread-6:
Traceback (most recent call last):
File "threading.pyc", line 532, in __bootstrap_inner
File "threading.pyc", line 484, in run
File "C:\Program Files (x86)\EventGhost\plugins\IntelliSpeech\__init__.py", line 1841, in Animate
while self.run:
File "wx\_core.pyc", line 14619, in __getattr__
PyDeadObjectError: The C++ part of the Animation object has been deleted, attribute access no longer allowed.
I am hoping to get this working so I will be able to speak my searches in the text boxes inside Kodi search. Looking forward to your having a look at it and giving me your input.
Attachments
test.xml
(73.26 KiB) Downloaded 158 times
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: IntelliSpeech

Post by Pako »

It's exactly as I expected.
In my computer, it works normally. I have a Windows 8.1 / 64 bits.
However, I think that even so you can use it.
Only you have to turn off the animated indicator:
DisableAnimation.png
DisableAnimation.png (3.99 KiB) Viewed 5829 times
Pako
You know flattr ? You can Image
dorr35
Posts: 5
Joined: Sat Oct 29, 2016 8:58 pm

Re: IntelliSpeech

Post by dorr35 »

Thank you. That removed the error but when I talk there is no text output. I tried to speak while notepad was open but nothing happened. The page remained blank. I assume I am missing a step somewhere? I know we're close to having this operational. I am sorry to keep bothering you but I really want this to work.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: IntelliSpeech

Post by Pako »

dorr35 wrote:I tried to speak while notepad was open but nothing happened.
I do not know what you expect. You do not need a notepad.
Try using the attached configuration file (it works as a translator from English into German).
Highlight the item "Microphone input" and press green button "Execute Item". Then speak.

Note: The result of processing input from the microphone is always an EVENT. In the picture is marked.
The text is a payload. It is necessary to somehow process.
IntelliSpeech-Translator.png
Pako
Attachments
test_IntelliSpeech.xml
(1.69 KiB) Downloaded 146 times
You know flattr ? You can Image
rmiles7721
Posts: 4
Joined: Sat Jun 28, 2014 2:14 am

Re: IntelliSpeech

Post by rmiles7721 »

When I attempt to load the plugin I am getting the following errors:

Error loading plugin file: C:\EventGhost\plugins\IntelliSpeech
Traceback (most recent call last) (0.5.0-beta5):
File "C:\EventGhost\plugins\IntelliSpeech\__init__.py", line 114, in <module>
from _pyaudio import pyaudio
File "C:\EventGhost\plugins\IntelliSpeech\lib\_pyaudio\__init__.py", line 1, in <module>
from pyaudio import __version__
File "C:\EventGhost\plugins\IntelliSpeech\lib\_pyaudio\pyaudio.py", line 116, in <module>
import _portaudio as pa
ImportError: DLL load failed: The specified module could not be found.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: IntelliSpeech

Post by Pako »

Maybe it's because you're using EventGhost 5.0.
Please try EventGhost 0.4.1.r1722.
Unfortunately, I do not know how to make support for 5.0.

Pako
Foune
Experienced User
Posts: 96
Joined: Sun Jul 03, 2011 7:08 pm

Re: IntelliSpeech

Post by Foune »

Hello,

I just saw this thread, unfortunately it's a bit late as I spent a part of the past week-end setting up the speech function using nirCmd and windows TTS.
Everything is working as long as I have a remote session on my eg server. Some minutes after having closed the rdp, the speech macros won't play any sound. No error in the log. This server is also used as a music player using other apps (spotify web client, squeeze player, etc.), all these apps are working flawlessly when TTS events keep silent.

Is there any clue to explain this? Should I migrate to this IntelliSpeech plugin to solve this?
Post Reply