Detecting a blow into the microphone
Monkey Targets Forums/iOS/Detecting a blow into the microphone
| ||
I was wondering if anyone could point me to any info on how to convert / wrap / import native mac code to allow me to use it in Monkey. I have found a tutorial on how to detect a blow into the microphone, but I am unsure of where to start to get that functionality be called from Monkey. http://mobileorchard.com/tutorial-detecting-when-a-user-blows-into-the-mic/ I know it uses the AVAudioRecorder class, and will need the AVFoundation.framework, but as I say after that I'm unsure as to how to go about it. I'd really like to learn about this process as I would love to start creating my own modules/wrappers and contributing to the community, so any pointers, guides or other small modules that have been wrapped in the same way that I could learn from would be awesome. Of course if somebody wants to do it themselves that would also be cool :) Any help appreciated. |
| ||
Be aware that not all iOS devices are equal when it comes to where the little holes are! For example, I still haven't worked out where the Mic actually is on my iPod Touch. I know it has one. Siri can hear me quite clearly. But where it actually is, is quite baffling. As for the code. Sorry, I haven't a clue. |
| ||
Thanks for the reply mate. PS I think the mic on my iPod 4G is on the back next to the camera, looks like a little pinhole :) |
| ||
http://code.google.com/p/chartboost-monkey/ Have a look at this source for some example. |
| ||
Hey thanks Sk3n, I'll have a look at that when I get some time later this week to sit down for a few hours. Thanks for the reply, I appreciate it! :) |