HPD-Agent.Audio.LiveKit
0.9.6
See the version list below for details.
dotnet add package HPD-Agent.Audio.LiveKit --version 0.9.6
NuGet\Install-Package HPD-Agent.Audio.LiveKit -Version 0.9.6
<PackageReference Include="HPD-Agent.Audio.LiveKit" Version="0.9.6" />
<PackageVersion Include="HPD-Agent.Audio.LiveKit" Version="0.9.6" />
<PackageReference Include="HPD-Agent.Audio.LiveKit" />
paket add HPD-Agent.Audio.LiveKit --version 0.9.6
#r "nuget: HPD-Agent.Audio.LiveKit, 0.9.6"
#:package HPD-Agent.Audio.LiveKit@0.9.6
#addin nuget:?package=HPD-Agent.Audio.LiveKit&version=0.9.6
#tool nuget:?package=HPD-Agent.Audio.LiveKit&version=0.9.6
HPD-Agent.Audio.LiveKit
Managed LiveKit transport for HPD Agent Audio sessions, including room connection ownership, speech-to-text source wiring, audio output routing, native-artifact verification, and lifecycle fencing.
Install
dotnet add package HPD-Agent.Audio
dotnet add package HPD-Agent.Audio.LiveKit
dotnet add package HPD-Agent.Providers.Audio.OpenAI
The managed package depends on
HPD-Agent.Audio.LiveKit.NativeAssets. The current native qualification is
osx-arm64 only. Other runtime identifiers fail closed with
livekit-runtime-unsupported.
Direct builder integration
Configure STT and TTS first, then select the LiveKit transport:
using HPD.Agent;
using HPD.Agent.Audio;
using HPD.Agent.Audio.LiveKit;
using HPD.Agent.Providers.Audio.OpenAI;
var agent = await AgentBuilder.Create()
.WithEventApplicationIdentity("Contoso.LiveAudio")
.WithChatClient(chatClient)
.WithContentStore(contentStore)
.WithOpenAISpeechToText("gpt-4o-mini-transcribe")
.WithOpenAITextToSpeech("gpt-4o-mini-tts", voice: "alloy")
.WithLiveKitAudioTransport(
endpoint: "wss://your-livekit-host",
credentialResolver: ResolveParticipantCredentialAsync)
.WithAudio(audio =>
{
audio.InputMode = AudioInputMode.StreamingSpeechToText;
audio.OutputMode = AudioOutputMode.TextToSpeech;
audio.AssistantOutputMode =
AssistantOutputSynthesisMode.ProgressiveWithFinalFallback;
audio.EnablePlayback = true;
})
.BuildAsync();
credentialResolver receives ManagedAudioSessionStartRequest and returns
either a managed LiveKit credential envelope or an already-minted participant
JWT as a char[]. HPD clears the returned buffer after use.
The session binding must provide roomName and participantIdentity. Use
LiveKitAudioTransport.Bindings(...) when starting a retained audio session
through the managed session authority.
ASP.NET Core
Register the authority and backend through dependency injection:
builder.Services.AddManagedLiveKitAudio(options);
Supply one IAudioSessionControlAuthority for the application lifetime and
attach it to either the builder or DI hosting path. Do not create a second owner
for the same room or session generation.
Operational constraints
- Native runtime admission verifies the pinned artifact SHA-256 before use.
- Unsupported RIDs and hash mismatches are reported as safe, structured failures rather than falling back to an unverified library.
- The managed and native packages must remain version-aligned.
- Playback truth is emitted only after the LiveKit output path acknowledges the audio operation.
- Room credentials are resolved per session and are not stored in agent configuration.
See HPD-Agent.Audio for the provider-neutral audio lifecycle and diagnostics contract.
| 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. net11.0 is compatible. |
-
net10.0
- HPD-Agent.Audio (>= 0.9.6)
- HPD-Agent.Audio.LiveKit.NativeAssets (>= 0.9.6)
- HPD-Audio.Primitives (>= 0.9.6)
-
net11.0
- HPD-Agent.Audio (>= 0.9.6)
- HPD-Agent.Audio.LiveKit.NativeAssets (>= 0.9.6)
- HPD-Audio.Primitives (>= 0.9.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.