LiveVoice.connect(options)Promise<LiveVoiceSession>.| Option | Type | Required |
token | string | Yes |
prompt | string | No |
conversation | ConversationOptions | No |
tools | Record<string, LiveVoiceTool> | No |
endpoint | string | No |
LiveVoice.connect(options) from @inkibra/voice-sdk/serverapiKey, it also accepts:| Option | Type | Required |
voice | "eve" | "ara" | "rex" | "sal" | "leo" | No |
eve.ConversationOptions123456789type ConversationOptions = { prompt?: string; starts?: "assistant" | "user"; phases?: { initial: string; prompt?: string; definitions: Record<string, string>; }; };
prompt shapes pacing, clarification, and conversational style.starts decides who opens the session.phases gives the agent a developer-defined workflow vocabulary. Phase names are application concepts, not hidden runtime states.LiveVoiceSession123session.on(event, handler): () => void session.stop(): void session.dispose(): void
session.on("phase", handler) emits committed phase changes when conversation.phases is configured.LiveVoiceTool12345type LiveVoiceTool = { description: string; parameters: Record<string, unknown>; execute(input: Record<string, unknown>): unknown | Promise<unknown>; };