Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

New Developer
Posts: 22
Registered: ‎03-24-2010
My Device: Storm
My Carrier: 3

voice level exceed preset value then do something

[ Edited ]



I want to use the device mic to listen to the background voice, if the voice level exceed preset value, then, do something to alert user.


Is there any API to do that?



Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-, Z10 (STL100-3)-, Z30 (STA100-5)-, Passport (SQW100-1)-, PlayBook (16GB)-
My Carrier: Verizon

Re: voice level exceed preset value then do something

No, you have to do this yourself.


There are APIs to record audio. There is a format called RIMM that you can find by searching the forums. Record audio, decode it, check the audio for volume and use that.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.