Hi!
I'm working on a fun little project where I have connected an Xbox360 Kinect to my computer and can use its SDK for speech recognition.
I have this working perfectly - however, I don't know how I can write a EDIT: socket listening loop in Lua that can sit non-blockingly and wait for commands from my C# application.
I am not sure if this is the best approach.
The flow I'm trying to achieve is something like this:
1. Say a command out loud and recognize it
2. Send command to MUSHClient
3. Retrieve command on MUSHClient's side
4. Parse command
5. Execute command/associated script
I have managed to write a connect & disconnect script but I can't solve the non-blocking loop part.
Any suggestions?
I'm working on a fun little project where I have connected an Xbox360 Kinect to my computer and can use its SDK for speech recognition.
I have this working perfectly - however, I don't know how I can write a EDIT: socket listening loop in Lua that can sit non-blockingly and wait for commands from my C# application.
I am not sure if this is the best approach.
The flow I'm trying to achieve is something like this:
1. Say a command out loud and recognize it
2. Send command to MUSHClient
3. Retrieve command on MUSHClient's side
4. Parse command
5. Execute command/associated script
I have managed to write a connect & disconnect script but I can't solve the non-blocking loop part.
Any suggestions?