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

when I run the pyaudio program I got this error, how can l resolve this

I got the error Could not import the PyAudio C module '_portaudio'. Traceback (most recent call last): File "/Users/huangjinxue/Documents/python/workspace/pyMusic/music-pyaudio.py", line 2, in import pyaudio File…
0
votes
1 answer

Connection refused error in pyaudio and pocketsphinx

hey I have installed pocketsphinx using pip and also pyaudio but I am getting error as when executing script : ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open…
Hemanth Savasere
  • 155
  • 1
  • 2
  • 12
0
votes
1 answer

pip pyaudio raspberry pi (jessie) install error

Running Raspbian (Jessie) on Raspberry Pi 2. Using virtualenv for python. When trying to install pyaudio I get an error. Using: Python 2.7.9 pip 8.1.1 from /home/kidkic/audio/venv/local/lib/python2.7/site-packages (python 2.7) Command line when…
roady
  • 597
  • 2
  • 6
  • 20
0
votes
0 answers

Send audio over sockets in python using TCP

I have written a code to send audio over sockets in python using TCP, however audio received on the other end is not clear and I cant understand why. Here is my code: import socket import pyaudio import wave import sys import pickle import…
shiva
  • 2,535
  • 2
  • 18
  • 32
0
votes
0 answers

FFT on high Audio Freqs

Hi I am trying to plot fft data from real time audio input for my project work . I need to see the spectral components as I have to perform some actions based on frequency response the code that I am modifying is based on here…
priest
  • 1
0
votes
0 answers

ALSA error messages pyaudio

Have some ALSA error messages. Everything work well, but it bothers me. I'm using pyAudio 0.2.9, Ubuntu 15.10 x64, python3.4. Is any solutions to ignore this? ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave ALSA lib…
0
votes
1 answer

pyaudio FATAL error on ARM environment

I have encountered the pyaudio problem on arm platform. Is there any workaround? $ python Python 2.7.6 (default, Jun 22 2015, 18:31:26) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import…
fukudama
  • 1,996
  • 2
  • 11
  • 8
0
votes
1 answer

pyaudio mac python 2.7, play audio in the background (asynchronously)?

I am making a game and I want to start a sound as the animation begins, but right now, it first plays the sound and then does the animation. Is there a way to do this so that both happen together?
0
votes
1 answer

Python Pyaudio -- How to play a file streamed via HTTP

I am trying to figure out how to play an mp3 that exists on my server served through HTTP. I tried to figure out pyglet but there were too many issues with AVBin to make that work (something about dividing by zero in the source code). So, I…
linus72982
  • 1,418
  • 2
  • 16
  • 31
0
votes
1 answer

Inexplicable lag in class for audio sampling with PyAudio

Using the classes I've written below, I am running afoul of apparently impossible timing issues. When AudioStream.sample() is called in a loop, the first sample takes about ~12-14ms. Each subsequent call takes about 280ms. I cannot figure out why.…
Jonline
  • 1,677
  • 2
  • 22
  • 53
0
votes
0 answers

Tkinter timer while recording

Same as in topic, i want to create timer while the recording function would run. I have tried a lot of ideas but all of them resulted as an error or just broke up program, maybe you have some ideas? class rec(object): def __init__(self): …
Jorgusss
  • 7
  • 1
  • 3
0
votes
0 answers

AttributeError: 'module' object has no attribute 'paInt16'

I have trying to get the latest version of pyaudio to work with jasper on my raspberry pi 2 model B. When I try to get it to run in jasper It has a sample rate issue which I have narrowed down to a pyaudio issue. When I run the test example: import…
0
votes
0 answers

PyAudio example syntax

http://people.csail.mit.edu/hubert/pyaudio/#examples Attempting to run the above PyAudio example with 'python test.py c:\test.wav' from the cmd line returns: File "test.py", line 11, in wf = wave.open(sys.argv[1], 'rb') File…
Tim
  • 1
  • 1
0
votes
1 answer

Generate series of audio tones using iPython.display.Audio

I would like to generate consecutive audio tones in iPython. I've seen pyo but I can only get it to work in the terminal...I'd prefer to test out compositions in iPython if possible. I recently found iPython.display.Audio and thought it could be…
O.rka
  • 29,847
  • 68
  • 194
  • 309
0
votes
0 answers

how a program will take an input phrase and synthesise it with pauses according to the wav files

i have tried to take the input phrase and synthesise it with the .wav files given in the folder. if the input phrase has a comma, then it will start after 300ms, if we have a period or question mark, it will start after 400ms. Started with this…
jack15
  • 1
  • 1