wireface 1.0.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/LICENSE +22 -0
- package/README.md +288 -0
- package/dist/wireface.js +1447 -0
- package/dist/wireface.min.js +1 -0
- package/docs/wireface.png +0 -0
- package/examples/demo.html +296 -0
- package/examples/editor.html +3023 -0
- package/examples/presets/asset-th5rha.json +121 -0
- package/examples/presets/asset-ydr7de.json +121 -0
- package/package.json +59 -0
- package/wireface.js +1447 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "wireface-v010",
|
|
3
|
+
"createdAt": "2026-05-01T02:19:44.566Z",
|
|
4
|
+
"renderConfig": {
|
|
5
|
+
"meshCols": 21,
|
|
6
|
+
"meshRows": 21,
|
|
7
|
+
"scaleNose": 0.4,
|
|
8
|
+
"scaleEyes": 1.35,
|
|
9
|
+
"scaleMouth": 0.4,
|
|
10
|
+
"reactivity": 0.24,
|
|
11
|
+
"spread": 0.9,
|
|
12
|
+
"mode": "wire",
|
|
13
|
+
"pupils": true,
|
|
14
|
+
"meshVisible": true,
|
|
15
|
+
"minimal": true,
|
|
16
|
+
"fragment": true,
|
|
17
|
+
"glow": true,
|
|
18
|
+
"flipFace": true,
|
|
19
|
+
"loopAudio": true,
|
|
20
|
+
"mouthHole": true,
|
|
21
|
+
"mouthHoleSize": 1.1500000000000001,
|
|
22
|
+
"eyeHoles": true,
|
|
23
|
+
"eyeDepth": 5,
|
|
24
|
+
"mouthAnchor": true,
|
|
25
|
+
"eyeAnchor": true,
|
|
26
|
+
"lineThickness": 0.4,
|
|
27
|
+
"lipVertAmp": 4,
|
|
28
|
+
"lipPressForce": 3,
|
|
29
|
+
"overlayTracksMesh": true,
|
|
30
|
+
"moodTransitionTime": 0.05,
|
|
31
|
+
"lineColor": "#541717",
|
|
32
|
+
"pupilColor": "#c4b0b0",
|
|
33
|
+
"baseColor": "#ff8585",
|
|
34
|
+
"fadeColor": "#f00000",
|
|
35
|
+
"depthFade": 1,
|
|
36
|
+
"irisColor": "#ff0000",
|
|
37
|
+
"irisSize": 3.3000000000000003,
|
|
38
|
+
"browColor": "#616161",
|
|
39
|
+
"jawExtend": 0,
|
|
40
|
+
"mouthGrow": 0
|
|
41
|
+
},
|
|
42
|
+
"channelGains": {
|
|
43
|
+
"viseme_sil": 1,
|
|
44
|
+
"viseme_PP": 1,
|
|
45
|
+
"viseme_FF": 1,
|
|
46
|
+
"viseme_TH": 1,
|
|
47
|
+
"viseme_DD": 1,
|
|
48
|
+
"viseme_kk": 1,
|
|
49
|
+
"viseme_CH": 1,
|
|
50
|
+
"viseme_SS": 1,
|
|
51
|
+
"viseme_nn": 1,
|
|
52
|
+
"viseme_RR": 1,
|
|
53
|
+
"viseme_aa": 1,
|
|
54
|
+
"viseme_E": 1,
|
|
55
|
+
"viseme_I": 1,
|
|
56
|
+
"viseme_O": 1,
|
|
57
|
+
"viseme_U": 1,
|
|
58
|
+
"jawOpen": 1,
|
|
59
|
+
"mouthSmile": 1,
|
|
60
|
+
"mouthPucker": 1,
|
|
61
|
+
"eyeBlinkLeft": 1,
|
|
62
|
+
"eyeBlinkRight": 1,
|
|
63
|
+
"eyeLookH": 1,
|
|
64
|
+
"eyeLookV": 1,
|
|
65
|
+
"eyeSquint": 1,
|
|
66
|
+
"browInnerUp": 4,
|
|
67
|
+
"browOuterUp": 4,
|
|
68
|
+
"browDown": 4,
|
|
69
|
+
"noseSneer": 0.25,
|
|
70
|
+
"headRotateX": 1,
|
|
71
|
+
"headRotateY": 1,
|
|
72
|
+
"headRotateZ": 1
|
|
73
|
+
},
|
|
74
|
+
"channelGainSliders": {
|
|
75
|
+
"viseme_sil": 0,
|
|
76
|
+
"viseme_PP": 0,
|
|
77
|
+
"viseme_FF": 0,
|
|
78
|
+
"viseme_TH": 0,
|
|
79
|
+
"viseme_DD": 0,
|
|
80
|
+
"viseme_kk": 0,
|
|
81
|
+
"viseme_CH": 0,
|
|
82
|
+
"viseme_SS": 0,
|
|
83
|
+
"viseme_nn": 0,
|
|
84
|
+
"viseme_RR": 0,
|
|
85
|
+
"viseme_aa": 0,
|
|
86
|
+
"viseme_E": 0,
|
|
87
|
+
"viseme_I": 0,
|
|
88
|
+
"viseme_O": 0,
|
|
89
|
+
"viseme_U": 0,
|
|
90
|
+
"jawOpen": 0,
|
|
91
|
+
"mouthSmile": 0,
|
|
92
|
+
"mouthPucker": 0,
|
|
93
|
+
"eyeBlinkLeft": 0,
|
|
94
|
+
"eyeBlinkRight": 0,
|
|
95
|
+
"eyeLookH": 0,
|
|
96
|
+
"eyeLookV": 0,
|
|
97
|
+
"eyeSquint": 0,
|
|
98
|
+
"browInnerUp": 2,
|
|
99
|
+
"browOuterUp": 2,
|
|
100
|
+
"browDown": 2,
|
|
101
|
+
"noseSneer": -2,
|
|
102
|
+
"headRotateX": 0,
|
|
103
|
+
"headRotateY": 0,
|
|
104
|
+
"headRotateZ": 0
|
|
105
|
+
},
|
|
106
|
+
"activeMood": "neutral",
|
|
107
|
+
"moodTargetWeights": {
|
|
108
|
+
"neutral": 1,
|
|
109
|
+
"happy": 0,
|
|
110
|
+
"sad": 0,
|
|
111
|
+
"angry": 0,
|
|
112
|
+
"fear": 0,
|
|
113
|
+
"surprise": 0,
|
|
114
|
+
"sleep": 0
|
|
115
|
+
},
|
|
116
|
+
"audioName": "asset__post__ddc0fdf0__f7a8f0a3.mp3",
|
|
117
|
+
"lineColor": "#541717",
|
|
118
|
+
"pupilColor": "#c4b0b0",
|
|
119
|
+
"id": "th5rha",
|
|
120
|
+
"name": "asset__post__th5rha"
|
|
121
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "wireface-v010",
|
|
3
|
+
"createdAt": "2026-05-01T02:00:12.074Z",
|
|
4
|
+
"renderConfig": {
|
|
5
|
+
"meshCols": 7,
|
|
6
|
+
"meshRows": 9,
|
|
7
|
+
"scaleNose": 1.1500000000000001,
|
|
8
|
+
"scaleEyes": 2,
|
|
9
|
+
"scaleMouth": 2,
|
|
10
|
+
"reactivity": 0.26,
|
|
11
|
+
"spread": 0.8,
|
|
12
|
+
"mode": "wire",
|
|
13
|
+
"pupils": true,
|
|
14
|
+
"meshVisible": true,
|
|
15
|
+
"minimal": true,
|
|
16
|
+
"fragment": true,
|
|
17
|
+
"glow": true,
|
|
18
|
+
"flipFace": true,
|
|
19
|
+
"loopAudio": true,
|
|
20
|
+
"mouthHole": true,
|
|
21
|
+
"mouthHoleSize": 1.85,
|
|
22
|
+
"eyeHoles": false,
|
|
23
|
+
"eyeDepth": 1,
|
|
24
|
+
"mouthAnchor": true,
|
|
25
|
+
"eyeAnchor": false,
|
|
26
|
+
"lineThickness": 1,
|
|
27
|
+
"lipVertAmp": 1.6,
|
|
28
|
+
"lipPressForce": 0,
|
|
29
|
+
"overlayTracksMesh": true,
|
|
30
|
+
"moodTransitionTime": 0.05,
|
|
31
|
+
"lineColor": "#181616",
|
|
32
|
+
"pupilColor": "#3a2727",
|
|
33
|
+
"baseColor": "#7a86c2",
|
|
34
|
+
"fadeColor": "#f00000",
|
|
35
|
+
"depthFade": 0.4,
|
|
36
|
+
"irisColor": "#170303",
|
|
37
|
+
"irisSize": 2,
|
|
38
|
+
"browColor": "#616161",
|
|
39
|
+
"jawExtend": 0,
|
|
40
|
+
"mouthGrow": 0
|
|
41
|
+
},
|
|
42
|
+
"channelGains": {
|
|
43
|
+
"viseme_sil": 1,
|
|
44
|
+
"viseme_PP": 1,
|
|
45
|
+
"viseme_FF": 1,
|
|
46
|
+
"viseme_TH": 1,
|
|
47
|
+
"viseme_DD": 1,
|
|
48
|
+
"viseme_kk": 1,
|
|
49
|
+
"viseme_CH": 1,
|
|
50
|
+
"viseme_SS": 1,
|
|
51
|
+
"viseme_nn": 1,
|
|
52
|
+
"viseme_RR": 1,
|
|
53
|
+
"viseme_aa": 1,
|
|
54
|
+
"viseme_E": 1,
|
|
55
|
+
"viseme_I": 1,
|
|
56
|
+
"viseme_O": 1,
|
|
57
|
+
"viseme_U": 1,
|
|
58
|
+
"jawOpen": 1,
|
|
59
|
+
"mouthSmile": 1,
|
|
60
|
+
"mouthPucker": 1,
|
|
61
|
+
"eyeBlinkLeft": 1,
|
|
62
|
+
"eyeBlinkRight": 1,
|
|
63
|
+
"eyeLookH": 1,
|
|
64
|
+
"eyeLookV": 1,
|
|
65
|
+
"eyeSquint": 1,
|
|
66
|
+
"browInnerUp": 4,
|
|
67
|
+
"browOuterUp": 4,
|
|
68
|
+
"browDown": 4,
|
|
69
|
+
"noseSneer": 0.25,
|
|
70
|
+
"headRotateX": 1,
|
|
71
|
+
"headRotateY": 1,
|
|
72
|
+
"headRotateZ": 1
|
|
73
|
+
},
|
|
74
|
+
"channelGainSliders": {
|
|
75
|
+
"viseme_sil": 0,
|
|
76
|
+
"viseme_PP": 0,
|
|
77
|
+
"viseme_FF": 0,
|
|
78
|
+
"viseme_TH": 0,
|
|
79
|
+
"viseme_DD": 0,
|
|
80
|
+
"viseme_kk": 0,
|
|
81
|
+
"viseme_CH": 0,
|
|
82
|
+
"viseme_SS": 0,
|
|
83
|
+
"viseme_nn": 0,
|
|
84
|
+
"viseme_RR": 0,
|
|
85
|
+
"viseme_aa": 0,
|
|
86
|
+
"viseme_E": 0,
|
|
87
|
+
"viseme_I": 0,
|
|
88
|
+
"viseme_O": 0,
|
|
89
|
+
"viseme_U": 0,
|
|
90
|
+
"jawOpen": 0,
|
|
91
|
+
"mouthSmile": 0,
|
|
92
|
+
"mouthPucker": 0,
|
|
93
|
+
"eyeBlinkLeft": 0,
|
|
94
|
+
"eyeBlinkRight": 0,
|
|
95
|
+
"eyeLookH": 0,
|
|
96
|
+
"eyeLookV": 0,
|
|
97
|
+
"eyeSquint": 0,
|
|
98
|
+
"browInnerUp": 2,
|
|
99
|
+
"browOuterUp": 2,
|
|
100
|
+
"browDown": 2,
|
|
101
|
+
"noseSneer": -2,
|
|
102
|
+
"headRotateX": 0,
|
|
103
|
+
"headRotateY": 0,
|
|
104
|
+
"headRotateZ": 0
|
|
105
|
+
},
|
|
106
|
+
"activeMood": "neutral",
|
|
107
|
+
"moodTargetWeights": {
|
|
108
|
+
"neutral": 1,
|
|
109
|
+
"happy": 0,
|
|
110
|
+
"sad": 0,
|
|
111
|
+
"angry": 0,
|
|
112
|
+
"fear": 0,
|
|
113
|
+
"surprise": 0,
|
|
114
|
+
"sleep": 0
|
|
115
|
+
},
|
|
116
|
+
"audioName": "asset__post__ddc0fdf0__f7a8f0a3.mp3",
|
|
117
|
+
"lineColor": "#181616",
|
|
118
|
+
"pupilColor": "#3a2727",
|
|
119
|
+
"id": "ydr7de",
|
|
120
|
+
"name": "asset__post__ydr7de"
|
|
121
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "wireface",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Minimal embeddable wireframe lipsync face renderer — drives expressive character profiles from voice or TTS audio in the browser.",
|
|
5
|
+
"main": "wireface.js",
|
|
6
|
+
"browser": "wireface.js",
|
|
7
|
+
"unpkg": "dist/wireface.min.js",
|
|
8
|
+
"jsdelivr": "dist/wireface.min.js",
|
|
9
|
+
"files": [
|
|
10
|
+
"wireface.js",
|
|
11
|
+
"examples/",
|
|
12
|
+
"docs/",
|
|
13
|
+
"dist/",
|
|
14
|
+
"LICENSE",
|
|
15
|
+
"README.md"
|
|
16
|
+
],
|
|
17
|
+
"keywords": [
|
|
18
|
+
"lipsync",
|
|
19
|
+
"viseme",
|
|
20
|
+
"face",
|
|
21
|
+
"avatar",
|
|
22
|
+
"tts",
|
|
23
|
+
"voice",
|
|
24
|
+
"babylon",
|
|
25
|
+
"babylonjs",
|
|
26
|
+
"audio",
|
|
27
|
+
"wireframe",
|
|
28
|
+
"character"
|
|
29
|
+
],
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"babylonjs": ">=6.0.0"
|
|
32
|
+
},
|
|
33
|
+
"peerDependenciesMeta": {
|
|
34
|
+
"babylonjs": {
|
|
35
|
+
"optional": true
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"terser": "^5.31.0"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "mkdir -p dist && cp wireface.js dist/wireface.js && terser wireface.js -c -m --comments=false -o dist/wireface.min.js",
|
|
43
|
+
"prepublishOnly": "npm run build",
|
|
44
|
+
"demo": "npx --yes serve -l 5173 ."
|
|
45
|
+
},
|
|
46
|
+
"author": "Peter Styk",
|
|
47
|
+
"license": "MIT",
|
|
48
|
+
"homepage": "https://github.com/styk-tv/wireface#readme",
|
|
49
|
+
"repository": {
|
|
50
|
+
"type": "git",
|
|
51
|
+
"url": "git+https://github.com/styk-tv/wireface.git"
|
|
52
|
+
},
|
|
53
|
+
"bugs": {
|
|
54
|
+
"url": "https://github.com/styk-tv/wireface/issues"
|
|
55
|
+
},
|
|
56
|
+
"publishConfig": {
|
|
57
|
+
"access": "public"
|
|
58
|
+
}
|
|
59
|
+
}
|