Repository navigation
Releases: elevenlabs/unity
Releases · elevenlabs/unity
Release list
v0.1.0
Added
Conversationsession API:Conversation.StartSessionAsync(ConversationOptions)/EndSession(), withConversationId,Status,Mode, andCanSendFeedback. Async members return Unity'sAwaitable.ConversationOptions:AgentId/SignedUrl/ConversationToken,ConnectionType(WebSocket, or WebRTC on WebGL),Input/Outputdevice config,OutputAudioSource,DynamicVariables,Overrides,UserId,CustomLlmExtraBody,EnableDebugLogging.- Events:
Connected,Disconnected,ErrorOccurred,StatusChanged,ModeChanged,CanSendFeedbackChanged,InitiationMetadataReceived,UserTranscriptReceived,AgentResponded,AgentResponseCorrected,AgentResponseCompleted,AgentChatResponsePartReceived,AudioReceived,Interrupted,VadScoreUpdated,GuardrailTriggered,UnhandledClientToolCall,AgentToolRequested,AgentToolResponded,MCPToolCallReceived,MCPConnectionStatusChanged. - Messaging:
SendUserMessage,SendContextualUpdate,SendUserActivity,SendMultimodalMessage,UploadFileAsync,SendFeedback,SendMCPToolApprovalResult. - Client tools:
RegisterTool<TParams, TResult>(sync andAwaitablehandlers),UnregisterTool, andClientToolExceptionfor reporting tool errors to the agent. - Audio control:
SetVolume,SetMicMuted,ChangeInputDevice,ChangeOutputDevice,GetInputVolume/GetOutputVolume,GetInputByteFrequencyData/GetOutputByteFrequencyData. - Native transport for the Editor and desktop standalone players: WebSocket via
ClientWebSocket, microphone capture viaUnityEngine.Microphone, and low-latency playback through Unity 6.3'sIAudioGenerator, optionally through a supplied (spatial)AudioSource. - WebGL transport wrapping
@elevenlabs/client(WebSocket and WebRTC). WebSocket audio plays through a Web Audio graph that mirrors the suppliedAudioSource's volume, position, and spatial settings. - WebGL JS↔C# bridge primitives:
JsBridge,JsObject,JsFunction,BridgeCallback,BridgeException. - Protocol DTOs and typed event-args records (
ElevenLabs.Protocol), generated from the Agents AsyncAPI spec. - Samples: GettingStarted (walk-up-and-talk with spatial audio, dynamic variables, and overrides) and QuickStart (minimal transcript).
- UPM distribution via git URL. Requires Unity 6.3 LTS (
6000.3) or later; depends on Input System 1.18.0 and Newtonsoft.Json 3.2.1.