0

I'm currently working on a project that requires the user to provide input using either a text-based method or a voice-based method. I'm struggling to figure out how to simultaneously run two functions that can identify which input method the user has chosen.

For text-based input, the user simply needs to press any key on their keyboard, whereas for voice-based input, the user needs to speak a specific hotword into their microphone (e.g. "activate"). I've attempted to use threading with loops, but I'm having trouble implementing it effectively.

Here's a link to the code I have attempted to use for this task on this : https://wtools.io/paste-code/bKjC

iamDyeus
  • 21
  • 8

0 Answers0