StarFlare.AudioVisualizer.WinForm 1.0.99

dotnet add package StarFlare.AudioVisualizer.WinForm --version 1.0.99
                    
NuGet\Install-Package StarFlare.AudioVisualizer.WinForm -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.WinForm" 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.WinForm" Version="1.0.99" />
                    
Directory.Packages.props
<PackageReference Include="StarFlare.AudioVisualizer.WinForm" />
                    
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.WinForm --version 1.0.99
                    
#r "nuget: StarFlare.AudioVisualizer.WinForm, 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.WinForm@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.WinForm&version=1.0.99
                    
Install as a Cake Addin
#tool nuget:?package=StarFlare.AudioVisualizer.WinForm&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.WinForm:

Package Downloads
Navbot.RealtimeApi.Dotnet.SDK.WinForm

Your voice conversation assistant

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.99 122 1/23/2025
1.0.98 111 1/20/2025
1.0.85 104 1/18/2025
1.0.84 159 1/16/2025
1.0.83 115 1/10/2025
1.0.82 102 1/10/2025
1.0.81 97 1/10/2025
1.0.80 100 1/8/2025
1.0.79 96 1/8/2025
1.0.78 106 1/8/2025
1.0.77 106 1/6/2025
1.0.76 104 1/6/2025
1.0.75 114 1/5/2025
1.0.74 104 1/5/2025
1.0.73 108 1/5/2025
1.0.72 112 1/5/2025
1.0.71 110 1/5/2025
1.0.64 106 1/5/2025
1.0.63 105 1/5/2025
1.0.58 109 1/5/2025
1.0.57 109 1/5/2025
1.0.56 108 1/5/2025
1.0.54 117 1/5/2025
1.0.50 129 1/5/2025
1.0.49 123 1/5/2025
1.0.39 126 1/5/2025
1.0.37 122 1/5/2025
1.0.1 140 1/3/2025
1.0.0 115 12/31/2024