@streamoji/aitwin 0.2.4 → 0.2.6
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/dist/aitwin.cjs +2 -2
- package/dist/aitwin.js +580 -560
- package/dist/index.d.ts +6 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -90,6 +90,9 @@ export declare type AiTwinRenderVisemeOptions = {
|
|
|
90
90
|
gapMs?: number;
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
+
/** Basename for the original portrait stored on CDN (e.g. source.png). */
|
|
94
|
+
export declare function aiTwinSourceFilename(extension?: string): string;
|
|
95
|
+
|
|
93
96
|
export declare type AvatarTtsLipsyncController = {
|
|
94
97
|
setDeveloperToken: (token: string) => void;
|
|
95
98
|
setTtsEngineId: (engineId: TtsEngineId) => void;
|
|
@@ -132,6 +135,9 @@ export declare function fetchAiTwin(id: string, baseUrl?: string): Promise<AiTwi
|
|
|
132
135
|
/** Bearer token for /avatar_ttsWithPoses and /api/session-value. */
|
|
133
136
|
export declare function fetchDevAuthToken(): Promise<string>;
|
|
134
137
|
|
|
138
|
+
/** Public CDN original portrait for custom-faces/{faceId}/ (same id as pipeline avatarId). */
|
|
139
|
+
export declare function getAiTwinSourceUrl(faceId: string, cdnBase?: string, extension?: string): string;
|
|
140
|
+
|
|
135
141
|
/** Public CDN thumbnail for custom-faces/{faceId}/ (same id as pipeline avatarId). */
|
|
136
142
|
export declare function getAiTwinThumbnailUrl(faceId: string, cdnBase?: string): string;
|
|
137
143
|
|