Compare audio volume or frequency with a tolerance range

I'm attempting a java application that will automate the testing procedure for an audible alarm that our company uses. I would like to make my application record a sample from an alarm that is known to be good. Based on that sample, I would like to set up a tolerance range so that alarms would have to closely match, but not exactly match, the sample. This way, variances in ambient sound, component tolerances, and so forth don't cause needless rejections.
As I understand it, Java has functions built in for grabbing audio samples from a mic so I'm not to worried about that portion. I'll just have to read up on how to use them. However, my knowledge of audio formats and characteristics is quite limited. I wouldn't know the first thing about what characteristics would yield the most reliable comparisons or how to apply a tolerance to them so that we could define the range that we would normally accept and the range that is normally rejected.
Does anyone know of a library that could handle, for example, matching an alarm with a 10% lower volume or 2% higher frequency to the sample sound and possibly stripping out background noise? If not, would anyone have some advice to offer about attempting to write my own code? I've never attempted to code anything that had to "parse" audio in this manner.
Edited by: dazed on Mar 18, 2009 8:29 PM

Oh. Sorry. I thought JMF was the Java Media Framework and assumed it was meant for media capturing/processing. I was pretty overwhelmed with the number of available forums so I wasn't too sure about which would be most appropriate either.
Edited by: dazed on Mar 19, 2009 1:54 PM

Similar Messages

  • Background Audio Volume Control

    Hi everyone!
    Thanks so much for your help on my background audio question.
    I was wondering if someone could tell me how I can control the
    level of the background audio that i'm using from the
    Project>Preferences>Background Audio Tab? I would prefer the
    level of background audio to be less than what captivate thinks it
    should when I'm talking through ny intro slides.
    Thanks again for your help and I'm gald to be aboard the
    forum.
    fajitaman

    Hi fajitaman
    Try this. Click either Project > Preferences... (if you
    are using Captivate 2) or Movie > Preferences... (if you are
    using Captivate 1). Then click the Background Audio tab. Once you
    do this, you should see a button labeled Edit... Click the Edit...
    button. (If you are prompted whether you are certain you want to
    make changes, click the Yes button.) Click the Adjust volume button
    and adjust the volume level as desired.
    Note you also have an additional option. One I'm personally
    not fond of, but it exists. That is the option to "Lower background
    audio volume on slides with additional audio". If you use this
    option (I believe it's enabled by default) you hear a definite (and
    noticeable) volume reduction when slides containing slide level
    audio are played.
    Hopefully this helps... Rick

  • Premiere Elements 13 - Help with AUDIO volume

    When recording the audio volume is too low. I adjust it in Premiere Elements 13 to the maximum and it is louder but still too low.
    When I play with gain I get extra an effect that I do not want.
    If there is not a way to do this from Premiere Elements is there an inexpensive plugin that I can get to work? When I search google seems like there are plenty of photoshop plugins but not enough for premiere.

    studysession
    Thanks for the follow up and good news of progress.
    A few ways...
    One way...
    a. In the Expert workspace, you have a thumbnail for your video with its associated low volume audio in Project Assets
    b. You drag  the file from Project Assets to the Timeline Video 1/Audio 1 (the volume will be at 0.0 dB)
    c. Then you drag the file again from Project Assets to the Timeline Video 2/Audio 2. This time you right click the file there
    and select Delete Video from the pop up menu.
    d. Then you drag the file again from Project Assets to the Timeline Video 3/Audio 3. This time you right click the file there
    and select Delete Video from the pop up menu.
    e. You repeat this until the sound has an acceptable volume.
    Another way
    a. In the Expert workspace, you have a thumbnail for your video with its associated audio in Project Assets.
    b. You drag the file from Project Assets to the Timeline Video 1/Audio 1 (with Adjust Tab/Adjustments Palette/Volume
    adjust the volume from 0.0 to + 6.0 dB)
    c. Move the Timeline Indicator to the far right...right click the Video 1/Audio 1 clip, select Copy. Do about five Ctrl+V to make
    five side by side copies of the file at that remote location of the Timeline Indicator.
    d. Then go through the drill of what is described above....all copies directly above one another on tracks above Video 1/Audio 1.
    drag a copy to Video 2/Audio 2, and the Delete Video
    drag a copy to Video 3/Audio 3, and the Delete Video
    drag a copy to Video 4/Audio 4, and the Delete Video
    The quality of sound and video were good on your YouTube video. I am still having problems with my Internet connect but got
    to watch most of it.
    Please let me know if you are OK with the information above. Good job with the audio gain and normalization.
    ATR

  • When adjusting the audio volume in a selected region, why does it give me a curved line instead of straight and why cant I change it like i can with a fade in our out?

    When adjusting the audio volume in a selected region, why does it give me a curved line as a transition instead of straight, and why cant I change the fade shape like i can with a fade in our out? When I slide thet volume all the way down it makes a very abrupt down curve. It's audibly noticdible.
    Thank you.

    Use the range selection tool and select the portion of the clip you want to change the volume on. Drag the volume line down and FCP will create keyframes which you can adjust as you want to get a fade shape.

  • Audio volume on aluminum 13" vs black 13"

    Is there anyone out there who used to own a black MacBook and now owns an Aluminum 13" MacBook? I'm wondering about the audio volume on the new model. I have a first-gen black MacBook, and the sound doesn't get very loud at all, even at max volume. Did they fix this in the Aluminum model? I'm about to buy one, but if the sound is still very quiet, maybe a MacBook Pro would be a better choice...

    David Ceddia wrote:
    Is there anyone out there who used to own a black MacBook and now owns an Aluminum 13" MacBook?
    Here I am
    I had a 1st gen Black MacBook and now a 13" Aluminium 2.0 Ghz: unfortunately I have no chance to compare them (the black was sold before getting the alu), but I didn't note any big differences, it seems that the alu has a little more power (and a slightly predominance in low frequencies from the right side...)

  • Reduce background noise and increase audio volume?

    Hi!
    I have a movie with very bad static/background noise and low volume. I've been playing around the NewBlue cleaner AB, but I have yet to get a satisfactory results. Any hints/tips that might help me out? Or is it not powerful enough to get a good result?
    Also, I've noticed the volume becomes even lower after running the filter.
    How do I adjust the "clip volume" in edit effects past 6dB? If this is not possible, why?
    Thank you!

    Well, increasing the audio volume is easy. But doing it without also increasing your background noise is much harder. In fact, unless it's of a specific frequency that you can filter out, it's pretty much impossible. That's why a lot of Hollywood movies and TV shows have to "loop" or re-record dialogue for a scene if there was too much wind or background noise.
    The easiest way to raise a clip's audio level is to click on it and select Audo Gain, and then increase the gain level.
    This, though, won't get rid of the background noise.
    Bill Hunt has some tips that may be helpful.
    http://forums.adobe.com/thread/572518?tstart=0

  • Pavilion g6 Laptop: audio volume fluctuatin​g.

    Product Name: HP Pavilion g6 - 2210sa Notebook PC
    Product number: C6S45EA#ABU
    OS: Windows 8 64-bit
    This is a brand new laptop and from the start the audio volume has been fluctuating like it has a compressor/limiter applied to it. Any volume increase in a piece of music I play off itunes/pro tools/zune etc. is dragged back down after a moment and vice versa with quiter sounds.
    I've searched these forums for a solution and tried all the suggested methods I've come across but am yet to find a fix for this.
    It seems this is a very common problem for people with HP computers and yet so many of these promblems seem to go unsolved!
    Cheers,
    Harry

    Hey jhazzac,
    The first thing I would suggest checking is your BIOS and Audio driver version. You will want to have the latest versions for both. Here is a link to the HP driver page for you model. If drivers are out of date, it can cause strange isues.
    Check what BIOS version is on your notebook currently by pressing FN+ESC. A little window will pop up that has your BIOS version. Compare that BIOS version (ex. F.14, F.16) with the latest one available HP's driver page which shows to be F.22 right now. Take a screenshot of your FN+ESC window and post it in a reply if you're unsure. 
    Also compare your audio driver version with the latest version on HP's driver page. To check your current audio driver version: 
    1. Press Windows Key + C to bring up the Charms Bar.
    2. Click Search and type in "Device" and Click Settings.
    3. Click on Device Manager in the search results.
    4. Expand the 'Sound, video and game controllers' section.
    5. Double-click on IDT Audio.
    6. Click the driver tab. Make note of the driver version number and post it in your reply.
    If the audio driver version on your notebook right now is earlier than the version available on the HP driver page, you will want to download and install the latest version. 
    If the issue persists after you have updated the BIOS and audio driver versions, please let me know!
    Also let me know if you have any questions or if these suggestions helped (this could help other users having similar issues). I'll keep an eye out for your reply!

  • Audio volume low when computer wakes from sleep - os x yosemite

    I've been having an issue ever since I upgraded to OS X Yosemite, where the audio volume coming out of my external speakers is extremely low after I wake my computer up from sleep.  The only resolution I have found is restarting the computer.  Once I do that, the audio volume is great.  If I were to boot up my computer after it has been completely shut down, the audio volume is also great.  The issue only occurs after sleep.  Anyone else having a similar issue?  Is there another fix besides restarting the computer?
    Speakers: Bose Companion 2 Series II (these are wired, not bluetooth)
    Computer: Mac Pro - late 2013 - running Yosemite

    This is a BUG.  It has been submitted to engineering many times - unfortunately Apple has not done anything about it.   We have 5 Mac Pros,  all 5 do the same thing after updating to Yosemite.   The  PRAM / SMC reset is useless -  we even  installed a fresh  OS on one of the machines (a suggestion of the level 2 Apple tech)  same problem.   Clearly this is a system level bug.   Only way to get it resolved is to keep pounding the bug report site with requests.     The squeaky wheel gets the oil.   The problem is 100% repeatable on the machines that exhibit the bug.
    In the mean time  set up an applescript with this command and it will reset the sound - do not include the brackets :
    <do shell script "sudo killall coreaudiod" with administrator privileges>
    Run it every time you wake from sleep and you won't have to deal with the problem ever again.   
    Pretty lame that Apple has not fixed it even though the problem appears to be pretty widespread.  

  • Audio volume is always maximum at start

    I upgraded to Mac OS X Lion from Mac OS X Snow Leopard.
    Before the upgrade when I reboot Mac OS X the audio volume is at the same level I left before.
    Now when Mac OS X Lion starts, the audio level is always at maximum.
    I think this is a little bug of the new OS.
    Is there anyone with the same problem?
    Does anyone have solved it?
    Thanks you all.

    Roberth wrote:Set the the desired audio volumes with alsamixer, run alsactl store, and start the alsa daemon and make sure it starts at every bootup.
    SyXbiT wrote:
    first let me say I've read other forum posts about the same thing, but none have helped.
    All I have to do to get sound it move (up or down) my keyboard shortcut volume switch, and it magically turns on my sound. pretty annoying
    I have alsa in my Daemons, and have run 'alsactl store' as root.
    i even tried putting 'alsactl restore' in my rc.local, but nothing
    groups:
    tty lp mem wheel locate games dbus hal avahi network video audio optical storage power users gdm
    any ideas?
    he said he did that, it's something else...

  • Non-Apple Keyboard: any way to control system audio volume?

    I have a non-Apple Keyboard on my new Mini Lion 7.2.1
    Is there any way to control system audio volume via the keyboard ?

    Well. I can do this. But just because, on my Apple keyboard, there are the keys that do the job. There's a key to mute, and the keys to adjust low and high the sound. But keyboard shortcuts, I don't think exist. The aren't in keyboard shortcut in Keyboard panel, within System Preferences. The bottom line is that isn't a menu item in Finder for lower sound and higher sound. The only option would be an AppleScript that you save as an applet within Scripts menu (activated in Finder via Script Editor) and you invoke with a shortcut... Well, you can do it, if you open the script Set Output Volume in UI Elements Script folder within Scripts folder. Try it out!

  • Slideshow audio volume adjustment

    Help! I can't seem to adjust the audio volume of the audio file on a slideshow project. The audio volume on playback is always the same whether I slide the volume adjustment to the maximum or down to zero. On playback the audio volume is always the same. I need to lower this volume because it drowns out the narration part of the slideshow. How do you do this??
    Thank You!

    I have come across this problem but I’m not sure I have a solution, perhaps only a work-around.
    I have managed to save a slideshow from PSE as a WMV file on my hard drive.
    Opening the WMV file with Windows Movie Maker (sorry if you are on a MAC) does allow the volume of the background track to be adjusted whilst also having a primary (Commentary) audio track.

  • How do I get 10.4.8 AUDIO VOLUME back?!

    My daughters' iMac G3 is like a freakin' megaphone now after updating it to 10.4.9. Why did Apple have to mess with audio volume levels? It was FINE the way it was. Now, in 10.4.9, the lowest volume setting is around the 50%-65% mark it was in 10.4.8.
    I've ready other complaints elsewhere, now just want a solution. She's had it for months and we know the volume it produced, now, like I said, it's a megaphone and she even says its too loud (she's four).
    Help!

    The max OS for a PowerPC processor Mac is Leopard OS 10.5.x. All higher OSs require a Mac with an Intel processor.
    Here's the instructions if you have the discs.
    Mac OS X: Changing or resetting an account password
    http://support.apple.com/kb/HT1274?viewlocale=en_US
    Changing your administrator password
    http://docs.info.apple.com/article.html?path=Mac/10.4/en/mh655.html
    Here's one method to reset the password without the install disc:
    1. boot computer and hold the "apple" key and the "s" key.
    2. wait for terminal show
    3. release keys
    4. type without the quotes: "/sbin/mount -uaw"
    5. press enter
    6. type without the quotes: "rm /var/db/.applesetupdone
    7. press enter
    8. type without the quotes: "reboot"
    9. press enter
    This will let you create a new admin account when you reboot your computer.
    Also, without the discs, look at Mac OS X Tip - No Password, No Root, No CD? No Problem.
    http://www.macobserver.com/tip/2003/06/16.1.shtml
    Here is a way to get around not knowing the admin password on Macs.
    To reset your OS X password without an OS X CD you need to enter terminal and create a new admin account:
       1. Reboot
       2. Hold apple + s down after you hear the chime.
       3. When you get text prompt enter in these terminal commands to create a brand new admin account (hitting return after each line):
              * mount -uw /
              * rm /var/db/.AppleSetupDone
              * shutdown -h now
       4. After rebooting you should have a brand new admin account. When you login as the new admin you can simply delete the old one and you’re good to go again!
    You'll have to buy (for over $100) a Leopard retail install DVD to get back to Leopard.
     Cheers, Tom

  • Reset audio volume

    I'm not sure where to post this question, but here goes. Is it possible to reset the audio on my mac so that the sound volume of video clips and movies is raised? I regularly encounter video with audio volume that is too low, even though I have the volume level in System Preferences set to the maximum. I find the problem in DVDs, QT, and YouTube, etc.
    Thanks, Caoim

    Might be corrupted sound preferences ...
    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following;
    /Library/Preferences/Audio
    Click Go then move both .plist files from the Audio folder to the Trash.
    com.apple.audioDeviceSettings.pllist
    com.apple.audio.SystemSettings.plist
    Restart your Mac. See if that made a difference ...

  • Audio Volume

    A lot of times I find the audio volume on the MBA to be too low. It's fine when I'm using earphones, but sometimes I don't want to do that, and I find it hard to hear things sometimes. Maybe I'm just old and I've heard too much loud music, but has anyone used any 3rd party software that helps with this situation, or found another solution? Yes, I have the setting up as high as it will go.

    Hi Kenshane,
    The MacBook Air uses a single, mono speaker on the right hand side of the keyboard (Shift key) area. As a result, the sound coming out of the unit is going to be pretty low. An external speaker kit, especially if you intend to use the unit for multimedia is recommended.

  • Low audio volume in DVD SP

    I've been experiencing low audio volume with burned DVDs in DVD SP 4.
    The audio volume is fine in FCP, and also in the self-contained exported QT file.
    But once imported into DVD SP and burned to a DVD, the volume is almost cut in half on multiple projects. The DVD's are short (< 30 minutes) so the audio is left as an AIFF file rather than converting it to an .ac3 with Compressor.
    I don't see any way to control the volume in DVD SP.
    Any ideas?
    Thanks,
    Richard<br>
    G5 dual 2 gig   Mac OS X (10.4.7)   4.5 Gigs Ram

    There's no way to control volume in DVDSP.
    I had the same problem, but I had an ac3 file through Compressor. And there was this feature in it called "dialog normalization" that I had to turn off (setting it at -31dB), and my levels were good.
    If you can't solve your problem with AIFF, maybe try ac3, and see if it suits you.

Maybe you are looking for

  • Print a report in crystal Report using SDK

    Hi Dear; any body can publish a sample code how can i print a report built in crystal report using SDK? regards;

  • ADFS SSO not working correctly on 'old' portal, but works fine on preview portal

    We recently configured an AADSYNC and ADFS 'connection' between Azure and our on-premise environment. When i log into the preview portal everything works fine, I'm being redirected to our ADFS proxy server and I get authenticated and logged into the

  • Google Chrome displaying incorrect fonts

    I have just downloaded google chrome for the first time and tested a site I have built in it, and all the fonts are times/serif style when I have created the style sheet to have ariel/helvetice/sans serif as the default body font. Every other browser

  • Accessing values in an array of JComboBoxes

    Hello. I am building a program to calculate a user's GPA. This is a class assignment and so has some requirements I'm meeting. There are two event handlers: One runs a loop to add course input lines; one calculates the GPA based on the inputs. There

  • Emctl shutting down by itself after a while

    I just got 10.1.0.3 installed and a 9i database converted. I can get the Database Control started (emctl start dbconsole) and use it, however, after a while emctl shuts down by itself. Below is what occurs in emagent.trc just before emctl shuts itsel