Voxa.Speech.OpenAI
0.7.2-alpha
dotnet add package Voxa.Speech.OpenAI --version 0.7.2-alpha
NuGet\Install-Package Voxa.Speech.OpenAI -Version 0.7.2-alpha
<PackageReference Include="Voxa.Speech.OpenAI" Version="0.7.2-alpha" />
<PackageVersion Include="Voxa.Speech.OpenAI" Version="0.7.2-alpha" />
<PackageReference Include="Voxa.Speech.OpenAI" />
paket add Voxa.Speech.OpenAI --version 0.7.2-alpha
#r "nuget: Voxa.Speech.OpenAI, 0.7.2-alpha"
#:package Voxa.Speech.OpenAI@0.7.2-alpha
#addin nuget:?package=Voxa.Speech.OpenAI&version=0.7.2-alpha&prerelease
#tool nuget:?package=Voxa.Speech.OpenAI&version=0.7.2-alpha&prerelease
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 forSttBufferSeconds, wraps as WAV, posts to/v1/audio/transcriptions. Emits one finalTranscriptionResultper batch. For ultra-low-latency streaming, use the Realtime API path (Voxa.Services.AzureVoiceLivepointed at an OpenAI Realtime endpoint).OpenAITextToSpeechEngine— POSTs to/v1/audio/speechwithresponse_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 | 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. |
-
net10.0
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.7)
- Voxa.Speech.Abstractions (>= 0.7.2-alpha)
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 |