Voice support

  ... the case you feel the need for a new feature or want to submit one.

Voice support

Postby imahgrefteh » Wed Oct 06, 2010 7:36 am

Hi I am a student at uci. I was wondering with the AndEngine is it possible to add voice support? For example when I would scream “magic” the character would use his or her magic attack.

Thank you for your time and help,
imahgrefteh
 
Posts: 3
Joined: Wed Oct 06, 2010 7:32 am

Re: Voice support

Postby alex » Wed Oct 06, 2010 8:15 am

speech recognition doesn't have to be specifically implemented in AndEngine because the Android platform supports it. See: http://developer.android.com/resources/articles/speech-input.html

not sure if I would implement it in a game because once a person gives the verbal command there's going to be a time delay whilst the computer analyzes the waveform. I suppose a turn-based or strategy-based game would be fine with it
alex
 
Posts: 275
Joined: Thu Jul 01, 2010 8:21 pm

Re: Voice support

Postby cschua » Wed Oct 06, 2010 9:51 am

voice recognition is cool, but difficult to implement, even with what Google has is not that great. diction, tone of voice, noise volume, background noise, are things that will give you issues. by the time a player says "magic!", extra time for the program to save the sound, the extra time for the program to determine what that sound mean... the enemies would have attacked you at least 3 times. besides pressing the "m" letter or keypad is a whole lot easier :)

are you using AndEngine for a senior project? or thesis?
Published: Another Strobe Light, Nitey Night Light, Live Wallpaper ASL, Score Keeper, etc.

Future: Happy Halloween Game (using AndEngine)
Castle Game (using AndEngine)
Another Live Wallpaper (using AndEngine)
Etc.
cschua
 
Posts: 48
Joined: Sat Sep 11, 2010 11:47 pm

Re: Voice support

Postby imahgrefteh » Wed Oct 06, 2010 11:34 pm

Thanks for the help; you are right about taking too much time. I was thinking to use it on the last level o to kill the boss. I am not looking for the person to actually say “magic” per se. Maybe they could just say “MAAAHHA” really loud. Kind of like in rock band were the player does not actually have to say any of the words. It just registers how loud you sing into the microphone.
imahgrefteh
 
Posts: 3
Joined: Wed Oct 06, 2010 7:32 am

Re: Voice support

Postby Tahakki » Thu Nov 18, 2010 10:40 pm

That's easier. Check here:

http://developer.android.com/reference/ ... ecord.html

You can record audio into a buffer then read things like volume from the buffer.

Google's speech recognition tools are here:

http://developer.android.com/reference/ ... mmary.html

Though as far as I know they require an internet connection?
Tahakki
 
Posts: 131
Joined: Sat Nov 13, 2010 1:42 pm


Return to Features

Who is online

Users browsing this forum: No registered users and 4 guests