Home Have User Game Listen to a Sound and then perform Action if sound is heard
Reply: 0

Have User Game Listen to a Sound and then perform Action if sound is heard

turtlefish12
1#
turtlefish12 Published in 2017-12-07 00:05:08Z

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?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.344115 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO