ToolUp.VoiceProviders.Whisper 0.22.0

Prefix Reserved
dotnet add package ToolUp.VoiceProviders.Whisper --version 0.22.0
                    
NuGet\Install-Package ToolUp.VoiceProviders.Whisper -Version 0.22.0
                    
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="ToolUp.VoiceProviders.Whisper" Version="0.22.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ToolUp.VoiceProviders.Whisper" Version="0.22.0" />
                    
Directory.Packages.props
<PackageReference Include="ToolUp.VoiceProviders.Whisper" />
                    
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 ToolUp.VoiceProviders.Whisper --version 0.22.0
                    
#r "nuget: ToolUp.VoiceProviders.Whisper, 0.22.0"
                    
#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 ToolUp.VoiceProviders.Whisper@0.22.0
                    
#: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=ToolUp.VoiceProviders.Whisper&version=0.22.0
                    
Install as a Cake Addin
#tool nuget:?package=ToolUp.VoiceProviders.Whisper&version=0.22.0
                    
Install as a Cake Tool

ToolUp.VoiceProviders.Whisper

An ITranscriptionProvider (from ToolUp.Voice.Core) over OpenAI's Whisper audio/transcriptions endpoint. Batch speech-to-text: an audio clip in, a Transcript out.

  • BYOK — reads openai-api-key from ISecretStore in the _platform scope on every call (the same key the OpenAI embedding provider uses); a rotated key flows through with no reconstruction, and the key is never read from an env var directly.
  • GP 1HttpClient + System.Text.Json only; no OpenAI NuGet dependency reaches your dependency graph.
  • Batch onlySupportsStreaming = false. For low-latency streaming, use the client companion's local Web Speech mode.

Compose

open ToolUp.Voice

let provider = WhisperTranscriptionProvider.create secretStore
// register the preflight validator + readiness probe alongside it:
//   |> ServerApp.withConfigValidator (WhisperTranscriptionProvider.createValidator secretStore)
//   |> ServerApp.withHealthCheck (WhisperTranscriptionProviderHealth.create secretStore)

let! result = provider.Transcribe (TranscriptionRequest.create "audio/webm" audioBytes)
match result with
| Ok transcript -> printfn "%s" (Transcript.plainText transcript)
| Error e -> eprintfn "%s" (TranscriptionError.describe e)

Accepted audio

audio/webm (the MediaRecorder default), audio/ogg, audio/wav, audio/mpeg / audio/mp3, audio/mp4, audio/m4a, audio/flac. Codec parameters (audio/webm;codecs=opus) are accepted — only the bare MIME type is matched. Any other content type returns TranscriptionError.UnsupportedAudio.

Notes

  • The request is sent as response_format=verbose_json so per-segment start/end timings are returned. Per-segment confidence is None — Whisper reports avg_logprob (a raw log-probability), not a calibrated [0,1] score, so surfacing it as confidence would mislead.
  • Failure mapping: 401/403/400 → PermanentClient; 429 / 5xx / timeout / network → Transient (retry-worthy via TranscriptionError.isRetryable).

Licensed Apache-2.0.

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.22.0 35 8/27/2026
0.21.0 45 8/26/2026
0.20.1 87 8/20/2026
0.20.0 88 8/19/2026