Is there a way to detect sound via microphone?

You must Login before you can answer or comment on any questions.

Trying to detect when a user begins talking into the microphone, is this possible?

1 Answer

Accepted Answer

You can monitor the levels of mic using the Media API. Check the startMicrophoneMonitor method via the docs here: http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Media-module

— answered 2 years ago by Anthony Decena
answer permalink
2 Comments
  • Confused as to the implementation. If I use that method, how do I analyze the levels? The linechange or recordinginput events? Thank you!

    — commented 2 years ago by Rob Marston

  • Nevermind, got it. I'll use an interval and monitor the relevant properties.

    — commented 2 years ago by Rob Marston

Your Answer

Think you can help? Login to answer this question!