How do I count the occurrence of specific words?

  • 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!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)