Skip to content
/ rta Public

Real-time analysis of on-board audio output in Python

License

Notifications You must be signed in to change notification settings

cleebp/rta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Real-time analysis

Playing around with on-board audio capture, analysis, and visualization in python.

latest gif

Requirements

  • Mac osx
  • Homebrew
  • Python >=3.6
  • iShowU Audio Capture (see below)

Setup

On mac with homebrew installed:

  • brew install portaudio
  • python3 -m venv venv
  • source venv/bin/activate
  • pip install -r requirements.txt

Next install iShowU Audio Capture and setup a virtual audio route:

  • Follow the install instructions from the latest release
    • Be sure to allow the developer in your security preferences in the last step, this is a second allow after entering your password in the .pkg install
  • Open the native mac app Audio MIDI Setup
  • Click the + in the bottom left corner
  • Setup your new audio route by clicking the checkboxes next to iShowU and Built-in Output
    • If you don't see iShowU then something went wrong in the install process
    • Make sure to select drift correction for both sources
    • Make sure both sources are at the same sample rate by switching the master device, this script assumes 96.0 kHz
    • Your final master device should be built-in output
    • Optionally rename the new virtual audio route to something recognizable like loopback
  • After your iShowU loopback is created set the INPUT_DEVICE_INDEX in config.py
    • Run python helpers.py to list your device indexes

To Run

cd rta/src

python run.py

Play some music ^.^

Resources

About

Real-time analysis of on-board audio output in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages