Skip to content

Instantly share code, notes, and snippets.

View mrconter1's full-sized avatar
🌴
Finishing my last year in pursuit of a master of science in computer science

Rasmus Lindahl mrconter1

🌴
Finishing my last year in pursuit of a master of science in computer science
  • ABB Robotics
  • Sweden
View GitHub Profile
@notalentgeek
notalentgeek / pitch_volume_detection_pyaudio.py
Last active August 23, 2023 10:02
A simple proof of concept to extract pitch and volume of streamed audio from microphone with PyAudio.
# This is a simple demonstration on how to stream
# audio from microphone and then extract the pitch
# and volume directly with help of PyAudio and Aubio
# Python libraries. The PyAudio is used to interface
# the computer microphone. While the Aubio is used as
# a pitch detection object. There is also NumPy
# as well to convert format between PyAudio into
# the Aubio.
import aubio
import numpy as num