portaudio

How to extract frequency information from an input audio stream (using PortAudio)?

I want to record sound (voice) using PortAudio (PyAudio) and output the corresponding sound wave on the screen. Hopeless as I am, I am unable to extract the frequency information from the audio stream so that I can draw it in Hz/time form. Here's an example code snippet that records and plays recorded audio for five seconds, in case i...

How to use numpy with portaudio to extract bass, mid treble

As in this example http://stackoverflow.com/questions/259451/how-to-extract-frequency-information-from-an-input-audio-stream-using-portaudio I'm curious about portaudio and numpy... I'm not 100% sure about fft, how can I pass numpy a chunk and get back three values from -1.0 to 1.0 for bass, mid and treble ? I don't mind if this just...

Iterate over list in haskell?

I'm writing an audio program in Haskell using Portaudio. I have a function that generates a list of samples I'd like to play, and I'm trying to play them using the following snippet inside main: curSamps <- return (chunk 1 (sineWave 440 44100)) forever $ do Right numSampsAvail <- getStreamWriteAvailable paStream Right NoError <- wri...

Why does PortAudio not play nicely with other audio programs or how can I get it to?

I am trying to write an audio application using PortAudio, but if any other audio programs (usually Firefox) are running at the time which I try to run my program, I get the following error: PaHost_OpenStream: could not open /dev/dsp for O_WRONLY PaHost_OpenStream: ERROR - result = -10000 An error occured while using the portaudio strea...

Building PortAudio and PyAudio on Mac running Snow Leopard (arch issues)

I'd like to tell you what I've tried and then I'd really welcome any comments you can provide on how I can get PortAudio and PyAudio setup correctly! I've tried installing the stable and svn releases of PortAudio from their website for my Core 2 Duo MacBook Pro running Snow Leopard. The stable release has a sizeof error that can be fix...

Combine Video and Audio Streams (Qt, OpenCV, PortAudio,libsnd?)

Hey everyone, I was wondering, how would I combine recorded audio and video into one if I have them in separate files? Preferably using OpenCV and PortAudio/libsnd. Thanks in advance. ...

How to extract frequency information from samples from PortAudio using FFTW in C

Hi all, I want to make a program that would record audio data using PortAudio (I have this part done) and then display the frequency information of that recorded audio (for now, I'd like to display the average frequency of each of the group of samples as they come in). From some research I've done, I know that I need to do an FFT. So I...

Cmake file for PortAudio

Hey everyone, I was wondering, do you guys know of a cmake file for portaudio that I could use? Thanks in advance! ...