A real-time audio visualizer using NAudio and .NET WPF that captures system output (Spotify, YouTube, etc.) via WASAPI Loopback and displays smooth bar-based frequency bands.
- Real-time audio visualization
- Captures output from any source (headphones, speakers, etc.)
- Bars scale with frequency:
- Center bars show low frequencies
- Left and right bars show increasing higher frequencies
- Clean WPF interface with dynamic visuals
Download and install the .NET SDK (any recent version):
After installation, verify with:
dotnet --versiongit clone https://github.com/your-username/AudioVisualizer.git
cd AudioVisualizerdotnet add package NAudioYou can also manually verify the following line exists in your .csproj:
<PackageReference Include="NAudio" Version="2.2.1" />dotnet clean
dotnet build
dotnet run-
It's a bit slow, buggy and skips frames but it works great nonetheless.
-
You may encounter build-time errors in MainWindow.xaml.cs such as:
The name 'InitializeComponent' does not exist in the current contextThe name 'VisualizerCanvas' does not exist in the current contextUnknown x:Class type 'AudioVisualizer.App'➡️ These are XAML designer errors and can often be safely ignored — the app usually builds and runs just fine.
✅ If the app window launches and shows bars reacting to system sound — it’s working!
- .NET 8.0
- C#
- XAML
- WPF
- NAudio