How do I count the occurrence of specific words?

Get help using Construct 2

Post » Fri Feb 28, 2014 12:21 am

Hi all! I want to make a game that challenges players to say "pencil" as many times as they can in a set period of time, without the voice recognition processing another word. Mostly because it sounds funny when people try to say "pencil" over and over really fast.

Anyway, right now I'm just working from the voice recognition example, so I have it displaying the audio transcripts in text boxes. What would be the best way to count the number of times "pencil" appears in the final transcript? And what would be the best way to identify whether any word other than "pencil" appears so I can count that as a failure?

Thanks for your help!
B
4
S
1
Posts: 3
Reputation: 933

Return to How do I....?

Who is online

Users browsing this forum: David181, evillair and 62 guests