Questions tagged [portaudio]

For questions related to the PortAudio cross-platform audio I/O library.

PortAudio is a free, open-source library for audio I/O. It can be linked with C or C++ programs to run on platforms including Windows, Macintosh OS X, and Unix (OSS/ALSA/JACK).

The official website includes full documentation.

Useful Links:

516 questions
33
votes
10 answers

How to fix installation issues for PyAudio, PortAudio: "fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory"

I am having issues installing PyAudio and portaudio. When I do python -m pip install pyaudio I get this error: src/_portaudiomodule.c(29): fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory error: command…
KevinM1990112qwq
  • 715
  • 2
  • 10
  • 23
28
votes
6 answers

PyAudio IOError: No Default Input Device Available

I'm using PyAudio under the Enthought Python Distribution (Python 2.6.6) in Ubuntu 10.10 x64. >>> import pyaudio >>> pa = pyaudio.PyAudio() >>> pa.get_default_input_device_info() Traceback (most recent call last): File "", line 1, in…
Gus
  • 4,375
  • 5
  • 31
  • 50
21
votes
3 answers

RtAudio or PortAudio, which one to use?

I'm considering RTAudio + RTMidi and PortAudio + PortMidi for a new project that requires realtime audio and midi procesing. Can anyone with experience using both libraries recommend one over the other? why? I prefer a C++ API over a C API but this…
Rafael Vega
  • 4,575
  • 4
  • 32
  • 50
18
votes
1 answer

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

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…
houbysoft
  • 32,532
  • 24
  • 103
  • 156
15
votes
7 answers

pyaudio could not import _portaudio

Trying to run python app that uses pyaudio. Using virtualenv and installations are working. However when running it can't find portaudio. But the _portaudio.so file exists. Any suggestions??? (venv) kidkic@pi-mirror1:~/audio $ jasper/jasper.py…
roady
  • 597
  • 2
  • 6
  • 20
11
votes
1 answer

Using PortAudio wrapper in ruby to record sound to .wav

I've been playing around with ruby recently, and I decided to start a simple project to write a ruby script that records line-in sound to a .wav file. I discovered that ruby doesn't provide very good access to hardware devices (and it probably…
oflannabhra
  • 661
  • 5
  • 18
11
votes
2 answers

Implementing simple high and low pass filters in C

Trying to use portaudio to record some data, then use an algorithmic filter to change the recorded voice and then play it back. I've verified a lot of it (coming from example) but I'm quite new to C and I think in my filter implementation I've done…
Slater Victoroff
  • 21,376
  • 21
  • 85
  • 144
11
votes
1 answer

Python PyAudio installation problems (with PortAudio)

I'm trying to write a program to record information from my computers microphone an save it to a file. PyAudio seems like one of the better packages for doing this, and they even have a binary for Windows 7 (Python 2.7). I downloaded the executable…
scaevity
  • 3,991
  • 13
  • 39
  • 54
10
votes
2 answers

Getting IOError: [Errno Input overflowed] -9981 when setting PyAudio Stream input and output to True

I'm trying to run the following code (an example from the PyAudio documentation) on my Mac (OS 10.7.2): import pyaudio import sys chunk = 1024 FORMAT = pyaudio.paInt16 CHANNELS = 1 RATE = 44100 RECORD_SECONDS = 5 p = pyaudio.PyAudio() stream =…
jhnnycrvr
  • 767
  • 2
  • 7
  • 13
10
votes
1 answer

Portaudio won't play sound if another program is currently playing

I have a program using PortAudio. Currently I'm starting it up with Pa_OpenDefaultStream(&stream, 0, 2, paFloat32, 44100, 256, audioCB, udata), but when I compile and run my program it won't play sound if another program is currently running (such…
Alex
  • 14,973
  • 13
  • 59
  • 94
10
votes
3 answers

Memory problems with continuously recording audio

Here I am trying to write some code for a continuously recording audio system. I am then attempting to record the audio for a certain amount of time when a certain amplitude threshold is broken. #include #include #include…
syb0rg
  • 8,057
  • 9
  • 41
  • 81
10
votes
3 answers

Getting flite to output audio with PortAudio

I am trying to get the flite speech synthesis library to work on my Mac, but my sound architecture isn't supported within the flite library. To fix that problem, I am using PortAudio to playback the synthesized audio; so I had to do a little bit of…
syb0rg
  • 8,057
  • 9
  • 41
  • 81
10
votes
3 answers

List all audio devices with Python's pyaudio (portaudio binding)

I tried import pyaudio p = pyaudio.PyAudio() for i in range(p.get_device_count()): print p.get_device_info_by_index(i) but I don't get the full list of all devices : for example I don't get ASIO devices in this list. This is strange, because…
Basj
  • 41,386
  • 99
  • 383
  • 673
9
votes
2 answers

Convert Raw to Wav Streams in NodeJS

I am using a nodeJS library naudio —link— to record sound from a 2 microphones (total 4 channel audio with each microphone being stereo). This library spits out a .raw file in the following specs: 16 BIT, 48000Hz Sample Rate, Channel Count 4 // var…
Cipher
  • 5,894
  • 22
  • 76
  • 112
9
votes
4 answers

Continuous recording in PortAudio (from mic or output)

I am trying to create a music visualizer application in PortAudio, I did some basic research and found some examples on how to record from a mic to a (temporary) file. But there was no example where the data is not used runtime during the…
tversteeg
  • 4,717
  • 10
  • 42
  • 77
1
2 3
34 35