Soenneker.Azure.OpenAI.Client.Audio 11.0.1077

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

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Azure.OpenAI.Client.Audio

Creates and caches an OpenAI SDK AudioClient for an Azure OpenAI deployment.

Installation

dotnet add package Soenneker.Azure.OpenAI.Client.Audio

Configuration and registration

{
  "Azure": {
    "OpenAI": {
      "Uri": "https://your-resource.openai.azure.com",
      "ApiKey": "your-api-key",
      "Audio": {
        "Deployment": "audio-deployment-name"
      }
    }
  }
}
using Soenneker.Azure.OpenAI.Client.Audio.Registrars;

builder.Services.AddAzureOpenAIAudioClientAsSingleton();

The registrar includes the shared Azure OpenAI client. Keep the API key in a secret provider.

Transcribe audio

using OpenAI.Audio;
using Soenneker.Azure.OpenAI.Client.Audio.Abstract;

public sealed class TranscriptionService(IAzureOpenAIAudioClient audioClientUtil)
{
    public async Task<string> Transcribe(
        string filePath,
        CancellationToken cancellationToken)
    {
        AudioClient client = await audioClientUtil.Get(cancellationToken);
        await using FileStream audio = File.OpenRead(filePath);

        AudioTranscription transcription = await client.TranscribeAudioAsync(
            audio,
            Path.GetFileName(filePath),
            options: null,
            cancellationToken: cancellationToken);

        return transcription.Text;
    }
}

The returned SDK client also exposes speech-generation operations when supported by the configured deployment.

Deployment and lifecycle

  • Azure:OpenAI:Audio:Deployment is required unless SetOptions(deployment) is called before the first Get().
  • SetOptions() overrides configuration for that utility instance.
  • Calling SetOptions() after client creation throws; it does not silently change the cached deployment.
  • The audio client and underlying Azure client are cached. Replace the DI scope or singleton to switch deployments or credentials.
  • Audio content may contain sensitive data. Apply appropriate retention, logging, and access controls in the consuming application.
Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
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
11.0.1078 381 11/18/2026
11.0.1077 95 11/18/2026
11.0.1076 94 11/18/2026
11.0.1075 1,271 11/11/2026
11.0.1074 120 11/11/2026
11.0.1073 207 11/11/2026
11.0.1072 91 11/11/2026
11.0.1071 118 11/10/2026
11.0.1070 33,170 11/3/2026
11.0.1069 13,907 10/27/2026
11.0.1068 117 10/27/2026
11.0.1067 169 10/26/2026
11.0.1065 122 10/26/2026
11.0.1064 108 10/26/2026
11.0.1063 112 10/26/2026
11.0.1062 139 10/26/2026
11.0.1061 125 10/26/2026
4.0.1060 289 10/15/2026
4.0.1059 118 10/14/2026
4.0.1058 119 10/14/2026
Loading failed

Updated Multiple NuGet packages