I am currently making a game using Pygame. Right now, if my player's mana bar gets filled up, the actual user has the ability to summon a special ability. To summon the special ability, he must either scream or say something. However, I'm not sure which python library to use to help me with this. I need something to always have the microphone listening to user input, since the condition to use the special ability is (audio == True and full mana bar).
PyAudio doesn't seem to have the option to always leave the microphone turned on to listen to user input and google API's voice recognition isn't viable either.
How should I approach this?