Jump to content


Photo

Gmspeech Dll - Finaly One That Works


  • Please log in to reply
100 replies to this topic

#1 coderchris

coderchris

    GMC Member

  • New Member
  • 332 posts

Posted 12 September 2005 - 01:46 AM

Ok, Ive never seen a working speech recognition but I think this one will get the trend started...

Im not saying its perfect because it is far from it but it is a good start I think

Features:
-Function to return text from mic
-Function to sythesize voice
-Function to play back the most recent recorded raw voice straight from the mic
-Function to check if the mic is active
-DLL itself is only 44kb
-One example to get you started

Download Here

You will also need the microsoft speech sdk
http://www.microsoft...download/sdk51/

The speech recognition is not extremely accurate...to improve this, go into the control panel and use the voice training in the speech panel.

Have fun, let me know how/if it works and what you think :)

Edited by coderchris, 21 September 2005 - 07:06 PM.

  • 1

#2 andrewmc

andrewmc

    GMC Member

  • New Member
  • 440 posts

Posted 12 September 2005 - 02:00 AM

Through beta testing this and messing around with the Microsoft Speech SDK, I have come to the following conclusions:

1. You should hold the mic at least five inces from your face and talk in a clear, normal voice.

2. Make small pauses in between words to make sure it doesn't get confused.

3. Train the sound recognition in the control panel for a more accurate recognition.

3. Make sure there arn't that many ambient sounds and block them out if you can, for instance if there it a dog barking loudly nearby it will attempt to recognize the bark.

Feel free to pass those tips on to the users of your game if they use this dll.
  • 0

#3 Diffusion Studios

Diffusion Studios

    GMC Member

  • New Member
  • 270 posts

Posted 12 September 2005 - 02:12 AM

Well, it didn't work for me. I have a working mic that I use in BF2 and the Speech Training thing worked fine, it recognized everything I said. However, it did nothing. When I ran it in debug and tested "check_mic();" it returned 0, which is obviously a problem. I should also say that "speak()" worked perfectly.
  • 0

#4 andrewmc

andrewmc

    GMC Member

  • New Member
  • 440 posts

Posted 12 September 2005 - 02:16 AM

Well, it didn't work for me. I have a working mic that I use in BF2 and the Speech Training thing worked fine, it recognized everything I said. However, it did nothing. When I ran it in debug and tested "check_mic();" it returned 0, which is obviously a problem. I should also say that "speak()" worked perfectly.

<{POST_SNAPBACK}>


It did not return even a word? Posting your system specs would be nice.

Edit: Check mic returning zero isn't a good thing, it's probably your hardware setup. I can't explain battlefield working. This dll should run perfectly, it's based off of Microsoft code.

Edited by andrewmc, 12 September 2005 - 02:18 AM.

  • 0

#5 Diffusion Studios

Diffusion Studios

    GMC Member

  • New Member
  • 270 posts

Posted 12 September 2005 - 02:22 AM

Specs:
Intel Pentium 4 with HT @3.2 GHz
1 GB RAM
128 MB ATI Radeon X300
Sound Blaster Live! 24-Bit
Windows XP Home Edition

Not top of the line, but not exactly shabby either. BF2 doesn't have voice recognition, it's VoIP, but still, the mic works fine.
  • 0

#6 andrewmc

andrewmc

    GMC Member

  • New Member
  • 440 posts

Posted 12 September 2005 - 02:28 AM

Specs:
Intel Pentium 4 with HT @3.2 GHz
1 GB RAM
128 MB ATI Radeon X300
Sound Blaster Live! 24-Bit
Windows XP Home Edition

Not top of the line, but not exactly shabby either. BF2 doesn't have voice recognition, it's VoIP, but still, the mic works fine.

<{POST_SNAPBACK}>


Have you ever done voice recognition on your computer before?
  • 0

#7 coderchris

coderchris

    GMC Member

  • New Member
  • 332 posts

Posted 12 September 2005 - 10:54 AM

I have not yet confirmed this, I still have to test it on my other pc, but its possible that the redistributable form of the speech api 5.1 is required

If you want to download that go to
http://www.microsoft...download/sdk51/
  • 0

#8 andrewmc

andrewmc

    GMC Member

  • New Member
  • 440 posts

Posted 12 September 2005 - 02:04 PM

Microsoft Speech Recognition Engine

Try downloading that 6mb file if you are having trouble.
  • 0

#9 PromaneX

PromaneX

    Fixer of broken web things

  • New Member
  • 489 posts

Posted 12 September 2005 - 06:25 PM

worked for me, it said a lot of random stuff, then i talked in an american accent and it got better, i managed to make the guy go up down and right but it would not recongnise "left" i got "let it" most of the time. I am going to train my computer and go again. good work though, it clearly works :)
  • 0

#10 arcooke

arcooke

    GMC Member

  • New Member
  • 1055 posts

Posted 12 September 2005 - 06:37 PM

The program locks up on me as soon as I opened it. It stays at 99% cpu.. can't be closed without ending the process.
  • 0

#11 Cyntrox

Cyntrox

    GMC Member

  • New Member
  • 153 posts

Posted 12 September 2005 - 06:58 PM

It sais error defining external function :)
  • 0

#12 coderchris

coderchris

    GMC Member

  • New Member
  • 332 posts

Posted 12 September 2005 - 07:40 PM

[QUOTE]It sais error defining external function [QUOTE]

Strange it works for me...make sure you have the dll in the same folder

[QUOTE]The program locks up on me as soon as I opened it. It stays at 99% cpu.. can't be closed without ending the process.[/QUOTE]

Make sure you didnt modify the code in the example and it should work fine...
  • 0

#13 Cyntrox

Cyntrox

    GMC Member

  • New Member
  • 153 posts

Posted 12 September 2005 - 07:51 PM

Hmmm... When I unzipped (running in winrar has worked for every single other program), it worked, but now I get the same error as adamsucks...
  • 0

#14 Diffusion Studios

Diffusion Studios

    GMC Member

  • New Member
  • 270 posts

Posted 12 September 2005 - 07:53 PM

Microsoft Speech Recognition Engine

Try downloading that 6mb file if you are having trouble.

<{POST_SNAPBACK}>

Well, I tried that, but it didn't work, so now I'm downloading the 68 MB one.

It sais error defining external function :P

<{POST_SNAPBACK}>

Make sure you actually unzipped it, not just running from the compressed folder.

Odd, it's working now :) . I didn't get the big file, but whatever. It's good, except for the fact that it thinks "dude" is "you'd have" :). It's also a bit slow, but I'm definately integrating this into the online game that I am making. Great job!

Edited by Diffusion Studios, 12 September 2005 - 07:56 PM.

  • 0

#15 Shinnoki

Shinnoki

    GMC Member

  • New Member
  • 582 posts

Posted 12 September 2005 - 07:56 PM

did not work for me, the example just froze and did not respond to ESC or close. I had to CTRL ALT DEL and kill the process. And i talked to my mic but nothing...

Edited by Shinnoki, 12 September 2005 - 07:57 PM.

  • 0

#16 lewa

lewa

    GMC Member

  • New Member
  • 587 posts

Posted 12 September 2005 - 07:58 PM

This DLL is absalutly awsome!!!
It recodnised every word I said! (even 'crap')
How do you do it....man...
  • 0

Supercilious, I know. Sorry. I blame GIMP.

#17 arcooke

arcooke

    GMC Member

  • New Member
  • 1055 posts

Posted 12 September 2005 - 08:29 PM

[quote name='coderchris' date='Sep 12 2005, 02:29 PM']
[QUOTE]It sais error defining external function [QUOTE]

Strange it works for me...make sure you have the dll in the same folder

[QUOTE]The program locks up on me as soon as I opened it. It stays at 99% cpu.. can't be closed without ending the process.[/QUOTE]

Make sure you didnt modify the code in the example and it should work fine...

<{POST_SNAPBACK}>

[/quote]

I downloaded it, put the files in a folder, opened the GM6, and pressed F5. That's it. I tried numerious times, and it locked up every time.

If it helps here are my specs:
AMD XP1700+
512 DDR400
WinXP Pro SP2 (<-- that could be the problem)
DirectX 9.0c
Latest VIA drivers.
Cmedia integrated soundcard chipset. (pretty standard among new motherboards)
  • 0

#18 L4nt0m

L4nt0m

    GMC Member

  • New Member
  • 59 posts

Posted 12 September 2005 - 08:46 PM

this is really cool!
  • 0

#19 coolgames

coolgames

    GMC Member

  • New Member
  • 228 posts

Posted 12 September 2005 - 09:35 PM

did not work for me, the example just froze and did not respond to ESC or close. I had to CTRL ALT DEL and kill the process. And i talked to my mic but nothing...

<{POST_SNAPBACK}>



You have to have Microsoft Speach recognition installed. If you don't the game will freeze. If you have Microsoft Office, speech recognition is included with it. Or you can download the file mentioned above.


This DLL works great. Just need to train the speech recognition. I'll use this in one of my games sometime.

Edit: I have a suggestion. I don't know if you can do this but here it is: Why don't you make it so can have a list of words that the DLL chooses that best matches what you said. So you don't have to repeat your command to make somthing happen.

Edited by coolgames, 12 September 2005 - 09:38 PM.

  • 0

#20 coderchris

coderchris

    GMC Member

  • New Member
  • 332 posts

Posted 12 September 2005 - 09:43 PM

Edit: I have a suggestion. I don't know if you can do this but here it is: Why don't you make it so can have a list of words that the DLL chooses that best matches what you said. So you don't have to repeat your command to make somthing happen.


Actualy im going to try to do something like that

And yes you have to download one of those speech recognition pacages (not sure if its the 68mb one or the smaller one)
But in any case, If you dont have microsoft speech recognition on ur pc you have to get it for it to not freeze
  • 0

#21 Diffusion Studios

Diffusion Studios

    GMC Member

  • New Member
  • 270 posts

Posted 12 September 2005 - 09:49 PM

I believe it would be the smaller one, it started working after that for me.
  • 0

#22 andrewmc

andrewmc

    GMC Member

  • New Member
  • 440 posts

Posted 12 September 2005 - 10:01 PM

I believe it would be the smaller one, it started working after that for me.

<{POST_SNAPBACK}>


Yeah, the 68 mb one is the whole sdk :)
  • 0

#23 msoft

msoft

    GMC Member

  • New Member
  • 54 posts

Posted 13 September 2005 - 04:22 PM

Great work coderchris!!!

This is a really cool dll!

i rate it with 9.5/10!!!

are there are speech recognition in other languages, like german?
  • 0

#24 coderchris

coderchris

    GMC Member

  • New Member
  • 332 posts

Posted 13 September 2005 - 07:09 PM

I would expect that there would be...i have yet to test it with any other languages but Im hoping its possible
  • 0

#25 Koratanu

Koratanu

    GMC Member

  • New Member
  • 27 posts

Posted 14 September 2005 - 01:54 AM

First of all: FINALLY! Major props for doing this.

But..................

I already had the Speech Recognition Engine on my computer. I tried it, and got the problem where it would start up but freeze. So I uninstalled the engine,and reinstalled it. Same problem. I then tried it on my laptop. Same thing. Anyone have any ideas?

I use Windows 98SE, with 2GHZ and 500MHZ (laptop) processors.

Please help. im really stoked to use this!

Again, thanks coderchris!
And thanks in advance...
  • 0

#26 coderchris

coderchris

    GMC Member

  • New Member
  • 332 posts

Posted 14 September 2005 - 10:46 AM

We still arent quite sure of the stuff you need to use the dll But,

Try downloading this:
Download Runtime

Then let me know if it starts working
  • 0

#27 Koratanu

Koratanu

    GMC Member

  • New Member
  • 27 posts

Posted 14 September 2005 - 11:34 PM

We still arent quite sure of the stuff you need to use the dll But,

Try downloading this:
Download Runtime

Then let me know if it starts working

<{POST_SNAPBACK}>


That is what i already had installed on my computer, but to be sure, I reinstalled it. Sure enough, still no speech to text :D. Anything else? What flavor of Windows do you guys have? Anywone with 98 get it working?
  • 0

#28 coderchris

coderchris

    GMC Member

  • New Member
  • 332 posts

Posted 15 September 2005 - 01:23 AM

Hmm....ill have to read up on some stuff to see what exactly is needed to use ms's speech stuff

By the way I have XP home
  • 0

#29 gamemaker intermediate

gamemaker intermediate

    GMC Member

  • New Member
  • 123 posts

Posted 15 September 2005 - 03:12 AM

will you give the source
  • 0

#30 coderchris

coderchris

    GMC Member

  • New Member
  • 332 posts

Posted 15 September 2005 - 11:50 PM

Actualy, yes

I am posting the source in hopes that someone who has some experience with ms speech sdk will come along and improve it..

I have only spent a grand total of about 4 hours on this and havent even used the ms speech sdk before this so I know that there is much room for improvement.

If it is improved in any way, I would ask that whoever updates it keeps it open source so we can all learn from it

Download Source (you may have to drag into address bar)

Edited by coderchris, 15 September 2005 - 11:50 PM.

  • 0

#31 gamemaker intermediate

gamemaker intermediate

    GMC Member

  • New Member
  • 123 posts

Posted 16 September 2005 - 12:04 AM

:o cool i thought the source would be a lot longer

Edited by gamemaker intermediate, 16 September 2005 - 12:06 AM.

  • 0

#32 Shinnoki

Shinnoki

    GMC Member

  • New Member
  • 582 posts

Posted 16 September 2005 - 12:06 PM

does not work either, i installed MS speech recog. and it still freezes (I have WinXP PRO)
  • 0

#33 kamen

kamen

    GMC Member

  • New Member
  • 226 posts

Posted 16 September 2005 - 01:25 PM

nice dll I think I could realy use this!
it worke for me by the way
-kamen
  • 0
PM me if you want a video tutorial
click...

#34 coderchris

coderchris

    GMC Member

  • New Member
  • 332 posts

Posted 16 September 2005 - 07:03 PM

cool i thought the source would be a lot longer

Yea its actualy surprisingly simple to get working

does not work either, i installed MS speech recog. and it still freezes (I have WinXP PRO)


That is very strange how some pc's work and others dont work with this...
Iv been searching around and I still cant find any reason why it wont work, especialy since you have XP.
There must be somthing Im missing here
  • 0

#35 gamemaker intermediate

gamemaker intermediate

    GMC Member

  • New Member
  • 123 posts

Posted 17 September 2005 - 12:10 AM

if you see a ball and a white background its working just incase you are the problem(no afence)

oh and if im correct only windows 2000 and above can have it im not shure if im correct

Edited by gamemaker intermediate, 17 September 2005 - 05:01 AM.

  • 0

#36 Andreas

Andreas

    GMC Member

  • New Member
  • 85 posts

Posted 17 September 2005 - 09:34 AM

That is very strange how some pc's work and others dont work with this...

Most reports that came in was from end users without speech SDK installed. The rest(workin ones) was from so called developers. Coincidence? You already have the answer in your second post in this threat, now just deal with the problem. b.t.w. glad to see that someone eventually started to do something in GM + voice recognition case :whistle:
  • 0

#37 coderchris

coderchris

    GMC Member

  • New Member
  • 332 posts

Posted 17 September 2005 - 01:35 PM

Most reports that came in was from end users without speech SDK installed. The rest(workin ones) was from so called developers. Coincidence? You already have the answer in your second post in this threat, now just deal with the problem. b.t.w. glad to see that someone eventually started to do something in GM + voice recognition case


You have a very good point...

Anyone who couldnt get it to work please try downloading this file and let me know if it starts working. If so then this is a requirement

http://www.microsoft...download/sdk51/
  • 0

#38 NEED HELP sorta

NEED HELP sorta

    GMC Member

  • New Member
  • 1501 posts

Posted 18 September 2005 - 03:52 AM

Wow this is really cool.
For simple words it works really well but, once you start saying other things it gets a few things wrong.
Anyway Its pretty cool. -_-
  • 0
http://img159.images...025/scr1ea8.png
http://img374.images...944/scr2hf6.png
Alagaesia Online - Not yet released.

You can bring the release date closer, by helping at the following topics:
Intro Narration
Music Topic

#39 Koratanu

Koratanu

    GMC Member

  • New Member
  • 27 posts

Posted 19 September 2005 - 11:06 PM

Most reports that came in was from end users without speech SDK installed. The rest(workin ones) was from so called developers. Coincidence? You already have the answer in your second post in this threat, now just deal with the problem. b.t.w. glad to see that someone eventually started to do something in GM + voice recognition case


You have a very good point...

Anyone who couldnt get it to work please try downloading this file and let me know if it starts working. If so then this is a requirement

http://www.microsoft...download/sdk51/

<{POST_SNAPBACK}>


Well that fixed the problem for me! I also found the problem many are having. You see, the engine you suggest in the first topic is the wrong engine. But the sdk adds the right engine. The only problem I get now is I get an illegal opperation message. Oh well, I can still start up the program and it only occurs when I exit, so... its no problem. This is very awesome, and the only thing I would do to make the acuuracy of ur example is to make it where you say "up" and "of" to go up (doubled my accuracy!) Well, very nice job coderchris. You get major props.
  • 0

#40 coderchris

coderchris

    GMC Member

  • New Member
  • 332 posts

Posted 21 September 2005 - 07:05 PM

Well that fixed the problem for me! I also found the problem many are having. You see, the engine you suggest in the first topic is the wrong engine. But the sdk adds the right engine. The only problem I get now is I get an illegal opperation message. Oh well, I can still start up the program and it only occurs when I exit, so... its no problem. This is very awesome, and the only thing I would do to make the acuuracy of ur example is to make it where you say "up" and "of" to go up (doubled my accuracy!) Well, very nice job coderchris. You get major props


Thanks and im glad that that one worked. Ill update teh first post now that I think we know what is needed.

I realy wish it was only the 6mb file but oh well ::lmao::
  • 0

#41 ffalcon2009

ffalcon2009

    GMC Member

  • New Member
  • 32 posts

Posted 21 September 2005 - 11:20 PM

Was this DLL made inGm?
  • 0

#42 coderchris

coderchris

    GMC Member

  • New Member
  • 332 posts

Posted 22 September 2005 - 01:32 AM

Was this DLL made inGm?


umm...It was made in c++ for GM
  • 0

#43 CHK(2)

CHK(2)

    GMC Member

  • GMC Member
  • 81 posts

Posted 22 September 2005 - 02:01 PM

hey, i cant get it work either...
i downloaded the actcnc thing and the 69.6mb thing
why? it still cant find my voice and my microphone work on msn... ::lmao::
  • 0

#44 ffalcon2009

ffalcon2009

    GMC Member

  • New Member
  • 32 posts

Posted 22 September 2005 - 08:35 PM

Is it possible to convert C++ to GML? (I have underdeveloped lungs and thought I could customize it for my unique voice.) I don't know C++.
  • 0

#45 silvertang

silvertang

    The GameMaker Future...

  • New Member
  • 111 posts
  • Version:Unknown

Posted 23 September 2005 - 04:32 AM

Specs:
Intel Pentium 4 with HT @3.2 GHz
1 GB RAM
128 MB ATI Radeon X300
Sound Blaster Live! 24-Bit
Windows XP Home Edition

Not top of the line, but not exactly shabby either. BF2 doesn't have voice recognition, it's VoIP, but still, the mic works fine.

<{POST_SNAPBACK}>


WOW sweet specs
  • 0

#46 Doktor Format

Doktor Format

    GMC Member

  • New Member
  • 67 posts

Posted 23 September 2005 - 01:24 PM

I have a problem. When I start this game, it stops, and I can't do anything...why? I downloaded the Speech Recognition files...
  • 0

#47 coderchris

coderchris

    GMC Member

  • New Member
  • 332 posts

Posted 23 September 2005 - 09:03 PM

  I have a problem. When I start this game, it stops, and I can't do anything...why? I downloaded the Speech Recognition files...


Hmm, make sure youv got the 69mb one and if you do, im not quite sure...
We are still confused on what exactly is needed to run it

  Is it possible to convert C++ to GML? (I have underdeveloped lungs and thought I could customize it for my unique voice.) I don't know C++.


Unfortunately no....if you want to customize it for your on voice for it go to control panel and there should be a tool to do that

hey, i cant get it work either...
i downloaded the actcnc thing and the 69.6mb thing
why? it still cant find my voice and my microphone work on msn... unsure.gif


It seems your having the same problem as Doktor...

Does anyone knoe anything about the speech sdk and how to make it work?
  • 0

#48 ffalcon2009

ffalcon2009

    GMC Member

  • New Member
  • 32 posts

Posted 23 September 2005 - 10:45 PM

I've tried training that engine before for word processing purposes. It's spotty at best. Oh well. GM's based off C though, I would think someone would've made a converter.
  • 0

#49 vicious1988

vicious1988

    GMC Member

  • New Member
  • 97 posts

Posted 28 September 2005 - 03:10 AM

I tried the 6mb file and it didnt work, dling the sdk now. if it works then ill probably use it in my latest WIP.
  • 0

#50 IceMetalPunk

IceMetalPunk

    InfiniteIMPerfection

  • GMC Elder
  • 9603 posts
  • Version:GM:Studio

Posted 12 April 2006 - 02:31 AM

That's amazing! It works very well for me for left, right, down, and quit (I added the quit to game_end()), but for some reason, no matter how much I train the speech recognition, it never recognizes the word "up" (it always thinks I'm saying something like "off" or "of" or similar). But I guess that's not your fault.

AWESOME DLL, MAN!

-IMP -_- ;)

*EDIT* Just realized.... I guess it's built into the speech recognition system, but if someone says "stop" while this is running, the speech recognition DLL automatically stops recognizimg speech. Just thought you'd all want to know. And, BTW, does anyone else have skin issues on this board, or is it just my computer?

Edited by IceMetalPunk, 08 July 2007 - 10:04 PM.

  • 0

:GM123: Are you an artist who likes creating original creature designs? Maybe you can help out with Elementa here! Give it a look; you might like the idea :)

:bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: