@streamoji/aitwin 0.5.2 → 0.5.3
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 +23 -0
- package/dist/aitwin.cjs +5 -5
- package/dist/aitwin.js +2114 -2003
- package/dist/index.d.ts +11 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,15 @@ export declare const AI_TWIN_THUMBNAIL_FILENAME = "thumbnail.webp";
|
|
|
6
6
|
|
|
7
7
|
export declare const AiTwin: ForwardRefExoticComponent<AiTwinProps & RefAttributes<AiTwinHandle>>;
|
|
8
8
|
|
|
9
|
+
export declare type AiTwinCaptionsOptions = {
|
|
10
|
+
/** CSS font-family, e.g. "Inter, sans-serif" or "Georgia, serif". */
|
|
11
|
+
fontFamily?: string;
|
|
12
|
+
/** CSS font-size, e.g. "1rem" or "18px". Default: clamp for readability. */
|
|
13
|
+
fontSize?: string;
|
|
14
|
+
/** Text color. Default: rgba(255,255,255,0.85). */
|
|
15
|
+
color?: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
9
18
|
export declare type AiTwinHandle = {
|
|
10
19
|
speakText: (text: string, options?: AvatarTtsSpeakOptions) => Promise<void>;
|
|
11
20
|
stop: () => void;
|
|
@@ -110,6 +119,8 @@ export declare type AiTwinProps = {
|
|
|
110
119
|
* atlas handling. Omit to use the device limit.
|
|
111
120
|
*/
|
|
112
121
|
pixiMaxTextureSize?: number;
|
|
122
|
+
/** Plain subtitles during TTS/voice playback. */
|
|
123
|
+
captions?: boolean | AiTwinCaptionsOptions;
|
|
113
124
|
};
|
|
114
125
|
|
|
115
126
|
export declare type AiTwinRecord = {
|