Welcome!

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

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

voice level exceed preset value then do something

[ Edited ]

HI,

 

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?

Thanks

 

Highlighted
Developer
Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.3.2.858, Z10 (STL100-3)-10.3.1.2576, Z30 (STA100-5)-10.3.1.2582, Passport (SQW100-1)-10.3.1.2576, PlayBook (16GB)-2.1.0.1917
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.