Soenneker.Azure.OpenAI.Client.Audio
4.0.1038
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Soenneker.Azure.OpenAI.Client.Audio --version 4.0.1038
NuGet\Install-Package Soenneker.Azure.OpenAI.Client.Audio -Version 4.0.1038
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="4.0.1038" />
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="4.0.1038" />
<PackageReference Include="Soenneker.Azure.OpenAI.Client.Audio" />
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 4.0.1038
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Azure.OpenAI.Client.Audio, 4.0.1038"
#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@4.0.1038
#: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=4.0.1038
#tool nuget:?package=Soenneker.Azure.OpenAI.Client.Audio&version=4.0.1038
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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:Deploymentis required unlessSetOptions(deployment)is called before the firstGet().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 | Versions 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.
-
net10.0
- Soenneker.Azure.OpenAI.Client (>= 4.0.1044)
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 |
|---|---|---|
| 4.0.1060 | 85 | 10/15/2026 |
| 4.0.1059 | 77 | 10/14/2026 |
| 4.0.1058 | 73 | 10/14/2026 |
| 4.0.1057 | 88 | 10/14/2026 |
| 4.0.1056 | 79 | 10/14/2026 |
| 4.0.1055 | 79 | 10/14/2026 |
| 4.0.1054 | 79 | 10/14/2026 |
| 4.0.1045 | 95 | 10/12/2026 |
| 4.0.1044 | 121 | 10/11/2026 |
| 4.0.1043 | 128,484 | 10/1/2026 |
| 4.0.1042 | 25,688 | 9/29/2026 |
| 4.0.1041 | 13,865 | 9/29/2026 |
| 4.0.1040 | 17,488 | 9/25/2026 |
| 4.0.1039 | 90 | 9/25/2026 |
| 4.0.1038 | 99 | 9/25/2026 |
| 4.0.1037 | 85 | 9/25/2026 |
| 4.0.1035 | 103 | 9/24/2026 |
| 4.0.1034 | 97 | 9/24/2026 |
| 4.0.1033 | 107 | 9/16/2026 |
| 4.0.1032 | 104 | 9/16/2026 |
Loading failed
Updated Soenneker.Azure.OpenAI.Client to 4.0.1044