Questions tagged [pyaudio]

PyAudio provides Python bindings for PortAudio, the cross-platform audio I/O library.

PyAudio provides Python bindings for PortAudio, the cross-platform audio I/O library. With PyAudio, you can easily use Python to play and record audio streams on a variety of platforms (e.g. GNU/Linux, Microsoft Windows and Mac OS X).

Sources:

  1. http://pypi.python.org/pypi/PyAudio/
  2. http://people.csail.mit.edu/hubert/pyaudio/
1375 questions
0
votes
1 answer

Recording multiple microphones in python

I am having some trouble accessing more than two microphones usig pyaudio. I have a Scarlett 18i20 mixing device to which I want to connect several microphones (up to 8) and then capture the audio stream through pyaudio. After importing pyaudio I…
Chris
  • 899
  • 2
  • 17
  • 25
0
votes
1 answer

Converting microphone data to frequency spectrum

I'm trying to create a spectrogram program (in python), which will analyze and display the frequency spectrum from a microphone input in real time. I am using a template program for recording audio from here:…
stokastic
  • 128
  • 1
  • 6
0
votes
1 answer

Multiprocessed producer consumer audio player with buffering

I need to implement audio player that could deal with jitter. So I need buffering and hence I need to have minimal buffer size and to know how much elements are in buffer at the time. But in python Queue qsize() method is not implemented. What can I…
user1685095
  • 5,787
  • 9
  • 51
  • 100
0
votes
1 answer

Using sound file as pyaudio input device

With PyAudio it is fairly simple to open an input stream comming from a physical sound input device. I wonder if there is a way of open an existing sound file as a stream, which has the same properties as the sound-device-stream? Instead of …
0
votes
0 answers

PyAudio Segmentation Fault on Raspberry Pi

I installed PyAudio on my Raspberry Pi without any problems but I'm unable to run any sample test. If I run any of them the app just "pauses" for a while and then it quits with a segmentation fault. I stripped out the code and found that these 2…
n0n4m3
  • 43
  • 1
  • 2
  • 5
0
votes
1 answer

unbound method get_sample_size() : when saving a wav file

I am trying to save a wav file. data is an numpy array with data type of int16. When I run my code, it give me following error, which I don't understand. wf.setsampwidth(p.get_sample_size(pyaudio.paInt16)) TypeError: unbound method…
Vabs
  • 485
  • 1
  • 5
  • 17
0
votes
1 answer

Install PyAudio with WinPython

On Windows 7, I want to install PyAudio to use with WinPython, but the PyAudio installer crashes out because there is no Python entry in the registry. WinPython does a lot of things its own way so I'm not surprised installing it doesn't set up the…
composerMike
  • 966
  • 1
  • 13
  • 30
0
votes
1 answer

Having issue with pyaudio and sockets

I am trying to fix a script I wrote. It's a client application and I need to figure out how to use sockets to record data from a computer running linux in my office. I am using netcat for the server, listening on port 5555. I know I have to convert…
pyguy321
  • 31
  • 3
0
votes
0 answers

recording with pyaudio giving junk values even if MIC is muted or in pin drop silence

I am working on recording using pyaudio on windows. I am plotting recorded sound using matplotlib. Recording length is 60 sec. buffer size is 1024 What i am getting is, while recording, for first few iterations i am getting junk values. After that…
0
votes
2 answers

Installing pyaudio on AMD64 from .exe

I want to install pyaudio on my Windows 8 x64 machine. I have Python 2.7 x64 installed. Building from source is not an option for me, and anyway I have seen that it failed for others. The Python 2.7 x64 .exe from…
user2387315
  • 107
  • 3
  • 10
0
votes
1 answer

PyAudio behavior during time.sleep()

I'm trying to understand something I'm seeing in PyAudio. I'm trying to take a 200ms sample of audio, wait a few seconds, and then take three more 200ms samples of audio. Consider this code: import pyaudio import time p =…
aaknitt
  • 73
  • 1
  • 6
0
votes
1 answer

Using python for voice identification

I am asking this question as the preliminary to start working on one of my fun-project. I am thinking of coding this in python so I guess, I have to go with pyAudio (please suggest me if there are better libraries for this other than pyAudio). My…
Jack_of_All_Trades
  • 10,942
  • 18
  • 58
  • 88
-1
votes
0 answers

Splitting an audio file into different plots and datasets when a sound plays

I am learning some python audio processing and was wondering how I could split an audio file into different amplitude time plots when a sound plays. For example if the audio file is a guitar that plays four notes and different times I would like to…
-1
votes
1 answer

Not able to install pyaudio or portaudio packages. It is showing error

I am using google colab. But for some reason I am having problems with vscode. It is showing this error msg for pip install portaudio: ERROR: Could not find a version that satisfies the requirement portaudio (from versions: none) ERROR: No matching…
-1
votes
0 answers

ERROR Audio dont want to play at the client side but rather played at the server side and vice versa

I want to try make an application where server and client will stream both audio and video to each other. At first when i try to run both server and client at one laptop it seems that it work fine but when i tried to run server and client at the…