sound

Comparing sound files if not completely identical

Is there any way to programatically compare two sound files to determine if they are identical, or nearly identical? These are not mp3 files and do not have any ID3 or other meta data, but plain wav files. Comparing the checksum values may not work as they may not be completely identical. ...

How to record wav sound from mic using Windows API?

How to record wav sound from mic using Windows API? ...

Given an audio stream, find when a door slams (sound pressure level calculation?)

Not unlike a clap detector ("Clap on! clap clap Clap off! clap clap Clap on, clap off, the Clapper! clap clap ") I need to detect when a door closes. This is in a vehicle, which is easier than a room or household door: Listen: http://ubasics.com/so/van_driver_door_closing.wav Look: It's sampling at 16bits 4khz, and I'd like to av...

Java: Playing WAV sounds

Hi, I am trying to build a java drum machine that needs to play WAV sound samples of the various drum parts (bass drum, snare, etc). Because I need to play the sounds in a tight sequence, I need high performance. Currently I'm using: import sun.audio.*; import java.io.*; public class MusicPlayer { private String filename; pu...

libsox help

EDIT: i want to use libsox to programatically convert a wav file's sample rate, audio format, channels, and etc. in the libsox man page, there are a bunch of functions I can use but I'm clueless as hell on what to do. Can anyone give me a sort of steps on how to do it? Help? Can anyone please explain this? The function sox_w...

Libsox encoding

Why do i get distorted output if I convert a wav file using libsox to: &in->encoding.encoding = SOX_ENCODING_UNSIGNED; &in->encoding.bits_per_sample = 8; using the above code? The input file has bits_per_sample = 16. ...

Good Sound processing/Analysis/Capturing Modules

We are working on Sound processing and Analysis where we need to extract frequencies, pitches, octaves and other parameters of sound including dBPowerSpectrum Analysis. We also need to do this irrespective of the file formats or do the conversion between quite a file format(though conversion is not a very critical requirement if those pa...

Finding processes using ALSA sound fast

Currently the way /usr/sbin/alsa in Debian knows the processes using the sound card looks like: echo $( \ lsof +D /dev -F rt \ | awk '/^p/ {pid=$1} /^t/ {type=$1} /^r0x(74|e)..$/ && type == "tCHR" {print pid}' \ | cut -c 2- \ | uniq \ ) Which is rather ugly and depends on lsof. I am looking for a POSIX solution without lsof, perha...

AVI texture in direct-x with sound sync

I'm about to add "render AVI to texture" to our engine to get videos into materials, and realised I haven't done any video decoding since the Playstation1 (argh) so would like to know if anyone has any suggestions on how to get an AVI's frames output to a standard memory buffer while also maintaining sync with any Audio that might be pla...

Java sound: what's the persistence of set controls ?

Hiya - still @ the design stages of an app, and was wondering about the following with regards to Lines of type 'Port': do the values entered last once the port is closed (it seems that port controls are only accessible if I open the port before asking for the port's controls)? do the values entered impact only my applications access t...

Sound processing: Should I use DirectSound or directly Win32 APIs?

I'm making an application where I will: Record from the microphone and do some realtime processing on the input Play an MP3 file (a regular song), but manipulating the output in realtime Every now and then I'll need to play additional sounds over this song too, but I guess I can do that by simply adding the buffers. In short, I need ...

Sound pressure display for WAVE PCM data

The digital sound is playing using DirectSound device. It is necessary to display sound activity in decibels - like analog devices do. What is the right way to calculate sound pressure from the WAVE PCM data (44100hz,16bit)? ...

Delphi : How to create MP3 file with certain number of seconds of silence ?

I need to create a mp3 file with certain number of seconds of silence? What would be way to do it programatically? Edit: It doesn't need to be re inserted in mp3, just a single mp3 file that contain silence x seconds long. ...

sox question

how do you convert a mp3wav (a compressed wav in mp3 form) to uncompressed wav (PCM) using sox? mp3wav sample files can be downloaded here: http://www.clayloomis.com/simsong.html ...

compressed and uncompressed .wav files

What is the difference between compressed and uncompressed .wav files? ...

What output and recording ports does the Java Sound API find on your computer?

Hi all - I'm working with the Java Sound API, and it turns out if I want to adjust recording volumes I need to model the hardware that the OS exposes to Java. Turns out there's a lot of variety in what's presented. Because of this I'm humbly asking that anyone able to help me run the following on their computer and post back the resul...

iPhone - some sound files not playing

I have a list of short wav files. Two of these files do not play on either the simulator or the device itself. All are wav files 1 second long. This is how I play the files SystemSoundID soundID; NSString *filePath = [[NSBundle mainBundle] pathForResource:@"sound1" ofType:@"wav"]; NSURL *fileUrl = [NSURL fileURLWithPath:filePath]; Aud...

What are some good resources for getting started with gstreamer?

I'd like to learn the gstreamer media framework. Where should I start? ...

Recording sound as WAV on iphone

I am making an iPhone recording app that needs to submit the sound file as a .wav to an external server. Starting from the SpeakHere example, I am able to record sound as a file, but only as .caf Does anyone know how to record it as a wav instead? Or how to convert from .caf to .wav on the iphone? (The conversion must happen on the pho...

How to split-output sounds to speaker and earphone?

OS: win xp motherboard: ASUS A8N-E (with sound card built-in) I have a speaker and an earphone. When using mp3 player and media player at the same time, all of the sounds will output to all sound output devices(speaker and earphone). Is it possible to let the mp3 only output in speaker while the media player only output in earphone? ...