realtime-avatar 0.32.0 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -1
- package/dist/browser.d.ts +4 -89
- package/dist/browser.js +362 -1
- package/dist/chunk-6KQS7CTR.js +1 -0
- package/dist/{chunk-NKS5ZIWN.js → chunk-GPGNAQZV.js} +413 -170
- package/dist/{chunk-NDCZABOK.js → chunk-OVW4N5NH.js} +1 -13
- package/dist/express.d.ts +2 -2
- package/dist/express.js +2 -2
- package/dist/hono.d.ts +2 -2
- package/dist/hono.js +2 -2
- package/dist/index.d.ts +338 -3
- package/dist/index.js +2 -1
- package/dist/nextjs.d.ts +2 -2
- package/dist/nextjs.js +2 -2
- package/dist/{playout-delay-CtRZdtsj.d.ts → playout-delay-BzoM1BMN.d.ts} +135 -1
- package/dist/{proxy-client-BlaFxR6S.d.ts → proxy-client-CiTOjkg8.d.ts} +81 -3
- package/dist/react-native.d.ts +3 -3
- package/dist/react-native.js +624 -34
- package/dist/react.d.ts +12 -22
- package/dist/react.js +628 -35
- package/dist/server.d.ts +2 -2
- package/dist/server.js +2 -1
- package/dist/tanstack-start.d.ts +2 -2
- package/dist/tanstack-start.js +2 -2
- package/dist/{types-su27kEw0.d.ts → types-Cdi7KWWj.d.ts} +1 -1
- package/dist/{types-BSSqsu_Z.d.ts → types-Cg_i1jhk.d.ts} +209 -18
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@ import * as livekit_client from 'livekit-client';
|
|
|
2
2
|
import { ConnectionQuality, Room, Participant, Track, DisconnectReason, SendTextOptions } from 'livekit-client';
|
|
3
3
|
import { TrackReferenceOrPlaceholder, useTranscriptions, useConnectionState, LiveKitRoomProps } from '@livekit/components-react';
|
|
4
4
|
import { CSSProperties, ReactNode, ReactElement } from 'react';
|
|
5
|
-
import {
|
|
5
|
+
import { h as MicrophoneProblem, e as CorrelatedAudioObserver } from './playout-delay-BzoM1BMN.js';
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
|
|
8
8
|
declare function useAvatarCamera({ allowed, active }: {
|
|
@@ -48,6 +48,14 @@ declare const fishTtsModelSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
48
48
|
}>]>;
|
|
49
49
|
type FishTtsModel$1 = z.infer<typeof fishTtsModelSchema>;
|
|
50
50
|
declare const DEFAULT_FISH_TTS_MODEL: "s2.1-pro";
|
|
51
|
+
declare const fishDeliverySchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
52
|
+
whisper: "whisper";
|
|
53
|
+
}>, z.ZodNull]>;
|
|
54
|
+
type FishDelivery = NonNullable<z.infer<typeof fishDeliverySchema>>;
|
|
55
|
+
/** The models each delivery can be heard on, from the platform's `x-fish-delivery-models`. */
|
|
56
|
+
declare const FISH_DELIVERY_MODELS: {
|
|
57
|
+
readonly whisper: readonly ["drama-3"];
|
|
58
|
+
};
|
|
51
59
|
|
|
52
60
|
/**
|
|
53
61
|
* Wire schemas for the public Realtime Avatar API.
|
|
@@ -120,6 +128,9 @@ declare const voiceSpecSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
120
128
|
speed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
121
129
|
emotion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
130
|
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
|
+
delivery: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
132
|
+
whisper: "whisper";
|
|
133
|
+
}>, z.ZodNull]>>;
|
|
123
134
|
}, z.core.$strict>], "provider">;
|
|
124
135
|
declare const sessionClipSchema: z.ZodObject<{
|
|
125
136
|
clip_id: z.ZodString;
|
|
@@ -228,6 +239,9 @@ declare const liveKitSessionRequestSchema: z.ZodObject<{
|
|
|
228
239
|
speed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
229
240
|
emotion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
230
241
|
language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
242
|
+
delivery: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
243
|
+
whisper: "whisper";
|
|
244
|
+
}>, z.ZodNull]>>;
|
|
231
245
|
}, z.core.$strict>], "provider">>>;
|
|
232
246
|
voiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
233
247
|
clipLibrary: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1385,6 +1399,49 @@ type CallMediaSinks = Partial<Readonly<{
|
|
|
1385
1399
|
registerMediaControls: (controls: CallMediaControls | null) => void;
|
|
1386
1400
|
}>>;
|
|
1387
1401
|
|
|
1402
|
+
declare const externalPerformanceFrameSchema: z.ZodObject<{
|
|
1403
|
+
session_id: z.ZodString;
|
|
1404
|
+
generation_id: z.ZodString;
|
|
1405
|
+
kind: z.ZodLiteral<"external_performance">;
|
|
1406
|
+
version: z.ZodLiteral<1>;
|
|
1407
|
+
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1408
|
+
accepted: "accepted";
|
|
1409
|
+
dropped: "dropped";
|
|
1410
|
+
cancelled: "cancelled";
|
|
1411
|
+
audio_released: "audio_released";
|
|
1412
|
+
}>, z.ZodString]>;
|
|
1413
|
+
audible_checkpoint: z.ZodLiteral<"unavailable">;
|
|
1414
|
+
audio_mapping: z.ZodLiteral<"unavailable">;
|
|
1415
|
+
}, z.core.$strip>;
|
|
1416
|
+
type ExternalPerformanceFrame = z.infer<typeof externalPerformanceFrameSchema>;
|
|
1417
|
+
|
|
1418
|
+
/** What a player may take from these frames: admission and cancellation, never playout timing. */
|
|
1419
|
+
declare const EXTERNAL_PERFORMANCE_TIMING: Readonly<{
|
|
1420
|
+
readonly receiverPlayout: "unsupported";
|
|
1421
|
+
readonly audibleCheckpoint: "unavailable";
|
|
1422
|
+
readonly audioMapping: "unavailable";
|
|
1423
|
+
}>;
|
|
1424
|
+
/**
|
|
1425
|
+
* Why every pending generation is void. `connection_lost` pauses observation: after the call
|
|
1426
|
+
* reconnects, frames resume for generations first seen since, never the earlier ones. `ended`
|
|
1427
|
+
* and `binding_changed` (the grant was replaced, or observation was turned off) are final.
|
|
1428
|
+
*/
|
|
1429
|
+
type ExternalPerformanceInvalidation = "connection_lost" | "ended" | "binding_changed";
|
|
1430
|
+
/**
|
|
1431
|
+
* The statuses whose transitions this SDK knows: the enum arm of the contract's open `status`.
|
|
1432
|
+
* A status a newer worker adds still parses, and the observer skips it rather than guessing.
|
|
1433
|
+
*/
|
|
1434
|
+
declare const KNOWN_EXTERNAL_PERFORMANCE_STATUSES: readonly ("accepted" | "dropped" | "cancelled" | "audio_released")[];
|
|
1435
|
+
type KnownExternalPerformanceStatus = (typeof KNOWN_EXTERNAL_PERFORMANCE_STATUSES)[number];
|
|
1436
|
+
/** What `onFrame` receives: a contract frame whose status is one this SDK knows. */
|
|
1437
|
+
type ObservedExternalPerformanceFrame = ExternalPerformanceFrame & {
|
|
1438
|
+
status: KnownExternalPerformanceStatus;
|
|
1439
|
+
};
|
|
1440
|
+
type ExternalPerformanceObserver = {
|
|
1441
|
+
onFrame: (frame: ObservedExternalPerformanceFrame) => void;
|
|
1442
|
+
onInvalidated: (reason: ExternalPerformanceInvalidation) => void;
|
|
1443
|
+
};
|
|
1444
|
+
|
|
1388
1445
|
/**
|
|
1389
1446
|
* Wired up by CONSUMERS, not by this package. Nothing inside the carry calls it — checked
|
|
1390
1447
|
* 2026-08-26 by searching for `pendingTurn` and `replay`, which appear nowhere else here. The
|
|
@@ -1579,8 +1636,24 @@ type UseSessionLifecycleInput<T extends LLMProvider = LLMProvider> = {
|
|
|
1579
1636
|
* product-facing value — gate any UI that shows it (e.g. behind an admin flag).
|
|
1580
1637
|
*/
|
|
1581
1638
|
onBehaviorChange?: (snapshot: BehaviorSnapshot) => void;
|
|
1639
|
+
/**
|
|
1640
|
+
* For a call minted with `llm.performance: "v1"`: the worker's admission and cancellation of
|
|
1641
|
+
* each generation, from the bound agent only. Not a playout clock — see
|
|
1642
|
+
* `EXTERNAL_PERFORMANCE_TIMING`. A connection loss invalidates every pending generation;
|
|
1643
|
+
* after the same call reconnects, only generations first seen since are reported.
|
|
1644
|
+
*/
|
|
1645
|
+
externalPerformance?: ExternalPerformanceObserver;
|
|
1582
1646
|
};
|
|
1583
1647
|
type SessionLifecycleApi = {
|
|
1648
|
+
/** Inbound `rta.lifecycle` frames, set when `onBehaviorChange` or `externalPerformance` is. */
|
|
1649
|
+
onLifecycleData?: (frame: unknown) => void;
|
|
1650
|
+
/** Set when `externalPerformance` is: lets the room bridge void pending work on a room event. */
|
|
1651
|
+
invalidateExternalPerformance?: (reason: ExternalPerformanceInvalidation) => void;
|
|
1652
|
+
/**
|
|
1653
|
+
* Set when `externalPerformance` is: the room bridge resumes a connection-lost pause from the
|
|
1654
|
+
* same room events and agent identity that paused it, so no batched render can strand it.
|
|
1655
|
+
*/
|
|
1656
|
+
resumeExternalPerformance?: () => void;
|
|
1584
1657
|
phase: SessionLifecyclePhase;
|
|
1585
1658
|
/** The held grant for RealtimeAvatarLiveKitRoom (null until connecting+). */
|
|
1586
1659
|
grant: LiveKitSessionGrant | null;
|
|
@@ -1656,6 +1729,8 @@ declare function useSessionLifecycle<T extends LLMProvider = LLMProvider>(input:
|
|
|
1656
1729
|
* `useRealtimeSession`.
|
|
1657
1730
|
*/
|
|
1658
1731
|
type RealtimeSessionRoomSinks = Partial<{
|
|
1732
|
+
/** Browser-only correlated PCM playback; omission leaves ordinary media unchanged. */
|
|
1733
|
+
correlatedAudio: CorrelatedAudioObserver;
|
|
1659
1734
|
/** Inbound `rta.lifecycle` data frames (DataReceived on the lifecycle topic). */
|
|
1660
1735
|
onLifecycleData: (frame: unknown) => void;
|
|
1661
1736
|
/** Publisher for client→worker frames (request_graceful_close / extend). */
|
|
@@ -1699,7 +1774,7 @@ type SessionLifecycleRoomBridgeProps = {
|
|
|
1699
1774
|
* Decides whether a missing microphone track is a problem or simply not wanted.
|
|
1700
1775
|
*/
|
|
1701
1776
|
microphone?: boolean;
|
|
1702
|
-
lifecycle: Pick<SessionLifecycleApi, "onConnectionStateChange" | "setAgentPresent" | "registerLeaveRoom" | "markActivity"> & Partial<Pick<SessionLifecycleApi, "grant">> & RealtimeSessionRoomSinks;
|
|
1777
|
+
lifecycle: Pick<SessionLifecycleApi, "onConnectionStateChange" | "setAgentPresent" | "registerLeaveRoom" | "markActivity"> & Partial<Pick<SessionLifecycleApi, "grant" | "invalidateExternalPerformance" | "resumeExternalPerformance">> & RealtimeSessionRoomSinks;
|
|
1703
1778
|
};
|
|
1704
1779
|
/**
|
|
1705
1780
|
* Wire the in-room LiveKit facts into a {@link useSessionLifecycle} instance:
|
|
@@ -1877,6 +1952,8 @@ type VoiceError = {
|
|
|
1877
1952
|
* billing/GPU safety). The app wires only the NARRATIVE callbacks + copy.
|
|
1878
1953
|
*/
|
|
1879
1954
|
type UseRealtimeSessionInput<T extends LLMProvider = LLMProvider> = UseSessionLifecycleInput<T> & {
|
|
1955
|
+
/** Browser-only PCM player. With this observer, do not render RoomAudioRenderer. */
|
|
1956
|
+
correlatedAudio?: CorrelatedAudioObserver;
|
|
1880
1957
|
/** Echoed by the app on its own events; the SDK never inspects it. */
|
|
1881
1958
|
clientMetadata?: Record<string, unknown>;
|
|
1882
1959
|
/**
|
|
@@ -1936,6 +2013,7 @@ type UseRealtimeSessionInput<T extends LLMProvider = LLMProvider> = UseSessionLi
|
|
|
1936
2013
|
* are filled by {@link SessionLifecycleRoomBridge} — the app just mounts the bridge.
|
|
1937
2014
|
*/
|
|
1938
2015
|
type RealtimeSessionApi = SessionLifecycleApi & {
|
|
2016
|
+
correlatedAudio?: CorrelatedAudioObserver;
|
|
1939
2017
|
/** Live turn micro-state, mapped from `useVoiceAssistant().state`. */
|
|
1940
2018
|
turn: TurnState;
|
|
1941
2019
|
/** The three DISTINCT clocks (session/idle/credit), never conflated. */
|
|
@@ -2139,4 +2217,4 @@ interface ProxyClientOptions {
|
|
|
2139
2217
|
}
|
|
2140
2218
|
declare function createProxyClient(options: ProxyClientOptions): AvatarSessionClient;
|
|
2141
2219
|
|
|
2142
|
-
export {
|
|
2220
|
+
export { type LLMProvider as $, type AvatarVideoFit as A, type BehaviorSnapshot as B, type CallTranscript as C, DEFAULT_APPROACHING_END_LEAD_SECONDS as D, EXTERNAL_PERFORMANCE_TIMING as E, type ExternalPerformanceFrame as F, type ExternalPerformanceInvalidation as G, type ExternalPerformanceObserver as H, FISH_DELIVERY_MODELS as I, type FishDelivery as J, type FishTtsModel as K, type LiveKitSessionGrant as L, type FreezeReadingFn as M, type Governor as N, type GovernorAction as O, type GovernorConfig as P, type GovernorSignal as Q, type GovernorState as R, type GraceWindowClosedEvent as S, type GraceWindowOpenEvent as T, type GraceWindowState as U, type IdleWarningEvent as V, type InboundRtpCursor as W, type InboundRtpReading as X, KNOWN_EXTERNAL_PERFORMANCE_STATUSES as Y, type KnownBehaviorState as Z, type KnownExternalPerformanceStatus as _, AdaptivePlayoutController as a, useMicLease as a$, type LLMSelection as a0, type LiveKitAvatarGrantState as a1, type LiveKitAvatarGrantStatus as a2, type LiveKitCapacityState as a3, type LiveKitConnectionStatus as a4, type LiveKitSessionRequest as a5, type LiveKitSessionStartResult as a6, MAX_RECONNECT_ATTEMPTS as a7, MAX_SESSION_INSTRUCTIONS_CHARS as a8, type ObservedExternalPerformanceFrame as a9, type TurnTimeoutEvent as aA, type UseAvatarQualityGovernorInput as aB, type UseLiveKitAvatarGrantInput as aC, type UseRealtimeSessionInput as aD, type UseSessionLifecycleInput as aE, type VoiceError as aF, type VoiceErrorCode as aG, type VoiceSpec as aH, type VoiceSpecInput as aI, capacityErrorFromBusy as aJ, capacityStateFromGrant as aK, createProxyClient as aL, fishTtsModelSchema as aM, isNativeLiveTrackSubscribed as aN, knownBehaviorStates as aO, mapTurnState as aP, readInboundRtp as aQ, sessionBehaviorSchema as aR, sessionClipSchema as aS, splitCallTranscript as aT, useAvatarAdaptivePlayoutDelay as aU, useAvatarCamera as aV, useAvatarPlayoutDelay as aW, useAvatarQualityGovernor as aX, useCallTranscript as aY, useLiveKitAvatarGrant as aZ, useLiveTrackProducing as a_, type ProxyClientOptions as aa, type QualityCap as ab, RECONNECT_BACKOFF_MS as ac, type RealtimeAvatarRequestOptions as ad, type RealtimeSessionApi as ae, type RealtimeSessionMedia as af, type RealtimeSessionRoomSinks as ag, type ReconnectPolicy as ah, type ReconnectingEvent as ai, type RecoveryState as aj, type RetryStep as ak, type SendTurnOptions as al, type SessionBehavior as am, type SessionClip as an, type SessionClocks as ao, type SessionEndReason as ap, type SessionLifecycleApi as aq, type SessionLifecyclePhase as ar, type SessionLifecyclePhaseKind as as, SessionLifecycleRoomBridge as at, type SessionLifecycleRoomBridgeProps as au, type SessionReadinessFailure as av, type SurfaceLayers as aw, type TranscriptSender as ax, type TranscriptSenderOptions as ay, type TurnState as az, type AdaptivePlayoutDecision as b, useRealtimeSession as b0, useReleaseMicLeaseOnTrackEnded as b1, useSessionLifecycle as b2, type CallMicrophone as b3, type CallAudioPlayback as b4, type CallMicrophoneProblem as b5, AvatarVideoSurface as b6, type AvatarVideoSurfaceProps as b7, type LivePlaybackKeeper as b8, MIC_LEASE_ENDED_TIMEOUT_MS as b9, type MicLease as ba, NETWORK_QUALITY_POLICY as bb, type NetworkQualityStatus as bc, type PlayableVideoElement as bd, RealtimeAvatarCapacityError as be, RealtimeAvatarLiveKitRoom as bf, type RealtimeAvatarLiveKitRoomProps as bg, shouldReplayPendingTurn as bh, type AdaptivePlayoutOptions as c, type AdaptivePlayoutSample as d, type ApproachingEndEvent as e, type ApproachingEndReason as f, type AvatarConnectionDetails as g, type AvatarSessionClient as h, type CallTranscriptSegment as i, type CartesiaTtsModel as j, type ClipResult as k, type ClosingTurnResult as l, type CreditsLowEvent as m, DEFAULT_CREDITS_LOW_LEAD_SECONDS as n, DEFAULT_FISH_TTS_MODEL as o, DEFAULT_GOVERNOR_CONFIG as p, DEFAULT_GRACE_CEILING_SECONDS as q, DEFAULT_GRACE_WINDOW_LEAD_SECONDS as r, DEFAULT_IDLE_SECONDS as s, DEFAULT_IDLE_WARN_LEAD_SECONDS as t, DEFAULT_READY_TIMEOUT_SECONDS as u, DEFAULT_TURN_TIMEOUT_SECONDS as v, type DeclaredInputSource as w, type EndReason as x, type EndedEvent as y, type ExtendResult as z };
|
package/dist/react-native.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { LiveKitRoomProps } from '@livekit/react-native';
|
|
2
2
|
export { AudioSession, VideoTrack, VideoTrackProps, registerGlobals } from '@livekit/react-native';
|
|
3
|
-
import { L as LiveKitSessionGrant, A as AvatarVideoFit } from './proxy-client-
|
|
4
|
-
export { a as AdaptivePlayoutController, b as AdaptivePlayoutDecision, c as AdaptivePlayoutOptions, d as AdaptivePlayoutSample, e as ApproachingEndEvent, f as ApproachingEndReason, g as AvatarConnectionDetails, h as AvatarSessionClient, B as BehaviorSnapshot, C as CallTranscript, i as CallTranscriptSegment, j as CartesiaTtsModel, k as ClipResult, l as ClosingTurnResult, m as CreditsLowEvent, D as DEFAULT_APPROACHING_END_LEAD_SECONDS, n as DEFAULT_CREDITS_LOW_LEAD_SECONDS, o as DEFAULT_FISH_TTS_MODEL, p as DEFAULT_GOVERNOR_CONFIG, q as DEFAULT_GRACE_CEILING_SECONDS, r as DEFAULT_GRACE_WINDOW_LEAD_SECONDS, s as DEFAULT_IDLE_SECONDS, t as DEFAULT_IDLE_WARN_LEAD_SECONDS, u as DEFAULT_READY_TIMEOUT_SECONDS, v as DEFAULT_TURN_TIMEOUT_SECONDS, w as DeclaredInputSource, E as
|
|
3
|
+
import { L as LiveKitSessionGrant, A as AvatarVideoFit } from './proxy-client-CiTOjkg8.js';
|
|
4
|
+
export { a as AdaptivePlayoutController, b as AdaptivePlayoutDecision, c as AdaptivePlayoutOptions, d as AdaptivePlayoutSample, e as ApproachingEndEvent, f as ApproachingEndReason, g as AvatarConnectionDetails, h as AvatarSessionClient, B as BehaviorSnapshot, C as CallTranscript, i as CallTranscriptSegment, j as CartesiaTtsModel, k as ClipResult, l as ClosingTurnResult, m as CreditsLowEvent, D as DEFAULT_APPROACHING_END_LEAD_SECONDS, n as DEFAULT_CREDITS_LOW_LEAD_SECONDS, o as DEFAULT_FISH_TTS_MODEL, p as DEFAULT_GOVERNOR_CONFIG, q as DEFAULT_GRACE_CEILING_SECONDS, r as DEFAULT_GRACE_WINDOW_LEAD_SECONDS, s as DEFAULT_IDLE_SECONDS, t as DEFAULT_IDLE_WARN_LEAD_SECONDS, u as DEFAULT_READY_TIMEOUT_SECONDS, v as DEFAULT_TURN_TIMEOUT_SECONDS, w as DeclaredInputSource, E as EXTERNAL_PERFORMANCE_TIMING, x as EndReason, y as EndedEvent, z as ExtendResult, F as ExternalPerformanceFrame, G as ExternalPerformanceInvalidation, H as ExternalPerformanceObserver, I as FISH_DELIVERY_MODELS, J as FishDelivery, K as FishTtsModel, M as FreezeReadingFn, N as Governor, O as GovernorAction, P as GovernorConfig, Q as GovernorSignal, R as GovernorState, S as GraceWindowClosedEvent, T as GraceWindowOpenEvent, U as GraceWindowState, V as IdleWarningEvent, W as InboundRtpCursor, X as InboundRtpReading, Y as KNOWN_EXTERNAL_PERFORMANCE_STATUSES, Z as KnownBehaviorState, _ as KnownExternalPerformanceStatus, $ as LLMProvider, a0 as LLMSelection, a1 as LiveKitAvatarGrantState, a2 as LiveKitAvatarGrantStatus, a3 as LiveKitCapacityState, a4 as LiveKitConnectionStatus, a5 as LiveKitSessionRequest, a6 as LiveKitSessionStartResult, a7 as MAX_RECONNECT_ATTEMPTS, a8 as MAX_SESSION_INSTRUCTIONS_CHARS, a9 as ObservedExternalPerformanceFrame, aa as ProxyClientOptions, ab as QualityCap, ac as RECONNECT_BACKOFF_MS, ad as RealtimeAvatarRequestOptions, ae as RealtimeSessionApi, af as RealtimeSessionMedia, ag as RealtimeSessionRoomSinks, ah as ReconnectPolicy, ai as ReconnectingEvent, aj as RecoveryState, ak as RetryStep, al as SendTurnOptions, am as SessionBehavior, an as SessionClip, ao as SessionClocks, ap as SessionEndReason, aq as SessionLifecycleApi, ar as SessionLifecyclePhase, as as SessionLifecyclePhaseKind, at as SessionLifecycleRoomBridge, au as SessionLifecycleRoomBridgeProps, av as SessionReadinessFailure, aw as SurfaceLayers, ax as TranscriptSender, ay as TranscriptSenderOptions, az as TurnState, aA as TurnTimeoutEvent, aB as UseAvatarQualityGovernorInput, aC as UseLiveKitAvatarGrantInput, aD as UseRealtimeSessionInput, aE as UseSessionLifecycleInput, aF as VoiceError, aG as VoiceErrorCode, aH as VoiceSpec, aI as VoiceSpecInput, aJ as capacityErrorFromBusy, aK as capacityStateFromGrant, aL as createProxyClient, aM as fishTtsModelSchema, aN as isNativeLiveTrackSubscribed, aO as knownBehaviorStates, aP as mapTurnState, aQ as readInboundRtp, aR as sessionBehaviorSchema, aS as sessionClipSchema, aT as splitCallTranscript, aU as useAvatarAdaptivePlayoutDelay, aV as useAvatarCamera, aW as useAvatarPlayoutDelay, aX as useAvatarQualityGovernor, aY as useCallTranscript, aZ as useLiveKitAvatarGrant, a_ as useLiveTrackProducing, a$ as useMicLease, b0 as useRealtimeSession, b1 as useReleaseMicLeaseOnTrackEnded, b2 as useSessionLifecycle } from './proxy-client-CiTOjkg8.js';
|
|
5
5
|
import { Room } from 'livekit-client';
|
|
6
6
|
export { DisconnectReason, RemoteAudioTrack, RemoteTrack, RemoteVideoTrack, Room, RoomEvent, SendTextOptions, Track } from 'livekit-client';
|
|
7
7
|
import { ReactNode, ReactElement } from 'react';
|
|
8
8
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
9
9
|
export { useChat, useConnectionState, useLocalParticipant, useRoomContext, useTrackToggle, useTranscriptions, useVoiceAssistant } from '@livekit/components-react';
|
|
10
|
-
export { D as DEFAULT_AVATAR_PLAYOUT_DELAY_SECONDS } from './playout-delay-
|
|
10
|
+
export { D as DEFAULT_AVATAR_PLAYOUT_DELAY_SECONDS } from './playout-delay-BzoM1BMN.js';
|
|
11
11
|
import 'zod';
|
|
12
12
|
|
|
13
13
|
type RealtimeAvatarLiveKitRoomProps = Omit<LiveKitRoomProps, "serverUrl" | "token" | "connect" | "audio" | "video" | "options"> & {
|