@streamoji/aitwin 0.5.8 → 0.6.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 +14 -0
- package/dist/aitwin.cjs +6 -6
- package/dist/aitwin.js +2192 -2110
- package/dist/index.d.ts +12 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -98,6 +98,11 @@ export declare type AiTwinProps = {
|
|
|
98
98
|
onError?: (message: string) => void;
|
|
99
99
|
/** Called when twin metadata, auth, and face assets are ready. */
|
|
100
100
|
onReady?: () => void;
|
|
101
|
+
/**
|
|
102
|
+
* Optional poster shown (blurred) while sil/atlas/idle assets load.
|
|
103
|
+
* When omitted, derived from `faceId`/`avatarId` or the face bundle URL.
|
|
104
|
+
*/
|
|
105
|
+
loadingThumbnailUrl?: string;
|
|
101
106
|
/** When false, errors only go to `onError` (no overlay on the canvas). Default: true. */
|
|
102
107
|
showErrorOverlay?: boolean;
|
|
103
108
|
/** User speech transcript from voice STT (partial and final). */
|
|
@@ -119,6 +124,11 @@ export declare type AiTwinProps = {
|
|
|
119
124
|
* Default: 1500. Set to 0 to start audio immediately.
|
|
120
125
|
*/
|
|
121
126
|
lipsyncPlaybackWarmupMs?: number;
|
|
127
|
+
/**
|
|
128
|
+
* Milliseconds to hold still sil after speech before resuming the idle video loop.
|
|
129
|
+
* Default: 200.
|
|
130
|
+
*/
|
|
131
|
+
idleHandoffHoldMs?: number;
|
|
122
132
|
/**
|
|
123
133
|
* Pixi only: cap WebGL MAX_TEXTURE_SIZE (e.g. 4096) to preview mobile-GPU
|
|
124
134
|
* atlas handling. Omit to use the device limit.
|
|
@@ -210,8 +220,8 @@ export declare type AiTwinWidgetProps = {
|
|
|
210
220
|
*/
|
|
211
221
|
personaId?: string;
|
|
212
222
|
/**
|
|
213
|
-
* Optional poster shown (blurred)
|
|
214
|
-
*
|
|
223
|
+
* Optional poster shown (blurred) on `<AiTwin>` while sil/atlas/idle assets load.
|
|
224
|
+
* When omitted, AiTwin derives it from `faceId`/`avatarId`.
|
|
215
225
|
*/
|
|
216
226
|
loadingThumbnailUrl?: string;
|
|
217
227
|
onReady?: () => void;
|