StarFlare.AudioVisualizer.WPF 1.0.99

dotnet add package StarFlare.AudioVisualizer.WPF --version 1.0.99
                    
NuGet\Install-Package StarFlare.AudioVisualizer.WPF -Version 1.0.99
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="StarFlare.AudioVisualizer.WPF" Version="1.0.99" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="StarFlare.AudioVisualizer.WPF" Version="1.0.99" />
                    
Directory.Packages.props
<PackageReference Include="StarFlare.AudioVisualizer.WPF" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add StarFlare.AudioVisualizer.WPF --version 1.0.99
                    
#r "nuget: StarFlare.AudioVisualizer.WPF, 1.0.99"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package StarFlare.AudioVisualizer.WPF@1.0.99
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=StarFlare.AudioVisualizer.WPF&version=1.0.99
                    
Install as a Cake Addin
#tool nuget:?package=StarFlare.AudioVisualizer.WPF&version=1.0.99
                    
Install as a Cake Tool

Getting Started

Step 1: Import the Core and WinForms SDK

System Requirements

List the basic environment requirements needed to run the project:

  • Operating System: Windows 10 or higher
  • .NET Version: .NET 6.0 or higher

NuGet Package Installation

To use the Realtime control, you need to install the following NuGet packages:

StarFlare.AudioVisualizer.Core
StarFlare.AudioVisualizer.WinForm
StarFlare.AudioVisualizer.WPF

You can install these packages by running the following commands in the NuGet Package Manager Console:

Install-Package StarFlare.AudioVisualizer.Core
Install-Package StarFlare.AudioVisualizer.WinForm
Install-Package StarFlare.AudioVisualizer.WPF

Alternatively, you can add them via the Package Manager UI by searching for each package.

Usage

using AudioVisualizer;
using AudioVisualizer.WinForm;

Step 2: Add the RealtimeApiWinFormControl Control

Drag and drop the AudioVisualizerView onto your form or add it programmatically:

AudioVisualizerView audioVisualizer = new AudioVisualizerView();
this.Controls.Add(audioVisualizer );

Step 3: Get Hook up microphone and speaker

        private void MainForm_Load(object sender, EventArgs e)
        {
            // Speaker voice capture, Specify capture wave format: mono, 32-bit depth, IeeeFloat encoding, 8192 sample rate.
            capture = new WasapiLoopbackCapture()
            {
                WaveFormat = WaveFormat.CreateIeeeFloatWaveFormat(8192, 1)
            };
            capture.DataAvailable += Capture_DataAvailable;

            // Mic speech capture 
            speechWaveIn = new WaveInEvent
            {
                WaveFormat = WaveFormat.CreateIeeeFloatWaveFormat(8192, 1)
            };
            speechWaveIn.DataAvailable += Capture_DataAvailable;

            audioVisualizer1.AudioSampleRate = capture.WaveFormat.SampleRate;
            audioVisualizer1.Scale = 5;
            audioVisualizer1.VisualEffect = VisualEffect.SpectrumBar;

            audioVisualizer1.Start();
            capture.StartRecording();
            speechWaveIn.StartRecording();
        }

Code Sample 1 Sample 2

License

Licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed.  net9.0-windows was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on StarFlare.AudioVisualizer.WPF:

Package Downloads
Navbot.RealtimeApi.Dotnet.SDK.WPF

Your voice conversation assistant

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.99 123 1/23/2025
1.0.98 186 1/20/2025
1.0.85 102 1/18/2025
1.0.84 121 1/16/2025
1.0.83 115 1/10/2025