@streamoji/aitwin 0.5.9 → 0.6.1
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 +15 -1
- package/dist/aitwin.cjs +6 -6
- package/dist/aitwin.js +2370 -2335
- package/dist/index.d.ts +15 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -124,6 +124,11 @@ export declare type AiTwinProps = {
|
|
|
124
124
|
* Default: 1500. Set to 0 to start audio immediately.
|
|
125
125
|
*/
|
|
126
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;
|
|
127
132
|
/**
|
|
128
133
|
* Pixi only: cap WebGL MAX_TEXTURE_SIZE (e.g. 4096) to preview mobile-GPU
|
|
129
134
|
* atlas handling. Omit to use the device limit.
|
|
@@ -512,7 +517,10 @@ export declare const TTS_ENGINE_GOOGLE = "eng_a7f2b9c1";
|
|
|
512
517
|
|
|
513
518
|
export declare const TTS_ENGINE_INWORLD = "eng_d4e8f3a2";
|
|
514
519
|
|
|
515
|
-
|
|
520
|
+
/** streamoji-ai-avatar viseme TTS (`POST /avatar_ttsWithPoses`). */
|
|
521
|
+
export declare const TTS_ENGINE_VISEMETTS = "visemetts";
|
|
522
|
+
|
|
523
|
+
export declare type TtsEngineId = typeof TTS_ENGINE_GOOGLE | typeof TTS_ENGINE_INWORLD | typeof TTS_ENGINE_CARTESIA | typeof TTS_ENGINE_VISEMETTS;
|
|
516
524
|
|
|
517
525
|
/** Runtime face bundle URLs (R2 custom-faces or local /twins/…). */
|
|
518
526
|
export declare type TwinAssetUrls = {
|
|
@@ -533,6 +541,9 @@ export declare const VISEME_TEST_CARTESIA_VOICE_ID = "f786b574-daa5-4673-aa0c-cb
|
|
|
533
541
|
|
|
534
542
|
export declare const VISEME_TEST_SPEAKING_RATE = 0.85;
|
|
535
543
|
|
|
544
|
+
/** Default `voice_id` for visemetts (see streamoji-ai-avatar sample curl). */
|
|
545
|
+
export declare const VISEME_TEST_VISEMETTS_VOICE_ID = "eve";
|
|
546
|
+
|
|
536
547
|
/** Viseme-test page: fixed female voice + speech speed for /avatar_ttsWithPoses. */
|
|
537
548
|
export declare const VISEME_TEST_VOICE_ID = "Olivia";
|
|
538
549
|
|
|
@@ -549,7 +560,9 @@ export declare interface VisemeQueueItem {
|
|
|
549
560
|
export declare type VoiceConnectOptions = {
|
|
550
561
|
/** Same JWT as SSE `Authorization: Bearer` (same as `authToken` prop on `<AiTwin>`). */
|
|
551
562
|
authToken?: string;
|
|
552
|
-
/**
|
|
563
|
+
/** Pipecat `/ws/voice` TTS engine (`visemetts` or Cartesia id). Default Cartesia. */
|
|
564
|
+
ttsEngineId?: TtsEngineId;
|
|
565
|
+
/** Cartesia voice UUID, or visemetts name (e.g. `eve`). */
|
|
553
566
|
voiceId?: string;
|
|
554
567
|
/** Persona / knowledge context id (from getAiTwin `knowledgeContextId`). */
|
|
555
568
|
personaId?: string;
|