@streamoji/aitwin 0.2.0 → 0.2.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 +17 -0
- package/dist/aitwin.cjs +2 -2
- package/dist/aitwin.js +373 -365
- package/dist/index.d.ts +5 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { CSSProperties } from 'react';
|
|
|
2
2
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
3
|
import { RefAttributes } from 'react';
|
|
4
4
|
|
|
5
|
+
export declare const AI_TWIN_THUMBNAIL_FILENAME = "thumbnail.webp";
|
|
6
|
+
|
|
5
7
|
export declare const AiTwin: ForwardRefExoticComponent<AiTwinProps & RefAttributes<AiTwinHandle>>;
|
|
6
8
|
|
|
7
9
|
export declare type AiTwinHandle = {
|
|
@@ -130,6 +132,9 @@ export declare function fetchAiTwin(id: string, baseUrl?: string): Promise<AiTwi
|
|
|
130
132
|
/** Bearer token for /avatar_ttsWithPoses and /api/session-value. */
|
|
131
133
|
export declare function fetchDevAuthToken(): Promise<string>;
|
|
132
134
|
|
|
135
|
+
/** Public CDN thumbnail for custom-faces/{faceId}/ (same id as pipeline avatarId). */
|
|
136
|
+
export declare function getAiTwinThumbnailUrl(faceId: string, cdnBase?: string): string;
|
|
137
|
+
|
|
133
138
|
export declare const MIC_SAMPLE_RATE = 16000;
|
|
134
139
|
|
|
135
140
|
/** Google TTS streams Oculus viseme symbols; normalize casing and unknown ids. */
|