Skip to content

satitza/Audio-Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Audio-Visualizer

Audio Visualizer with python for terminal

Requirements: pip install PyAudioWPatch numpy psutil GPUtil

Install

add this to your windows powershell profile

🎧 Soundbar Function (PowerShell)

function soundbar {
    param(
        [switch]$stop,
        [switch]$full,
        [double]$size = 0.35,
        [int]$bars = 0,
        [int]$height = 0,
        [double]$gain = 0,
        [switch]$list
    )

    $script = "$env:USERPROFILE\scripts\audio_visualizer.py"

    if ($stop) {
        python $script --stop
    }
    elseif ($list) {
        python $script --list
    }
    elseif ($full) {
        # Full screen in current pane
        python $script --top @args
    }
    else {
        # Split bottom pane with visualizer (user keeps typing in top pane)
        $pyArgs = "--top"

        if ($bars -gt 0)   { $pyArgs += " --bars $bars" }
        if ($height -gt 0) { $pyArgs += " --height $height" }
        if ($gain -gt 0)   { $pyArgs += " --gain $gain" }

        wt split-pane -H -s $size -- python $script $pyArgs.Split(' ')
    }
}

🔥 Usage

soundbar              # run in split pane
soundbar -full       # run fullscreen
soundbar -stop       # stop visualizer
soundbar -list       # list devices
soundbar -bars 50 -height 20 -gain 1.5
image image

About

Audio Visualizer with python for terminal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages