UDP Voice Recognition Server

Blitz3D Forums/Blitz3D Userlibs/UDP Voice Recognition Server

ZJP(Posted 2013) [#1]
Hi,

A small application that allows voice recognition from a grammar file (grammar.txt who should be in the same directory as the server). The "server" is available in two versions: Win32 and Win64. The application uses the Windows API. It works under Vista 32/64, Win7 32/64, and maybe on Win8. For XP, need probably install additional libraries.
The server is multi-language. It use the default recognition language installed on the system. Of course, the grammar used must be consistent with it.

Server 32B/64B
Original projet (Visual Studio 2010 cSharp)


Example Grammar.

# >> To add a comment
#I >> # The IP of the server. 127.0.0.1 if the server is on the same machine as the client.
#P >> Port
#E >> "Magic" word pronounced that stops the server. Of course, it is possible to stop it manually. This word must be present in the grammar.
#V >> Validation recognition. 0 to 100%. 70 is a good number


# comment
#E finish
#I 127.0.0.1
#P 26000
#V 70
finish
zero
one
two
three
four
five
six
seven
eight
nine
ten
Patrick
John
Hello
Hi
It's nice
morning
dog
horse
cat
computer
It's a beautiful morning
perfect
opening
closing
Little Red Riding Hood
Unity
The sky is blue and the sun shines
left
right
top
low
jump
shoot
1984
2012
1962
1504


Blitz3D test source

;++++++++++++++++++++
;  VOICE UDP Blitz 
;++++++++++++++++++++

Graphics 600,200,32,2
AppTitle "VOICE TESTS UDP"

Port = 26000

UDP_Serveur = CreateUDPStream(Port )
If UDP_Serveur <>0 Then 
	Print "Server started."
	Print "Port : "+Port
Else
	Print "Server not started!!!"

	End
End If

While Not KeyHit(1)
	IP_Client = RecvUDPMsg(UDP_Serveur)
	If IP_Client Then 
		recu$ = ReadLine$(UDP_Serveur)
		Print "Reception of : "+recu$
	End If 
	Delay 5
Wend
CloseUDPStream UDP_Serveur
End


** NEED A MICROPHONE **

Have fun, ;)


Guy Fawkes(Posted 2013) [#2]
OMG! OMG! OMG! THANK YOU! I'VE BEEN WAITING SOOOOOOOOOOOOO LONG FOR THIS! :D

Also, it works with Kinect Microphone for XBox360 with PC USB as well! :D


Guy Fawkes(Posted 2013) [#3]
Which part of the C# source is the one that defines what the program "hears"? I want to add "/" followed by a word support for like MMORPGs. /mycommand.

Thank You!


Guy Fawkes(Posted 2013) [#4]
How would I make the voice recoginition recognize letters like "a" & "8", and words like "two" & "too"?


_PJ_(Posted 2013) [#5]

How would I make the voice recoginition recognize letters like "a" & "8", and words like "two" & "too"?



The same way as is the only way to distinguish the spoken word. Context.