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

Traceback AttributeError: module 'pyaudio' has no attribute '__version__'

I intalled SppechRecognition and when I worte import speech_recognition as sr # obtain audio from the microphone r = sr.Recognizer() with sr.Microphone() as source: print("Say something!") audio = r.listen(source) try: # for testing…
Samar Pratap Singh
  • 471
  • 1
  • 10
  • 29
-1
votes
2 answers

I am doing a voice Assistant with python and got an error can you help me with this?

# Import packages import speech_recognition as sr import os from gtts import gTTS import datetime import warnings import calendar import random import wikipedia # Ignore any warning messages warnings.filterwarnings('ignore') # Record audio and…
user14161771
-1
votes
1 answer

Can't install pyaudio at python 2.7 on MacOS

I typed: pip install pyaudio and then it says: 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…
-1
votes
1 answer

Creating a speech recognition program using pyaudio but having an issue

I'm trying to create a speech recognition program using pyaudio but I'm having some issues. I wrote a little bit of code to test some stuff, but for some reason my program is hanging on the following piece of code "audio = r.listen(source)" and I…
-1
votes
3 answers

ERROR: Command errored out with exit status 1: while installing pyAudio in Pycharm

I do not know why i am getting this error,I have tried running the command pip install PyAudio in the terminal but shows error message: 'pip' is not recognized as an internal or external command, operable program or batch file. Anyone know how to…
python man
  • 15
  • 1
  • 5
-1
votes
2 answers

Python ModuleNotFound and other

import pyttsx3 #pip install pyttsx3 import speech_recognition as sr #pip install speechRecognition import datetime import wikipedia #pip install wikipedia import webbrowser import os import smtplib engine = pyttsx3.init('sapi5') voices =…
-1
votes
1 answer

ERROR: Command errored out with exit status

hello i am trying to install the modul PyAudio and when i am using pip install pyaudo it respond pip install pyaudio Collecting pyaudio Using cached PyAudio-0.2.11.tar.gz (37 kB) Building wheels for collected packages: pyaudio Building wheel…
-1
votes
2 answers

Enabling Audio Input for Speech Recognition Library

How do I turn on audio input for all device indexes using a Speech Recognition Library? As I want to pass in the audio for testing and there might be possibility that the library uses a different audio input device. How do I let it take the audio…
-1
votes
1 answer

Installing PyAudio, got error: setup script exited with error: Microsoft Visual C++ 14.0 is required. Already installed Ms Visual C++, error recurs

So, I am trying to download PyAudio on Windows 10, but it displays error saying: error: setup script exited with error: Microsoft Visual C++ 14.0 is required. I have already installed Microsoft Visual C++ but this error keeps coming up. Is there…
-1
votes
1 answer

A problem in my code, how to check if variable exists or not

full code import speech_recognition as sr adLoop = True detector = sr.Recognizer() with sr.Microphone() as source: detector.adjust_for_ambient_noise(source) print("Please speak: ") audio = detector.listen(source) …
-1
votes
1 answer

Why is PyAudio running so slow?

The following are scripts that together act as a live speech-recognition software. One is in python, and the other is in batch (Windows). It uses PyAudio. Whenever I first created them, they worked fine. But now, they run really really slow, and I…
-1
votes
1 answer

-m pip install --upgrade pip, trying to install package "pyaudio'' in visual studio code

I am trying to install pyaudio but this does not work since it says that pip needs to be upgraded to a new version "19.3" But when i check it is already updated to the latest version as you can see
Int3r
  • 1
  • 1
-1
votes
3 answers

No mdule name 'pyaudio'

My error is: Traceback (most recent call last): File "C:\Users\gaura\AppData\Local\Programs\Python\Python37-32\lib\site-packages\speech_recognition__init__.py", line 108, in get_pyaudio import pyaudio ModuleNotFoundError: No module…
Gaurav
  • 11
  • 3
-1
votes
1 answer

Multiprocessing with PyAudio and Tkinter in Python not working on Mac OS X

I'm trying to make a GUI application that incorporates both image and audio processing simultaneously using the multiprocessing library. However the same code when tested on a Mac OS X does not seem to work, unless I remove the import tkinter…
-1
votes
1 answer

Want to play .wav audio file on Raspberrypi Python 3 Shell IDLE

I have installed many libraries and tried many different codes but I'm not able to play the audio file on Raspberry Pi 3B+. If you know any method or have any code. Must recommend me.