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" />
<PackageReference Include="ToolUp.VoiceProviders.Whisper" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=ToolUp.VoiceProviders.Whisper&version=0.22.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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-keyfromISecretStorein the_platformscope 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 1 —
HttpClient+System.Text.Jsononly; noOpenAINuGet dependency reaches your dependency graph. - Batch only —
SupportsStreaming = 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_jsonso per-segment start/end timings are returned. Per-segment confidence isNone— Whisper reportsavg_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 viaTranscriptionError.isRetryable).
Licensed Apache-2.0.
| 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
- ToolUp.Platform.Core (>= 0.22.0)
- ToolUp.Voice.Core (>= 0.22.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.