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
2 answers

Creating an array of words from a stream of audio from speech-recognition

So I'm currently using the python library 'SpeechRecognition' in order to get phrases in between pauses from audio received from my microphone. However what I need is to be able to print each word out as I continuously speak. But I don't know how to…
Ernest.V
  • 3
  • 3
0
votes
1 answer

pyaudio install error using pip3 on mac osx Sierra - portaudio.h and float.h

I am having difficulty install pyaudio for python3 on my MacOSX Sierra. I have installed portaudio using brew install portaudio I then try: pip3 install pyaudio but get the well known gcc error #include "portaudio.h". I specified the headers as…
J Snydes
  • 1
  • 1
0
votes
1 answer

installing pyalsaaudio on raspberry pi zero W (raspbian OS)

Hi everyone, I tried everything to install pyalsaaudio package on my Raspberry Pi Zero W can anyone please help me with a guide to install it on my device ? I see a lot of guides for Ubunto OS and i even tried them on my device but nothing worked…
roiCS
  • 1
0
votes
1 answer

What do data in pyaudio stream mean?

I use pyaudio library to read sound from audiocard. I use the following code stream = pyaudio.PyAudio().open(format=pyaudio.paInt16, channels=2, rate=44100, input=True, …
Dimitrius
  • 564
  • 6
  • 21
0
votes
1 answer

Use pyaudio to play files immediately after the other

I'm trying to modify my first Python program. I'm trying to use this repository to do some rudimentary text-to-speech. It does fine, but I want to improve it. From the looks of it, there is a 0.145 second delay between samples played. Not all the…
0
votes
1 answer

PyAudio and Decibel change and panning

I have a pretty basic pyaudio code that plays a wav file. open_wave = wave.open("tone_silence/l0r1d0_500.wavc",'rb') pyAudio_session = pyaudio.PyAudio() def callback(in_data, frame_count, time_info, status): data =…
0
votes
1 answer

pyaudio plays different tones in python2 vs python3

I'm just getting started with pyaudio and I wrote a simple function to play a note. However the note sounds different depending on the version of Python I'm using: from __future__ import division import math import pyaudio BITS_PER_BYTE = 8 # for…
jtschoonhoven
  • 1,948
  • 1
  • 19
  • 16
0
votes
1 answer

Updating progress bar in Tkinter simultaneously while recording audio Python3

My goal for this simple program is to be able to show a progress bar of time the mic has been recording(range from 0 - 30 seconds). I am using the Tkinter library, Python 3.6, and PyAudio to record. I finished writing the code for the individual…
Sreehari R
  • 919
  • 4
  • 11
  • 21
0
votes
4 answers

Trouble installing 'pyaudio' in PyCharm on OS X

I recently tried to install the 'pyaudio' module in my PyCharm IDE. But the installation via the project interpreter results in the following error: src/_portaudiomodule.c:29:10: fatal error: 'portaudio.h' file not found Does anyone know how to…
F. Geißler
  • 228
  • 2
  • 3
  • 20
0
votes
1 answer

How do I change the default soundcard in ubuntu 16.04 using pyaudio?

I am trying to use pyaudio and pyspeech to record an audio sample and interpret what is said. I then intend to use that to trigger a conversation with an agent but I am having trouble with ALSA not using the on-board microphone. Python…
0
votes
0 answers

Python - play audio without saving it

I'm writing a chat-like app. I want to send data which I got from microphone to another app through UDP and I managed it, but I don't know how to play received audio without saving it to file. Does someone know how to play raw audio? Thanks in…
Adam Pisula
  • 135
  • 1
  • 7
0
votes
0 answers

Getting current position of PyAudio stream?

I'm currently working on a project which involves processing an audio file using FFMpeg, and then pipelining this into a PyAudio instance. I cannot see anywhere in the documentation on how to retrieve the current position of the audio stream. I'm…
Masutatsu
  • 434
  • 1
  • 7
  • 19
0
votes
1 answer

PyAudio won't import on Windows

I have used pip to install PyAudio, yet when I try to import it using import pyaudio, I get the following error message ImportError : No module named PyAudio. I tried to reinstall PyAudio, and it says that I already have it installed.
Louis Gaumond
  • 13
  • 1
  • 4
0
votes
0 answers

Raspberry Pi 3 & PyAudio IOError: [Errno Invalid input device (no default output device)] -9996

I'm am trying to get PyAudio running an SDR (rtl_fm) on my Raspberry Pi 3 and play audio out of the headphone jack. I don't have anything other than the USB SDR as the source fm audio, everything else is stock. I've followed the instruction on how…
0
votes
0 answers

Dividing Sound Into Equal Frequency Ranges with pyaudio

I'm trying to build audio reactive leds as a little project. I'm using an api to interact with leds via computer. What I'm trying to accomplish is to be able to divide the audio stream into frequency ranges. For example, if I divide by 100Hz, a…
krypt
  • 29
  • 6