Voxa.Speech.OpenAI 0.7.2-alpha

This is a prerelease version of Voxa.Speech.OpenAI.
dotnet add package Voxa.Speech.OpenAI --version 0.7.2-alpha
                    
NuGet\Install-Package Voxa.Speech.OpenAI -Version 0.7.2-alpha
                    
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="Voxa.Speech.OpenAI" Version="0.7.2-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Voxa.Speech.OpenAI" Version="0.7.2-alpha" />
                    
Directory.Packages.props
<PackageReference Include="Voxa.Speech.OpenAI" />
                    
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 Voxa.Speech.OpenAI --version 0.7.2-alpha
                    
#r "nuget: Voxa.Speech.OpenAI, 0.7.2-alpha"
                    
#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 Voxa.Speech.OpenAI@0.7.2-alpha
                    
#: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=Voxa.Speech.OpenAI&version=0.7.2-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Voxa.Speech.OpenAI&version=0.7.2-alpha&prerelease
                    
Install as a Cake Tool

Voxa.Speech.OpenAI

OpenAI Whisper STT and OpenAI TTS engines for Voxa pipelines.

Install

dotnet add package Voxa.Speech.OpenAI --prerelease

Quickstart

using Voxa.Speech;
using Voxa.Speech.OpenAI;

var openai = new OpenAISpeechOptions
{
    ApiKey = "<your-key>",
    TtsModel = "gpt-4o-mini-tts",
    TtsVoice = "alloy",
    SttModel = "whisper-1",
    SttBufferSeconds = 3,
};

var pipeline = Pipeline.Build()
    .Source(new WebSocketAudioSource(ws))
    .Then(OpenAISpeech.StreamingTranscription(openai))
    .Then(new MicrosoftAgentsProcessor(yourAgent))
    .Then(OpenAISpeech.Synthesis(openai))
    .Sink(new WebSocketAudioSink(ws));

What's included

  • OpenAIWhisperEngine — buffers PCM audio for SttBufferSeconds, wraps as WAV, posts to /v1/audio/transcriptions. Emits one final TranscriptionResult per batch. For ultra-low-latency streaming, use the Realtime API path (Voxa.Services.AzureVoiceLive pointed at an OpenAI Realtime endpoint).
  • OpenAITextToSpeechEngine — POSTs to /v1/audio/speech with response_format=pcm, streams the response body in 8 KB chunks.
  • OpenAISpeechOptions — endpoint URL (configurable for OpenAI-compatible proxies), model, voice, language.
  • OpenAISpeech.StreamingTranscription(...) / OpenAISpeech.Synthesis(...) — one-liner processor factories.

License

MIT.

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 (3)

Showing the top 3 NuGet packages that depend on Voxa.Speech.OpenAI:

Package Downloads
Voxa

Batteries-included Voxa package. One package reference: AddVoxa(cfg) + MapVoxaVoice("/voice").UseDefaults() gives a working voice bot with STT, TTS, VAD, and an OpenAI chat agent — no knowledge of frames required.

Voxa.Speech.Groq

Groq Whisper (whisper-large-v3-turbo) speech-to-text for the Voxa pipeline, via Groq's OpenAI-compatible /audio/transcriptions API. A thin descriptor over the Voxa OpenAI Whisper engine pointed at Groq.

Voxa.Speech.Together

Together AI Whisper speech-to-text for the Voxa pipeline, via Together's OpenAI-compatible /audio/transcriptions API. A thin descriptor over the Voxa OpenAI Whisper engine pointed at Together.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.7.2-alpha 100 7/10/2026
0.7.1-alpha 84 7/10/2026
0.7.0-alpha 77 7/10/2026
0.6.0-alpha 90 6/22/2026
0.5.0-alpha 75 6/13/2026
0.4.0-alpha 1,255 5/10/2026
0.3.0-alpha 75 5/9/2026
0.2.0-alpha 80 5/8/2026