@voqalize/avatar 0.4.2 → 0.4.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/LICENSE-APACHE-2.0 +201 -0
- package/README.md +11 -98
- package/assets/README.md +28 -17
- 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/internal.ts +4 -0
- package/client/supports.ts +6 -7
- package/client/three/assets.ts +2 -0
- package/client/three/budgets.ts +1 -1
- package/client/three/{tara-rig.ts → character-rig.ts} +673 -545
- package/client/three/createCharacter.ts +109 -0
- package/client/three/holds.ts +1 -1
- package/client/three/internal.ts +4 -3
- package/client/three/motion-limits.json +5 -1
- package/client/three/tanvi-asset.ts +6 -0
- package/client/three/tanvi.ts +30 -0
- package/client/three/tanya.ts +18 -58
- package/client/three/tara.ts +19 -60
- package/client/three/tess.ts +17 -59
- package/client/three/tushar.ts +18 -55
- package/dist/internal.d.ts +1 -1
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +5 -1
- package/dist/internal.js.map +1 -1
- package/dist/supports.d.ts +6 -7
- package/dist/supports.d.ts.map +1 -1
- package/dist/supports.js +6 -7
- package/dist/supports.js.map +1 -1
- package/dist/three/assets.d.ts +1 -0
- package/dist/three/assets.d.ts.map +1 -1
- package/dist/three/assets.js +2 -0
- package/dist/three/assets.js.map +1 -1
- package/dist/three/budgets.d.ts +1 -1
- package/dist/three/budgets.js +1 -1
- package/dist/three/character-rig.d.ts +366 -0
- package/dist/three/character-rig.d.ts.map +1 -0
- package/dist/three/{tara-rig.js → character-rig.js} +629 -523
- package/dist/three/character-rig.js.map +1 -0
- package/dist/three/createCharacter.d.ts +60 -0
- package/dist/three/createCharacter.d.ts.map +1 -0
- package/dist/three/createCharacter.js +84 -0
- package/dist/three/createCharacter.js.map +1 -0
- package/dist/three/holds.js +1 -1
- package/dist/three/holds.js.map +1 -1
- package/dist/three/internal.d.ts +3 -3
- package/dist/three/internal.d.ts.map +1 -1
- package/dist/three/internal.js +2 -2
- package/dist/three/internal.js.map +1 -1
- package/dist/three/motion-limits.json +5 -1
- package/dist/three/tanvi-asset.d.ts +7 -0
- package/dist/three/tanvi-asset.d.ts.map +1 -0
- package/dist/three/tanvi-asset.js +7 -0
- package/dist/three/tanvi-asset.js.map +1 -0
- package/dist/three/tanvi.d.ts +24 -0
- package/dist/three/tanvi.d.ts.map +1 -0
- package/dist/three/tanvi.js +24 -0
- package/dist/three/tanvi.js.map +1 -0
- package/dist/three/tanya.d.ts +16 -28
- package/dist/three/tanya.d.ts.map +1 -1
- package/dist/three/tanya.js +15 -43
- package/dist/three/tanya.js.map +1 -1
- package/dist/three/tara.d.ts +17 -22
- package/dist/three/tara.d.ts.map +1 -1
- package/dist/three/tara.js +16 -45
- package/dist/three/tara.js.map +1 -1
- package/dist/three/tess.d.ts +15 -29
- package/dist/three/tess.d.ts.map +1 -1
- package/dist/three/tess.js +14 -44
- package/dist/three/tess.js.map +1 -1
- package/dist/three/tushar.d.ts +16 -25
- package/dist/three/tushar.d.ts.map +1 -1
- package/dist/three/tushar.js +15 -40
- package/dist/three/tushar.js.map +1 -1
- package/package.json +7 -50
- package/src/avatar.d.ts +2 -0
- package/src/avatar.js +87 -216
- package/src/gaze.js +1 -3
- package/src/idle.js +10 -2
- package/src/prosody.js +7 -3
- package/src/speech-timing.js +9 -0
- package/src/visemes.js +107 -13
- package/client/arjun.ts +0 -26
- package/client/createCanvasAvatar.ts +0 -72
- package/client/interviewer-female.ts +0 -4
- package/client/interviewer-male.ts +0 -4
- package/client/ishita.ts +0 -26
- package/client/kabir.ts +0 -26
- package/client/meera.ts +0 -26
- package/client/naina.ts +0 -26
- package/client/professional-female-a.ts +0 -4
- package/client/professional-female-b.ts +0 -4
- package/client/professional-male-a.ts +0 -4
- package/client/professional-male-b.ts +0 -4
- package/client/vikram.ts +0 -26
- package/dist/arjun.d.ts +0 -7
- package/dist/arjun.d.ts.map +0 -1
- package/dist/arjun.js +0 -20
- package/dist/arjun.js.map +0 -1
- package/dist/createCanvasAvatar.d.ts +0 -22
- package/dist/createCanvasAvatar.d.ts.map +0 -1
- package/dist/createCanvasAvatar.js +0 -47
- package/dist/createCanvasAvatar.js.map +0 -1
- package/dist/interviewer-female.d.ts +0 -4
- package/dist/interviewer-female.d.ts.map +0 -1
- package/dist/interviewer-female.js +0 -3
- package/dist/interviewer-female.js.map +0 -1
- package/dist/interviewer-male.d.ts +0 -4
- package/dist/interviewer-male.d.ts.map +0 -1
- package/dist/interviewer-male.js +0 -3
- package/dist/interviewer-male.js.map +0 -1
- package/dist/ishita.d.ts +0 -7
- package/dist/ishita.d.ts.map +0 -1
- package/dist/ishita.js +0 -20
- package/dist/ishita.js.map +0 -1
- package/dist/kabir.d.ts +0 -7
- package/dist/kabir.d.ts.map +0 -1
- package/dist/kabir.js +0 -20
- package/dist/kabir.js.map +0 -1
- package/dist/meera.d.ts +0 -7
- package/dist/meera.d.ts.map +0 -1
- package/dist/meera.js +0 -20
- package/dist/meera.js.map +0 -1
- package/dist/naina.d.ts +0 -7
- package/dist/naina.d.ts.map +0 -1
- package/dist/naina.js +0 -20
- package/dist/naina.js.map +0 -1
- package/dist/professional-female-a.d.ts +0 -4
- package/dist/professional-female-a.d.ts.map +0 -1
- package/dist/professional-female-a.js +0 -3
- package/dist/professional-female-a.js.map +0 -1
- package/dist/professional-female-b.d.ts +0 -4
- package/dist/professional-female-b.d.ts.map +0 -1
- package/dist/professional-female-b.js +0 -3
- package/dist/professional-female-b.js.map +0 -1
- package/dist/professional-male-a.d.ts +0 -4
- package/dist/professional-male-a.d.ts.map +0 -1
- package/dist/professional-male-a.js +0 -3
- package/dist/professional-male-a.js.map +0 -1
- package/dist/professional-male-b.d.ts +0 -4
- package/dist/professional-male-b.d.ts.map +0 -1
- package/dist/professional-male-b.js +0 -3
- package/dist/professional-male-b.js.map +0 -1
- package/dist/three/tara-rig.d.ts +0 -423
- package/dist/three/tara-rig.d.ts.map +0 -1
- package/dist/three/tara-rig.js.map +0 -1
- package/dist/vikram.d.ts +0 -7
- package/dist/vikram.d.ts.map +0 -1
- package/dist/vikram.js +0 -20
- package/dist/vikram.js.map +0 -1
- package/src/canvas/author/parts/eye.mjs +0 -722
- package/src/canvas/author/parts/hand.mjs +0 -1156
- package/src/canvas/author/parts/mouth.mjs +0 -741
- package/src/canvas/author/parts/nose.mjs +0 -100
- package/src/canvas/author/parts/skin-detail.mjs +0 -67
- package/src/canvas/author/path.mjs +0 -283
- package/src/canvas/author/rig.mjs +0 -405
- package/src/canvas/avatars/round/face.d.mts +0 -3
- package/src/canvas/avatars/round/face.mjs +0 -1307
- package/src/canvas/create-rig.d.ts +0 -15
- package/src/canvas/create-rig.js +0 -100
- package/src/canvas/data/img/professional-female-a-hair-back.webp +0 -0
- package/src/canvas/data/img/professional-female-a-hair-front.webp +0 -0
- package/src/canvas/data/img/professional-female-a-top-body.webp +0 -0
- package/src/canvas/data/img/professional-female-b-hair-back.webp +0 -0
- package/src/canvas/data/img/professional-female-b-hair-front.webp +0 -0
- package/src/canvas/data/img/professional-female-b-top-body.webp +0 -0
- package/src/canvas/data/img/professional-male-a-hair-back.webp +0 -0
- package/src/canvas/data/img/professional-male-a-hair-front.webp +0 -0
- package/src/canvas/data/img/professional-male-a-top-body.webp +0 -0
- package/src/canvas/data/img/professional-male-b-hair-back.webp +0 -0
- package/src/canvas/data/img/professional-male-b-hair-front.webp +0 -0
- package/src/canvas/data/img/professional-male-b-top-body.webp +0 -0
- package/src/canvas/data/img/round-m3-hair-back.webp +0 -0
- package/src/canvas/data/img/round-m3-hair-front.webp +0 -0
- package/src/canvas/data/img/round-m3-top-body.webp +0 -0
- package/src/canvas/data/img/round-w1-hair-back.webp +0 -0
- package/src/canvas/data/img/round-w1-hair-front.webp +0 -0
- package/src/canvas/data/img/round-w1-top-body.webp +0 -0
- package/src/canvas/data/interviewer-female.rig.json +0 -1
- package/src/canvas/data/interviewer-male.rig.json +0 -1
- package/src/canvas/data/professional-female-a.rig.json +0 -1
- package/src/canvas/data/professional-female-b.rig.json +0 -1
- package/src/canvas/data/professional-male-a.rig.json +0 -1
- package/src/canvas/data/professional-male-b.rig.json +0 -1
- package/src/canvas/src/live.js +0 -508
- package/src/canvas/src/render2d.js +0 -218
- package/src/canvas/src/rig.js +0 -297
- package/src/canvas/src/vocab.js +0 -96
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -7,9 +7,7 @@ call has started and stopped.
|
|
|
7
7
|
|
|
8
8
|
No video track, no per-minute avatar vendor, no second media path. SVG faces
|
|
9
9
|
and 2.5-D characters ship with it, one per entry point, so you pay for the one
|
|
10
|
-
you import, and you can author your own.
|
|
11
|
-
frozen: they still work, they get no further work,
|
|
12
|
-
and they come out in 0.5.0 (below).
|
|
10
|
+
you import, and you can author your own.
|
|
13
11
|
|
|
14
12
|
This is the browser half. The pipeline half is
|
|
15
13
|
[`voqalize-avatar`](https://pypi.org/project/voqalize-avatar/) on PyPI; they are
|
|
@@ -17,7 +15,7 @@ two ends of one wire format and release independently, kept compatible by the
|
|
|
17
15
|
wire contract rather than a shared version number
|
|
18
16
|
([RELEASING.md § Compatibility](https://github.com/voqalize/avatar/blob/main/RELEASING.md#compatibility)).
|
|
19
17
|
|
|
20
|
-
**Licence: MIT for the code and the SVG
|
|
18
|
+
**Licence: MIT for the code and the SVG avatars, CC-BY 4.0 for the
|
|
21
19
|
2.5-D character binaries** (`assets/*.glb` — see `assets/README.md` for the
|
|
22
20
|
credit line). Which applies is decided by the kind of avatar, so adding a
|
|
23
21
|
character never moves the line. The manifest declares the pair as
|
|
@@ -66,12 +64,6 @@ That is the integration, both halves of it. Neither takes an argument.
|
|
|
66
64
|
embodiment of your `PipecatClient` and reacts to it, so there is no avatar to
|
|
67
65
|
drive and no state to read back.
|
|
68
66
|
|
|
69
|
-
**Works the same with or without `@pipecat-ai/voice-ui-kit`.** All `createAvatar`
|
|
70
|
-
needs is the `PipecatClient` instance — however you built your call UI, if you
|
|
71
|
-
have that instance you can mount an avatar next to it. voice-ui-kit's
|
|
72
|
-
components (buttons, visualizers, transport controls) are chrome around the
|
|
73
|
-
same client; they neither wrap nor gate it.
|
|
74
|
-
|
|
75
67
|
## What you get for free
|
|
76
68
|
|
|
77
69
|
Most of the avatar works on any pipecat application without customization — not
|
|
@@ -87,9 +79,9 @@ always the renderer's.
|
|
|
87
79
|
What is left over is small, specific, and each item is a case the library
|
|
88
80
|
refuses to guess at — a deliberate nod or greeting, a tool whose calls never
|
|
89
81
|
enter your pipeline, a pose richer than the core states, a backend that is not
|
|
90
|
-
ours. [The
|
|
91
|
-
|
|
92
|
-
canonical reference for all of it.
|
|
82
|
+
ours. [The wire
|
|
83
|
+
contract](https://github.com/voqalize/avatar/blob/main/docs/contract-wire.md) is
|
|
84
|
+
the canonical reference for all of it.
|
|
93
85
|
|
|
94
86
|
## The wire protocol
|
|
95
87
|
|
|
@@ -136,52 +128,6 @@ createAvatar({ mount, client, face: myna });
|
|
|
136
128
|
A name would need a table, and a table is a dynamic index no bundler can shake —
|
|
137
129
|
every drawing in every consumer's bundle to render one.
|
|
138
130
|
|
|
139
|
-
## Professional avatars — frozen, removed in 0.5.0
|
|
140
|
-
|
|
141
|
-
**Do not start here.** These are a Canvas2D renderer that ended up in the
|
|
142
|
-
wrong place: more expensive to author than an SVG drawing and less expressive
|
|
143
|
-
than the 2.5-D characters, which is the whole range it was meant to sit between.
|
|
144
|
-
They still work and they are still tested, but they get no further work, and
|
|
145
|
-
their entry points come out in 0.5.0. Pick an SVG face or a 2.5-D character
|
|
146
|
-
instead; both are below.
|
|
147
|
-
|
|
148
|
-
Complete, code-authored avatars, each its own `createAvatar` module:
|
|
149
|
-
|
|
150
|
-
```js
|
|
151
|
-
import { createAvatar } from '@voqalize/avatar/avatars/arjun';
|
|
152
|
-
// or: @voqalize/avatar/avatars/meera
|
|
153
|
-
// @voqalize/avatar/avatars/vikram
|
|
154
|
-
// @voqalize/avatar/avatars/ishita
|
|
155
|
-
// @voqalize/avatar/avatars/kabir
|
|
156
|
-
// @voqalize/avatar/avatars/naina
|
|
157
|
-
|
|
158
|
-
const avatar = createAvatar({ mount, client: pipecatClient });
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
`arjun`/`meera` are the original interviewer pair; `vikram`/`ishita` and
|
|
162
|
-
`kabir`/`naina` are further wardrobe/hair directions on the same rig. The
|
|
163
|
-
entry points `interviewer-male`, `interviewer-female`, `professional-male-a`,
|
|
164
|
-
`professional-female-a`, `professional-male-b` and `professional-female-b`
|
|
165
|
-
still work — they are `@deprecated` aliases for the names above, kept so
|
|
166
|
-
existing imports do not break, and should not be used in new code.
|
|
167
|
-
|
|
168
|
-
They depict Indian professionals in their late twenties, without caricature
|
|
169
|
-
or regional costume cues. They are calibrated at call-tile size and preserve
|
|
170
|
-
every expression target, continuous visemes, gaze, blink, head motion, and
|
|
171
|
-
the frame-edge gesture hand. Each module is a complete identity, not a face
|
|
172
|
-
value: import one instead of the default module and do not pass a `face`
|
|
173
|
-
option.
|
|
174
|
-
|
|
175
|
-
Their faces use low-contrast, landmark-driven nose planes rather than an
|
|
176
|
-
outlined nose glyph. A few identity-specific freckles or a small mole add depth
|
|
177
|
-
only in low-motion upper-cheek areas; none are used as demographic cues.
|
|
178
|
-
|
|
179
|
-
They use the same public contract and the same Pipecat lifecycle/viseme driver
|
|
180
|
-
as the SVG avatars. Their private renderer is Canvas2D; its rig data and bitmap
|
|
181
|
-
wardrobe assets are implementation details and no Canvas or pose API is added
|
|
182
|
-
to the package surface. Like the SVG faces they are code, MIT, and ask for no
|
|
183
|
-
attribution.
|
|
184
|
-
|
|
185
131
|
## The 2.5-D characters
|
|
186
132
|
|
|
187
133
|
The characters ship as compiled binaries, each its own `createAvatar` module:
|
|
@@ -191,6 +137,7 @@ import { createAvatar } from '@voqalize/avatar/avatars/tara';
|
|
|
191
137
|
// or: @voqalize/avatar/avatars/tushar
|
|
192
138
|
// @voqalize/avatar/avatars/tanya
|
|
193
139
|
// @voqalize/avatar/avatars/tess
|
|
140
|
+
// @voqalize/avatar/avatars/tanvi
|
|
194
141
|
|
|
195
142
|
const avatar = createAvatar({ mount, client: pipecatClient });
|
|
196
143
|
```
|
|
@@ -198,13 +145,15 @@ const avatar = createAvatar({ mount, client: pipecatClient });
|
|
|
198
145
|
A photograph of a face projected onto shallow geometry, with the parts that have
|
|
199
146
|
to move — eyes, teeth, the lip line — built as geometry rather than painted.
|
|
200
147
|
Three.js is an *optional* peer (`three`, `>=0.180 <0.187`) behind those
|
|
201
|
-
entry points only, so an SVG
|
|
148
|
+
entry points only, so an SVG consumer never downloads it, and the `.glb`
|
|
202
149
|
is fetched when the avatar mounts.
|
|
203
150
|
|
|
204
151
|
Nothing above the renderer changes: the same wire, the same states, the same
|
|
205
152
|
cue-synced mouth, and a server that has never heard of these characters drives one
|
|
206
|
-
correctly.
|
|
207
|
-
|
|
153
|
+
correctly. How far a character's head may turn is not an option either: it is a
|
|
154
|
+
limit read off that face by eye, carried per character in
|
|
155
|
+
`client/three/motion-limits.json`, which `HEAD_DEG` in
|
|
156
|
+
`client/three/character-rig.ts` turns into a pose channel's degrees.
|
|
208
157
|
|
|
209
158
|
**The binaries are artwork under CC-BY 4.0**, separately from the MIT code
|
|
210
159
|
around them; the credit line is in `assets/README.md`. Mounting, sizing, the asset
|
|
@@ -236,39 +185,3 @@ Omitting it is conforming.
|
|
|
236
185
|
**There is deliberately no renderer interface.** The pose channels our SVG mixer
|
|
237
186
|
uses to talk to our faces are internal, and a second public contract stays
|
|
238
187
|
premature until a second renderer says what it needs.
|
|
239
|
-
|
|
240
|
-
## What is in this tarball
|
|
241
|
-
|
|
242
|
-
`dist/` is the compiled client — `AvatarClient`, the avatar entry points and the
|
|
243
|
-
React binding. `src/` is the widget itself: the mixer, the SVG rig and drawings,
|
|
244
|
-
plus the private Canvas2D interviewer rigs and their assets, as dependency-free
|
|
245
|
-
ES modules with no build step, imported by `dist/` through ordinary relative
|
|
246
|
-
paths. `client/` is the TypeScript those `dist/` files were compiled from, so
|
|
247
|
-
the source maps resolve. `assets/` is the compiled characters and their
|
|
248
|
-
licence note — the only non-JavaScript thing here, fetched at runtime by URL.
|
|
249
|
-
|
|
250
|
-
The contract documents do not ship here. They live in the repository, which is
|
|
251
|
-
where they are kept current:
|
|
252
|
-
[github.com/voqalize/avatar](https://github.com/voqalize/avatar).
|
|
253
|
-
|
|
254
|
-
## License
|
|
255
|
-
|
|
256
|
-
**MIT for the code, CC-BY 4.0 for the artwork**, and Voqalize holds the
|
|
257
|
-
copyright on all of it. The licence follows the kind of avatar, not the roster:
|
|
258
|
-
|
|
259
|
-
- **SVG faces and Canvas2D identities are code** — MIT, no attribution. Each is
|
|
260
|
-
drawn by the function that ships it; a Canvas2D identity's rig data and
|
|
261
|
-
wardrobe bitmaps are implementation details of that function, not artwork you
|
|
262
|
-
are licensing.
|
|
263
|
-
- **2.5-D characters are artwork** — `assets/*.glb`, and nothing else in the
|
|
264
|
-
tarball, under CC-BY 4.0. `assets/README.md` carries the credit line.
|
|
265
|
-
|
|
266
|
-
MIT is usable anywhere, including in closed-source products. The manifest
|
|
267
|
-
declares the package as `MIT AND CC-BY-4.0`, which is what a licence scanner
|
|
268
|
-
reports whether or not you import a 2.5-D character.
|
|
269
|
-
|
|
270
|
-
The drawing idiom `peep` is authored in is
|
|
271
|
-
[Open Peeps](https://www.openpeeps.com/) (CC0) — no artwork is copied. The
|
|
272
|
-
`avatarsync` aligner that produces the mouth shapes is a fork of
|
|
273
|
-
[Rhubarb Lip Sync](https://github.com/DanielSWolf/rhubarb-lip-sync) (MIT) and
|
|
274
|
-
ships in the Python package, not this one.
|
package/assets/README.md
CHANGED
|
@@ -1,23 +1,9 @@
|
|
|
1
1
|
# The character binaries
|
|
2
2
|
|
|
3
|
-
The 2.5-D characters, one compiled file each:
|
|
3
|
+
The 2.5-D characters, one compiled file each: `tara.glb`, `tushar.glb`,
|
|
4
|
+
`tanya.glb`, `tess.glb`, `tanvi.glb`.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|---|---|---|
|
|
7
|
-
| `tara.glb` | tara | the first; shallow geometry under a projected portrait |
|
|
8
|
-
| `tushar.glb` | tushar | the second, her scripts with his landmarks |
|
|
9
|
-
| `tanya.glb` | tanya | the third, built from supplied reference images |
|
|
10
|
-
| `tess.glb` | tess | the fourth, from a single supplied reference sheet |
|
|
11
|
-
|
|
12
|
-
They are loaded for you. `@voqalize/avatar/avatars/tara` resolves the file beside
|
|
13
|
-
itself and hands it to a loader; you never name a path, and the only reason to
|
|
14
|
-
know these are here is the licence below. `three` is an *optional* peer of this
|
|
15
|
-
package, so importing a drawing instead of a character downloads none of this.
|
|
16
|
-
|
|
17
|
-
Each file carries geometry, one morph target per pose channel, and its texture
|
|
18
|
-
atlases as WebP — which is most of the bytes, because the atlases are
|
|
19
|
-
photographs. **They are build outputs. Do not hand-edit one**; there is nothing
|
|
20
|
-
in this directory to regenerate it from, and the next release overwrites it.
|
|
6
|
+
**They are build outputs. Do not hand-edit one.**
|
|
21
7
|
|
|
22
8
|
## Licence: CC-BY 4.0
|
|
23
9
|
|
|
@@ -37,6 +23,31 @@ The licence is also written inside each file, in the glTF copyright field. A
|
|
|
37
23
|
binary gets copied out of a dependency tree and passed around; a string in the
|
|
38
24
|
file is the only way terms travel with it.
|
|
39
25
|
|
|
26
|
+
## What in these files is not ours
|
|
27
|
+
|
|
28
|
+
The difference is the mesh. Every character here carries one *canonical*
|
|
29
|
+
topology that other people published, fitted to that character's face — the
|
|
30
|
+
geometry is no longer authored per face, which is what makes a landmark table
|
|
31
|
+
the only thing that distinguishes one file from the next. **The obligations
|
|
32
|
+
below travel with every file, so they are named here and again in each one's
|
|
33
|
+
glTF copyright field.** Neither one restricts what the rest of this package is
|
|
34
|
+
licensed for.
|
|
35
|
+
|
|
36
|
+
- **The face shell is MediaPipe's canonical face mesh** — Copyright The
|
|
37
|
+
MediaPipe Authors, **Apache License 2.0**, the full text in
|
|
38
|
+
`LICENSE-APACHE-2.0` at the package root. **Modified**: the triangles closing
|
|
39
|
+
the eyes and the lips are removed so a blink and a viseme have an opening to
|
|
40
|
+
be; every edge is subdivided once; rings are appended outside its face oval to
|
|
41
|
+
reach the hair and the neck; and every vertex is moved onto landmarks measured
|
|
42
|
+
from a photograph, which is what makes it a face rather than the reference
|
|
43
|
+
head. What survives unmodified is the topology — which vertex is which point,
|
|
44
|
+
and what joins them.
|
|
45
|
+
- **The dental arch is fitted from ICT-FaceKit** — Copyright (c) 2020 USC
|
|
46
|
+
Institute for Creative Technologies, **MIT**, the same terms as this package's
|
|
47
|
+
own `LICENSE`. What was taken is a measurement rather than geometry: the
|
|
48
|
+
curvature of its upper arch, read off its generic head and carried here as the
|
|
49
|
+
coefficients of a polynomial. None of its mesh is in this file.
|
|
50
|
+
|
|
40
51
|
## The faces are synthetic
|
|
41
52
|
|
|
42
53
|
Every character began as an image from a generative model — OpenAI's and
|
package/assets/tanvi.glb
ADDED
|
Binary file
|
package/assets/tanya.glb
CHANGED
|
Binary file
|
package/assets/tara.glb
CHANGED
|
Binary file
|
package/assets/tess.glb
CHANGED
|
Binary file
|
package/assets/tushar.glb
CHANGED
|
Binary file
|
package/client/internal.ts
CHANGED
|
@@ -66,6 +66,10 @@ export {
|
|
|
66
66
|
avatarFrame,
|
|
67
67
|
createSvgRig,
|
|
68
68
|
shapeFor,
|
|
69
|
+
// The one number that says how far the mandible falls for a given aperture.
|
|
70
|
+
// Anything composing a mouth pose without `shapeFor` — a retarget, a driver —
|
|
71
|
+
// needs it, and the amplitudes behind the lips are calibrated at it.
|
|
72
|
+
JAW_OF_OPEN,
|
|
69
73
|
normalizeCues,
|
|
70
74
|
textToCues,
|
|
71
75
|
ARPABET_TO_VISEME,
|
package/client/supports.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `supports` for every avatar this package ships
|
|
3
|
-
* canvas identities alike.
|
|
2
|
+
* `supports` for every avatar this package ships.
|
|
4
3
|
*
|
|
5
|
-
* It is one constant and one file because they are one renderer:
|
|
6
|
-
*
|
|
7
|
-
*
|
|
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
|
|
8
7
|
* `createAvatar.ts`, where the type is documented, because a value is imported
|
|
9
|
-
* for real — reading it from there would pull `peep`'s drawing into
|
|
10
|
-
*
|
|
8
|
+
* for real — reading it from there would pull `peep`'s drawing into every
|
|
9
|
+
* consumer's bundle.
|
|
11
10
|
*
|
|
12
11
|
* The two required ids first, then this renderer's own catalogue. `ACTION_IDS`
|
|
13
12
|
* already carries `RESPONSE_INTERRUPTED` as this renderer's shape for it, so
|
package/client/three/assets.ts
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* only reader is `/internal/three`, a separate entry point that ships nothing.
|
|
10
10
|
*/
|
|
11
11
|
import { TANYA_GLB } from "./tanya-asset.js";
|
|
12
|
+
import { TANVI_GLB } from "./tanvi-asset.js";
|
|
12
13
|
import { TESS_GLB } from "./tess-asset.js";
|
|
13
14
|
import { TARA_GLB } from "./tara-asset.js";
|
|
14
15
|
import { TUSHAR_GLB } from "./tushar-asset.js";
|
|
@@ -18,6 +19,7 @@ export const ASSETS = Object.freeze({
|
|
|
18
19
|
tushar: TUSHAR_GLB,
|
|
19
20
|
tanya: TANYA_GLB,
|
|
20
21
|
tess: TESS_GLB,
|
|
22
|
+
tanvi: TANVI_GLB,
|
|
21
23
|
});
|
|
22
24
|
|
|
23
25
|
/** Every compiled character, in build order. */
|
package/client/three/budgets.ts
CHANGED