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

Can't install Pyaudio on Command promt

Collecting pyaudio Using cached PyAudio-0.2.11.tar.gz (37 kB) Using legacy 'setup.py install' for pyaudio, since package 'wheel' is not installed. Installing collected packages: pyaudio Running setup.py install for pyaudio ... error ERROR:…
Sathi
  • 1
  • 3
-2
votes
2 answers

Is there a way to use a pyaudio in python 3.8?

Please provide a solution regarding this I tried the pipwin approach its not working and if anyone know how to create a virtual environment of 3.7 for u sing pyaudio can share idea would be a great
-2
votes
1 answer

Pip install PyAudio fails on windows

While I was making a Virtual Assistant, the code editor said a module named PyAudio is required. So, I opened the terminal and typed ...pip install PyAudio... and it showed me: Collecting PyAudio Using cached PyAudio-0.2.11.tar.gz (37 kB) Building…
Matrix
  • 25
  • 1
  • 6
-2
votes
1 answer

What is this error ? It's an digital assistant

This is my code: import speech_recognition import pyttsx3 from datetime import date, datetime robot_ear = speech_recognition.Recognizer() robot_mouth = pyttsx3.init() robot_brain = "" while True: with speech_recognition.Microphone() as mic: …
-2
votes
1 answer

pip install python-pyaudio fails on Windows

cannot install pyaudio in command prompt. pip install pyaudio python -m pip install PyAudio python pip install python-pyaudio Collecting PyAudio Using cached…
-2
votes
1 answer

Playing audio from a constantly changing numpy array

I have a numpy array which is continuously growing in size, with a function adding data to it every so often. This array actually is sound data, which I would like to play, not after the array is done, but while it is still growing. Is there a way I…
-2
votes
5 answers

Python simple tutorial variable not defined issue

So I was following a simple tutorial on youtube, and no matter what I do I keep getting the same issue. Here is the code I used. import speech_recognition as sr import pyttsx3 voices = [] engine = pyttsx3.init() voices =…
KevinM1990112qwq
  • 715
  • 2
  • 10
  • 23
-2
votes
2 answers

PortAudio-19 for mac

My issue is want to install portaudio-19 on mac. The following doesnt get installed with help of brew sudo brew install portaudio19-dev How can I install portaudio using brew Thanks in Advance
Team ONYX
  • 17
  • 3
-2
votes
3 answers

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

I'm using python's Speach Recognition and my code is giving me an AttributeError: import os import pyaudio import speech_recognition as sr def excel(): os.system("start excel.exe") def internet(): os.system("start chrome.exe") def…
Akash Wankhede
  • 618
  • 6
  • 15
-3
votes
1 answer

Can I record my own voice using pyaudio without a mic?

So i'm triying to make a exercise here that I have to record my voice using pyaudio. I don't know if need a mic or if the code is wrong, but this keeps happenig when run the program: ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM…
Yuri
  • 33
  • 4
-3
votes
2 answers

How can i install pyaudio on visual studio?

How can i install pyaudio on visual studio I tried pip install pyaudio but i'm getting error after that i downloaded pyaudio files but not able to install them provide me a solution
-3
votes
1 answer

How can I install PyAudio in Mac M1

I am trying to install PyAudio in my MacBook Air M1 for a while, tried all the possible ways to my knowledge and read the compleate official documentaion even i cant find the solution xcode-select --install brew remove portaudio brew install…
-3
votes
2 answers

Unable to install PyAudio on Python 3.9

I'm trying to install PyAudio on Python 3.9 and it is not working. I am getting the following error: ERROR: Command errored out with exit status 1: command: 'c:\users\koffie\appdata\local\programs\python\python39\python.exe' -u -c 'import sys,…
-3
votes
1 answer

I installed pyaudio by conda install but my laptop is not taking audio from microphone

def takeCommand(): r = sr.Recognizer() with sr.Microphone() as source: print("Listening...") r.pause_threshold = 0.8 audio = r.listen(source) try: print("Recognizing...") query = r.recognize_google(audio, language='en-in') …
-3
votes
1 answer

Problem with pip in Python3.8 (Ubuntu 19.10)

When I downloaded Ubuntu 19.10, and use pip in install python 3.8, I met this problem. I install some modules, I haven't problem. But trying install Kivy/PyoAudio/PyGame (Maybe it's not full list) was a crash. I In terminal I can see: ERROR:…
Grom41
  • 1
  • 3
1 2 3
91
92