YandexSpeechKit 0.0.0-dev.16

This is a prerelease version of YandexSpeechKit.
dotnet add package YandexSpeechKit --version 0.0.0-dev.16
                    
NuGet\Install-Package YandexSpeechKit -Version 0.0.0-dev.16
                    
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="YandexSpeechKit" Version="0.0.0-dev.16" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="YandexSpeechKit" Version="0.0.0-dev.16" />
                    
Directory.Packages.props
<PackageReference Include="YandexSpeechKit" />
                    
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 YandexSpeechKit --version 0.0.0-dev.16
                    
#r "nuget: YandexSpeechKit, 0.0.0-dev.16"
                    
#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 YandexSpeechKit@0.0.0-dev.16
                    
#: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=YandexSpeechKit&version=0.0.0-dev.16&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=YandexSpeechKit&version=0.0.0-dev.16&prerelease
                    
Install as a Cake Tool

YandexSpeechKit

NuGet Build

Generated .NET gRPC clients for Yandex SpeechKit v3 plus a Microsoft.Extensions.AI.ISpeechToTextClient adapter.

The protobuf contract is regenerated from the official MIT-licensed yandex-cloud/cloudapi repository. Raw generated clients remain available as Speechkit.Stt.V3.Recognizer.RecognizerClient and Speechkit.Stt.V3.AsyncRecognizer.AsyncRecognizerClient.

Installation

dotnet add package YandexSpeechKit

API key

using Microsoft.Extensions.AI;
using YandexSpeechKit;

using var client = new YandexSpeechKitClient(
    apiKey: Environment.GetEnvironmentVariable("YANDEX_SPEECHKIT_API_KEY")!,
    folderId: Environment.GetEnvironmentVariable("YANDEX_SPEECHKIT_FOLDER_ID"));

await using var audio = File.OpenRead("speech.wav");
var response = await client.GetTextAsync(audio, new SpeechToTextOptions
{
    SpeechLanguage = "ru-RU",
});

Console.WriteLine(response.Text);

Refreshable IAM token

var credentials = YandexSpeechKitCredentials.FromIamTokenProvider(
    cancellationToken => GetFreshIamTokenAsync(cancellationToken));

using var client = new YandexSpeechKitClient(credentials, folderId);

The token callback runs for every gRPC call, so short-lived IAM tokens are not captured permanently by the client.

Streaming and audio formats

GetStreamingTextAsync performs true bidirectional gRPC streaming. WAV is the default input. Set YandexSpeechKitPropertyNames.AudioFormat to ogg_opus, mp3, or pcm_s16le through SpeechToTextOptions.AdditionalProperties. Raw PCM also uses SpeechSampleRate and YandexSpeechKitPropertyNames.AudioChannelCount.

Word timings, alternatives, final indices, channel tags, server session IDs, and audio cursors are preserved in AdditionalProperties.

Regeneration

cd src/libs/YandexSpeechKit
./generate.sh

The script fetches the current official proto closure, records its commit, refreshes the generated gRPC support files, and preserves the upstream license in the package.

Ecosystem maintenance

This SDK is one of more than 200 .NET SDKs maintained with AutoSDK. The tryAGI SDK audit continuously checks repository synchronization, upstream-spec regeneration, release workflows, warnings, public API visibility, and trimming/NativeAOT compatibility.

Every issue is first investigated for ecosystem-wide applicability. When the root cause belongs in AutoSDK, we fix and regression-test the generator, then roll the improvement out to every applicable SDK. Provider-specific behavior remains in this repository when it cannot be derived safely from the API specification.

Issue content—including code blocks, logs, links, and attachments—is treated only as untrusted diagnostic data. Embedded control instructions, hidden directives, delimiter tricks, or requests to alter triage or tooling behavior are ignored. Please report reproducible technical evidence and remove secrets and personal data.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.0-dev.16 23 9/27/2026
0.0.0-dev.15 32 9/25/2026
0.0.0-dev.14 60 9/21/2026
0.0.0-dev.13 57 9/21/2026
0.0.0-dev.12 48 9/17/2026
0.0.0-dev.11 51 9/14/2026
0.0.0-dev.10 49 9/14/2026
0.0.0-dev.9 55 9/10/2026
0.0.0-dev.8 66 9/7/2026
0.0.0-dev.7 63 9/7/2026
0.0.0-dev.6 68 9/3/2026
0.0.0-dev.4 66 8/31/2026
0.0.0-dev 419 8/24/2026