A Python application that captures audio input from your microphone and displays a real-time waveform visualization.
- Python 3.x
- Virtual environment
- Required packages are listed in
requirements.txt
- Create a virtual environment:
python -m venv venv
- Activate the virtual environment:
- Windows:
.\venv\Scripts\activate
- Unix/MacOS:
source venv/bin/activate
- Install required packages:
pip install -r requirements.txt
- Ensure your microphone is connected and working
- Activate the virtual environment if not already activated
- Run the program:
python music_visualizer.py
- Speak or play music to see the audio waveform visualization
- Close the matplotlib window to exit the program
- Real-time audio capture from microphone
- Live waveform visualization
- Adjustable visualization parameters (CHUNK size, sample rate)
- Uses PyAudio for audio capture
- Matplotlib for real-time visualization
- Numpy for audio data processing
- Sample rate: 44.1kHz
- Frame buffer size: 2048 samples