Soenneker.Azure.OpenAI.Client.Audio 11.0.1075

Prefix Reserved
dotnet add package Soenneker.Azure.OpenAI.Client.Audio --version 11.0.1075
                    
NuGet\Install-Package Soenneker.Azure.OpenAI.Client.Audio -Version 11.0.1075
                    
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.1075" />
                    
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.1075" />
                    
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.1075
                    
#r "nuget: Soenneker.Azure.OpenAI.Client.Audio, 11.0.1075"
                    
#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.1075
                    
#: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.1075
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Azure.OpenAI.Client.Audio&version=11.0.1075
                    
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.1075 1,097 11/11/2026
11.0.1074 99 11/11/2026
11.0.1073 191 11/11/2026
11.0.1072 75 11/11/2026
11.0.1071 103 11/10/2026
11.0.1070 33,162 11/3/2026
11.0.1069 13,903 10/27/2026
11.0.1068 115 10/27/2026
11.0.1067 164 10/26/2026
11.0.1065 114 10/26/2026
11.0.1064 104 10/26/2026
11.0.1063 103 10/26/2026
11.0.1062 135 10/26/2026
11.0.1061 121 10/26/2026
4.0.1060 285 10/15/2026
4.0.1059 114 10/14/2026
4.0.1058 114 10/14/2026
4.0.1057 120 10/14/2026
4.0.1056 112 10/14/2026
4.0.1055 107 10/14/2026
Loading failed

Updated Soenneker.Azure.OpenAI.Client to 11.0.1087