ToolUp.Voice.Client 0.22.0

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

ToolUp.Voice

Voice-to-text for ToolUp applications: a portable transcription abstraction, two server-side provider implementations behind it, and a client-side mic affordance attachable to any text input.

The family is four packages, each opt-in and composed independently:

Package Tier What it is
ToolUp.Voice.Core shared ITranscriptionProvider + the Transcript model + TranscriptionRequest / TranscriptionError. FSharp.Core only; Fable-safe.
ToolUp.VoiceProviders.AzureSpeech server ITranscriptionProvider over the Azure AI Speech REST short-audio endpoint. BYOK via ISecretStore.
ToolUp.VoiceProviders.Whisper server ITranscriptionProvider over OpenAI's audio/transcriptions endpoint. BYOK via ISecretStore.
ToolUp.Voice.Client client A VoiceInput mic-toggle affordance with local (browser Web Speech API) and remote (MediaRecorder → server) capture modes.

The abstraction

type ITranscriptionProvider =
    abstract ProviderId: string
    abstract SupportsStreaming: bool
    abstract Transcribe: TranscriptionRequest -> Async<Result<Transcript, TranscriptionError>>
    abstract OpenSession:
        (StreamingHypothesis -> unit) * string option ->
            Async<Result<ITranscriptionSession, TranscriptionError>>

Failures are data (TranscriptionError), every boundary is Async, and the provider is stateless between Transcribe calls — the six portability rules (GP 12) are audited in TECHNICAL_GUIDE.md.

Transcript.plainText is the "just give me the words" projection for dropping recognised text straight into an input:

let words = Transcript.plainText transcript

Server: composing a provider (BYOK)

Both server providers read their API key from ISecretStore in the _platform scope — exactly the pattern the Claude / OpenAI / Gemini AI providers use — so a rotated key flows through without reconstruction and no credential is ever read from an env var directly.

// Azure AI Speech — key at _platform / "azure-speech-key" (+ region)
let provider = AzureSpeechTranscriptionProvider.create secretStore

// OpenAI Whisper — key at _platform / "openai-api-key"
let provider = WhisperTranscriptionProvider.create secretStore

let! result = provider.Transcribe (TranscriptionRequest.create "audio/webm" audioBytes)

Client: the mic affordance

VoiceInput.micButton attaches a mic toggle to any text input. Two capture modes:

  • local — the browser Web Speech API (SpeechRecognition) when available: zero server round-trip, no key, interim results stream straight into the input.
  • remoteMediaRecorder captures a clip, uploads it to a server endpoint backed by the composed ITranscriptionProvider, and commits the returned transcript.

Mode resolves to local if available, unless the config forces remote. See TECHNICAL_GUIDE.md for the decision table.

An opt-in mic can be wired into the AI chat prompt box with one line (default off, zero visual change when unset) via the ToolUp.AI.Client prompt-accessory registration seam:

ToolUp.Voice.Client.VoiceInput.registerPromptMic VoiceCaptureMode.Auto

Zero cost when unused (GP 13)

Nothing composes by default. A deployment that references none of these packages has no voice surface, no server endpoint, and no change to the AI chat prompt box.

Out of scope

Text-to-speech, speaker diarisation, wake-word detection, and stored-media batch transcription pipelines. This family provides live capture into text inputs and the ITranscriptionProvider seam; stored-media caption/transcript generation is a separate media-side concern.

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 33 8/27/2026
0.21.0 47 8/26/2026
0.20.1 91 8/20/2026
0.20.0 78 8/19/2026