@streamoji/aitwin 0.6.1 → 0.6.2
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 +4 -3
- package/dist/aitwin.cjs +6 -6
- package/dist/aitwin.js +2177 -2131
- package/dist/index.d.ts +20 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -82,9 +82,12 @@ export declare type AiTwinProps = {
|
|
|
82
82
|
authToken?: string;
|
|
83
83
|
/** Avatar API base (TTS, session-value, voice). Default: package `DEFAULT_API_BASE`. */
|
|
84
84
|
apiBase?: string;
|
|
85
|
-
/** TTS engine when using `assets` or `avatarId`/`faceId` (default: Cartesia). */
|
|
85
|
+
/** TTS engine when using `assets` or `avatarId`/`faceId` (default: Cartesia). Optional if `voiceId` is packed as `engine:voice`. */
|
|
86
86
|
ttsEngineId?: TtsEngineId;
|
|
87
|
-
/**
|
|
87
|
+
/**
|
|
88
|
+
* TTS voice id. May be a bare id (`eve`, Cartesia UUID) or packed
|
|
89
|
+
* `ttsEngineId:voiceId` (e.g. `visemetts:eve`).
|
|
90
|
+
*/
|
|
88
91
|
voiceId?: string;
|
|
89
92
|
/** API speakingRate (default: 0.85). */
|
|
90
93
|
speakingRate?: number;
|
|
@@ -410,6 +413,15 @@ export declare function normalizeStreamEmotion(raw: string | undefined | null, f
|
|
|
410
413
|
/** Oculus viseme ids for Talking Lady stills and pair transitions (15 standard). */
|
|
411
414
|
export declare const OCULUS_VISEME_IDS: readonly ["aa", "CH", "DD", "E", "FF", "I", "O", "PP", "RR", "SS", "TH", "U", "kk", "nn", "sil"];
|
|
412
415
|
|
|
416
|
+
/**
|
|
417
|
+
* `voiceId` may be a bare id (`eve`) or packed `engine:voice` (`visemetts:eve`).
|
|
418
|
+
* Cartesia UUIDs have no colon, so they stay a plain voice id.
|
|
419
|
+
*/
|
|
420
|
+
export declare function parsePackedVoiceId(raw?: string): {
|
|
421
|
+
ttsEngineId?: TtsEngineId;
|
|
422
|
+
voiceId?: string;
|
|
423
|
+
};
|
|
424
|
+
|
|
413
425
|
export declare const PLAYBACK_SAMPLE_RATE = 16000;
|
|
414
426
|
|
|
415
427
|
declare type RawVisemeTransition = {
|
|
@@ -510,6 +522,12 @@ export declare const SPEAKING_RATE_MAX = 1.5;
|
|
|
510
522
|
|
|
511
523
|
export declare const SPEAKING_RATE_MIN = 0.5;
|
|
512
524
|
|
|
525
|
+
/** Merge explicit `ttsEngineId` with a possibly packed `voiceId`. Packed engine wins only if engine is omitted. */
|
|
526
|
+
export declare function splitVoiceIdSpec(ttsEngineId?: TtsEngineId, voiceId?: string): {
|
|
527
|
+
ttsEngineId?: TtsEngineId;
|
|
528
|
+
voiceId?: string;
|
|
529
|
+
};
|
|
530
|
+
|
|
513
531
|
export declare const TTS_ENGINE_CARTESIA = "eng_c9b1e6d4";
|
|
514
532
|
|
|
515
533
|
/** Opaque TTS engine ids — must match backend TTS_ENGINE_MAP in main.py. */
|