microphone

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

Playing mp3 file through microphone with python

Playing mp3 file through microphone with python Question: Is there a way using python (and not any external software) to play a mp3 file like a microphone input? For example, I have a mp3 file and with a python script it would play it through my mic so other in a voice room would hear …

Total answers: 4

Detect tap with pyaudio from live mic

Detect tap with pyaudio from live mic Question: How would I use pyaudio to detect a sudden tapping noise from a live microphone? Asked By: a sandwhich || Source Answers: One way I’ve done it: read a block of samples at a time, say 0.05 seconds worth compute the RMS amplitude of the block (square …

Total answers: 2

How get sound input from microphone in python, and process it on the fly?

How get sound input from microphone in python, and process it on the fly? Question: Greetings, I’m trying to write a program in Python which would print a string every time it gets a tap in the microphone. When I say ‘tap’, I mean a loud sudden noise or something similar. I searched in SO …

Total answers: 3

Microphone access in Python

Microphone access in Python Question: Can I access a users microphone in Python? Sorry I forgot not everyone is a mind reader: Windows at minimum XP but Vista support would be VERY good. Asked By: UnkwnTech || Source Answers: Best way to go about it would be to use the ctypes library and use WinMM …

Total answers: 4