pyaudio

Receiving Audio Data (and Metadata) from IPhone over Bluetooth Python

Receiving Audio Data (and Metadata) from IPhone over Bluetooth Python Question: I’m trying to write a Python script to retrieve audio data from my IPhone to my Raspberry Pi over bluetooth. Currently, I’m able to get audio to come out of my Pi’s speakers just by navigating to Settings > Bluetooth on my phone and …

Total answers: 1

Video Recording is too fast in opencv python

Video Recording is too fast in opencv python Question: I’m capturing my screen using OpenCV on windows. It works fine but when I try to play my captured video it plays too fast. i.e. I capture from video for 60 seconds but when I play it OpenCV recorded longer and sped up to fit the …

Total answers: 1

Overflow – reader is not reading fast enough PyAudio

Overflow – reader is not reading fast enough PyAudio Question: I’m currently trying to build a voice assistant with Python when I ran into a problem. I’m using porcupine/picovoice for wakeword detection and then I call a function that recognizes everything I say as soon as I call it. This is the function: def recognizevoicecommand(): …

Total answers: 2

Python Speech Recognition Change Between Microphones

Python Speech Recognition Change Between Microphones Question: By running the following code i get all my available microphone: import speech_recognition as sr for index, name in enumerate(sr.Microphone.list_microphone_names()): print(f'{index}, {name}’) These are all my microphones (and other things) that i have: 0, Microsoft Sound Mapper – Input 1, Microphone (Realtek(R) Audio) 2, Stereo Mix (Realtek(R) Audio) …

Total answers: 2

How to record microphone on macos with pyaudio?

How to record microphone on macos with pyaudio? Question: I made a simple voice assistant in python with speech_recognition on Windows 10 and I wanted to copy the code for macOs too. I downloaded PortAudio and PyAudio, the code runs fine but when i play the audio track I hear nothing 🙁 (and the program …

Total answers: 1

How can I do real-time voice activity detection in Python?

How can I do real-time voice activity detection in Python? Question: I am performing a voice activity detection on the recorded audio file to detect speech vs non-speech portions in the waveform. The output of the classifier looks like (highlighted green regions indicate speech): The only issue I face here is making it work for …

Total answers: 5

"OSError: No Default Input Device Available" on Google Colab

"OSError: No Default Input Device Available" on Google Colab Question: I installed pyaudio using "pip3 install pyaudio" on Google Colab based on this answer from angelokh’s. Then, I got this error, OSError: No Default Input Device Available on Google Colab. The code is shown below. import speech_recognition as sr r = sr.Recognizer() with sr.Microphone() as …

Total answers: 2

ModuleNotFoundError: No module named 'pyaudio' (Windows)

ModuleNotFoundError: No module named '…' Question: I’ve installed the module pyaudio using pip. However, when I try to import it, Python says the module is not found: C:Usershp>pip install pyaudio Requirement already satisfied: pyaudio in c:usershpappdatalocalprogramspythonpython37libsite-packages (0.2.11) >>> import pyaudio Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named …

Total answers: 2

Python: Get volume decibel Level real time or from a wav file

Python: Get volume decibel Level real time or from a wav file Question: For a project work, I need to measure the volume level either from a recorded audio file or in real time recording using a mic. After my primary research, I have tried using soundfile library. The file was read using soundfile and …

Total answers: 2