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
-1
votes
1 answer

ALSA device not found by PyAudio

On my Raspberry Pi I added an audio device to ALSA by adding the following to ~/.asoundrc: pcm_slave.usb16 { pcm "hw:1,0" format S16_LE channels 1 } pcm.rate_convert { type plug slave usb16 } When calling arecord -L the device…
embie27
  • 96
  • 5
-1
votes
1 answer

Python script combines the two wav files instead of cancelling the common amplitudes between them

We have designed a code that records two wav files: 1. Records the ambient noise 2. Records the ambient noise with voice We are then going to use those two wav files as inputs for our third def function that will subtract the ambient noise wav file…
Markus
  • 59
  • 6
-1
votes
1 answer

How can I create a Xylophone program using pygame mixer or pyaudio?

I want to create a Xylophone using pygame. I have created the image and split the image according to different notes. I need to upload sounds to those particular note sections of xylophone. Please help me with adding sounds.
-1
votes
1 answer

PyAudio Installtion Error

I'm trying to run program which requires PyAudio. I have 0.2.8 version but it requires 0.2.9 version. Terminal tells me to update my pip. After Doing also it shows my old Command only enter image description here enter image description here
Team ONYX
  • 17
  • 3
-1
votes
1 answer

Recording and playing byte list in pyaudio/wave

I want to record and play my voice using pyaudio and wave lib but I don't know how to do it because wave lib requires a path to a file and even if I'm trying to set it as a variable with list of bytes recorded a few second ago, still doesn't work…
Kamil Zieliński
  • 357
  • 6
  • 13
-1
votes
2 answers

Run a GUI and play a alarm sound simultaneously in python using easygui and pyaudio

Hi I need to run my gui simultaneously with my alarm sound and stop the iterating alarm sound when i click ok button in the 2nd dialog box. To achieve this task i created 2 files which is the main file(gui using easygui) and the AudioFile class…
tk_
  • 16,415
  • 8
  • 80
  • 90
-2
votes
1 answer

Audio Editing using Python

Please I want to use python to edit an audio recording I did with my phone to enhance the sound and make it clearer. Which library can I use for this purpose? I don't know if I can use PyAudio entirely for it.
Bosskidz
  • 11
  • 3
-2
votes
1 answer

Why is my Python Speech Recognition code not working

I'm trying to make a simple speech recognition program, and this is the code I have currently. import speech_recognition as sr from speech_recognition import Microphone from speech_recognition import Recognizer mic = sr.Microphone() r =…
Keamon
  • 1
  • 2
-2
votes
2 answers

How to install Pyaudio in python 3.11.1?

I am trying to install pyaudio but it always says like this: Python 3.11.1. I am trying to make AI and using macos. Try to help me to install pyaudio in the macos
-2
votes
1 answer

Cannot for the life of me get portaudio install on my M1Pro Macbook Pro

sudo -H pip install pyaudio --global-option="build_ext" --global-option="-I/opt/homebrew/include" --global-option="-L/opt/homebrew/lib" WARNING: Disabling all use of wheels due to the use of --build-option / --global-option /…
-2
votes
1 answer

Cannot install pyAudio

I'm trying to install pyAudio using pip for a Voice Assistant project I'm building. When I try to run the code, it returns this error saying no module named 'pyaudio'. So I assumed I have to install pyaudio again in order to make it work. But while…
Setu Sree
  • 77
  • 1
  • 4
-2
votes
1 answer

How do I fix the pyaudio wheel download error?

I am having an error downloading pyaudio, but there is a way to fix that by downloading a wheel, but I am also having an error downloading that too. How do I fix this error?
-2
votes
1 answer

Failure to install pyaudio

I am attempting to make my own alexa and everytime I try to install pyaudio via the PyCharm terminal it comes up with this huge error: Collecting pyaudio Using cached PyAudio-0.2.11.tar.gz (37 kB) Building wheels for collected packages: pyaudio …
RajanSN78
  • 1
  • 2
-2
votes
1 answer

I can't install pyaudio in windows

I'm beginner in python. I was trying to convert voice to text with python using speech_recognition module. When I run it it says, "Could not find PyAudio; check installation". then I tried to install pyaudio with pip install pyaudio. But It gives me…
ZARIR
  • 31
  • 10
-2
votes
1 answer

Not able to Run Speech Recognition Code Due to some error

This the code I wrote for speech recognition after successful installation of necessary libraries. import speech_recognition as sr import pyttsx3 r = sr.Recognizer() with sr.Microphone() as source: print('Please Speak: ') audio =…