Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, alibaba), 1,184 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 4 1 2 3 4
Speech Recognition DLL using Windows Speech API #260422
04/10/09 17:17
04/10/09 17:17
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline OP
Serious User
PadMalcom  Offline OP
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
There were several requests on the forum for a Speech Recognition DLL. Today I finished it and it is working properly. Download can be found on my site:

http://www.jofre.de/?p=197

The dialog box at the beginning will be removed soon.

Re: Speech Recognition DLL using Windows Speech API [Re: PadMalcom] #260464
04/11/09 01:39
04/11/09 01:39
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
Oh thats i did request it, let see what can be done smile
Thanks man!

Re: Speech Recognition DLL using Windows Speech API [Re: MMike] #260506
04/11/09 14:53
04/11/09 14:53
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
hey @Padmalcom,
the variable is_listening(var) when i start the program, its 1. After speeaking something it changes to 1 then 0. but its not noticed because its already one, so you just see it go zero. (this is the problem)

And each time then i speak it goes 1 ( if something is heard) and then changes to zero... i guess there is a problem there, on the initial variable value os is_listening(var)...

As its seems, when i speek is_listening(var) is 1 , when the word is said, after that variable returns to 0.

So i think you should make the initial value of is_listening(var) to zero on the dll? because nothing was said yet?


But sometimes the variable just goes 1 , if you something weird, that is not understood. hum..

Last edited by MMike; 04/11/09 15:03.
Re: Speech Recognition DLL using Windows Speech API [Re: MMike] #260542
04/11/09 21:14
04/11/09 21:14
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
Well i solved the problem..

The thing is that you call cpy mysentence everyframe, so is i compare the sentente and do a command, it will loop the command.. So i had to make a way to compare the sentence with a previouse one, and its equal, then do nothing, if its new, overwrite the last sentence and do something corresponding to that sentense.


Did you thought about implementing the add word, for a stricted grammar and not the full dictionary to improve the recognition results?

cheers

Re: Speech Recognition DLL using Windows Speech API [Re: MMike] #260580
04/12/09 08:35
04/12/09 08:35
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline OP
Serious User
PadMalcom  Offline OP
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
Hey I don't really understand how a limited grammar should improve the speech recognition... I had a look at the "create own grammar"-interface and creating an own one will result in a lot of work!

What you can do is to practise with your speech recognition api... that is a standard windows program that can be found in the system control.

Re: Speech Recognition DLL using Windows Speech API [Re: PadMalcom] #260589
04/12/09 09:21
04/12/09 09:21
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
hello padmalcom. but when you did your win 32 appl, you had tha function add word. and the program would select from the list only, the most likely to be the word you said. or you were working with the full dictionary grammar?

It improves alot! i tell you why: istead of having

that
the
this

if the engine contains only the word this.. when you say that or the, it will output only this, because its the most likely word comparing the the grammar it contains.. So it will only recognize words you added.

So with t he current grammar, if i say give me that, it can output alot of variations, like:
did that, did me that, eve me at .. and this wont result in any useful command, so by restricting the grammar to the words give, me, that, and other, i can say that command and it will be 100% a match

On the api, there is a section, where you can load no grammar, and then add word , i think its add sequence pr something..

hum.. but if you think its too difficult.

But anyway , the win32 demo you had on your webpage, is full dictionary or the grammar are just the commands on the list? i seem to be restricted grammar to me..
cheers



Last edited by MMike; 04/12/09 09:24.
Re: Speech Recognition DLL using Windows Speech API [Re: MMike] #260590
04/12/09 09:25
04/12/09 09:25
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
Apart from that great work.

Re: Speech Recognition DLL using Windows Speech API [Re: MMike] #260599
04/12/09 10:46
04/12/09 10:46
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline OP
Serious User
PadMalcom  Offline OP
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
Ah thats cool, didn't know that! smile Well maybe next week when I find a free time slot I'll have another look at the functionality.

In my Win32-app I use the full grammar! Hence the recognition is not good at all if the programm isn't trained wink

Re: Speech Recognition DLL using Windows Speech API [Re: PadMalcom] #260609
04/12/09 12:48
04/12/09 12:48
Joined: Apr 2008
Posts: 61
F
firelord Offline
Junior Member
firelord  Offline
Junior Member
F

Joined: Apr 2008
Posts: 61
Is there a english version?

Re: Speech Recognition DLL using Windows Speech API [Re: firelord] #260645
04/12/09 19:16
04/12/09 19:16
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
Firelord, this is a English version.. i wonder though if its possible to implement other languages. :X but i guess that has to do with the SDk that is englisgh.

@PadmalcomWell anyway your win32 worked very very well then! thats why i though it was a restricted grammar..

usually grammar is loaded via XML, but, i think, 5.1 has already the option to add a specifc word.. restricting the recognition dictionary, and thus, low variation..

But well thats like you said, when you got time. if you plan give de source code, maybe i could learn from it? since its something i ever wondered, the only think i could do is the engine SPEAK text to voice. using that SDK, the voice part i tried but i fail. :P



Last edited by MMike; 04/12/09 19:17.
Page 1 of 4 1 2 3 4

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1