sound

Convert .caf files from stereo to mono

How can I convert my .caf sound files, in stereo, to mono ? ...

How to process Sound with Java?

Hey, i have to implement the LPC (linear predictive coding) Algorithm with Java and quiet frankly don't have a clue where to start. Could someone please point me into a right direction.. I can't. of course, use already implemented algorithms from the java sound api (if its provides a solution). thanks for you help fabian ...

How to read *.wav file in Python?

I need to analyze sound written in a .wav file. For that I need to transform this file into set of numbers (arrays, for example). I think I need to use wave-package. However, I do not know how exactly it works. For example I did the following: import wave w = wave.open('/usr/share/sounds/ekiga/voicemail.wav', 'r') for i in range(w.getnf...

What is the easiest way to read wav-files using Python [summary]?

I want to use Python to access a wav-file and write its content in a form which allows me to analyze it (let's say arrays). I heard that "audiolab" is a suitable tool for that (it transforms numpy arrays into wav and vica versa). I have installed the "audiolab" but I had a problem with the version of numpy (I could not "from numpy.test...

Sound working in emulator, not in real iPhone

Have few short sound effect samples, which play just fine in emulator, but not at all in real iPhone 3GS. Here's the code, about as-is from Apple SysSound sample: CFBundleRef mb = CFBundleGetMainBundle (); CFURLRef soundFileURLRef = CFBundleCopyResourceURL (mb, CFSTR("mySound"), CFSTR ("caf"), NULL); SystemSoundID sid; AudioService...

Analyze "whistle" sound for pitch/note

Hello everyone I am trying to build a system that will be able to process a record of someone whistling and output notes. Can anyone recommend an open-source platform which I can use as the base for the note/pitch recognition and analysis of wave files ? Thanks in advance ...

Make an object react to a sound in Flash

Hello! I have a speaker and I need this speaker moves with a sound. I need to simulate the real world speaker vibration generated by the low and mid frequencies. Does not have to be soo realistic what I whant to know is how I can play a sound and get son mumerical value usefull for apply numerical size transformation to the speaker. C...

What causes Audio output to stutter?

There is a very common software bug that causes about 1 second of audio to be played a few times in succession, creating a kind of stutter. I notice this most often when playing video games. I know this is not architecture specific, I have seen it happen in consoles, in old PC's and it just happened 5 minutes ago when I booted wi...

Is there any Algorithm for converting Image of sound to sound?

So I have an image like this Is there any algorithm to extract (get as PCM) sound from which was created that image? ...

A clojure friendly library for playing sounds

I'm looking for an easy to program library for infrequently playing sounds (notifications and the like) from a clojure function. edit: like this (use 'my.sound.lib') (play-file "filename") (beep-loudly) (bark-like-a-dog) ... ...

How do you get Haxe to play sound files when compiling to Flash 8?

I'm having some trouble getting Haxe to play audio files in Flash 8. At the top of my hx file, I have: import flash.MovieClip; import flash.Sound; and, within the class itself, I preload a lot of image files along with the names of the audio files. The idea is to do a slideshow with audio content. Basically, display the first slide ...

Java Sound API on OS X with USB Sound Card

I have a working program written in Java with the Java Sound API that is able to play multiple mp3 audio files at the same time to different USB Sound Cards in the same computer. It works fine in Linux. In Mac OS X, however, it does not. The listing of my sound Mixer Infos is: [0] Java Sound Audio Engine [1] Built-in Input [2] USB Adva...

Sound clip from a button

I need to access sound clips from buttons. I can't find any examples. TIA. ...

(iPhone) Can I do AudioServicesPlaySystemSound Looping with scheduler?

Can I do AudioServicesPlaySystemSound Looping with scheduler? One problem is I cannot get the sound duration. Is there any way to get the duration so I can dynamically create a scheduler that loops the sound? As far as I know AudioService does not have built-in looping and other necessry functions, and that's really a pain. ...

What's a simple way to output homebrewed synthesized sound on Unix?

I want to do some sound synthesis on Mac OS X (and ideally other Unix-like OS) using ANSI C. This is for learning purposes rather than "I need a solution, any solution, quick!" Say I have an 8-bit buffer in my C program that I update 22050 times a second. How can I get my speakers to output that as a waveform? ...

Design choice for sound effects

I'm trying to decide how I want to implement sound effects in my program. I've debating between 2 options. 1) Create an abstract interface SoundEffect and have every sound effect derive from that. Each sound effect is its own class. Upon construction, it opens the sound file and plays, and upon destruction it closes the file. The main d...

How to play sound in Python WITHOUT interrupting music/other sounds from playing

I'm working on a timer in python which sounds a chime when the waiting time is over. I use the following code: from wave import open as wave_open from ossaudiodev import open as oss_open def _play_chime(): """ Play a sound file once. """ sound_file = wave_open('chime.wav','rb') (nc,sw,fr,nf,comptype, compname) = so...

IPhone Playing sound over a phone call

I would like to be able to play a sound file during a phone call so the person at the other end of the line can ear it clearly. I know it is possible to play sounds on the line but i can't figure out how to cut the microphone at the same time so the person at the other side of the line don't ear ambiant noises.. Does someone knows how...

Accurate sound input in Actionscript?

I want to create a swf or air app that takes an input and displays a graphic representation of it. The graphic side is fine for the moment, but its always using an mp3 for example var sound:Sound = new Sound (new URLRequest("myMP3.mp3")); - i want it to be able to take a 'live' audio feed. How would I do that and is there a better w...

BASIC - activate microphone recording on keypress?

I am charged with an old BASIC program that needs to be altered to activate microphone recording on a specific keypress. I'm having trouble finding out how. Anyone here able to shed any light? Thanks for any help. Edit: I'm pretty sure it was originally written for GW-BASIC. ...