audio

How do I capture the audio that is being played?

Does anyone know how to programmatically capture the sound that is being played (that is, everything that is coming from the sound card, not the input devices such as a microphone). ...

Lookng for a way to programmatically convert G729 audio to WAV PCM

I have G729 encoded audio files. I need to programmatically convert them to WAV PCM (16bit 8kHz mono) in the flow of a tool that is doing other thing too. I have an executable that will do that for me. But spawning that external process every time I convert is too heavy on resources. Especially if I need many of them being done in parall...

How do you set the hardware volume in an iPhone app?

Some iPhone applications, such as Pandora seem to directly manipulate the hardware volume and respond to physical volume button. How is this done? AudioSessionServices allows you to get the current hardware output volume with the kAudioSessionProperty_CurrentHardwareOutputVolume property, but it is (allegedly) read-only. ...

How do I play a sound file in j2me on Samsung mobile phones?

File formats I would like to play include wav, mp3, midi. I have tried using the Wireless Toolkit classes with no success. I have also tried using the AudioClip class that is part of the Samsung SDK; again with no success. Thanks ...

Latency in playing short sounds in Flash 9, Actionscript 3

I've got a few very short audio clips (less than a second long) to be played on various events (button hover, click, etc). However, there is usually a significant lag between the action and the actual playing of the sound. I have tried both embedding the sound in the .swf, and loading it externally at the start, but both lead to the sa...

What is the simplest way to continuously sample from the line-in using C#

I want to continuously sample from my PC's audio line in using C# (then process that data). What is the best way to do the sampling? ...

Downsampling and applying a lowpass filter to digital audio

I've got a 44Khz audio stream from a CD, represented as an array of 16 bit PCM samples. I'd like to cut it down to an 11KHz stream. How do I do that? From my days of engineering class many years ago, I know that the stream won't be able to describe anything over 5500Hz accurately anymore, so I assume I want to cut everything above tha...

HTML: Why does embedded audio sometimes fail to play?

I am experiencing some strange behavior of embedded audio (wav file) on HTML page. I've got a page https://server.com/listen-to-sound, and a Wav file embedded in it via <EMBED/> tag, like this: <embed src='https://server.com/path-to-sound' hidden="true" autostart="true" /> The page https://server.com/listen-to-sound is opened in IE 6 ...

Does anyone know of any C/C++/C# code libraries that do audio synthesizer emulation?

I'm trying to write a software synthesizer that recreates the sounds made by classic synthesizers like the Moog and the DX7. Does anyone know of any code resources for something like this? Thanks. ...

Ruby audio Library

is there any good Ruby audio libraries that we can build upon? Need to manage/edit mp3 files!!! ...

How do I create a Kindle and iPod-compatible audiobook file with section markers?

I've looked for references on the Audible format, and it appears that people are only interested in cracking/converting out of it. I've got a collection of MP3 files that I want to convert into Audible format for use on my Kindle and iPod. Does anybody have a good reference on the Audible or protected AAC formats and how section marker...

Question SpeechSynthesizer.SetOutputToAudioStream audio format problem

Hi, I'm currently working on an application which requires transmission of speech encoded to a specific audio format. System.Speech.AudioFormat.SpeechAudioFormatInfo synthFormat = new System.Speech.AudioFormat.SpeechAudioFormatInfo(System.Speech.AudioFormat.EncodingFormat.Pcm, 8000, ...

How do I process the microphone input in real-time?

I'm starting to create a proof of concept for an idea I have, and at this point, I need some guidance as to how I should begin. I need to sample the microphone input, and process that signal in real-time (think Auto-Tune, but working live), as opposed to "recording" for a while. What I'm doing is "kind of" a "mic input to MIDI converte...

Can I do band filtering easily with DirectSound? If not, how can I do it?

I'm wondering whether something like this is possible (and relatively easy to do), and if so, how I could do it? I would like to do band filtering on a wave file I'm reproducing. Something similar to the "Equalizer" you see in most Winamp-like applications. My idea is, however, not to equalize the sound, but to use very high negative dB...

Play audio with python

How can i play audio (it would be like a 1sec sound) from a python script? It would be best if it was platform independent, but first of it needs to work on a mac. I know i could just execute the 'afplay file.mp3' command from within python, but is it possible to do it in raw python? I would also be better if it diddnt rely on external...

Stop embedded Windows Media Player from looping?

I've got an embedded Windows Media player in an HTML page, and when the audio gets to the end, it just starts again from the beginning. According to the documentation, there's an autorewind parameter/attribute and also a loop. The problem is, I've set both of those to false (and/or zero) and it doesn't seem to make any difference. Mig...

Do you know some good programming songs for monitoring purpose ?

[Community wiki] Monitoring a production platform is of the utmost importance for our organization. (and I am not talking about an exe on a single platform, but rather a farm of 2 or 3 thousands servers (PC-Linux-Solaris), for various financial processing purposes) However, the various monitoring tools have so many sound alerts it is no...

How do I find the sample rate of microphone audio using Skype4Com?

I am using the Skype4Com COM object to intercept audio from the microphone. I know that it is 16 bit mono, but how do I find out what its sample rate is? ...

JavaSound writing to audio file with a stream

I'm attempting to create an audio filter using the JavaSound API to read and write the audio files. Currently my code is structured as follows: ByteArrayOutputStream b_out = new ByteArrayOutputStream(); // Read a frame from the file. while (audioInputStream.read(audioBytes) != -1) { //Do stuff here.... b_out.writ...

Input Audio as a Stream in CF 3.5

I googled around and coulnd't really find an answer. How do I open an audio input device (namely a microphone) as a stream (preferably) on a CE/WinMobile device using Compact Framework? I looked at WindowsMobile.DirectX, at various classes that contained Audio in their name and nothing seemed to do the trick. What I want to do is basi...