Skip to content

Microsoft.Extensions.AI Integration

Cross-SDK comparison

See the centralized MEAI documentation for feature matrices and comparisons across all tryAGI SDKs.

The YandexSpeechKit SDK provides integration with Microsoft.Extensions.AI, enabling seamless interoperability with the unified .NET AI abstractions.

Installation

1
dotnet add package YandexSpeechKit

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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);

Next Steps