talking-head-studio 0.4.9 → 0.4.10
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/TalkingHead.web.js
CHANGED
|
@@ -203,6 +203,6 @@ exports.TalkingHead = (0, react_1.forwardRef)(({ avatarUrl, authToken, mood = 'n
|
|
|
203
203
|
window.addEventListener('message', onMessage);
|
|
204
204
|
return () => window.removeEventListener('message', onMessage);
|
|
205
205
|
}, [post]);
|
|
206
|
-
return ((0, jsx_runtime_1.jsx)("div", { style: { ...containerStyle, ...style }, children: (0, jsx_runtime_1.jsx)("iframe", { ref: iframeRef, srcDoc: srcdoc, style: iframeStyle,
|
|
206
|
+
return ((0, jsx_runtime_1.jsx)("div", { style: { ...containerStyle, ...style }, children: (0, jsx_runtime_1.jsx)("iframe", { ref: iframeRef, srcDoc: srcdoc, style: iframeStyle, title: "TalkingHead Avatar" }) }));
|
|
207
207
|
});
|
|
208
208
|
exports.TalkingHead.displayName = 'TalkingHead';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Standard viseme keys supported by the avatar (Oculus set).
|
|
3
|
+
*/
|
|
4
|
+
export type OculusViseme = 'sil' | 'PP' | 'FF' | 'TH' | 'DD' | 'kk' | 'CH' | 'SS' | 'nn' | 'RR' | 'aa' | 'ee' | 'ih' | 'oh' | 'ou';
|
|
5
|
+
/** Rhubarb mouth shape cue (Preston Blair set: A-H, X) */
|
|
6
|
+
export interface VisemeCue {
|
|
7
|
+
startMs: number;
|
|
8
|
+
endMs: number;
|
|
9
|
+
viseme: 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'X';
|
|
10
|
+
weight?: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A full viseme schedule payload.
|
|
14
|
+
* Expected by the avatar from your TTS pipeline or agent backend.
|
|
15
|
+
*/
|
|
16
|
+
export interface AgentVisemePayload {
|
|
17
|
+
/** Matches X-TTS-Request-Id / agent_visemes.requestId */
|
|
18
|
+
requestId?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Wall-clock ms at which the TTS request was fired (agent side).
|
|
21
|
+
* Used as the scheduling anchor plus AUDIO_PIPELINE_DELAY_MS.
|
|
22
|
+
*/
|
|
23
|
+
startedAtMs?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Wall-clock ms at which audio actually began playing in the speaker.
|
|
26
|
+
* When present, used directly as the scheduling anchor with no additional
|
|
27
|
+
* pipeline offset — more accurate than startedAtMs on fast connections.
|
|
28
|
+
*/
|
|
29
|
+
audioStartedAtMs?: number;
|
|
30
|
+
durationMs?: number;
|
|
31
|
+
cues: VisemeCue[];
|
|
32
|
+
}
|
|
33
|
+
export declare const OCULUS_VISEMES: OculusViseme[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "talking-head-studio",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.10",
|
|
4
4
|
"description": "Cross-platform 3D avatar component for React Native & web — lip-sync, gestures, accessories, and LLM integration. Powered by TalkingHead + Three.js.",
|
|
5
5
|
"main": "dist/index.web.js",
|
|
6
6
|
"browser": "dist/index.web.js",
|