Navbot.RealtimeApi.Dotnet.SDK.Core 1.0.11

There is a newer version of this package available.
See the version list below for details.
dotnet add package Navbot.RealtimeApi.Dotnet.SDK.Core --version 1.0.11
                    
NuGet\Install-Package Navbot.RealtimeApi.Dotnet.SDK.Core -Version 1.0.11
                    
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="Navbot.RealtimeApi.Dotnet.SDK.Core" Version="1.0.11" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Navbot.RealtimeApi.Dotnet.SDK.Core" Version="1.0.11" />
                    
Directory.Packages.props
<PackageReference Include="Navbot.RealtimeApi.Dotnet.SDK.Core" />
                    
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 Navbot.RealtimeApi.Dotnet.SDK.Core --version 1.0.11
                    
#r "nuget: Navbot.RealtimeApi.Dotnet.SDK.Core, 1.0.11"
                    
#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.
#addin nuget:?package=Navbot.RealtimeApi.Dotnet.SDK.Core&version=1.0.11
                    
Install as a Cake Addin
#tool nuget:?package=Navbot.RealtimeApi.Dotnet.SDK.Core&version=1.0.11
                    
Install as a Cake Tool

Youtube playlist

https://www.youtube.com/playlist?list=PLtan4ax5Sz-1ckWzZWx872rFFuAukihNE

Project Introduction

The Dotnet.SDK of OpenAI Real-Time API. We implemented serveral components that can directly interact with OpenAI Real-Time API, so that the .net developers can simply focus on the real-time conversation logic.

Table of Contents

Feature Overview

The Realtime control provides the following key features:

  • Real-time Speech Recognition: Converts user speech into text in real time, supporting continuous speech input and feedback.
  • Text-to-Speech: Converts AI or other text information into speech and plays it.
  • Multi-language Support: Supports speech recognition in multiple languages.
  • OpenAI Integration: Integrates the OpenAI API, supporting intelligent conversation and natural language processing.
  • Custom Features: Allows developers to customize API calls and speech-related functionalities.

Installation and Configuration

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
  • Other Dependencies: OpenAI API key, NAudio, etc.

NuGet Package Installation

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

Navbot.RealtimeApi.Dotnet.SDK.Core
Navbot.RealtimeApi.Dotnet.SDK.WinForm
Navbot.RealtimeApi.Dotnet.SDK.WPF

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

Install-Package Navbot.RealtimeApi.Dotnet.SDK.Core
Install-Package Navbot.RealtimeApi.Dotnet.SDK.WinForm
Install-Package Navbot.RealtimeApi.Dotnet.SDK.WPF

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

Feature Demonstration

  1. Speech Recognition: Click the "Start" button to begin listening to the user's speech and convert it into text in real time.
  2. Speech Text: By hooking up RealtimeApiDesktopControl.PlaybackTextAvailable event, the output text information of the AI speech will be displayed.
  3. img

Your voice conversation assistant A powerful and flexible SDK for building real-time voice assistants with .NET.


Overview

Navbot.RealtimeApi.Dotnet.SDK.Core is a powerful .NET SDK designed to simplify the development of real-time voice assistants. This SDK allows you to quickly integrate features such as voice input/output, session management, and audio waveform rendering, making it suitable for both desktop applications and cloud services.


Features

  • Real-time voice processing: Quickly capture and process user audio input.
  • Audio waveform rendering: Supports custom audio waveform rendering.
  • Flexible configuration: Customize audio visualization with various styles and colors.
  • Multi-framework support: Compatible with .NET 6, and .NET 8.
  • Easy integration: Simple API with highly extensible interface design.

Installation

Install via NuGet

Run the following command in the NuGet Package Manager:

Install-Package Navbot.RealtimeApi.Dotnet.SDK.Core

Or add the following to your project file (.csproj):

<PackageReference Include="Navbot.RealtimeApi.Dotnet.SDK.Core" Version="1.0.1" />

Supported Features

Feature Description
Real-time waveform rendering Capture audio and render high-quality waveforms in real-time.
Diverse style support Offers multiple waveform styles, including standard and SoundCloud-inspired styles.
Extensible interface design Adapts to different audio processing needs, making it easy to extend.

Contribution Guidelines

We welcome developer contributions! Please follow these steps:

  1. Fork this repository.
  2. Develop new features or fix bugs in your branch: git checkout -b feature/your-feature-name.
  3. Commit your changes: git commit -m "Add your feature".
  4. Push the branch: git push origin feature/your-feature-name.
  5. Submit a Pull Request.

Please ensure that all unit tests pass before submitting your code.


Contact Us

If you have any questions or suggestions, feel free to contact us:

Step 1: Import the Core and WinForms SDK

using Navbot.RealtimeApi.Dotnet.SDK.Core;
using Navbot.RealtimeApi.Dotnet.SDK.WinForm;

Step 2: Add the RealtimeApiWinFormControl Control

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

var realtimeApiWinFormControl = new RealtimeApiWinFormControl();
this.Controls.Add(realtimeApiWinFormControl);

Step 3: Get OPENAI_API_KEY

private void MainFrom_Load(object sender, EventArgs e)
{
    string openAiApiKey = Environment.GetEnvironmentVariable("OPENAI_API_KEY") ?? "";
    realtimeApiDesktopControl.OpenAiApiKey = openAiApiKey;
}

Step 4: Start Processing Audio

realtimeApiDesktopControl.StartSpeechRecognition()

Step 5: End Processing Audio

realtimeApiDesktopControl.StopSpeechRecognition();

Step 1: Import the Core and WPF SDK

using Navbot.RealtimeApi.Dotnet.SDK.Core;
using Navbot.RealtimeApi.Dotnet.SDK.WPF;

Step 2: Use RealtimeApiWpfControl in XAML

<Window x:Class="YourNamespace.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:wpf="clr-namespace:Navbot.RealtimeApi.Dotnet.SDK.WPF"
        Title="MainWindow" Height="450" Width="800">
    <Grid>
        <wpf:RealtimeApiWpfControl x:Name="realtimeApiWpfControl" />
    </Grid>
</Window>

Step 3: Get OPENAI_API_KEY

private void Window_Loaded(object sender, RoutedEventArgs e)
{
    string openAiApiKey = Environment.GetEnvironmentVariable("OPENAI_API_KEY") ?? "";
    realtimeApiWpfControl.OpenAiApiKey = openAiApiKey;
}

Step 4: Start Processing Audio

realtimeApiWpfControl.StartSpeechRecognition();

Step 5: End Processing Audio

realtimeApiWpfControl.StopSpeechRecognition();

License

This project is licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos 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 (2)

Showing the top 2 NuGet packages that depend on Navbot.RealtimeApi.Dotnet.SDK.Core:

Package Downloads
Navbot.RealtimeApi.Dotnet.SDK.WPF

Your voice conversation assistant

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.27 411 3/24/2025
1.0.26 110 3/21/2025
1.0.25 121 2/7/2025
1.0.24 94 1/27/2025
1.0.23 82 1/27/2025
1.0.22 91 1/27/2025
1.0.21 89 1/27/2025
1.0.20 112 1/23/2025
1.0.19 85 1/23/2025
1.0.18 94 1/21/2025
1.0.17 89 1/21/2025
1.0.16 97 1/21/2025
1.0.15 101 1/20/2025
1.0.13 95 1/19/2025
1.0.12 89 1/18/2025
1.0.11 95 1/9/2025
1.0.9 100 1/5/2025
1.0.8 97 1/5/2025
1.0.5 97 1/5/2025
1.0.4 116 12/24/2024
1.0.3 103 12/24/2024
1.0.2 98 12/23/2024
1.0.1 108 12/21/2024
1.0.0 99 12/21/2024