Cloudgarden's Discussion Board
Forums: Search: Several forums are available for people to post questions/comments about Java Speech or any of the CloudGarden products. As more messages are posted this discussion board should provide a useful, searchable, support database.
o AliceTalker (42)
o JSAPI Projects (69)
o Java Speech API (857)
o Jigloo GUI Builder for Eclipse (3322)
o SwingScroller (0)
o US Election 2004 (3)
Searches text and subject fields in all forums. The search matches as many words as possible. Don't use "AND" or "OR".
Latest "AliceTalker" Topics [ Start new "AliceTalker" Topic  ]

Cloudgarden Discussion Board  
This topic has 11 replies.       [ << Previous Topic | Start of Thread | >> Next Topic ]
How do i get the voice recognition working?
Author: Chris
04/21/03 16:38 Reply
Another simple one for ya, I got a mic plugged in which works, have ticked "enable voice recognition" but the console says "Mic Is Off", and won't turn on when i click that. I've studied the help file and i don't think i'm missing anything. Any Ideas?

Re: How do i get the voice recognition working?
Author:Jonathan
Reply 1 of 1104/21/03 18:56Reply
Actually, I just looked at the code and realised you need a SAPI5
recognizer to be installed for recognition to work - you can download
Microsoft's SAPI5 engines using the links on the cloudgarden website.

If you don't want to install the SAPI5 engines, and want to re-compile the
code instead so it will use SAPI4 recognizers too, you can edit AliceTalker
line 309 from:

     if(reco == null) initRecognizer(getSAPI5RecognizerModeDesc(),null);
to:
     if(reco == null) initRecognizer(null , null);

AliceTalker is due for a small update, so this will be one of the changes.

PS: I can't remember if there was a really good reason for only using SAPI5
recognizers, so this change should probably work OK :-)

Re: How do i get the voice recognition working?
Author:Chris
Reply 2 of 1104/22/03 08:27Reply
You'll have to bear with me here, i'm familiar with editing files but i cannot find this line. I'm using wordpad to open them (I'm probably way off, lol) but i'm a little lost as to how to get to it.

Thanks

Re: How do i get the voice recognition working?
Author:Chris
Reply 3 of 1104/23/03 06:42Reply
Please help, i'm very new to this stuff, and i just don't know how to edit line 309.
Thanks

Re: How do i get the voice recognition working?
Author:Jonathan
Reply 4 of 1104/23/03 09:17Reply
Sorry for the delay.

I'd say the simplest solution would be to install the MS SAPI5 engines
(which are a free download from http://www.microsoft.com/speech/download/sdk51 )

Otherwise, search for the text "getSAPI5RecognizerModeDesc" in Wordpad.
Then you need to re-compile AliceTalker using a command something like:

c:/jdk1.4.1/bin/javac -cp ".;cgjsapi.jar" com/cloudgarden/alice/AliceTalker.java

Re: How do i get the voice recognition working?
Author:Chris
Reply 5 of 1104/23/03 12:21Reply
I would love to install the SAPI5 engines but the file is simply too large (i'm on narrowband still) but thanks, i'll try your second advice and see if i have any luck :)

Re: How do i get the voice recognition working?
Author:Chris
Reply 6 of 1104/23/03 16:18Reply
Ok, I have altered line 309 and in AliceTalker.java and attempted to enter the command to recompile it but the mic is still not switching on.

When i tried to connect the dos screen says, "at com.cloudgarden.alice.AliceTalker.enableReco(AliceTalker.java:309)

I'm also not sure whether i've recompiled it as i should do. All i did was enter the command path (without the cgjsapi.jar, i tried to put it in but it was not recognised) , the AliceTalker file popped up so i again changed line 309 then saved it.
Am i doing things right?


Re: How do i get the voice recognition working?
Author:Jonathan
Reply 7 of 1104/24/03 13:26Reply
Sorry - I didn't look closely enough at my own code - it *should* work for
both SAPI4 and SAPI5 engines without that modification that I suggested.

So, I suspect you don't have a speech-recognition engine installed? (I can't
think of any other explanation just now). Did you download and install the
SAPI4 suite, or just a SAPI4 TTS engine? You can check whether you have a
SR engine installed by opening up "Start->Control Panel->Speech" and looking
under the "Speech Input" node on the SAPI4 speech control panel.

Re: How do i get the voice recognition working?
Author:Chris
Reply 8 of 1104/25/03 09:24Reply
Well, after all that it seems i may not have it installed. I'm using windowsXP home edition, and i was told i already have the SAPI5 installed...but maybe not it seems, lol. So now i don't know what i've got! I have Microsoft Sam, Dave and Mary as text to speech...but i can't access the speech input node, nor is there any indication of whether the 'speech' control panel is SAPI4 or what. The microsoft website says that XP Office has speech recognition, but doesn't indicate whether XP Home ED has it. I suspect it doesn't! Grrr!

Re: How do i get the voice recognition working?
Author:Jonathan
Reply 9 of 1104/25/03 17:18Reply
Yes, I don't think the SR engine comes as part of XP by default.
I think you can order a CD from Microsoft for the SAPI5 engines,
or I could burn a CD and mail it to you.

Re: How do i get the voice recognition working?
Author:Chris
Reply 10 of 1104/25/03 18:45Reply
If its not too much trouble that would be great! MS said it could take them up to 3 weeks, so anything is better than waiting that long, lol.
I'll look for your email and send over the details:)


Re: How do i get the voice recognition working?
Author:Chris
Reply 11 of 1105/10/03 18:15Reply
I have not heard from you. Are you good for the CD? If not please let me know