Skip to content

wwaltb/pysonics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pysonics

A python module to streamline real-time audio processing, analysis and visualization.

Example visualization of raw and processed frequency spectrums

Installation/Setup

Linux

Arch Installation:

  • Pyaudio: sudo pacman -S python-pyaudio
  • Pygame: sudo pacman -S python-pygame
  • (Optional) PulseAudio Volume Control: sudo pacman -S pavucontrol

Setup Input Device:

  • Open pavucontrol -> Input Devices
  • Make sure show is set to All Input Devices or Monitors
  • Set the monitor of your desired audio source as the default input device

MacOS

Install via Homebrew and pip:

  1. Install Dependencies:

    • Portaudio: brew install portaudio
    • Pyaudio: pip install pyaudio
    • Pygame: pip3 install pygame
  2. Create a Monitor of System Audio:

    • Install BlackHole: brew install blackhole-2ch
    • Restart your computer
    • Create a Multi-Output Device following this guide
      • Make sure it uses BlackHole and the output device you want to capture
    • Configure your system's input and output devices:
      • System Settings -> Sound -> Output -> Multi-Output Device
      • System Settings -> Sound -> Input -> BlackHole 2ch

Windows

  1. Install Dependencies:

    • Pyaudio: pip install pyaudio
    • Pygame: pip install pygame
  2. Create a Monitor of System Audio:

    • Install VB-CABLE: Download
    • Restart your computer
    • Configure your system's input and output devices:
      • Settings -> System -> Sound -> Output -> CABLE Input
      • Settings -> System -> Sound -> Input -> CABLE Output

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages