Get input sound level from mic

I'm trying to find out how ( if possible ) to get the input sound level from the microphone.
Example : if someone screams into the mic it would return that it is loud or on a scale of 1 to 10 it would be a 10; and the opposite if someone was whispering.
Any help would be great!
-Rob

Digital audio is stored as a series of samples, where each sample is the amplitude of the sound wave being recorded. The volume of the sound is the same as the amplitude of the sound, therefore, each individual sample is simply encoded as the volume of the sound.
So you break the mic input down into a list of samples (based on the sample size / number of channels) and keep a running average to determine the sound level.

Similar Messages

  • Real Time - Capture sound signal from Mic then store to memory.

    Hi people,
    I wish to do a real time program that capture the data (+the ADC discrete digitized sound data+) from mic then store the data in memory...
    Then my program retrieve the data continuously from the memory (as long as there are captured data from mic)
    But i have no idea how JAVA deal with real time program that use memory to store the captured data.
    i do know that JAVA do have class INPUTSTREAM to deal the real time thing that fetch the byte of data to program. But still wish to get more reference from here (never use this class before).
    Please advise how can i start from "signal" the mic to store the captured data to memory and my program able to retrieve the data from memory then work my algorithm on it.
    Or can correct me how actually i should store the captured data... i should store the data in memory or store the data as a variable?
    MANY MANY MANY MANY thanks!!! Very appreciate for the advise and i will give my attempt :-).

    I m sorry..
    I was intend to ask the correct way to store the digitized data from microphone.
    As all my previous work were storing the keyboard input as an declared variable or store in local server database.
    But this time i wish to store the captured and quantized sound data from mic and no idea where should i start from...
    Please give me some advise please.
    I dun wish to save what i captured as a .wav file then only process the .wav file data.
    But wish to process the data that was captured at instant.
    I m very appreciate for your advise here.

  • Input sound level

    I use a recording program and when I start to record, the sound input level in sound preferences automatically slides to full loud.  I must slide back to the middle or get distortion or just too loud.  Why won't the level stay put?

    Digital audio is stored as a series of samples, where each sample is the amplitude of the sound wave being recorded. The volume of the sound is the same as the amplitude of the sound, therefore, each individual sample is simply encoded as the volume of the sound.
    So you break the mic input down into a list of samples (based on the sample size / number of channels) and keep a running average to determine the sound level.

  • Output sound level from gramophone and from computer should be the same

    Dear friends,
    Why the output sound level isn't equal if we listen the LP directly from the gramophone (AUX1) or from the computer during the recording the track on the computer?
    We are using The E-MU 0404 USB 2.0 Audio/MIDI Interface:
    http://ixbtlabs.com/articles2/proaudio/emu-0404-usb.html
    http://www.emu.com/products/product.asp?product=10447&nav=features
    and we have connected E-MU with the (gramohone) speakers through the headphone output on the E-MU and turn the headphone level to the maximum, but the sound level is still lower from the same speakers.
    If we compare the track after the recording with the LP on the gramphone is the level of the sound the same/equal.
    So we need to have all three sound levels equal:
    -from the LP form the gramophone
    -from the computer during the recording
    -from our track on the hard disk after the recording
    Thank you for your answer.

    function(){return A.apply(null,[this].concat($A(arguments)))}
    Connecting loudspeakers to the headphone output on the E-mu sounds like completely the wrong thing to do altogether - you should
    only connect headphones to a headphone output, and nothing else at all.
    We will buy the cable as you mentioned and connect it in the line level (S/PDIF).
    function(){return A.apply(null,[this].concat($A(arguments)))}
    Almost certainly you will need to adjust the monitoring levels in Patchmix to get this the way you want it
    Then we will try to adjust the monitoring levels in Patch (I will report if and how did we manage it).
    Our equiptment is:
    ·       turntable Stabi Kuzma audio komponents ( http://www.kuzma.si/AmplioCMS2/public/EnterPublic.cms2?langId=60&request_locale=en_US )
    ·        Rotel Phono equalizer RQ-970BX,
    ·        Rotel Stereo integrated amplifaier RA-9858X
    ·       speakers JMlab Focal Daline 3.1 (nom. impendance 8 Ω, max. power 75 W)

  • Can´t get optical sound output from my brand new mini

    have connected the MM to an optical input on my Yamaha RX-V659, but I can´t get no sound.
    Mac-side: After connecting and turning on, "System Prefs -> Sound -> Output" has changed to Digital Output and says that no output controls are available for this output. I have tried playing from iTunes and DVD Player. In DVD player the option for selecting Digital Output had appeared, and I chose that. When I take a look at the end of the cable I plug into the receiver I see a constant red light.
    Yamaha-side: I have tried 2 different optical inputs, and gone over my settings several times. The receiver does not seem to detect digital audio coming in. I tried the Signal Info menu on my receiver, and for another source it output:
    PCM, 48kHz, 2.0, Analog
    On the optical input it says:
    ---, ---, 2.0, Analog

    I have a similar setup to a Kenwood receiver. You are correct that ALL system sounds (frontrow, system alerts, etc.) will play through to your stereo.
    Have you tried switching Toslink cables and/or the toslink to miniplug adapter that is plugged into the mini?
    I had a bad cable at one point in time, and a bad adapter at another point in the life of this system. You perhaps tried these things already but I only saw mention of trying 2 different inputs (I assume on the receiver) and made no mention of cables/adapters.
    Let me know how you make out.
    Message was edited by: CaptTB

  • I Need to Even out the Sound Level from Tune to tune

    This is the problem I'm facing ....
    After recording a number of tunes ... and then burning them in iTunes ... I'll find that the ouput level changes from tune to tune.
    For example ... one tune's overall sound level is too low compared to the next one.
    When I'm mixing I of course try to have the master output as high as possible without clipping.
    I have been using Fission to normalize each tune individually ... but
    Is there a way to even out the levels from tune to tune. Of course i have "Sound Check" marked in iTunes preferences.
    Here is a strange but true story ...
    Someone took one of my disks with this problem .... went to a Sony store where they copied it ...
    and the sound levels are more even I swear. Is there some sort of software in cd copiers that can do this?
    Thanks ......

    Here are a couple of articles that give a useful overview of Mastering:
    Preparing Your Music For Mastering
    Mastering: How The Pros Do It
    Other than that, the Normalizing you're doing is the easiest way to even out the relative levels.
    WH

  • Problem with sound delay from mic to speakers with quickplay on HP Pavilion dv5-1145ev

    I have an HP Pavilion dv5-1145 ev. When I try to use karaoke with HP's quickplay there is a significant sound delay from the microphone to the speakers. I also noticed the same delay, even when I am recording my voice with other programs such as audacity. There is a voice delay too. I have windows vista and I have tried to change the settings of the sound from control panel, without any luck. Any suggestions please?

    I have an HP Presario CQ61 that I bought to record my own music in tracks and it's useless to me because I have about a second delay from the mic to my recording program and headphones. You would think that with all the brainy knowlage Bill Gates and the computer industry has someone can come up with a downloadable fix for this problem. If I knew I would have this problem before I bought the thing I wouldn't have wasted my money.  If anyone finds a fix for this please let me know.

  • How to get input text values from adf table - Urgent

    Hi Friends,
    This is my requirement. I designed customized master - detail - detail page. I customized the page in below format.
    1. Master Data Field (Input text,etc) .
    2. Detail in table format ( Rows are mapped to child table) and i given two buttons for to create row and delete row. I designed the table based on the example provided in forum for to create customized table. The input text component is mapped to the rows.
    Now i want to retrieve all the data's entered in the rows. The table is mapped to child table. When i read the values from the table its showing null.
    If any one faced this problem and fixed it, please send me the solution.
    Thanks & Regards
    VB

    Did you look into the valueChangeEvent?
    It has oldValue and newValue attributes.
    public void SaveMaterial(ValueChangeEvent valueChangeEvent) {
    Object oldVal = valueChangeEvent.getOldValue();
    Object newVal = valueChangeEvent.getNewValue();
    // check if you see what you are looking for.....
    getSelectedRow();
    SaveMaterial(material);
    }Timo

  • How do I get the sound back from my computer?

    I have a MacBook Pro late 2008 and running Lion.  I have lost sound in my computer.  I can jiggle the laptop and get it to work but then it quits. 
    Any ideas what a new sound system costs?  Is there an alternative option? 
    Thanks.

    Resetting NVRAM or
    Finder Go menu -> Go to.. ~/Library/Preferences, then delete
    com.apple.recentitems.plist
    com.apple.systempreferences.plist
    ByHost/com.apple.soundpref.xxx.plist
    com.apple.systemsound.plist
    and reboot could solve your problem.

  • TS3274 I can get no sound whatsoever from my iPad2.  I have rebooted, reset, all to no avail.  Could it be anything to do with a recent IOS update?

    What is left to recover sound to an iPad2 when resetting, rebooting, checking everything is as it should be doesn't help?

    Hi Savta2,
    If you have your data backed up, you may want to try a full restore to factor settings, then test the sound/audio before restoring your content from your backup. You may find the following article helpful:
    Apple Support: Use iTunes to restore your iOS device to factory settings
    http://support.apple.com/kb/ht1414
    Regards,
    - Brenden

  • Why does the sound level from my mac mini not remain constant?

    Bought my mac mini  within the last 3 months, and am using my flat screen via hdmi cable as the display.   I notice that at some points, the sound will dull down...and I will habe to toggle it up.  Then without warning, it jumps back up with a little extra now that Ive added volume.  I dont remember it doing this for the first month or so, and cant remember if it coinsided with an update or ... what.   I notice that sometimes when the sound fades when im watching a movie, if I tap the movie progress bar, the sound will come back to the prior volume.   Ive checked all of the system prefs I can think of...   It does this with netflix on safari as well as movies songs through itunes... Help !
    Chris

    One way to test is to Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, Test for action in Safe Mode...
    Reboot, test again.

  • Sound levels from dock

    When using my iPod via the dock connected to my sound system the volume is very low. I remember reading sometime ago, there was some sort of fix for this. Grateful for any help, please!
    Thanks

    There is a +Sound Check+ setting on the iPod's settings (set ON and OFF on the iPod's screen). This is supposed to equalize the volume of all of your audio files, but it may be malfunctioning. So if it is ON, you can try turning it OFF. You can also +Reset All Settings+, on the same settings screen; this may help set the iPod back to normal.
    On the iPod's DEVICES screen in iTunes, some iPods have a setting to +Limit Maximum Volume+. You should check that setting to see if it is turned ON.
    If the problem is not resolve, you should try using the Restore button in iTunes to erase the iPod's hard drive and initialize the iPod's software.

  • How do change the sound level input at the premiere cs6

    Hello:
             I would like to know how to change the sound level input al the premiere cs6?.
    Sincerely, Gabriel Conde

    The input sound levels will be determined by the media files you use.  The output volume can be adjusted in several ways.
    https://helpx.adobe.com/x-productkb/global/offline-help.html

  • Sound Level

    I have connected my Apple TV to seperate speakers. (Speakers from Bang & Olufson with buildt-in amplifiers, Beosound 4000). Im using my Iphone as remote control. Dont have TV connected, am only interested in sound.
    But the output sound level from the Apple TV is way to high. Cant turn the volume down enough. It goes from OFF og loud, just with one step on the volume bar on the remote.
    Is there a fix to this problem ?
    And please, a fix that does not involve buying other speakers.

    Are you connected via analogue cables or optical?
    'one step' on which remote, the B&O remote?
    I would not expect AppleTV to output on analogue at a higher level than any standard line level device - you're not connected to a high sensitivity input on the B&O such as a phono or mic input are you?
    Far better to have the AppleTV output it's music at a standard level and to control the volume on teh B&O unit in my opinion.
    AppleTV only recently had volume control for music using the white remote up/down arrows - seems to work ok but I had my reservations about it reducing sound quality in the past.

  • Getting the volume level of a Microphone

    Hi Everyone,
    I've looked around and I haven't been able to figure this one out. Basically I need to get the volume level from the microphone as it is recording. For whatever reason, when I try and get the volume control from the TargetDataLine, it throws an exception. Is there a way to get around this or does this feature just plain not exist?
    Thanks,
    Robbie

    hi metaldrummer610, i have the same problem and look for a solution since a long time.
    i only can manipulate the gain of my players like:
    public void setGain(double value) {
              try {
                   FloatControl gainControl =
                        (FloatControl) auline.getControl(FloatControl.Type.MASTER_GAIN);
                   float dB = (float)
                   (Math.log(value==0.0?0.0001:value)/Math.log(10.0)*20.0);
                   gainControl.setValue(dB);
              } catch (Exception ex) {
                   ex.printStackTrace();
    but in connection with my recorder it didn't work. i scanned many forums and try a lot, but i always get the exception like Unsupported control type: Mute , Volume etc.
         at com.sun.media.sound.AbstractLine.getControl(Unknown Source)
         at iax.audio.gsm.GSMRecorder.run(GSMRecorder.java:81)
         at java.lang.Thread.run(Unknown Source)
    have you find another idea? i decide to try it with jni, maybe i can find an api to control it via c, c++...
    regards, Karen

Maybe you are looking for

  • Hp external hard drive not recognised hp by pc

    I have had my HP PC for some time and had never completed a back up so purchased a HP external harddrive.  Part-way through the backup process (an hour or so later) the pc displayed a "backup failed" message. I have since attempted to connect the ext

  • Acrobat X having issues particularly in regard to creating a new form from an imported file.

    So here's the dealio. I'm trying to update an online for. I've made them in the past with no issues. Now I need to add a few liability lines. Anyway, So as per the video, I try to create a form from the updated pdf which was created through Word.  I

  • Safari out of control in yosemite

    Ever since updating imac, the Safari browser is out of control.  The advertisements are overwhelming and a new tab constantly opens for  mackeeper or other ads.  I am also getting a series of adobe flash player errors saying to change settings to 32-

  • New windows are hidden and inaccessible. How can I get to them?

    Mac 10.6.6 - Firefox 4.0 If ever I accidentally open a link in a new window it does not show up. It is listed under the Window menu, but no where else. I have tried all the Mac shortcuts to get all windows to show, but it is never among them. The onl

  • Decreasing the font size in a Classical report

    Hi all, i have to decrease the font size in the output of a classical report while printing. I have tried the following snippet: NEW-PAGE PRINT ON LINE-SIZE zeichen_pro_zeile                     LINE-COUNT zeilen_pro_seite                     NEW LIS