[Tool] Kinect-like Speech Recognition Tool

Release or preview patches for NBA 2K13.

[Tool] Kinect-like Speech Recognition Tool

Postby Leftos on Tue Oct 02, 2012 5:59 pm

Inspired by the Kinect functionality of the X360 version of NBA 2K13, I decided to try and make a tool that will allow PC users to get as much of the same functionality as possible, with any PC microphone. Here's a preview of what I've got so far.

We can only create shortcuts based on keypresses, so nothing too fancy. I'm starting with what's on the D-pad (Right and Left), and then maybe some position specific shortcuts based on Left Bumper + Player Icon, like "5 set a screen" to get your center to set a screen for you. Ideas? Suggestions?

phpBB [video]


Quick Usage Notes
Now, to run this properly, you just need to extract anywhere, run the EXE, and read the Readme (duh). The Readme has the first-time setup that you should do in-game (you need to remap the keyboard controls; make sure to save the user profile assigned to the keyboard after you change the controls so that they don't reset every time you quit the game) and all the commands you can say.

To test the program out, say anything and see if it reports "Speech Detected". Try a command from the list in the Readme, and see if it recognizes it. If you say "Computer?", it should respond. :P In the game, after you set-up the keyboard controls, you can play with whatever controller you want, just make sure the keyboard is either not assigned to any team, or that it is assigned to your team if you're playing with the keyboard.

As for a tip, since the tool will need to take over control for the few moments that your command is being executed, make sure not to be using the controller when you're calling out a voice command, or to stop using it just as you finish speaking the command. When you practice the timing, you'll see that the tool can be really responsive, without taking control from you for too long.

So, if you say "Get Open", just as you finish the word "Open" stop doing anything on your controller, and once your teammate starts his movement and the command has been executed (or the Playcalling Message has been shown; I HIGHLY recommend you enable those for "User Plays Only" in the Coaching Settings), you can start using your controller to do whatever with your player. You can see the timing (and I still don't have it down perfectly) in the preview video. The circle becomes green when the tool takes over, and blue again when I do something with the controller to get back the control. Do NOT expect to be given the control back automatically (i.e. don't expect the circle to turn blue by itself); once your command starts playing out, use your controller to regain control yourself.


Download
NBA 2K Speech Recognition Tool

Requires .NET Framework 4.

Donate and support my work
If you enjoy using my tools and want to show your appreciation, all you have to do is say a hello and a thank you in a reply here. If, however, you want to show a little more appreciation, you can always consider making a small donation towards my everyday and studies expenses. Any donation, no matter the amount, will give me even greater incentive to develop these tools and helping the community.

Click here to donate!
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 4981
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Speech Recognition Tool v0.2 (Kinect-like functio

Postby Leftos on Tue Oct 02, 2012 6:04 pm

This tool should already be compatible with NBA 2K13. Don't have a copy of the game yet, so those of you who do, please give me feedback on what works and what needs to be changed.

Also, keep in mind that if you manage to create a nice button combo, you can share it with the other users here! Go to "Documents\NBA 2K Speech Recognition Tool\Commands" and in there you should find the file that corresponds to the command you created. Upload it somewhere, reply with a link to it, and I'll add it to the first post.

Any video that showcases the tool's functionality will also get a first post mention. First one gets to be embedded and I promise to abuse my Team Member status to get it to the NLSC front page as well! Make it a good one, not just one to say "I did it first!" It should showcase the tool's functions in proper context.

Have fun with this!
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 4981
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Speech Recognition Tool v0.2 (Kinect-like functio

Postby Kinggdawg on Tue Oct 02, 2012 6:58 pm

Hey Leftos, managed to pick up a copy of 2k13 few hours ago, will be trying this out when i wake up :/

Note: I tried v0.1 of this on 2k12, didn't really seem responsive. Lets hope this is better, btw what are the major changes of this version?
The King
LeBron James #6
User avatar
Kinggdawg
 
Posts: 121
Joined: Sun May 09, 2010 7:54 am

Re: [Tool] Speech Recognition Tool v0.2 (Kinect-like functio

Postby Leftos on Tue Oct 02, 2012 7:04 pm

It's as responsive as it can be, really. Can't make it go any faster, since I use a prebuilt Speech Recognition engine. Tool is only going to be as responsive as that engine is, there's practically no delay from the point your command is recognized to the point it's called for execution.

Only way to make it more responsive is to maybe give it a higher priority than the NBA 2K executable. If NBA 2K is using all the CPU, your phrase is bound to be detected slower, thus the additional delay.

Are you saying that you felt it was less responsive than the preview video I've put up? Or does the preview video not seem responsive enough to you? If it's the second one, there's nothing I can do to make it faster, sorry. If you compare my preview video to the ones being posted with Kinect on X360, I think the delay is about the same, and as good as it gets.

v0.2 lets you add and edit commands, which means you can add any button combo as a voice command, and activate it with whatever phrase you like! Then, you can share your commands with other users here, by either uploading a screenshot, or the command file from My Documents.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 4981
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Speech Recognition Tool v0.2 (Kinect-like functio

Postby Kinggdawg on Tue Oct 02, 2012 7:07 pm

Leftos wrote:It's as responsive as it can be, really. Can't make it go any faster, since I use a prebuilt Speech Recognition engine. Tool is only going to be as responsive as that engine is, there's practically no delay from the point your command is recognized to the point it's called for execution.

Only way to make it more responsive is to maybe give it a higher priority than the NBA 2K executable. If NBA 2K is using all the CPU, your phrase is bound to be detected slower, thus the additional delay.

Are you saying that you felt it was less responsive than the preview video I've put up? Or does the preview video not seem responsive enough to you? If it's the second one, there's nothing I can do to make it faster, sorry. If you compare my preview video to the ones being posted with Kinect on X360, I think the delay is about the same, and as good as it gets.

v0.2 lets you add and edit commands, which means you can add any button combo as a voice command, and activate it with whatever phrase you like! Then, you can share your commands with other users here, by either uploading a screenshot, or the command file from My Documents.

Oh v0.2 sounds sweet. I don't know what was happening, could've been my mic as the majority of the time was using my default laptop mic but it would say recognized "isolation" and do nothing..I even set the controls to what you recommended. I also tried using a custom mic and the only command that would be recognized was "Isolation", "Iso", I recorded my self saying the phrases on sound recorder and it was fine and my voice was clear and understandable.
The King
LeBron James #6
User avatar
Kinggdawg
 
Posts: 121
Joined: Sun May 09, 2010 7:54 am

Re: [Tool] Speech Recognition Tool v0.2 (Kinect-like functio

Postby Leftos on Tue Oct 02, 2012 7:10 pm

Don't know what to tell you then. Note that just because you can understand yourself, doesn't mean the speech recognition engine does. It depends on accent, what culture it is set to detect (I've set it to en-US, which is practically no accent :P). Hope it all works out. I know for a fact all the commands in there work, and I hope you find a way to get them to work for you as well.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 4981
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Speech Recognition Tool v0.2 (Kinect-like functio

Postby Kinggdawg on Tue Oct 02, 2012 7:20 pm

Haha for all I know, I'm from Florida which means I've got an American accent :O. Yeah gonna tell you how v0.2 plays out, trying it out after I get some beauty sleep man.

I'll keep you updated.
The King
LeBron James #6
User avatar
Kinggdawg
 
Posts: 121
Joined: Sun May 09, 2010 7:54 am

Re: [Tool] Speech Recognition Tool v0.3 (Kinect-like functio

Postby Leftos on Wed Oct 03, 2012 1:22 am

v0.3 released!
- Added Back/Select as a button for combos
- Added "Call PF for Screen", "Call PF for Double Team", "Call Timeout", "Intentional Foul" commands
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 4981
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Kinect-like Speech Recognition Tool v0.3

Postby kendz4494 on Wed Oct 03, 2012 1:29 am

Mr Leftos how do i remap keyboard controls? there is no readme file.


BTW, I use xbox controller
Last edited by kendz4494 on Wed Oct 03, 2012 1:38 am, edited 1 time in total.
CPU: Intel Core i7-2600k
CPU Cooler: Corsair H60
GPU: msi GeForce GTX 660 Twin Frozr OC 2GB
MOBO: Asus P8Z77-V LX
Boot Drive: Samsung 840 Series 120 GB
HDD: Seagate 1.5 TB SATA 6Gbps Barracuda Green
RAM: Kingston 16GB
PSU: Corsair CX600M
DVD: Liteon 24x Dvd/CD Writer
User avatar
kendz4494
 
Posts: 209
Joined: Mon Dec 20, 2010 5:39 pm
Location: New York

Re: [Tool] Kinect-like Speech Recognition Tool v0.3

Postby Leftos on Wed Oct 03, 2012 1:32 am

There is in the program's installation folder. I'll make it viewable from within the program, forgot about that.

Find Control Setup, press RB/R1 until you're at Keyboard/Mouse, and remap the keys accordingly.

Image

Only key not shown here is the Timeout key which should be Backspace.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 4981
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Kinect-like Speech Recognition Tool v0.3

Postby kendz4494 on Wed Oct 03, 2012 1:40 am

Thanks for your fast reply. I appreciate it. More power! :D
CPU: Intel Core i7-2600k
CPU Cooler: Corsair H60
GPU: msi GeForce GTX 660 Twin Frozr OC 2GB
MOBO: Asus P8Z77-V LX
Boot Drive: Samsung 840 Series 120 GB
HDD: Seagate 1.5 TB SATA 6Gbps Barracuda Green
RAM: Kingston 16GB
PSU: Corsair CX600M
DVD: Liteon 24x Dvd/CD Writer
User avatar
kendz4494
 
Posts: 209
Joined: Mon Dec 20, 2010 5:39 pm
Location: New York

Re: [Tool] Kinect-like Speech Recognition Tool v0.3

Postby seanjohn1414 on Wed Oct 03, 2012 2:29 am

bro.. can i use my controller even if i change the keyboard setup??
User avatar
seanjohn1414
 
Posts: 1268
Joined: Tue Oct 20, 2009 7:03 pm
Location: imus, cavite

Re: [Tool] Kinect-like Speech Recognition Tool v0.3

Postby Leftos on Wed Oct 03, 2012 2:38 am

Sure. You don't assign the keyboard to any team. You just need to change the keyboard setup so that the tool can send commands through it, but you can use any gamepad you want. Just leave the keyboard at center when selecting sides.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 4981
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Kinect-like Speech Recognition Tool v0.3

Postby Rangez on Wed Oct 03, 2012 6:44 am

so this works on NBA 2K13?
°°°°°Rangez°°°°°
I can accept failure, everyone fails at something. But I can't accept not trying.
Michael Jordan
NBA 2k Montage/Mix Account: http://www.youtube.com/user/Mr2KImpossible
NBA Real Life Mixes: http://www.youtube.com/user/TdotPrid3
Comment, Rate and Subscribe! :)
Rangez
 
Posts: 1251
Joined: Fri Dec 31, 2010 10:20 am

Re: [Tool] Kinect-like Speech Recognition Tool v0.3

Postby JaoSming on Wed Oct 03, 2012 7:08 am

yep, works on all games technically.
phpBB [video]

2K Modding Tutorials - My YouTube Channel

User avatar
JaoSming
Guru
Administrator
 
Posts: 29064
Joined: Tue Sep 13, 2005 12:45 am
Location: Vermont

Re: [Tool] Kinect-like Speech Recognition Tool v0.3

Postby Rangez on Wed Oct 03, 2012 7:33 am

JaoSming wrote:yep, works on all games technically.

Cant wait to use it on 2K13 when i get it! Will def. make it easier for me to get clips for my edits :)
°°°°°Rangez°°°°°
I can accept failure, everyone fails at something. But I can't accept not trying.
Michael Jordan
NBA 2k Montage/Mix Account: http://www.youtube.com/user/Mr2KImpossible
NBA Real Life Mixes: http://www.youtube.com/user/TdotPrid3
Comment, Rate and Subscribe! :)
Rangez
 
Posts: 1251
Joined: Fri Dec 31, 2010 10:20 am

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1

Postby Leftos on Wed Oct 03, 2012 2:59 pm

v0.3.1 released!
- Minor bug fixes
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 4981
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1

Postby Westwindization on Wed Oct 03, 2012 10:40 pm

Let me star by saying this is great idea for pc users.

I tryed this on 2k13 and seems like everything is working, but commands are wrong. F.e. When i say iso player passes the ball. I changed my joystick conntrollers too maybe thats the reason. Mybe the reason that controllers are a bit different from 2k12 to 2k13 .Only thing that seems to work is 3-2 zone and set screen , nothing else. How can i make it work
Westwindization
 
Posts: 59
Joined: Sun Nov 21, 2010 2:13 am

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1

Postby Leftos on Wed Oct 03, 2012 10:45 pm

Iso is D-Pad Right + A, which leads me to think that either:
- You didn't set some of the keyboard bindings correctly.
- You're using your gamepad right after calling out the command. When you say the last word of the command, you must stop using your gamepad until the command starts getting played out on the floor, and then you can start using your gamepad again. If you keep using your gamepad, for example moving the player, when the tool tries to pass on the command, your movement conflicts with the key presses the tool sends, and so the command isn't carried out right.

The tool sends keyboard presses, so your joystic/gamepad bindings don't matter. Only keyboard bindings matter.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 4981
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1

Postby Angelo on Thu Oct 04, 2012 4:55 am

Ill try this out once i get a new microphone my old one seems not working anymore :)
Image
User avatar
Angelo
Holy Tits
NLSC Team Member
 
Posts: 5814
Joined: Fri Nov 03, 2006 1:40 am
Location: Philippines

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby Leftos on Sat Oct 06, 2012 2:55 am

v0.3.1.1
- Attempt to fix Speech Recognition Engine culture issue
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 4981
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby Jarus on Sat Oct 06, 2012 3:48 am

this program is either not working , extremely delayed, or doing wrong plays/// what should i do ?
Image
User avatar
Jarus
 
Posts: 401
Joined: Thu Apr 30, 2009 3:50 am
Location: Behind the Arc

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby Leftos on Sat Oct 06, 2012 4:04 am

Jarus, don't know what to tell you. Practice without running the game, with just the tool open, so that you can see whether it recognizes your commands or not, and how fast.

How fast it recognizes your command depends on your CPU and how clearly you're speaking, so... I don't know. I can't make it go any faster than what you see in the preview video, which is the same speed as the Kinect recognizes commands on the X360 version of 2K13.

As for "not working"...
As for a tip, since the tool will need to take over control for the few moments that your command is being executed, make sure not to be using the controller when you're calling out a voice command, or to stop using it just as you finish speaking the command. When you practice the timing, you'll see that the tool can be really responsive, without taking control from you for too long.

So, if you say "Get Open", just as you finish the word "Open" stop doing anything on your controller, and once your teammate starts his movement and the command has been executed (or the Playcalling Message has been shown; I HIGHLY recommend you enable those for "User Plays Only" in the Coaching Settings), you can start using your controller to do whatever with your player. You can see the timing (and I still don't have it down perfectly) in the preview video. The circle becomes green when the tool takes over, and blue again when I do something with the controller to get back the control. Do NOT expect to be given the control back automatically (i.e. don't expect the circle to turn blue by itself); once your command starts playing out, use your controller to regain control yourself.


If that's not the case, you'll have to explain "not working" a bit more.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 4981
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby tnt23 on Sat Oct 06, 2012 2:56 pm

gotta test it :) sounds really cool (Y) :bowdown: thx for the hard work
ALLTiME ALLSTARS
Image
User avatar
tnt23
 
Posts: 819
Joined: Sat Oct 07, 2006 10:50 pm

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby wisealma on Sun Oct 07, 2012 4:20 am

This is an amazing idea! Thanks for trying to do this. This would be an amazing feature.

Leftos wrote:Inspired by the Kinect functionality of the X360 version of NBA 2K13, I decided to try and make a tool that will allow PC users to get as much of the same functionality as possible, with any PC microphone. Here's a preview of what I've got so far.

We can only create shortcuts based on keypresses, so nothing too fancy. I'm starting with what's on the D-pad (Right and Left), and then maybe some position specific shortcuts based on Left Bumper + Player Icon, like "5 set a screen" to get your center to set a screen for you. Ideas? Suggestions?

phpBB [video]


Quick Usage Notes
Now, to run this properly, you just need to extract anywhere, run the EXE, and read the Readme (duh). The Readme has the first-time setup that you should do in-game (you need to remap the keyboard controls; make sure to save the user profile assigned to the keyboard after you change the controls so that they don't reset every time you quit the game) and all the commands you can say.

To test the program out, say anything and see if it reports "Speech Detected". Try a command from the list in the Readme, and see if it recognizes it. If you say "Computer?", it should respond. :P In the game, after you set-up the keyboard controls, you can play with whatever controller you want, just make sure the keyboard is either not assigned to any team, or that it is assigned to your team if you're playing with the keyboard.

As for a tip, since the tool will need to take over control for the few moments that your command is being executed, make sure not to be using the controller when you're calling out a voice command, or to stop using it just as you finish speaking the command. When you practice the timing, you'll see that the tool can be really responsive, without taking control from you for too long.

So, if you say "Get Open", just as you finish the word "Open" stop doing anything on your controller, and once your teammate starts his movement and the command has been executed (or the Playcalling Message has been shown; I HIGHLY recommend you enable those for "User Plays Only" in the Coaching Settings), you can start using your controller to do whatever with your player. You can see the timing (and I still don't have it down perfectly) in the preview video. The circle becomes green when the tool takes over, and blue again when I do something with the controller to get back the control. Do NOT expect to be given the control back automatically (i.e. don't expect the circle to turn blue by itself); once your command starts playing out, use your controller to regain control yourself.


Download
NBA 2K Speech Recognition Tool

Requires .NET Framework 4.
Thanks
Wisealma

Image
User avatar
wisealma
 
Posts: 90
Joined: Wed Oct 04, 2006 11:15 am

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby showtime94 on Sun Oct 07, 2012 4:42 am

I love the idea of this tool and I definetly want to try it out, badly. But I have this problem, which is microphone related and I just want to ask you if you possibly have a solution for this. So when I open the program it encounters a critical error. When I go to an error log I see a text that says that no speech recognizer is installed and I ran out of options on how to fix this. I would be very appriciative if you helped me out. Thanks.
User avatar
showtime94
 
Posts: 27
Joined: Wed Aug 12, 2009 8:37 am
Location: Domzale, Slovenia

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby Leftos on Sun Oct 07, 2012 5:30 am

showtime94, Control Panel > Sound > Recording Devices. The default should be your sound card's microphone port.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 4981
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby showtime94 on Sun Oct 07, 2012 5:32 am

I did that and the mic port is the default, I looked at every possible configuration for my mic and yet I don't find anything that could solve my problem.
User avatar
showtime94
 
Posts: 27
Joined: Wed Aug 12, 2009 8:37 am
Location: Domzale, Slovenia

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby StompTheCourt on Sun Oct 07, 2012 7:07 am

Wow that is incredible nice job on this lefto :applaud: :applaud: :applaud: :applaud:
Image
User avatar
StompTheCourt
NBA2K Modding Vet
Contributor
 
Posts: 2633
Joined: Fri Mar 26, 2010 9:54 am
Location: Salt Lake City Utah

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby Leftos on Sun Oct 07, 2012 8:10 am

showtime94, can you paste the error report in [code] tags here?
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 4981
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby showtime94 on Sun Oct 07, 2012 8:27 am

Code: Select all
System.Windows.Markup.XamlParseException: The invocation of the constructor on type 'NBA_2K_Speech_Recognition_Tool.MainWindow' that matches the specified binding constraints threw an exception. ---> System.PlatformNotSupportedException: No recognizer is installed.
   at System.Speech.Recognition.RecognizerBase.Initialize(SapiRecognizer recognizer, Boolean inproc)
   at System.Speech.Recognition.SpeechRecognitionEngine.get_RecoBase()
   at NBA_2K_Speech_Recognition_Tool.MainWindow..ctor() in e:\Development\Visual Studio 2010\Projects\NBA 2K Speech Recognition Tool\NBA 2K Speech Recognition Tool\MainWindow.xaml.cs:line 75
   --- End of inner exception stack trace ---
   at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   at System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)
   at System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties)
   at System.Windows.Application.DoStartup()
   at System.Windows.Application.<.ctor>b__1(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

No recognizer is installed.
User avatar
showtime94
 
Posts: 27
Joined: Wed Aug 12, 2009 8:37 am
Location: Domzale, Slovenia

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby Leftos on Sun Oct 07, 2012 8:56 am

Hmm, what Windows are you running on?

Press Win-R, type winver and press OK. Should tell you the exact version. Also try reinstalling .NET Framework 4.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 4981
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby showtime94 on Sun Oct 07, 2012 8:59 am

I had .NET framework 4 installed before this tool, I installed it again after thinking that the problem was with that, but it didn't work so I doubt that reinstalling .NET framework 4 will work. I run Windows 7 32-bit version 6.1.
User avatar
showtime94
 
Posts: 27
Joined: Wed Aug 12, 2009 8:37 am
Location: Domzale, Slovenia

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby Leftos on Sun Oct 07, 2012 9:01 am

From what I'm reading, this occurs when your version of Windows doesn't come with an English speech recognition engine at all. Some localized versions of Windows don't have it, apparently. Don't know how I could help you with that.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 4981
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby showtime94 on Sun Oct 07, 2012 9:03 am

Well I thought about that as well. I run my native language on Win7 (obviously), but i didn't want to change the language setting because it might mess something up. I'll try switching the language to English, which might solve the problem.
User avatar
showtime94
 
Posts: 27
Joined: Wed Aug 12, 2009 8:37 am
Location: Domzale, Slovenia

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby lolward1 on Sun Oct 07, 2012 1:51 pm

System.Windows.Markup.XamlParseException: The invocation of the constructor on type 'NBA_2K_Speech_Recognition_Tool.MainWindow' that matches the specified binding constraints threw an exception. ---> System.ArgumentException: Value does not fall within the expected range.
at System.Speech.Internal.SapiInterop.SapiProxy.MTAThread.Invoke2(VoidDelegate pfn)
at System.Speech.Internal.SapiInterop.SapiRecognizer.SetInput(Object input, Boolean allowFormatChanges)
at System.Speech.Recognition.RecognizerBase.SetInputToDefaultAudioDevice()
at NBA_2K_Speech_Recognition_Tool.MainWindow..ctor() in e:\Development\Visual Studio 2010\Projects\NBA 2K Speech Recognition Tool\NBA 2K Speech Recognition Tool\MainWindow.xaml.cs:line 75
--- End of inner exception stack trace ---
at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)
at System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties)
at System.Windows.Application.DoStartup()
at System.Windows.Application.<.ctor>b__1(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

Value does not fall within the expected range.


Thanks men but i have a problem cause this error always apears when i open this tool and again thanks! hope you reply with this problem :bowdown2:
lolward1
 
Posts: 11
Joined: Fri Apr 20, 2012 10:22 am

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby Leftos on Sun Oct 07, 2012 6:13 pm

Don't know what's going wrong on your end. I can see that the program crashes when it tries to grab your microphone or the default recording device, so maybe go to Control Panel > Sound > Recording Devices and make sure your sound card's microphone port is the default, and that the microphone is available for recording.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 4981
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby Magic Tmac1 on Sun Oct 07, 2012 7:37 pm

showtime94 wrote:
Code: Select all
System.Windows.Markup.XamlParseException: The invocation of the constructor on type 'NBA_2K_Speech_Recognition_Tool.MainWindow' that matches the specified binding constraints threw an exception. ---> System.PlatformNotSupportedException: No recognizer is installed.
   at System.Speech.Recognition.RecognizerBase.Initialize(SapiRecognizer recognizer, Boolean inproc)
   at System.Speech.Recognition.SpeechRecognitionEngine.get_RecoBase()
   at NBA_2K_Speech_Recognition_Tool.MainWindow..ctor() in e:\Development\Visual Studio 2010\Projects\NBA 2K Speech Recognition Tool\NBA 2K Speech Recognition Tool\MainWindow.xaml.cs:line 75
   --- End of inner exception stack trace ---
   at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   at System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)
   at System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties)
   at System.Windows.Application.DoStartup()
   at System.Windows.Application.<.ctor>b__1(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

No recognizer is installed.

Same problem here... It's the default mic in Control Panel, and FM 4.0 is installed correctly... Maybe it's because I am running a Windows 7 64 bit, with Italian Language?
From Italy, Romagna rulez!!!
User avatar
Magic Tmac1
 
Posts: 49
Joined: Tue Aug 02, 2011 7:23 pm
Location: Romagna, Italy

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby Leftos on Sun Oct 07, 2012 8:00 pm

Yeah, apparently some localized versions of Windows 7 don't have the English Speech Recognition Engine installed.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 4981
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby whbro on Sun Oct 07, 2012 8:01 pm

I m having the same problem too.(ο ελληνας που σου εστειλε και στο youtube ειμαι)

I have the greek edition of windows 7 , and i have no speech recognition engine?Its weird.Also , i tried to search it on gooogle but i didnt find anything.
This tool requires only microsoft's engine doesn't it?



Image
ImageImage
I am an Olympiacos and LA Lakers Fan!!!!
User avatar
whbro
 
Posts: 82
Joined: Sun Aug 31, 2008 5:54 pm
Location: Piraeus

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby Leftos on Sun Oct 07, 2012 11:10 pm

Maybe downloading the English Language Pack could help:

http://windows.microsoft.com/en-US/wind ... ows-update
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 4981
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby khumhag06 on Mon Oct 08, 2012 12:12 am

Sir Leftos im having problem on this tool Kinect-like speech recgnition tool v0.3.1.1 its like it never detect my any command im using your tool to 2k13 and i applied your keyboard base on the readme file...i read your tips like " opening the tool 1st then "i say sumthing like "computer" it never detects the result is just like this " 10:26PM:SRE reset" ...i tried it in 2k12 nothin happen either in 2k13..i have english language pack..and my microphone is working good...help me sir please
khumhag06
 
Posts: 26
Joined: Mon Feb 13, 2012 6:44 pm

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby Leftos on Mon Oct 08, 2012 12:18 am

Don't know what to tell you. If you're speaking the commands into your microphone, you have selected it as the default recording device, you can record yourself in any other program, but it doesn't work in the tool, I'm out of ideas.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 4981
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby khumhag06 on Mon Oct 08, 2012 1:42 am

Sis can you post an "screenshot keyboard binding" for NBA2k13 so we can apply it clearly cause 2k13 has a differ controlls...i really admire your tools.. (Y) (Y) ..im just requesting with please... :wink:
khumhag06
 
Posts: 26
Joined: Mon Feb 13, 2012 6:44 pm

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby Leftos on Mon Oct 08, 2012 1:47 am

Just apply them in the order of the post above.
viewtopic.php?p=1549233#p1549233

Sure, the names have changed, but the order is the same.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 4981
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby khumhag06 on Mon Oct 08, 2012 2:04 am

thnx sir...bow down to the king ^_^ :bowdown2: :bowdown2: :bowdown2: ...really appreciated it thnx more power..
khumhag06
 
Posts: 26
Joined: Mon Feb 13, 2012 6:44 pm

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby airjoca on Sun Oct 14, 2012 6:28 am

I've got the tool working great, tested it, recognizes the voice commands.

In game i've set the controls like they are shown, but for whatever reason they seem switched or mixed.

For example, I say ISO and my player passes the ball. Do you have any idea of what may cause this?

Thx
airjoca
 
Posts: 5
Joined: Mon Nov 01, 2010 12:12 am

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby Leftos on Sun Oct 14, 2012 6:33 am

Try not using your gamepad right after you speak the command.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 4981
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby airjoca on Sun Oct 14, 2012 9:55 pm

Leftos wrote:Try not using your gamepad right after you speak the command.


I tried completely letting go of the gamepad. I noticed that "timeout" works for example. Weird.
airjoca
 
Posts: 5
Joined: Mon Nov 01, 2010 12:12 am

Re: [Tool] Kinect-like Speech Recognition Tool v0.3.1.1

Postby Leftos on Sun Oct 14, 2012 10:09 pm

Are you sure you've assigned Tab to the Positional Plays button?
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
Lazy 2K Dev
NBA 2K Developer
 
Posts: 4981
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Next

Return to NBA 2K13 Releases & Previews

Who is online

Users browsing this forum: No registered users and 5 guests