@voqalize/avatar 0.4.3 → 0.5.0
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 +65 -154
- package/dist/index.d.ts +37 -26
- package/dist/index.js +48 -25
- package/dist/pin.d.ts +2 -0
- package/dist/pin.js +3 -0
- package/dist/react.d.ts +21 -6
- package/dist/react.js +24 -6
- package/package.json +8 -67
- package/LICENSE-APACHE-2.0 +0 -201
- package/LICENSE-CC-BY-4.0 +0 -396
- package/assets/README.md +0 -60
- package/assets/tanvi.glb +0 -0
- package/assets/tanya.glb +0 -0
- package/assets/tara.glb +0 -0
- package/assets/tess.glb +0 -0
- package/assets/tushar.glb +0 -0
- package/client/Avatar.tsx +0 -57
- package/client/AvatarClient.ts +0 -818
- package/client/createAvatar.ts +0 -177
- package/client/index.ts +0 -44
- package/client/internal.ts +0 -132
- package/client/playout.ts +0 -95
- package/client/react.ts +0 -13
- package/client/supports.ts +0 -27
- package/client/three/assets.ts +0 -26
- package/client/three/budgets.ts +0 -27
- package/client/three/character-rig.ts +0 -1713
- package/client/three/createCharacter.ts +0 -109
- package/client/three/holds.ts +0 -69
- package/client/three/internal.ts +0 -55
- package/client/three/motion-limits.json +0 -124
- package/client/three/sequences.ts +0 -281
- package/client/three/tanvi-asset.ts +0 -6
- package/client/three/tanvi.ts +0 -30
- package/client/three/tanya-asset.ts +0 -6
- package/client/three/tanya.ts +0 -29
- package/client/three/tara-asset.ts +0 -25
- package/client/three/tara.ts +0 -36
- package/client/three/tess-asset.ts +0 -6
- package/client/three/tess.ts +0 -30
- package/client/three/tushar-asset.ts +0 -6
- package/client/three/tushar.ts +0 -28
- package/client/types.ts +0 -235
- package/client/useAvatar.ts +0 -74
- package/dist/Avatar.d.ts +0 -44
- package/dist/Avatar.d.ts.map +0 -1
- package/dist/Avatar.js +0 -7
- package/dist/Avatar.js.map +0 -1
- package/dist/AvatarClient.d.ts +0 -274
- package/dist/AvatarClient.d.ts.map +0 -1
- package/dist/AvatarClient.js +0 -712
- package/dist/AvatarClient.js.map +0 -1
- package/dist/createAvatar.d.ts +0 -135
- package/dist/createAvatar.d.ts.map +0 -1
- package/dist/createAvatar.js +0 -75
- package/dist/createAvatar.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/internal.d.ts +0 -34
- package/dist/internal.d.ts.map +0 -1
- package/dist/internal.js +0 -56
- package/dist/internal.js.map +0 -1
- package/dist/playout.d.ts +0 -42
- package/dist/playout.d.ts.map +0 -1
- package/dist/playout.js +0 -85
- package/dist/playout.js.map +0 -1
- package/dist/react.d.ts.map +0 -1
- package/dist/react.js.map +0 -1
- package/dist/supports.d.ts +0 -19
- package/dist/supports.d.ts.map +0 -1
- package/dist/supports.js +0 -25
- package/dist/supports.js.map +0 -1
- package/dist/three/assets.d.ts +0 -10
- package/dist/three/assets.d.ts.map +0 -1
- package/dist/three/assets.js +0 -23
- package/dist/three/assets.js.map +0 -1
- package/dist/three/budgets.d.ts +0 -17
- package/dist/three/budgets.d.ts.map +0 -1
- package/dist/three/budgets.js +0 -21
- package/dist/three/budgets.js.map +0 -1
- package/dist/three/character-rig.d.ts +0 -366
- package/dist/three/character-rig.d.ts.map +0 -1
- package/dist/three/character-rig.js +0 -1611
- package/dist/three/character-rig.js.map +0 -1
- package/dist/three/createCharacter.d.ts +0 -60
- package/dist/three/createCharacter.d.ts.map +0 -1
- package/dist/three/createCharacter.js +0 -84
- package/dist/three/createCharacter.js.map +0 -1
- package/dist/three/holds.d.ts +0 -38
- package/dist/three/holds.d.ts.map +0 -1
- package/dist/three/holds.js +0 -61
- package/dist/three/holds.js.map +0 -1
- package/dist/three/internal.d.ts +0 -52
- package/dist/three/internal.d.ts.map +0 -1
- package/dist/three/internal.js +0 -49
- package/dist/three/internal.js.map +0 -1
- package/dist/three/motion-limits.json +0 -124
- package/dist/three/sequences.d.ts +0 -71
- package/dist/three/sequences.d.ts.map +0 -1
- package/dist/three/sequences.js +0 -262
- package/dist/three/sequences.js.map +0 -1
- package/dist/three/tanvi-asset.d.ts +0 -7
- package/dist/three/tanvi-asset.d.ts.map +0 -1
- package/dist/three/tanvi-asset.js +0 -7
- package/dist/three/tanvi-asset.js.map +0 -1
- package/dist/three/tanvi.d.ts +0 -24
- package/dist/three/tanvi.d.ts.map +0 -1
- package/dist/three/tanvi.js +0 -24
- package/dist/three/tanvi.js.map +0 -1
- package/dist/three/tanya-asset.d.ts +0 -7
- package/dist/three/tanya-asset.d.ts.map +0 -1
- package/dist/three/tanya-asset.js +0 -7
- package/dist/three/tanya-asset.js.map +0 -1
- package/dist/three/tanya.d.ts +0 -23
- package/dist/three/tanya.d.ts.map +0 -1
- package/dist/three/tanya.js +0 -23
- package/dist/three/tanya.js.map +0 -1
- package/dist/three/tara-asset.d.ts +0 -26
- package/dist/three/tara-asset.d.ts.map +0 -1
- package/dist/three/tara-asset.js +0 -26
- package/dist/three/tara-asset.js.map +0 -1
- package/dist/three/tara.d.ts +0 -30
- package/dist/three/tara.d.ts.map +0 -1
- package/dist/three/tara.js +0 -30
- package/dist/three/tara.js.map +0 -1
- package/dist/three/tess-asset.d.ts +0 -7
- package/dist/three/tess-asset.d.ts.map +0 -1
- package/dist/three/tess-asset.js +0 -7
- package/dist/three/tess-asset.js.map +0 -1
- package/dist/three/tess.d.ts +0 -24
- package/dist/three/tess.d.ts.map +0 -1
- package/dist/three/tess.js +0 -24
- package/dist/three/tess.js.map +0 -1
- package/dist/three/tushar-asset.d.ts +0 -7
- package/dist/three/tushar-asset.d.ts.map +0 -1
- package/dist/three/tushar-asset.js +0 -7
- package/dist/three/tushar-asset.js.map +0 -1
- package/dist/three/tushar.d.ts +0 -22
- package/dist/three/tushar.d.ts.map +0 -1
- package/dist/three/tushar.js +0 -22
- package/dist/three/tushar.js.map +0 -1
- package/dist/types.d.ts +0 -149
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -140
- package/dist/types.js.map +0 -1
- package/dist/useAvatar.d.ts +0 -39
- package/dist/useAvatar.d.ts.map +0 -1
- package/dist/useAvatar.js +0 -35
- package/dist/useAvatar.js.map +0 -1
- package/src/avatar.d.ts +0 -436
- package/src/avatar.js +0 -1370
- package/src/behavior.d.ts +0 -42
- package/src/behavior.js +0 -114
- package/src/camera.js +0 -29
- package/src/clips.js +0 -155
- package/src/conformance.js +0 -119
- package/src/emotions.js +0 -58
- package/src/face-core.js +0 -180
- package/src/face-myna.d.ts +0 -7
- package/src/face-myna.js +0 -786
- package/src/face-peep-control-plane.js +0 -167
- package/src/face-peep.d.ts +0 -7
- package/src/face-peep.js +0 -925
- package/src/face-wren.d.ts +0 -7
- package/src/face-wren.js +0 -468
- package/src/faces.d.ts +0 -12
- package/src/faces.js +0 -53
- package/src/gaze.js +0 -504
- package/src/hand.js +0 -709
- package/src/head.js +0 -134
- package/src/idle.js +0 -668
- package/src/interjections.js +0 -747
- package/src/line-art.js +0 -137
- package/src/params.js +0 -180
- package/src/perform.js +0 -107
- package/src/prosody.js +0 -741
- package/src/rig.d.ts +0 -31
- package/src/rig.js +0 -32
- package/src/speech-timing.js +0 -32
- package/src/visemes.js +0 -410
package/dist/AvatarClient.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarClient.js","sourceRoot":"","sources":["../client/AvatarClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AAGH,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAqB,MAAM,cAAc,CAAC;AACrE,OAAO,EACL,eAAe,EACf,kBAAkB,GAInB,MAAM,YAAY,CAAC;AAuBpB;;;;;GAKG;AACH,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,aAAa,GAAG,EAAE,CAAC;AAEzB;;;;;;;GAOG;AACH,MAAM,CAAC,MAA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AK,EAAE,MAAM,EAAE,EAAE,CAAC;QAC1C,MAAM,GAAG,GAAG,OAAO,QAAQ,KAAK,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC;QAC9D,GAAG,EAAE,gBAAgB,CAAC,aAAa,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QACjD,GAAG,EAAE,gBAAgB,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAC7C,OAAO,GAAG,EAAE;YACV,GAAG,EAAE,mBAAmB,CAAC,aAAa,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;YACpD,GAAG,EAAE,mBAAmB,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;YAChD,IAAI,CAAC,cAAc,EAAE,CAAC;YACtB,IAAI,CAAC,eAAe,EAAE,CAAC;YACvB,IAAI,CAAC,kBAAkB,EAAE,CAAC;YAC1B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY;gBAAE,IAAI,CAAC,SAAS,EAAE,CAAC;YAC9C,KAAK,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,aAAa;gBAAE,MAAM,CAAC,GAAG,CAAC,KAAkB,EAAE,QAAiB,CAAC,CAAC;QACnG,CAAC,CAAC;IACJ,CAAC;IAED,4EAA4E;IAC5E,OAAO;QACL,IAAI,CAAC,cAAc,EAAE,CAAC;QACtB,IAAI,CAAC,eAAe,EAAE,CAAC;QACvB,IAAI,CAAC,kBAAkB,EAAE,CAAC;QAC1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACjB,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;IAC1B,CAAC;CACF"}
|
package/dist/createAvatar.d.ts
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `createAvatar` — the entire public surface of an avatar.
|
|
3
|
-
*
|
|
4
|
-
* const avatar = createAvatar({ mount: el, client: pipecatClient });
|
|
5
|
-
* // …
|
|
6
|
-
* avatar.destroy();
|
|
7
|
-
*
|
|
8
|
-
* An avatar is an embodiment of a `PipecatClient`. You hand it a mount and a
|
|
9
|
-
* live client; it subscribes and reacts. There is nothing else: no methods to
|
|
10
|
-
* drive it, no callbacks to observe it, no state to read back. Everything it
|
|
11
|
-
* needs to know is already on the wire — Pipecat's factual lifecycle events
|
|
12
|
-
* plus the avatar server-message envelope (docs/contract-wire.md).
|
|
13
|
-
*
|
|
14
|
-
* ## This is also the extension point
|
|
15
|
-
*
|
|
16
|
-
* There is no registry, no loader and no plug-in system. **You add an avatar by
|
|
17
|
-
* publishing a module that exports `createAvatar` with this signature**, and
|
|
18
|
-
* importing yours instead of ours:
|
|
19
|
-
*
|
|
20
|
-
* import { createAvatar } from "@acme/our-mascot";
|
|
21
|
-
*
|
|
22
|
-
* That is the whole mechanism, and it is deliberate. A registry would make us
|
|
23
|
-
* own resolution, versioning and asset paths for code we have never seen; a
|
|
24
|
-
* renderer interface would make us commit to a second public contract before we
|
|
25
|
-
* know what the second renderer actually needs. An ES module export we get for
|
|
26
|
-
* free from the platform.
|
|
27
|
-
*
|
|
28
|
-
* Everything past `mount` and `client` belongs to the implementation. Ours takes
|
|
29
|
-
* `SvgAvatarOptions`; yours takes whatever it likes, and `AvatarFactory<O>` is
|
|
30
|
-
* generic so the caller still gets your options checked.
|
|
31
|
-
*
|
|
32
|
-
* ## What an implementation owes the caller
|
|
33
|
-
*
|
|
34
|
-
* Only that `destroy()` leaves the mount as it found it and unsubscribes from
|
|
35
|
-
* the client. Not returning to rest, not honouring every action, not even
|
|
36
|
-
* having a mouth — a handless, mouthless avatar that only changes colour is a
|
|
37
|
-
* conforming avatar. The obligations that *matter* are perceptual, not typed,
|
|
38
|
-
* and they live in docs/contract-behavior.md.
|
|
39
|
-
*/
|
|
40
|
-
import type { PipecatClient } from "@pipecat-ai/client-js";
|
|
41
|
-
import type { Face, FaceTheme, Gain, HandSide } from "../src/avatar.js";
|
|
42
|
-
import type { BehaviorStateId } from "../src/behavior.js";
|
|
43
|
-
export type { Face, FaceTheme, Gain, HandSide };
|
|
44
|
-
/**
|
|
45
|
-
* What every `createAvatar` takes. Implementations extend it with their own
|
|
46
|
-
* options; the two named here are the only ones the caller can count on.
|
|
47
|
-
*/
|
|
48
|
-
export interface AvatarOptions {
|
|
49
|
-
/** The element to render into. The implementation owns its contents. */
|
|
50
|
-
readonly mount: HTMLElement;
|
|
51
|
-
/**
|
|
52
|
-
* A live `PipecatClient`. Required, and not nullable: an avatar with nothing
|
|
53
|
-
* to embody has no reason to exist yet. React callers get the forgiving
|
|
54
|
-
* version — `<Avatar>` waits for a non-null client before mounting.
|
|
55
|
-
*/
|
|
56
|
-
readonly client: PipecatClient;
|
|
57
|
-
}
|
|
58
|
-
/** What every `createAvatar` returns. */
|
|
59
|
-
export interface AvatarInstance {
|
|
60
|
-
/** Unsubscribe from the client and remove everything from the mount. */
|
|
61
|
-
destroy(): void;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* The shape a third-party avatar module exports, parameterised by its own
|
|
65
|
-
* options so a caller passing them gets them checked. `AvatarFactory` bare is
|
|
66
|
-
* the common denominator — the two options everyone shares.
|
|
67
|
-
*/
|
|
68
|
-
export type AvatarFactory<O extends AvatarOptions = AvatarOptions> = (options: O) => AvatarInstance;
|
|
69
|
-
/**
|
|
70
|
-
* What a mounted avatar answers to — the one *optional* export beside
|
|
71
|
-
* `createAvatar`.
|
|
72
|
-
*
|
|
73
|
-
* A page that drives an avatar has a problem an ordinary consumer does not.
|
|
74
|
-
* The wire's action id is open and an unknown one is ignored in silence
|
|
75
|
-
* (docs/contract-wire.md § Action), which is right for a protocol and useless
|
|
76
|
-
* for a control surface: a button per name cannot tell "this face has no such
|
|
77
|
-
* motion" from "nothing happened". This is the avatar answering that question
|
|
78
|
-
* for a driving UI, and nothing else reads it — `createAvatar` does not take
|
|
79
|
-
* it, the library never consults it, and an avatar that omits it is fully
|
|
80
|
-
* conforming. It is a *declaration*: nobody verifies it, so a list that has
|
|
81
|
-
* drifted from the drawing is a bug in the avatar and not something the
|
|
82
|
-
* library can catch.
|
|
83
|
-
*/
|
|
84
|
-
export interface AvatarSupport {
|
|
85
|
-
/**
|
|
86
|
-
* Every action id this avatar answers to, the two required ones included.
|
|
87
|
-
* An id absent from here is a documented no-op, never an error.
|
|
88
|
-
*/
|
|
89
|
-
readonly actions: readonly string[];
|
|
90
|
-
/**
|
|
91
|
-
* Which of the nine states this avatar draws *distinguishably*.
|
|
92
|
-
*
|
|
93
|
-
* Every avatar must accept all nine; a renderer that draws `CANT_HEAR` as
|
|
94
|
-
* ordinary listening is conforming (docs/contract-behavior.md). So this is
|
|
95
|
-
* the narrower claim — which of them a reviewer can expect to tell apart on
|
|
96
|
-
* the face — and omitting it claims all nine, which is what every avatar in
|
|
97
|
-
* this repo does.
|
|
98
|
-
*/
|
|
99
|
-
readonly states?: readonly BehaviorStateId[];
|
|
100
|
-
}
|
|
101
|
-
/** The bundled avatars' own `supports` value is in `supports.ts`, not here: it
|
|
102
|
-
* is a value, so this module's `peep` import would follow it into the bundle of
|
|
103
|
-
* anything that read it — including the canvas avatars, which draw no SVG face. */
|
|
104
|
-
/**
|
|
105
|
-
* Options for the bundled SVG avatars — ours alone; nothing outside this
|
|
106
|
-
* package reads them.
|
|
107
|
-
*
|
|
108
|
-
* `face` is a value, not a name: a name needs a table, and a table needs every
|
|
109
|
-
* face imported to answer any lookup. Import the one you want and the other two
|
|
110
|
-
* never enter your bundle.
|
|
111
|
-
*
|
|
112
|
-
* import { createAvatar } from "@voqalize/avatar";
|
|
113
|
-
* import { wren } from "@voqalize/avatar/faces/wren";
|
|
114
|
-
*
|
|
115
|
-
* createAvatar({ mount, client, face: wren });
|
|
116
|
-
*/
|
|
117
|
-
export interface SvgAvatarOptions extends AvatarOptions {
|
|
118
|
-
/** Defaults to `peep`, the face this entry point already carries. */
|
|
119
|
-
readonly face?: Face;
|
|
120
|
-
/** Palette for that face. Its keys are the face's own; see `THEME` in its
|
|
121
|
-
* module, and CLAUDE.md on why `peep` has exactly one. */
|
|
122
|
-
readonly theme?: FaceTheme;
|
|
123
|
-
/** Viseme amplitude, 0..2. `1` is as authored. */
|
|
124
|
-
readonly mouthGain?: Gain;
|
|
125
|
-
/** Gesture-clip amplitude, 0..2. */
|
|
126
|
-
readonly gestureGain?: Gain;
|
|
127
|
-
/** Idle/liveness amplitude, 0..2. Low by design — see CLAUDE.md. */
|
|
128
|
-
readonly motionGain?: Gain;
|
|
129
|
-
/** Render the frame-edge hand at all. Default true. */
|
|
130
|
-
readonly hand?: boolean;
|
|
131
|
-
/** `1` puts it on the viewer's right, `-1` the other side. */
|
|
132
|
-
readonly handSide?: HandSide;
|
|
133
|
-
}
|
|
134
|
-
export declare function createAvatar(options: SvgAvatarOptions): AvatarInstance;
|
|
135
|
-
//# sourceMappingURL=createAvatar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createAvatar.d.ts","sourceRoot":"","sources":["../client/createAvatar.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAI1D,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;AAEhD;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,wEAAwE;IACxE,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;CAChC;AAED,yCAAyC;AACzC,MAAM,WAAW,cAAc;IAC7B,wEAAwE;IACxE,OAAO,IAAI,IAAI,CAAC;CACjB;AAED;;;;GAIG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,IAC/D,CAAC,OAAO,EAAE,CAAC,KAAK,cAAc,CAAC;AAEjC;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC;;;;;;;;OAQG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,eAAe,EAAE,CAAC;CAC9C;AAED;;oFAEoF;AAEpF;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,gBAAiB,SAAQ,aAAa;IACrD,qEAAqE;IACrE,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC;IACrB;8DAC0D;IAC1D,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;IAC3B,kDAAkD;IAClD,QAAQ,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC;IAC1B,oCAAoC;IACpC,QAAQ,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC;IAC5B,oEAAoE;IACpE,QAAQ,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC;IAC3B,uDAAuD;IACvD,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IACxB,8DAA8D;IAC9D,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC;CAC9B;AAID,wBAAgB,YAAY,CAAC,OAAO,EAAE,gBAAgB,GAAG,cAAc,CA4BtE"}
|
package/dist/createAvatar.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `createAvatar` — the entire public surface of an avatar.
|
|
3
|
-
*
|
|
4
|
-
* const avatar = createAvatar({ mount: el, client: pipecatClient });
|
|
5
|
-
* // …
|
|
6
|
-
* avatar.destroy();
|
|
7
|
-
*
|
|
8
|
-
* An avatar is an embodiment of a `PipecatClient`. You hand it a mount and a
|
|
9
|
-
* live client; it subscribes and reacts. There is nothing else: no methods to
|
|
10
|
-
* drive it, no callbacks to observe it, no state to read back. Everything it
|
|
11
|
-
* needs to know is already on the wire — Pipecat's factual lifecycle events
|
|
12
|
-
* plus the avatar server-message envelope (docs/contract-wire.md).
|
|
13
|
-
*
|
|
14
|
-
* ## This is also the extension point
|
|
15
|
-
*
|
|
16
|
-
* There is no registry, no loader and no plug-in system. **You add an avatar by
|
|
17
|
-
* publishing a module that exports `createAvatar` with this signature**, and
|
|
18
|
-
* importing yours instead of ours:
|
|
19
|
-
*
|
|
20
|
-
* import { createAvatar } from "@acme/our-mascot";
|
|
21
|
-
*
|
|
22
|
-
* That is the whole mechanism, and it is deliberate. A registry would make us
|
|
23
|
-
* own resolution, versioning and asset paths for code we have never seen; a
|
|
24
|
-
* renderer interface would make us commit to a second public contract before we
|
|
25
|
-
* know what the second renderer actually needs. An ES module export we get for
|
|
26
|
-
* free from the platform.
|
|
27
|
-
*
|
|
28
|
-
* Everything past `mount` and `client` belongs to the implementation. Ours takes
|
|
29
|
-
* `SvgAvatarOptions`; yours takes whatever it likes, and `AvatarFactory<O>` is
|
|
30
|
-
* generic so the caller still gets your options checked.
|
|
31
|
-
*
|
|
32
|
-
* ## What an implementation owes the caller
|
|
33
|
-
*
|
|
34
|
-
* Only that `destroy()` leaves the mount as it found it and unsubscribes from
|
|
35
|
-
* the client. Not returning to rest, not honouring every action, not even
|
|
36
|
-
* having a mouth — a handless, mouthless avatar that only changes colour is a
|
|
37
|
-
* conforming avatar. The obligations that *matter* are perceptual, not typed,
|
|
38
|
-
* and they live in docs/contract-behavior.md.
|
|
39
|
-
*/
|
|
40
|
-
import { createAvatar as createSvgWidget } from "../src/avatar.js";
|
|
41
|
-
import { peep } from "../src/face-peep.js";
|
|
42
|
-
import { AvatarClient } from "./AvatarClient.js";
|
|
43
|
-
const GAINS = ["mouthGain", "gestureGain", "motionGain"];
|
|
44
|
-
export function createAvatar(options) {
|
|
45
|
-
const { mount, client, face = peep, ...rest } = options;
|
|
46
|
-
if (!mount)
|
|
47
|
-
throw new TypeError("createAvatar: `mount` is required");
|
|
48
|
-
if (!client)
|
|
49
|
-
throw new TypeError("createAvatar: `client` is required");
|
|
50
|
-
// The one range TypeScript cannot state, checked where it is cheapest to fix:
|
|
51
|
-
// at construction, by the caller who typed the number.
|
|
52
|
-
for (const key of GAINS) {
|
|
53
|
-
const g = rest[key];
|
|
54
|
-
if (g === undefined)
|
|
55
|
-
continue;
|
|
56
|
-
if (!Number.isFinite(g) || g < 0 || g > 2) {
|
|
57
|
-
throw new RangeError(`createAvatar: \`${key}\` must be 0..2, got ${String(g)}`);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
const widget = createSvgWidget({ mount, face, ...rest });
|
|
61
|
-
const driver = new AvatarClient(widget);
|
|
62
|
-
const detach = driver.attach(client);
|
|
63
|
-
let destroyed = false;
|
|
64
|
-
return {
|
|
65
|
-
destroy() {
|
|
66
|
-
if (destroyed)
|
|
67
|
-
return;
|
|
68
|
-
destroyed = true;
|
|
69
|
-
detach();
|
|
70
|
-
driver.destroy();
|
|
71
|
-
widget.destroy();
|
|
72
|
-
},
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
//# sourceMappingURL=createAvatar.js.map
|
package/dist/createAvatar.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createAvatar.js","sourceRoot":"","sources":["../client/createAvatar.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAGH,OAAO,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGnE,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAqGjD,MAAM,KAAK,GAAG,CAAC,WAAW,EAAE,aAAa,EAAE,YAAY,CAAU,CAAC;AAElE,MAAM,UAAU,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","sourceRoot":"","sources":["../client/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,YAAY,EACV,aAAa,EACb,cAAc,EACd,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,IAAI,EACJ,SAAS,EACT,IAAI,EACJ,QAAQ,GACT,MAAM,mBAAmB,CAAC"}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../client/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC"}
|
package/dist/internal.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `@voqalize/avatar/internal` — the parts of our own implementation that
|
|
3
|
-
* another avatar can build on.
|
|
4
|
-
*
|
|
5
|
-
* **Nothing here is covered by semver.** Names, signatures and semantics move
|
|
6
|
-
* in any minor release. It is exported because an avatar author who wants the
|
|
7
|
-
* SVG mixer, the behavior catalog or — most usefully — the viseme clock should
|
|
8
|
-
* not have to vendor a copy, not because any of it is an interface. The
|
|
9
|
-
* interface is `createAvatar`, and it is one function.
|
|
10
|
-
*
|
|
11
|
-
* The one thing here worth reaching for on purpose is `VisemeTrack`: someone
|
|
12
|
-
* has to turn a cue array plus a clock into "which mouth shape is on screen
|
|
13
|
-
* right now", every renderer needs exactly that, and it is a solved problem.
|
|
14
|
-
*
|
|
15
|
-
* const track = new VisemeTrack();
|
|
16
|
-
* track.start(cues, () => performance.now() - t0);
|
|
17
|
-
* // per frame:
|
|
18
|
-
* const s = track.sample(); // { letter: "D", intensity: 1, phone: "OW" } | null
|
|
19
|
-
*
|
|
20
|
-
* `docs/internal-rig.md` describes the pose-channel model the bundled SVG
|
|
21
|
-
* renderer uses internally. It is *not* the seam to implement — see
|
|
22
|
-
* docs/design-avatar-interface.md.
|
|
23
|
-
*/
|
|
24
|
-
export { createAvatar as createSvgAvatar, REST, CHANNELS, RANGE, STATES, STATE_NAMES, ACTIONS, ACTION_IDS, GAZE_NAMES, GAZE_TARGETS, EMOTION_NAMES, VisemeTrack, VISEME_LETTERS, VISEME_SHAPES, SILENT, LEAD_MS, SHOULDER_TILT, INTERNAL_CLIPS, ClipPlayer, TAU, clamp, approach, makeParams, emotionPose, avatarFrame, createSvgRig, shapeFor, JAW_OF_OPEN, normalizeCues, textToCues, ARPABET_TO_VISEME, AZURE_VISEME_TO_LETTER, } from "../src/avatar.js";
|
|
25
|
-
export type { Clip, ClipSample, AvatarApi, AvatarStateName, AvatarActionId, AvatarGazeName, AvatarEmotionName, AvatarAction, AvatarMeta, VisemeLetter, Cue, PoseChannel, PoseOverrides, CreateAvatarOptions as CreateSvgAvatarOptions, } from "../src/avatar.js";
|
|
26
|
-
export type { AvatarFrame, AvatarRig, AvatarRigFactory, HandFrame, RigPose, } from "../src/rig.js";
|
|
27
|
-
export { BEHAVIOR_STATE_IDS, BEHAVIOR_ACTIONS, BEHAVIOR_ACTION_IDS, WIRE_ACTION_TO_BEHAVIOR, } from "../src/behavior.js";
|
|
28
|
-
export type { BehaviorStateId, BehaviorActionId } from "../src/behavior.js";
|
|
29
|
-
export { isAvatarMessage, CORE_ACTION_IDS } from "./types.js";
|
|
30
|
-
export type { AvatarSupport } from "./createAvatar.js";
|
|
31
|
-
export { AvatarClient } from "./AvatarClient.js";
|
|
32
|
-
export type { AvatarCommand, AvatarCue, AvatarCuesCmd, CoreActionId, } from "./types.js";
|
|
33
|
-
export type { AvatarClientOptions, AvatarDriver, AvatarPresenceState } from "./AvatarClient.js";
|
|
34
|
-
//# sourceMappingURL=internal.d.ts.map
|
package/dist/internal.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../client/internal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAIL,YAAY,IAAI,eAAe,EAG/B,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,MAAM,EACN,WAAW,EACX,OAAO,EACP,UAAU,EACV,UAAU,EACV,YAAY,EACZ,aAAa,EAEb,WAAW,EACX,cAAc,EACd,aAAa,EACb,MAAM,EACN,OAAO,EAEP,aAAa,EAMb,cAAc,EACd,UAAU,EACV,GAAG,EACH,KAAK,EACL,QAAQ,EAKR,UAAU,EACV,WAAW,EACX,WAAW,EACX,YAAY,EACZ,QAAQ,EAIR,WAAW,EACX,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EACV,IAAI,EACJ,UAAU,EACV,SAAS,EACT,eAAe,EACf,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,GAAG,EACH,WAAW,EACX,aAAa,EACb,mBAAmB,IAAI,sBAAsB,GAC9C,MAAM,kBAAkB,CAAC;AAK1B,YAAY,EACV,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,SAAS,EACT,OAAO,GACR,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,oBAAoB,CAAC;AAE5B,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE5E,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAM9D,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGvD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,YAAY,EACV,aAAa,EACb,SAAS,EACT,aAAa,EACb,YAAY,GACb,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,mBAAmB,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/internal.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `@voqalize/avatar/internal` — the parts of our own implementation that
|
|
3
|
-
* another avatar can build on.
|
|
4
|
-
*
|
|
5
|
-
* **Nothing here is covered by semver.** Names, signatures and semantics move
|
|
6
|
-
* in any minor release. It is exported because an avatar author who wants the
|
|
7
|
-
* SVG mixer, the behavior catalog or — most usefully — the viseme clock should
|
|
8
|
-
* not have to vendor a copy, not because any of it is an interface. The
|
|
9
|
-
* interface is `createAvatar`, and it is one function.
|
|
10
|
-
*
|
|
11
|
-
* The one thing here worth reaching for on purpose is `VisemeTrack`: someone
|
|
12
|
-
* has to turn a cue array plus a clock into "which mouth shape is on screen
|
|
13
|
-
* right now", every renderer needs exactly that, and it is a solved problem.
|
|
14
|
-
*
|
|
15
|
-
* const track = new VisemeTrack();
|
|
16
|
-
* track.start(cues, () => performance.now() - t0);
|
|
17
|
-
* // per frame:
|
|
18
|
-
* const s = track.sample(); // { letter: "D", intensity: 1, phone: "OW" } | null
|
|
19
|
-
*
|
|
20
|
-
* `docs/internal-rig.md` describes the pose-channel model the bundled SVG
|
|
21
|
-
* renderer uses internally. It is *not* the seam to implement — see
|
|
22
|
-
* docs/design-avatar-interface.md.
|
|
23
|
-
*/
|
|
24
|
-
export {
|
|
25
|
-
// The bundled SVG widget. Not the faces: importing one from here would put
|
|
26
|
-
// all three in every bundle that wanted the viseme clock.
|
|
27
|
-
// `@voqalize/avatar/faces/<name>` is where a face comes from.
|
|
28
|
-
createAvatar as createSvgAvatar,
|
|
29
|
-
// The pose space a custom `rig` is handed on every frame, and the rests it is
|
|
30
|
-
// measured against.
|
|
31
|
-
REST, CHANNELS, RANGE, STATES, STATE_NAMES, ACTIONS, ACTION_IDS, GAZE_NAMES, GAZE_TARGETS, EMOTION_NAMES,
|
|
32
|
-
// The viseme clock and its tables.
|
|
33
|
-
VisemeTrack, VISEME_LETTERS, VISEME_SHAPES, SILENT, LEAD_MS,
|
|
34
|
-
// The body's share of a held tilt, for a page driving a rig by hand.
|
|
35
|
-
SHOULDER_TILT,
|
|
36
|
-
// Stepping a gesture by hand: the catalogue, the player, and the smoothing
|
|
37
|
-
// law the mixer puts between a clip's keyframes and the face. A filmstrip
|
|
38
|
-
// instrument needs all three, and the one thing it must not do is fork the
|
|
39
|
-
// smoothing — that is the part a keyframe is authored against
|
|
40
|
-
// (docs/internal-mixer.md § Smoothing).
|
|
41
|
-
INTERNAL_CLIPS, ClipPlayer, TAU, clamp, approach,
|
|
42
|
-
// Posing a face directly, with no mixer, no clock and no client above it —
|
|
43
|
-
// what a pose sheet or a rig-conformance page does. `makeParams` fills the
|
|
44
|
-
// rests around a handful of overrides, `emotionPose` names a familiar set of
|
|
45
|
-
// them, `avatarFrame` wraps the result and `createSvgRig(face)` draws it.
|
|
46
|
-
makeParams, emotionPose, avatarFrame, createSvgRig, shapeFor,
|
|
47
|
-
// The one number that says how far the mandible falls for a given aperture.
|
|
48
|
-
// Anything composing a mouth pose without `shapeFor` — a retarget, a driver —
|
|
49
|
-
// needs it, and the amplitudes behind the lips are calibrated at it.
|
|
50
|
-
JAW_OF_OPEN, normalizeCues, textToCues, ARPABET_TO_VISEME, AZURE_VISEME_TO_LETTER, } from "../src/avatar.js";
|
|
51
|
-
export { BEHAVIOR_STATE_IDS, BEHAVIOR_ACTIONS, BEHAVIOR_ACTION_IDS, WIRE_ACTION_TO_BEHAVIOR, } from "../src/behavior.js";
|
|
52
|
-
export { isAvatarMessage, CORE_ACTION_IDS } from "./types.js";
|
|
53
|
-
// A renderer may reuse the one lifecycle/precedence ladder without gaining a
|
|
54
|
-
// second public avatar interface.
|
|
55
|
-
export { AvatarClient } from "./AvatarClient.js";
|
|
56
|
-
//# sourceMappingURL=internal.js.map
|
package/dist/internal.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../client/internal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO;AACL,2EAA2E;AAC3E,0DAA0D;AAC1D,8DAA8D;AAC9D,YAAY,IAAI,eAAe;AAC/B,8EAA8E;AAC9E,oBAAoB;AACpB,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,MAAM,EACN,WAAW,EACX,OAAO,EACP,UAAU,EACV,UAAU,EACV,YAAY,EACZ,aAAa;AACb,mCAAmC;AACnC,WAAW,EACX,cAAc,EACd,aAAa,EACb,MAAM,EACN,OAAO;AACP,qEAAqE;AACrE,aAAa;AACb,2EAA2E;AAC3E,0EAA0E;AAC1E,2EAA2E;AAC3E,8DAA8D;AAC9D,wCAAwC;AACxC,cAAc,EACd,UAAU,EACV,GAAG,EACH,KAAK,EACL,QAAQ;AACR,2EAA2E;AAC3E,2EAA2E;AAC3E,6EAA6E;AAC7E,0EAA0E;AAC1E,UAAU,EACV,WAAW,EACX,WAAW,EACX,YAAY,EACZ,QAAQ;AACR,4EAA4E;AAC5E,8EAA8E;AAC9E,qEAAqE;AACrE,WAAW,EACX,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,kBAAkB,CAAC;AA8B1B,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,oBAAoB,CAAC;AAI5B,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAO9D,6EAA6E;AAC7E,kCAAkC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/playout.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* When the bot's audio actually begins, heard on the track the browser plays.
|
|
3
|
-
*
|
|
4
|
-
* `BotStartedSpeaking` and the audio reach the browser by different roads —
|
|
5
|
-
* the event on the data channel, the sound over RTP and through a jitter
|
|
6
|
-
* buffer — so the event is a statement about *which* audio is starting and
|
|
7
|
-
* not about when anyone hears it. Measured on two stacks, the event arrived
|
|
8
|
-
* 57 ms after the first sample on one and 160 ms before it on the other: the
|
|
9
|
-
* mouth lagged the voice on the first and ran ahead of it on the second, and
|
|
10
|
-
* no constant corrects both. So the turn clock is anchored to the sound.
|
|
11
|
-
*
|
|
12
|
-
* What makes "the sound began" observable is that between turns the decoded
|
|
13
|
-
* track is exact digital zero — Opus decodes silence to silence — so onset is
|
|
14
|
-
* the first sample off zero, not a speech detector's guess at a threshold. That
|
|
15
|
-
* matters: cue `t: 0` is the first sample the TTS produced, lead-in included,
|
|
16
|
-
* and a detector keyed to *speech* would anchor 20-50 ms into the lead-in.
|
|
17
|
-
*
|
|
18
|
-
* What this probe hears is the sound entering the page's audio graph, not
|
|
19
|
-
* leaving the speaker. For a wired speaker the difference is about what the
|
|
20
|
-
* compositor and display add to the picture, and the two cancel. A Bluetooth
|
|
21
|
-
* headset adds 150-250 ms that nothing on the picture side matches, so the
|
|
22
|
-
* probe also reports the device latency the browser admits to, and the
|
|
23
|
-
* client delays the mouth by the excess (`AvatarClient.ts`).
|
|
24
|
-
*/
|
|
25
|
-
export interface PlayoutProbe {
|
|
26
|
-
/**
|
|
27
|
-
* Where the bot's current sound began, on the caller's `now()` clock.
|
|
28
|
-
* `null`: the track is silent right now. `undefined`: this probe cannot say —
|
|
29
|
-
* the track has been sounding for longer than it can look back, or the
|
|
30
|
-
* audio graph is not running.
|
|
31
|
-
*/
|
|
32
|
-
onset(): number | null | undefined;
|
|
33
|
-
/** The output device's latency as this context reports it, in ms; 0 when it
|
|
34
|
-
* will not say. The probe shares the device the call's audio plays on. */
|
|
35
|
-
outputLatencyMs?(): number;
|
|
36
|
-
/** Ask a suspended graph to run. A browser that needs a gesture for it
|
|
37
|
-
* ignores the request outside one, so this is safe to call at any time. */
|
|
38
|
-
resume?(): void;
|
|
39
|
-
dispose(): void;
|
|
40
|
-
}
|
|
41
|
-
export declare function createPlayoutProbe(track: MediaStreamTrack, now: () => number): PlayoutProbe | null;
|
|
42
|
-
//# sourceMappingURL=playout.d.ts.map
|
package/dist/playout.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"playout.d.ts","sourceRoot":"","sources":["../client/playout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,MAAM,WAAW,YAAY;IAC3B;;;;;OAKG;IACH,KAAK,IAAI,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC;8EAC0E;IAC1E,eAAe,CAAC,IAAI,MAAM,CAAC;IAC3B;+EAC2E;IAC3E,MAAM,CAAC,IAAI,IAAI,CAAC;IAChB,OAAO,IAAI,IAAI,CAAC;CACjB;AASD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,MAAM,GAAG,YAAY,GAAG,IAAI,CA6ClG"}
|
package/dist/playout.js
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* When the bot's audio actually begins, heard on the track the browser plays.
|
|
3
|
-
*
|
|
4
|
-
* `BotStartedSpeaking` and the audio reach the browser by different roads —
|
|
5
|
-
* the event on the data channel, the sound over RTP and through a jitter
|
|
6
|
-
* buffer — so the event is a statement about *which* audio is starting and
|
|
7
|
-
* not about when anyone hears it. Measured on two stacks, the event arrived
|
|
8
|
-
* 57 ms after the first sample on one and 160 ms before it on the other: the
|
|
9
|
-
* mouth lagged the voice on the first and ran ahead of it on the second, and
|
|
10
|
-
* no constant corrects both. So the turn clock is anchored to the sound.
|
|
11
|
-
*
|
|
12
|
-
* What makes "the sound began" observable is that between turns the decoded
|
|
13
|
-
* track is exact digital zero — Opus decodes silence to silence — so onset is
|
|
14
|
-
* the first sample off zero, not a speech detector's guess at a threshold. That
|
|
15
|
-
* matters: cue `t: 0` is the first sample the TTS produced, lead-in included,
|
|
16
|
-
* and a detector keyed to *speech* would anchor 20-50 ms into the lead-in.
|
|
17
|
-
*
|
|
18
|
-
* What this probe hears is the sound entering the page's audio graph, not
|
|
19
|
-
* leaving the speaker. For a wired speaker the difference is about what the
|
|
20
|
-
* compositor and display add to the picture, and the two cancel. A Bluetooth
|
|
21
|
-
* headset adds 150-250 ms that nothing on the picture side matches, so the
|
|
22
|
-
* probe also reports the device latency the browser admits to, and the
|
|
23
|
-
* client delays the mouth by the excess (`AvatarClient.ts`).
|
|
24
|
-
*/
|
|
25
|
-
/** 8192 samples is 170 ms at 48 kHz: past the 57 ms the sound has been seen to
|
|
26
|
-
* lead the event by, with room for a slower network. */
|
|
27
|
-
const WINDOW = 8192;
|
|
28
|
-
/** -80 dBFS. The gaps between turns are exact zero; this only keeps a
|
|
29
|
-
* denormal from reading as speech. */
|
|
30
|
-
const FLOOR = 1e-4;
|
|
31
|
-
export function createPlayoutProbe(track, now) {
|
|
32
|
-
const Ctx = globalThis.AudioContext;
|
|
33
|
-
if (!Ctx)
|
|
34
|
-
return null;
|
|
35
|
-
let ctx;
|
|
36
|
-
let source;
|
|
37
|
-
let analyser;
|
|
38
|
-
try {
|
|
39
|
-
ctx = new Ctx();
|
|
40
|
-
source = ctx.createMediaStreamSource(new MediaStream([track]));
|
|
41
|
-
analyser = ctx.createAnalyser();
|
|
42
|
-
analyser.fftSize = WINDOW;
|
|
43
|
-
source.connect(analyser);
|
|
44
|
-
}
|
|
45
|
-
catch {
|
|
46
|
-
return null;
|
|
47
|
-
}
|
|
48
|
-
// A context made after the user's connect click is allowed to run; one that
|
|
49
|
-
// is not simply answers `undefined`, and the event anchors the turn.
|
|
50
|
-
ctx.resume().catch(() => { });
|
|
51
|
-
const buf = new Float32Array(WINDOW);
|
|
52
|
-
return {
|
|
53
|
-
onset() {
|
|
54
|
-
if (ctx.state !== "running")
|
|
55
|
-
return undefined;
|
|
56
|
-
analyser.getFloatTimeDomainData(buf);
|
|
57
|
-
const t = now();
|
|
58
|
-
let first = -1;
|
|
59
|
-
for (let i = 0; i < buf.length; i++) {
|
|
60
|
-
if (Math.abs(buf[i]) > FLOOR) {
|
|
61
|
-
first = i;
|
|
62
|
-
break;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
if (first < 0)
|
|
66
|
-
return null;
|
|
67
|
-
if (first === 0)
|
|
68
|
-
return undefined;
|
|
69
|
-
return t - ((buf.length - first) / ctx.sampleRate) * 1000;
|
|
70
|
-
},
|
|
71
|
-
outputLatencyMs() {
|
|
72
|
-
const s = ctx.outputLatency;
|
|
73
|
-
return typeof s === "number" && Number.isFinite(s) ? s * 1000 : 0;
|
|
74
|
-
},
|
|
75
|
-
resume() {
|
|
76
|
-
if (ctx.state === "suspended")
|
|
77
|
-
ctx.resume().catch(() => { });
|
|
78
|
-
},
|
|
79
|
-
dispose() {
|
|
80
|
-
source.disconnect();
|
|
81
|
-
ctx.close().catch(() => { });
|
|
82
|
-
},
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
//# sourceMappingURL=playout.js.map
|
package/dist/playout.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"playout.js","sourceRoot":"","sources":["../client/playout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAmBH;wDACwD;AACxD,MAAM,MAAM,GAAG,IAAI,CAAC;AACpB;sCACsC;AACtC,MAAM,KAAK,GAAG,IAAI,CAAC;AAEnB,MAAM,UAAU,kBAAkB,CAAC,KAAuB,EAAE,GAAiB;IAC3E,MAAM,GAAG,GAAG,UAAU,CAAC,YAAY,CAAC;IACpC,IAAI,CAAC,GAAG;QAAE,OAAO,IAAI,CAAC;IACtB,IAAI,GAAiB,CAAC;IACtB,IAAI,MAAkC,CAAC;IACvC,IAAI,QAAsB,CAAC;IAC3B,IAAI,CAAC;QACH,GAAG,G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AC5D,CAAC;QACD,eAAe;YACb,MAAM,CAAC,GAAG,GAAG,CAAC,aAAa,CAAC;YAC5B,OAAO,OAAO,CAAC,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QACpE,CAAC;QACD,MAAM;YACJ,IAAI,GAAG,CAAC,KAAK,KAAK,WAAW;gBAAE,GAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;QAC9D,CAAC;QACD,OAAO;YACL,MAAM,CAAC,UAAU,EAAE,CAAC;YACpB,GAAG,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;QAC9B,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/react.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../client/react.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/react.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react.js","sourceRoot":"","sources":["../client/react.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,MAAM,EAAoB,MAAM,aAAa,CAAC"}
|
package/dist/supports.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `supports` for every avatar this package ships.
|
|
3
|
-
*
|
|
4
|
-
* It is one constant and one file because they are one renderer: every avatar
|
|
5
|
-
* mounts the same mixer with the same clip library, so a second list would be
|
|
6
|
-
* the same list with a second chance to be wrong. It is not in
|
|
7
|
-
* `createAvatar.ts`, where the type is documented, because a value is imported
|
|
8
|
-
* for real — reading it from there would pull `peep`'s drawing into every
|
|
9
|
-
* consumer's bundle.
|
|
10
|
-
*
|
|
11
|
-
* The two required ids first, then this renderer's own catalogue. `ACTION_IDS`
|
|
12
|
-
* already carries `RESPONSE_INTERRUPTED` as this renderer's shape for it, so
|
|
13
|
-
* the join dedupes rather than concatenating, and `ACKNOWLEDGE` is the one name
|
|
14
|
-
* here with no clip behind it because `action()` resolves it on the floor
|
|
15
|
-
* (docs/internal-mixer.md § Actions).
|
|
16
|
-
*/
|
|
17
|
-
import type { AvatarSupport } from "./createAvatar.js";
|
|
18
|
-
export declare const supports: AvatarSupport;
|
|
19
|
-
//# sourceMappingURL=supports.d.ts.map
|
package/dist/supports.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"supports.d.ts","sourceRoot":"","sources":["../client/supports.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGvD,eAAO,MAAM,QAAQ,EAAE,aAKrB,CAAC"}
|
package/dist/supports.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `supports` for every avatar this package ships.
|
|
3
|
-
*
|
|
4
|
-
* It is one constant and one file because they are one renderer: every avatar
|
|
5
|
-
* mounts the same mixer with the same clip library, so a second list would be
|
|
6
|
-
* the same list with a second chance to be wrong. It is not in
|
|
7
|
-
* `createAvatar.ts`, where the type is documented, because a value is imported
|
|
8
|
-
* for real — reading it from there would pull `peep`'s drawing into every
|
|
9
|
-
* consumer's bundle.
|
|
10
|
-
*
|
|
11
|
-
* The two required ids first, then this renderer's own catalogue. `ACTION_IDS`
|
|
12
|
-
* already carries `RESPONSE_INTERRUPTED` as this renderer's shape for it, so
|
|
13
|
-
* the join dedupes rather than concatenating, and `ACKNOWLEDGE` is the one name
|
|
14
|
-
* here with no clip behind it because `action()` resolves it on the floor
|
|
15
|
-
* (docs/internal-mixer.md § Actions).
|
|
16
|
-
*/
|
|
17
|
-
import { ACTION_IDS } from "../src/avatar.js";
|
|
18
|
-
import { CORE_ACTION_IDS } from "./types.js";
|
|
19
|
-
export const supports = Object.freeze({
|
|
20
|
-
actions: Object.freeze([
|
|
21
|
-
...CORE_ACTION_IDS,
|
|
22
|
-
...ACTION_IDS.filter((id) => !CORE_ACTION_IDS.includes(id)),
|
|
23
|
-
]),
|
|
24
|
-
});
|
|
25
|
-
//# sourceMappingURL=supports.js.map
|
package/dist/supports.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"supports.js","sourceRoot":"","sources":["../client/supports.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,CAAC,MAAM,QAAQ,GAAkB,MAAM,CAAC,MAAM,CAAC;IACnD,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;QACrB,GAAG,eAAe;QAClB,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAE,eAAqC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;KACnF,CAAC;CACH,CAAC,CAAC"}
|
package/dist/three/assets.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const ASSETS: Readonly<{
|
|
2
|
-
tara: string;
|
|
3
|
-
tushar: string;
|
|
4
|
-
tanya: string;
|
|
5
|
-
tess: string;
|
|
6
|
-
tanvi: string;
|
|
7
|
-
}>;
|
|
8
|
-
/** Every compiled character, in build order. */
|
|
9
|
-
export type CharacterName = keyof typeof ASSETS;
|
|
10
|
-
//# sourceMappingURL=assets.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../client/three/assets.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,MAAM;;;;;;EAMjB,CAAC;AAEH,gDAAgD;AAChD,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,MAAM,CAAC"}
|
package/dist/three/assets.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Every compiled character as one table — for a page that enumerates them.
|
|
3
|
-
*
|
|
4
|
-
* Each URL lives in its own module (`tara-asset.ts` and its siblings) and this
|
|
5
|
-
* file only gathers them, because a bundler emits assets per module: anything
|
|
6
|
-
* importing *this* ships every GLB, which is right for a rig instrument that
|
|
7
|
-
* switches between characters and wrong for a consumer who mounted one.
|
|
8
|
-
* So the character modules never import this — they import their own — and the
|
|
9
|
-
* only reader is `/internal/three`, a separate entry point that ships nothing.
|
|
10
|
-
*/
|
|
11
|
-
import { TANYA_GLB } from "./tanya-asset.js";
|
|
12
|
-
import { TANVI_GLB } from "./tanvi-asset.js";
|
|
13
|
-
import { TESS_GLB } from "./tess-asset.js";
|
|
14
|
-
import { TARA_GLB } from "./tara-asset.js";
|
|
15
|
-
import { TUSHAR_GLB } from "./tushar-asset.js";
|
|
16
|
-
export const ASSETS = Object.freeze({
|
|
17
|
-
tara: TARA_GLB,
|
|
18
|
-
tushar: TUSHAR_GLB,
|
|
19
|
-
tanya: TANYA_GLB,
|
|
20
|
-
tess: TESS_GLB,
|
|
21
|
-
tanvi: TANVI_GLB,
|
|
22
|
-
});
|
|
23
|
-
//# sourceMappingURL=assets.js.map
|
package/dist/three/assets.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assets.js","sourceRoot":"","sources":["../../client/three/assets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IAClC,IAAI,EAAE,QAAQ;IACd,MAAM,EAAE,UAAU;IAClB,KAAK,EAAE,SAAS;IAChB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,SAAS;CACjB,CAAC,CAAC"}
|
package/dist/three/budgets.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/** Measurable limits for one 3-D avatar at its shipping surface. */
|
|
2
|
-
export declare const SHIPPING_SURFACE: Readonly<{
|
|
3
|
-
cssWidth: 400;
|
|
4
|
-
cssHeight: 300;
|
|
5
|
-
maxDevicePixelRatio: 2;
|
|
6
|
-
}>;
|
|
7
|
-
/** Keep the physical drawing buffer inside the shipping ceiling at any mount size. */
|
|
8
|
-
export declare function pixelRatioFor(width: number, height: number, devicePixelRatio: number): number;
|
|
9
|
-
/** Crossing one of these is a failed asset/runtime review, not a suggestion. */
|
|
10
|
-
export declare const HARD_BUDGET: Readonly<{
|
|
11
|
-
assetBytes: number;
|
|
12
|
-
triangles: 60000;
|
|
13
|
-
drawCalls: 30;
|
|
14
|
-
bones: 40;
|
|
15
|
-
morphTargets: 45;
|
|
16
|
-
}>;
|
|
17
|
-
//# sourceMappingURL=budgets.d.ts.map
|