realtime-avatar 0.29.0 → 0.30.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 +23 -1
- package/dist/{chunk-HC7O44WE.js → chunk-GLIEEJMW.js} +1 -1
- package/dist/{chunk-MMO5AQN4.js → chunk-WXVBPMDN.js} +21 -21
- package/dist/express.js +2 -2
- package/dist/hono.js +2 -2
- package/dist/index.d.ts +14 -1
- package/dist/index.js +1 -1
- package/dist/nextjs.js +2 -2
- package/dist/{proxy-client-BJQxlVHz.d.ts → proxy-client-BlaFxR6S.d.ts} +4 -2
- package/dist/react-native.d.ts +2 -2
- package/dist/react-native.js +1 -1
- package/dist/react.d.ts +2 -2
- package/dist/react.js +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +1 -1
- package/dist/tanstack-start.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -333,6 +333,27 @@ rta.iterateSessions({ from, to }) // the same, paging handled
|
|
|
333
333
|
// webhooks
|
|
334
334
|
verifyTranscript(rawBytes, headers, secret)
|
|
335
335
|
verifyVoiceWebhook(rawBytes, headers, secret) // one sentence to speak, typed; see "Custom voice (webhook)"
|
|
336
|
+
|
|
337
|
+
// contract values; also exported by realtime-avatar/react and /react-native
|
|
338
|
+
fishTtsModelSchema.safeParse(storedModelId) // a Fish model id you stored -> FishTtsModel, or a failure
|
|
339
|
+
DEFAULT_FISH_TTS_MODEL // the platform's Fish default model
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
**A Fish model id you stored is validated once, with the SDK's own list.** Both values are
|
|
343
|
+
generated from the platform's contract: every live and deprecated id it accepts, and its
|
|
344
|
+
default. `fishTtsModelSchema.safeParse(row.model)` returns the public `FishTtsModel` on success,
|
|
345
|
+
so the voice you build needs no cast and your code keeps no copy of the list. Do it where the
|
|
346
|
+
stored string enters your server, and decide there what a refused id falls back to.
|
|
347
|
+
|
|
348
|
+
```ts
|
|
349
|
+
import { DEFAULT_FISH_TTS_MODEL, fishTtsModelSchema, type VoiceSpecInput } from "realtime-avatar/react";
|
|
350
|
+
|
|
351
|
+
const parsed = fishTtsModelSchema.safeParse(row.model);
|
|
352
|
+
const voice: VoiceSpecInput = {
|
|
353
|
+
provider: "fish",
|
|
354
|
+
voice_id: row.voiceId,
|
|
355
|
+
model: parsed.success ? parsed.data : DEFAULT_FISH_TTS_MODEL,
|
|
356
|
+
};
|
|
336
357
|
```
|
|
337
358
|
|
|
338
359
|
### Session page validation
|
|
@@ -624,7 +645,8 @@ a useful order from outside, and every one was a name we would have had to keep
|
|
|
624
645
|
|
|
625
646
|
What stayed: the components and hooks, the `DEFAULT_*` constants (so you can read the timings
|
|
626
647
|
rather than guess them), the two capacity mappers `capacityErrorFromBusy` / `capacityStateFromGrant`
|
|
627
|
-
for building your own queue UI,
|
|
648
|
+
for building your own queue UI, the zod schemas `sessionBehaviorSchema` / `sessionClipSchema`, and
|
|
649
|
+
the Fish model validator `fishTtsModelSchema` with its `DEFAULT_FISH_TTS_MODEL`.
|
|
628
650
|
|
|
629
651
|
|
|
630
652
|
---
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { sessionModeSchema, liveKitSessionReleaseReasonSchema, RealtimeAvatar, ROUTE_TIMEOUT_MS, isQueued, RealtimeAvatarHttpError, RealtimeAvatarError } from './chunk-
|
|
1
|
+
import { sessionModeSchema, liveKitSessionReleaseReasonSchema, RealtimeAvatar, ROUTE_TIMEOUT_MS, isQueued, RealtimeAvatarHttpError, RealtimeAvatarError } from './chunk-WXVBPMDN.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
// ../http-client/src/generated/error-semantics.ts
|
|
@@ -297,6 +297,11 @@ var recordingAccessResponseSchema = z.object({
|
|
|
297
297
|
url: z.string().url(),
|
|
298
298
|
expiresAt: z.string().datetime({ offset: true })
|
|
299
299
|
}).strict();
|
|
300
|
+
var schema02 = z.enum(["s1", "s2-pro", "s2.1-pro", "drama-3"]);
|
|
301
|
+
var schema110 = z.enum(["speech-1.6", "speech-1.5", "s1-mini"]);
|
|
302
|
+
var schema27 = z.union([schema02, schema110]);
|
|
303
|
+
var fishTtsModelSchema = schema27;
|
|
304
|
+
var DEFAULT_FISH_TTS_MODEL = "s2.1-pro";
|
|
300
305
|
|
|
301
306
|
// ../http-client/src/retry.ts
|
|
302
307
|
var RETRYABLE_STATUS = /* @__PURE__ */ new Set([408, 500, 502, 503, 504]);
|
|
@@ -322,12 +327,12 @@ function isTransient(cause) {
|
|
|
322
327
|
const name = cause?.name;
|
|
323
328
|
return name === "TimeoutError" || name === "TypeError" || name === "FetchError";
|
|
324
329
|
}
|
|
325
|
-
var
|
|
326
|
-
var
|
|
327
|
-
var
|
|
328
|
-
var schema32 = z.array(
|
|
330
|
+
var schema03 = z.string().min(2).max(64);
|
|
331
|
+
var schema111 = z.array(schema03);
|
|
332
|
+
var schema28 = z.string().regex(new RegExp("\\S")).min(1).max(160);
|
|
333
|
+
var schema32 = z.array(schema28).max(1e3);
|
|
329
334
|
var schema42 = z.strictObject({
|
|
330
|
-
"language_codes":
|
|
335
|
+
"language_codes": schema111.optional(),
|
|
331
336
|
"custom_vocabulary": schema32.optional()
|
|
332
337
|
});
|
|
333
338
|
var transcriptionWireSchema = schema42;
|
|
@@ -342,27 +347,22 @@ function transcriptionToWire(input) {
|
|
|
342
347
|
...options.customVocabulary !== void 0 ? { custom_vocabulary: options.customVocabulary } : {}
|
|
343
348
|
};
|
|
344
349
|
}
|
|
345
|
-
var
|
|
346
|
-
var contentPolicySchema =
|
|
347
|
-
var
|
|
348
|
-
var
|
|
349
|
-
var
|
|
350
|
+
var schema04 = z.enum(["minor-sexual-content-v1", "safe-content-v1"]);
|
|
351
|
+
var contentPolicySchema = schema04;
|
|
352
|
+
var schema05 = z.literal("voice_error");
|
|
353
|
+
var schema112 = z.enum(["voice_webhook_url_not_allowed", "voice_webhook_unauthorized", "voice_webhook_unreachable", "voice_webhook_timeout", "voice_webhook_http_error", "voice_webhook_unsupported_audio", "voice_webhook_empty_audio"]);
|
|
354
|
+
var schema29 = z.string();
|
|
350
355
|
var schema33 = z.int().min(-9007199254740991).max(9007199254740991);
|
|
351
356
|
var schema43 = z.boolean();
|
|
352
357
|
var schema52 = z.object({
|
|
353
|
-
"kind":
|
|
354
|
-
"code":
|
|
355
|
-
"message":
|
|
358
|
+
"kind": schema05,
|
|
359
|
+
"code": schema112,
|
|
360
|
+
"message": schema29,
|
|
356
361
|
"status": schema33.optional(),
|
|
357
362
|
"fatal": schema43,
|
|
358
|
-
"request_id":
|
|
363
|
+
"request_id": schema29.optional()
|
|
359
364
|
});
|
|
360
365
|
var voiceErrorFrameSchema = schema52;
|
|
361
|
-
var schema05 = z.enum(["s1", "s2-pro", "s2.1-pro", "drama-3"]);
|
|
362
|
-
var schema112 = z.enum(["speech-1.6", "speech-1.5", "s1-mini"]);
|
|
363
|
-
var schema29 = z.union([schema05, schema112]);
|
|
364
|
-
var fishTtsModelSchema = schema29;
|
|
365
|
-
var DEFAULT_FISH_TTS_MODEL = "s2.1-pro";
|
|
366
366
|
|
|
367
367
|
// ../client/src/wire.ts
|
|
368
368
|
var DEFAULT_AVATAR_ID = "maria";
|
|
@@ -861,7 +861,7 @@ function toSessionsPage(page) {
|
|
|
861
861
|
|
|
862
862
|
// ../http-client/src/client.ts
|
|
863
863
|
var DEFAULT_BASE_URL = "https://realtimeavatar.ai/api/v1";
|
|
864
|
-
var SDK_VERSION = "0.
|
|
864
|
+
var SDK_VERSION = "0.30.0";
|
|
865
865
|
var RealtimeAvatar = class {
|
|
866
866
|
#apiKey;
|
|
867
867
|
#baseUrl;
|
|
@@ -1519,4 +1519,4 @@ function isQueued(result) {
|
|
|
1519
1519
|
return "queued" in result;
|
|
1520
1520
|
}
|
|
1521
1521
|
|
|
1522
|
-
export { ROUTE_TIMEOUT_MS, RealtimeAvatar, RealtimeAvatarError, RealtimeAvatarHttpError, RealtimeAvatarWebhookError, clipLibraryDeclarationSchema, isQueued, listRecordingsResponseSchema, liveKitSessionReleaseReasonSchema, recordingAccessResponseSchema, recordingArtifactSchema, recordingModeSchema, sessionModeSchema, verifyTranscript, verifyVoiceWebhook };
|
|
1522
|
+
export { DEFAULT_FISH_TTS_MODEL, ROUTE_TIMEOUT_MS, RealtimeAvatar, RealtimeAvatarError, RealtimeAvatarHttpError, RealtimeAvatarWebhookError, clipLibraryDeclarationSchema, fishTtsModelSchema, isQueued, listRecordingsResponseSchema, liveKitSessionReleaseReasonSchema, recordingAccessResponseSchema, recordingArtifactSchema, recordingModeSchema, sessionModeSchema, verifyTranscript, verifyVoiceWebhook };
|
package/dist/express.js
CHANGED
package/dist/hono.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -423,4 +423,17 @@ declare const clipLibraryDeclarationSchema: z.ZodObject<{
|
|
|
423
423
|
}, z.core.$strict>>>>;
|
|
424
424
|
}, z.core.$strict>;
|
|
425
425
|
|
|
426
|
-
|
|
426
|
+
declare const fishTtsModelSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
427
|
+
s1: "s1";
|
|
428
|
+
"s2-pro": "s2-pro";
|
|
429
|
+
"s2.1-pro": "s2.1-pro";
|
|
430
|
+
"drama-3": "drama-3";
|
|
431
|
+
}>, z.ZodEnum<{
|
|
432
|
+
"speech-1.6": "speech-1.6";
|
|
433
|
+
"speech-1.5": "speech-1.5";
|
|
434
|
+
"s1-mini": "s1-mini";
|
|
435
|
+
}>]>;
|
|
436
|
+
type FishTtsModel = z.infer<typeof fishTtsModelSchema>;
|
|
437
|
+
declare const DEFAULT_FISH_TTS_MODEL: "s2.1-pro";
|
|
438
|
+
|
|
439
|
+
export { Asset, AssetKind, Avatar, AvatarSourceSwap, AvatarUpdate, CallMode, CallPolicy, ClipLibrary, ClipLibraryDeclaration, ClipLibraryUpdate, CreditBalance, DEFAULT_FISH_TTS_MODEL, EndCallOptions, type FishTtsModel, ListRecordingsQuery, ListRecordingsResponse, ListSessionsOptions, LoopRedirect, RealtimeAvatar, RealtimeAvatarError, RealtimeAvatarHttpError, type RealtimeAvatarOptions, RealtimeAvatarWebhookError, RecordingAccessResponse, RecordingArtifact, type StartCallOptions, StartCallResult, TranscriptPayload, UsageSession, UsageSessionPage, VoiceWebhookRequest, type WebhookVerificationErrorCode, clipLibraryDeclarationSchema, fishTtsModelSchema, verifyTranscript, verifyVoiceWebhook };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { RealtimeAvatar, RealtimeAvatarError, RealtimeAvatarHttpError, RealtimeAvatarWebhookError, clipLibraryDeclarationSchema, isQueued, listRecordingsResponseSchema, recordingAccessResponseSchema, recordingArtifactSchema, recordingModeSchema, verifyTranscript, verifyVoiceWebhook } from './chunk-
|
|
1
|
+
export { DEFAULT_FISH_TTS_MODEL, RealtimeAvatar, RealtimeAvatarError, RealtimeAvatarHttpError, RealtimeAvatarWebhookError, clipLibraryDeclarationSchema, fishTtsModelSchema, isQueued, listRecordingsResponseSchema, recordingAccessResponseSchema, recordingArtifactSchema, recordingModeSchema, verifyTranscript, verifyVoiceWebhook } from './chunk-WXVBPMDN.js';
|
|
2
2
|
import './chunk-MCIXU6XP.js';
|
package/dist/nextjs.js
CHANGED
|
@@ -46,6 +46,8 @@ declare const fishTtsModelSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
46
46
|
"speech-1.5": "speech-1.5";
|
|
47
47
|
"s1-mini": "s1-mini";
|
|
48
48
|
}>]>;
|
|
49
|
+
type FishTtsModel$1 = z.infer<typeof fishTtsModelSchema>;
|
|
50
|
+
declare const DEFAULT_FISH_TTS_MODEL: "s2.1-pro";
|
|
49
51
|
|
|
50
52
|
/**
|
|
51
53
|
* Wire schemas for the public Realtime Avatar API.
|
|
@@ -547,7 +549,7 @@ type LLMSelectionForProvider<TProvider extends LLMProvider = LLMProvider> = TPro
|
|
|
547
549
|
provider: TProvider;
|
|
548
550
|
} : never;
|
|
549
551
|
type CartesiaTtsModel = z.infer<typeof cartesiaTtsModelSchema>;
|
|
550
|
-
type FishTtsModel =
|
|
552
|
+
type FishTtsModel = FishTtsModel$1;
|
|
551
553
|
type VoiceSpec = z.infer<typeof voiceSpecSchema>;
|
|
552
554
|
type VoiceSpecInput = z.input<typeof voiceSpecSchema>;
|
|
553
555
|
type LiveKitSessionRequestInput = z.input<typeof liveKitSessionRequestSchema>;
|
|
@@ -2137,4 +2139,4 @@ interface ProxyClientOptions {
|
|
|
2137
2139
|
}
|
|
2138
2140
|
declare function createProxyClient(options: ProxyClientOptions): AvatarSessionClient;
|
|
2139
2141
|
|
|
2140
|
-
export {
|
|
2142
|
+
export { MAX_RECONNECT_ATTEMPTS as $, type AvatarVideoFit as A, type BehaviorSnapshot as B, type CallTranscript as C, DEFAULT_APPROACHING_END_LEAD_SECONDS as D, type EndReason as E, type FishTtsModel as F, type Governor as G, type GovernorAction as H, type GovernorConfig as I, type GovernorSignal as J, type GovernorState as K, type LiveKitSessionGrant as L, type GraceWindowClosedEvent as M, type GraceWindowOpenEvent as N, type GraceWindowState as O, type IdleWarningEvent as P, type InboundRtpCursor as Q, type InboundRtpReading as R, type KnownBehaviorState as S, type LLMProvider as T, type LLMSelection as U, type LiveKitAvatarGrantState as V, type LiveKitAvatarGrantStatus as W, type LiveKitCapacityState as X, type LiveKitConnectionStatus as Y, type LiveKitSessionRequest as Z, type LiveKitSessionStartResult as _, AdaptivePlayoutController as a, type LivePlaybackKeeper as a$, MAX_SESSION_INSTRUCTIONS_CHARS as a0, type ProxyClientOptions as a1, type QualityCap as a2, RECONNECT_BACKOFF_MS as a3, type RealtimeAvatarRequestOptions as a4, type RealtimeSessionApi as a5, type RealtimeSessionMedia as a6, type RealtimeSessionRoomSinks as a7, type ReconnectPolicy as a8, type ReconnectingEvent as a9, capacityErrorFromBusy as aA, capacityStateFromGrant as aB, createProxyClient as aC, fishTtsModelSchema as aD, isNativeLiveTrackSubscribed as aE, knownBehaviorStates as aF, mapTurnState as aG, readInboundRtp as aH, sessionBehaviorSchema as aI, sessionClipSchema as aJ, splitCallTranscript as aK, useAvatarAdaptivePlayoutDelay as aL, useAvatarCamera as aM, useAvatarPlayoutDelay as aN, useAvatarQualityGovernor as aO, useCallTranscript as aP, useLiveKitAvatarGrant as aQ, useLiveTrackProducing as aR, useMicLease as aS, useRealtimeSession as aT, useReleaseMicLeaseOnTrackEnded as aU, useSessionLifecycle as aV, type CallMicrophone as aW, type CallAudioPlayback as aX, type CallMicrophoneProblem as aY, AvatarVideoSurface as aZ, type AvatarVideoSurfaceProps as a_, type RecoveryState as aa, type RetryStep as ab, type SendTurnOptions as ac, type SessionBehavior as ad, type SessionClip as ae, type SessionClocks as af, type SessionEndReason as ag, type SessionLifecycleApi as ah, type SessionLifecyclePhase as ai, type SessionLifecyclePhaseKind as aj, SessionLifecycleRoomBridge as ak, type SessionLifecycleRoomBridgeProps as al, type SessionReadinessFailure as am, type SurfaceLayers as an, type TranscriptSender as ao, type TranscriptSenderOptions as ap, type TurnState as aq, type TurnTimeoutEvent as ar, type UseAvatarQualityGovernorInput as as, type UseLiveKitAvatarGrantInput as at, type UseRealtimeSessionInput as au, type UseSessionLifecycleInput as av, type VoiceError as aw, type VoiceErrorCode as ax, type VoiceSpec as ay, type VoiceSpecInput as az, type AdaptivePlayoutDecision as b, MIC_LEASE_ENDED_TIMEOUT_MS as b0, type MicLease as b1, NETWORK_QUALITY_POLICY as b2, type NetworkQualityStatus as b3, type PlayableVideoElement as b4, RealtimeAvatarCapacityError as b5, RealtimeAvatarLiveKitRoom as b6, type RealtimeAvatarLiveKitRoomProps as b7, shouldReplayPendingTurn as b8, 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 EndedEvent as x, type ExtendResult as y, type FreezeReadingFn as z };
|
package/dist/react-native.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
|
|
3
|
+
import { L as LiveKitSessionGrant, A as AvatarVideoFit } from './proxy-client-BlaFxR6S.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 EndReason, x as EndedEvent, y as ExtendResult, F as FishTtsModel, z as FreezeReadingFn, G as Governor, H as GovernorAction, I as GovernorConfig, J as GovernorSignal, K as GovernorState, M as GraceWindowClosedEvent, N as GraceWindowOpenEvent, O as GraceWindowState, P as IdleWarningEvent, Q as InboundRtpCursor, R as InboundRtpReading, S as KnownBehaviorState, T as LLMProvider, U as LLMSelection, V as LiveKitAvatarGrantState, W as LiveKitAvatarGrantStatus, X as LiveKitCapacityState, Y as LiveKitConnectionStatus, Z as LiveKitSessionRequest, _ as LiveKitSessionStartResult, $ as MAX_RECONNECT_ATTEMPTS, a0 as MAX_SESSION_INSTRUCTIONS_CHARS, a1 as ProxyClientOptions, a2 as QualityCap, a3 as RECONNECT_BACKOFF_MS, a4 as RealtimeAvatarRequestOptions, a5 as RealtimeSessionApi, a6 as RealtimeSessionMedia, a7 as RealtimeSessionRoomSinks, a8 as ReconnectPolicy, a9 as ReconnectingEvent, aa as RecoveryState, ab as RetryStep, ac as SendTurnOptions, ad as SessionBehavior, ae as SessionClip, af as SessionClocks, ag as SessionEndReason, ah as SessionLifecycleApi, ai as SessionLifecyclePhase, aj as SessionLifecyclePhaseKind, ak as SessionLifecycleRoomBridge, al as SessionLifecycleRoomBridgeProps, am as SessionReadinessFailure, an as SurfaceLayers, ao as TranscriptSender, ap as TranscriptSenderOptions, aq as TurnState, ar as TurnTimeoutEvent, as as UseAvatarQualityGovernorInput, at as UseLiveKitAvatarGrantInput, au as UseRealtimeSessionInput, av as UseSessionLifecycleInput, aw as VoiceError, ax as VoiceErrorCode, ay as VoiceSpec, az as VoiceSpecInput, aA as capacityErrorFromBusy, aB as capacityStateFromGrant, aC as createProxyClient, aD as fishTtsModelSchema, aE as isNativeLiveTrackSubscribed, aF as knownBehaviorStates, aG as mapTurnState, aH as readInboundRtp, aI as sessionBehaviorSchema, aJ as sessionClipSchema, aK as splitCallTranscript, aL as useAvatarAdaptivePlayoutDelay, aM as useAvatarCamera, aN as useAvatarPlayoutDelay, aO as useAvatarQualityGovernor, aP as useCallTranscript, aQ as useLiveKitAvatarGrant, aR as useLiveTrackProducing, aS as useMicLease, aT as useRealtimeSession, aU as useReleaseMicLeaseOnTrackEnded, aV as useSessionLifecycle } from './proxy-client-BlaFxR6S.js';
|
|
5
5
|
import { ReactNode, ReactElement } from 'react';
|
|
6
6
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
7
7
|
export { useChat, useConnectionState, useLocalParticipant, useRoomContext, useTrackToggle, useTranscriptions, useVoiceAssistant } from '@livekit/components-react';
|
package/dist/react-native.js
CHANGED
|
@@ -3885,4 +3885,4 @@ function createProxyClient(options) {
|
|
|
3885
3885
|
};
|
|
3886
3886
|
}
|
|
3887
3887
|
|
|
3888
|
-
export { AdaptivePlayoutController, AvatarVideoSurface, DEFAULT_APPROACHING_END_LEAD_SECONDS, DEFAULT_AVATAR_PLAYOUT_DELAY_SECONDS, DEFAULT_CREDITS_LOW_LEAD_SECONDS, DEFAULT_GOVERNOR_CONFIG, DEFAULT_GRACE_CEILING_SECONDS, DEFAULT_GRACE_WINDOW_LEAD_SECONDS, DEFAULT_IDLE_SECONDS, DEFAULT_IDLE_WARN_LEAD_SECONDS, DEFAULT_READY_TIMEOUT_SECONDS, DEFAULT_TURN_TIMEOUT_SECONDS, MAX_RECONNECT_ATTEMPTS, MAX_SESSION_INSTRUCTIONS_CHARS, RECONNECT_BACKOFF_MS, RealtimeAvatarLiveKitRoom, SessionLifecycleRoomBridge, capacityErrorFromBusy, capacityStateFromGrant, createProxyClient, isNativeLiveTrackSubscribed, knownBehaviorStates, mapTurnState, readInboundRtp, sessionBehaviorSchema, sessionClipSchema, splitCallTranscript, useAvatarAdaptivePlayoutDelay, useAvatarCamera, useAvatarPlayoutDelay, useAvatarQualityGovernor, useCallTranscript, useLiveKitAvatarGrant, useLiveTrackProducing, useMicLease, useRealtimeAvatarAudioSession, useRealtimeSession, useReleaseMicLeaseOnTrackEnded, useSessionLifecycle };
|
|
3888
|
+
export { AdaptivePlayoutController, AvatarVideoSurface, DEFAULT_APPROACHING_END_LEAD_SECONDS, DEFAULT_AVATAR_PLAYOUT_DELAY_SECONDS, DEFAULT_CREDITS_LOW_LEAD_SECONDS, DEFAULT_FISH_TTS_MODEL, DEFAULT_GOVERNOR_CONFIG, DEFAULT_GRACE_CEILING_SECONDS, DEFAULT_GRACE_WINDOW_LEAD_SECONDS, DEFAULT_IDLE_SECONDS, DEFAULT_IDLE_WARN_LEAD_SECONDS, DEFAULT_READY_TIMEOUT_SECONDS, DEFAULT_TURN_TIMEOUT_SECONDS, MAX_RECONNECT_ATTEMPTS, MAX_SESSION_INSTRUCTIONS_CHARS, RECONNECT_BACKOFF_MS, RealtimeAvatarLiveKitRoom, SessionLifecycleRoomBridge, capacityErrorFromBusy, capacityStateFromGrant, createProxyClient, fishTtsModelSchema, isNativeLiveTrackSubscribed, knownBehaviorStates, mapTurnState, readInboundRtp, sessionBehaviorSchema, sessionClipSchema, splitCallTranscript, useAvatarAdaptivePlayoutDelay, useAvatarCamera, useAvatarPlayoutDelay, useAvatarQualityGovernor, useCallTranscript, useLiveKitAvatarGrant, useLiveTrackProducing, useMicLease, useRealtimeAvatarAudioSession, useRealtimeSession, useReleaseMicLeaseOnTrackEnded, useSessionLifecycle };
|
package/dist/react.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ToolRegistration, RegisteredTool } from './tools.js';
|
|
2
|
-
import {
|
|
3
|
-
export { a as AdaptivePlayoutController, b as AdaptivePlayoutDecision, c as AdaptivePlayoutOptions, d as AdaptivePlayoutSample, e as ApproachingEndEvent, f as ApproachingEndReason, g as AvatarConnectionDetails,
|
|
2
|
+
import { al as SessionLifecycleRoomBridgeProps, h as AvatarSessionClient, A as AvatarVideoFit, aW as CallMicrophone, aX as CallAudioPlayback, aw as VoiceError, aY as CallMicrophoneProblem } from './proxy-client-BlaFxR6S.js';
|
|
3
|
+
export { a as AdaptivePlayoutController, b as AdaptivePlayoutDecision, c as AdaptivePlayoutOptions, d as AdaptivePlayoutSample, e as ApproachingEndEvent, f as ApproachingEndReason, g as AvatarConnectionDetails, aZ as AvatarVideoSurface, a_ as AvatarVideoSurfaceProps, 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 EndReason, x as EndedEvent, y as ExtendResult, F as FishTtsModel, z as FreezeReadingFn, G as Governor, H as GovernorAction, I as GovernorConfig, J as GovernorSignal, K as GovernorState, M as GraceWindowClosedEvent, N as GraceWindowOpenEvent, O as GraceWindowState, P as IdleWarningEvent, Q as InboundRtpCursor, R as InboundRtpReading, S as KnownBehaviorState, T as LLMProvider, U as LLMSelection, V as LiveKitAvatarGrantState, W as LiveKitAvatarGrantStatus, X as LiveKitCapacityState, Y as LiveKitConnectionStatus, Z as LiveKitSessionRequest, _ as LiveKitSessionStartResult, a$ as LivePlaybackKeeper, $ as MAX_RECONNECT_ATTEMPTS, a0 as MAX_SESSION_INSTRUCTIONS_CHARS, b0 as MIC_LEASE_ENDED_TIMEOUT_MS, b1 as MicLease, b2 as NETWORK_QUALITY_POLICY, b3 as NetworkQualityStatus, b4 as PlayableVideoElement, a1 as ProxyClientOptions, a2 as QualityCap, a3 as RECONNECT_BACKOFF_MS, b5 as RealtimeAvatarCapacityError, b6 as RealtimeAvatarLiveKitRoom, b7 as RealtimeAvatarLiveKitRoomProps, a4 as RealtimeAvatarRequestOptions, a5 as RealtimeSessionApi, a6 as RealtimeSessionMedia, a7 as RealtimeSessionRoomSinks, a8 as ReconnectPolicy, a9 as ReconnectingEvent, aa as RecoveryState, ab as RetryStep, ac as SendTurnOptions, ad as SessionBehavior, ae as SessionClip, af as SessionClocks, ag as SessionEndReason, ah as SessionLifecycleApi, ai as SessionLifecyclePhase, aj as SessionLifecyclePhaseKind, ak as SessionLifecycleRoomBridge, am as SessionReadinessFailure, an as SurfaceLayers, ao as TranscriptSender, ap as TranscriptSenderOptions, aq as TurnState, ar as TurnTimeoutEvent, as as UseAvatarQualityGovernorInput, at as UseLiveKitAvatarGrantInput, au as UseRealtimeSessionInput, av as UseSessionLifecycleInput, ax as VoiceErrorCode, ay as VoiceSpec, az as VoiceSpecInput, aA as capacityErrorFromBusy, aB as capacityStateFromGrant, aC as createProxyClient, aD as fishTtsModelSchema, aF as knownBehaviorStates, aG as mapTurnState, aH as readInboundRtp, aI as sessionBehaviorSchema, aJ as sessionClipSchema, b8 as shouldReplayPendingTurn, aK as splitCallTranscript, aL as useAvatarAdaptivePlayoutDelay, aM as useAvatarCamera, aN as useAvatarPlayoutDelay, aO as useAvatarQualityGovernor, aP as useCallTranscript, aQ as useLiveKitAvatarGrant, aS as useMicLease, aT as useRealtimeSession, aU as useReleaseMicLeaseOnTrackEnded, aV as useSessionLifecycle } from './proxy-client-BlaFxR6S.js';
|
|
4
4
|
import { CSSProperties, ReactNode } from 'react';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { R as RecordingArtifact } from './recording-ydFVySSd.js';
|
package/dist/react.js
CHANGED
|
@@ -4907,4 +4907,4 @@ function RecordingPlayer({ assets, className }) {
|
|
|
4907
4907
|
] });
|
|
4908
4908
|
}
|
|
4909
4909
|
|
|
4910
|
-
export { AdaptivePlayoutController, AvatarCall, AvatarVideoSurface, DEFAULT_APPROACHING_END_LEAD_SECONDS, DEFAULT_AVATAR_PLAYOUT_DELAY_SECONDS, DEFAULT_AVATAR_UNSTABLE_STALL_MS, DEFAULT_CREDITS_LOW_LEAD_SECONDS, DEFAULT_GOVERNOR_CONFIG, DEFAULT_GRACE_CEILING_SECONDS, DEFAULT_GRACE_WINDOW_LEAD_SECONDS, DEFAULT_IDLE_SECONDS, DEFAULT_IDLE_WARN_LEAD_SECONDS, DEFAULT_READY_TIMEOUT_SECONDS, DEFAULT_TURN_TIMEOUT_SECONDS, MAX_RECONNECT_ATTEMPTS, MAX_SESSION_INSTRUCTIONS_CHARS, MIC_LEASE_ENDED_TIMEOUT_MS, NETWORK_QUALITY_POLICY, RECONNECT_BACKOFF_MS, RealtimeAvatarCapacityError, RealtimeAvatarLiveKitRoom, RecordingPlayer, SessionLifecycleRoomBridge, capacityErrorFromBusy, capacityStateFromGrant, createProxyClient, knownBehaviorStates, mapTurnState, readInboundRtp, sessionBehaviorSchema, sessionClipSchema, shouldReplayPendingTurn, splitCallTranscript, useAvatarAdaptivePlayoutDelay, useAvatarCall, useAvatarCamera, useAvatarPlayoutDelay, useAvatarQualityGovernor, useCallTranscript, useCharacterTools, useLiveKitAvatarGrant, useMicLease, useRealtimeSession, useReleaseMicLeaseOnTrackEnded, useSessionLifecycle };
|
|
4910
|
+
export { AdaptivePlayoutController, AvatarCall, AvatarVideoSurface, DEFAULT_APPROACHING_END_LEAD_SECONDS, DEFAULT_AVATAR_PLAYOUT_DELAY_SECONDS, DEFAULT_AVATAR_UNSTABLE_STALL_MS, DEFAULT_CREDITS_LOW_LEAD_SECONDS, DEFAULT_FISH_TTS_MODEL, DEFAULT_GOVERNOR_CONFIG, DEFAULT_GRACE_CEILING_SECONDS, DEFAULT_GRACE_WINDOW_LEAD_SECONDS, DEFAULT_IDLE_SECONDS, DEFAULT_IDLE_WARN_LEAD_SECONDS, DEFAULT_READY_TIMEOUT_SECONDS, DEFAULT_TURN_TIMEOUT_SECONDS, MAX_RECONNECT_ATTEMPTS, MAX_SESSION_INSTRUCTIONS_CHARS, MIC_LEASE_ENDED_TIMEOUT_MS, NETWORK_QUALITY_POLICY, RECONNECT_BACKOFF_MS, RealtimeAvatarCapacityError, RealtimeAvatarLiveKitRoom, RecordingPlayer, SessionLifecycleRoomBridge, capacityErrorFromBusy, capacityStateFromGrant, createProxyClient, fishTtsModelSchema, knownBehaviorStates, mapTurnState, readInboundRtp, sessionBehaviorSchema, sessionClipSchema, shouldReplayPendingTurn, splitCallTranscript, useAvatarAdaptivePlayoutDelay, useAvatarCall, useAvatarCamera, useAvatarPlayoutDelay, useAvatarQualityGovernor, useCallTranscript, useCharacterTools, useLiveKitAvatarGrant, useMicLease, useRealtimeSession, useReleaseMicLeaseOnTrackEnded, useSessionLifecycle };
|
package/dist/server.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { RealtimeAvatar, RealtimeAvatarError, RealtimeAvatarHttpError, RealtimeAvatarOptions, RealtimeAvatarWebhookError, StartCallOptions, WebhookVerificationErrorCode, clipLibraryDeclarationSchema, verifyTranscript, verifyVoiceWebhook } from './index.js';
|
|
1
|
+
export { DEFAULT_FISH_TTS_MODEL, FishTtsModel, RealtimeAvatar, RealtimeAvatarError, RealtimeAvatarHttpError, RealtimeAvatarOptions, RealtimeAvatarWebhookError, StartCallOptions, WebhookVerificationErrorCode, clipLibraryDeclarationSchema, fishTtsModelSchema, verifyTranscript, verifyVoiceWebhook } from './index.js';
|
|
2
2
|
export { h as Asset, g as AssetKind, A as Avatar, o as AvatarClip, c as AvatarSourceSwap, b as AvatarUpdate, p as CallConnection, C as CallMode, a as CallPolicy, q as CallQueued, r as ClipDeclaration, f as ClipLibrary, d as ClipLibraryDeclaration, s as ClipLibraryPlan, e as ClipLibraryUpdate, t as ClipSource, u as ContextMessage, n as CreditBalance, E as EndCallOptions, v as EndCallReason, w as ExternalLlm, k as ListRecordingsQuery, l as ListRecordingsResponse, i as ListSessionsOptions, L as LoopRedirect, m as RecordingAccessResponse, R as RecordingArtifact, x as RecordingArtifactStatus, y as RecordingMode, S as StartCallResult, T as TranscriptPayload, j as UsageSession, U as UsageSessionPage, z as VideoPolicy, B as VoiceWebhook, D as VoiceWebhookErrorCode, V as VoiceWebhookRequest, F as isQueued, G as listRecordingsResponseSchema, H as recordingAccessResponseSchema, I as recordingArtifactSchema, J as recordingModeSchema } from './types-Bv29uEAs.js';
|
|
3
3
|
import './connection-history.js';
|
|
4
4
|
import 'zod';
|
package/dist/server.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { RealtimeAvatar, RealtimeAvatarError, RealtimeAvatarHttpError, RealtimeAvatarWebhookError, clipLibraryDeclarationSchema, isQueued, listRecordingsResponseSchema, recordingAccessResponseSchema, recordingArtifactSchema, recordingModeSchema, verifyTranscript, verifyVoiceWebhook } from './chunk-
|
|
1
|
+
export { DEFAULT_FISH_TTS_MODEL, RealtimeAvatar, RealtimeAvatarError, RealtimeAvatarHttpError, RealtimeAvatarWebhookError, clipLibraryDeclarationSchema, fishTtsModelSchema, isQueued, listRecordingsResponseSchema, recordingAccessResponseSchema, recordingArtifactSchema, recordingModeSchema, verifyTranscript, verifyVoiceWebhook } from './chunk-WXVBPMDN.js';
|
|
2
2
|
import './chunk-MCIXU6XP.js';
|
package/dist/tanstack-start.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "realtime-avatar",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"description": "Realtime Avatar SDK. `realtime-avatar` and the route adapters hold your API key and are server-only; `realtime-avatar/react`, `/browser` and `/tools` never can — importing a server entry into a browser build throws at bundle time.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "The Influence Company",
|