Best practices for speech recognition?

Get help using Construct 2

Post » Sun Jun 30, 2013 8:59 pm

I'm attempting to build my first game using Construct 2. Currently, players will interact with a physical robot hosted in a public space. Initially, he will appear asleep, but touching any of his inputs will wake him up and start the game.

I'm having trouble understanding some basic variable mechanics to allow me to guide the conversation linearly or otherwise.

Currently, I'm using a global variable "Step" to indicate where they are in the conversation. I'm using another variable "Keyword" which is triggered when the correct response is given. By default Keyword is set to -1 and each Step sets Keyword to find(PlayerSpeech.text,"triggerword"). Although, I'm having trouble allowing multiple keywords/triggerwords to jump the next interaction, or I'm not understanding how the find function works exactly.

For example, after pressing a key to wake him up, the player will need to say his name for him to respond. His name, "Berty", is not a common word and can be parsed a variety of ways (e.g. Liberty, pretty, 30, ect.). I need to have a way for each instance which is close to it to nudge the Keyword variable out of it's false state. I can effectively do this when only one Keyword is listed, but nothing is happening when I attempt to list multiple.

How can I do this? Or is there a better way entirely?

Here's a link to my project file.
B
16
S
5
Posts: 31
Reputation: 1,664

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests