-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
6267 lines (5408 loc) · 312 KB
/
Copy pathindex.html
File metadata and controls
6267 lines (5408 loc) · 312 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html><html lang="en"><head>
</html>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Webwaifu - AI VTuber Chat</title>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
</head>
<body>
<!-- Azure Speech SDK for real-time TTS -->
<script src="https://aka.ms/csspeech/jsbrowserpackageraw"></script>
<!-- Modern Three.js ES6 Module Imports -->
<script type="importmap">
{
"imports": {
"three": "https://cdn.jsdelivr.net/npm/three@0.169.0/build/three.module.js",
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.169.0/examples/jsm/",
"@pixiv/three-vrm-core": "./js/three-vrm-core.module.js",
"@pixiv/three-vrm": "https://cdn.jsdelivr.net/npm/@pixiv/three-vrm@3/lib/three-vrm.module.js",
"@pixiv/three-vrm-animation": "./js/three-vrm-animation.module.js"
}
}
</script>
<!-- 3D Canvas Container -->
<div id="canvas-container"></div>
<!-- Header -->
<header class="app-header">
<div class="header-content">
<h1 class="app-title">
<div class="title-with-logo">
<img src="ww.png" alt="Webwaifu Logo" class="title-logo">
<span class="title-sub">AI VTuber Experience</span>
<img src="ww.png" alt="Webwaifu Logo" class="title-logo">
</div>
</h1>
<div class="header-controls">
<button class="control-btn" id="settingsBtn" onclick="toggleSettings()" title="Settings">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="3"></circle>
<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>
</svg>
</button>
</div>
</div>
</header>
<!-- Floating Chat Input -->
<div class="floating-chat" id="floatingChat">
<div class="chat-input-container">
<div class="input-wrapper">
<button class="voice-btn" id="chatBtn" onclick="toggleChatOverlay()" title="Toggle Chat">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>
</svg>
</button>
<input type="text" id="chatInput" placeholder="Chat with your AI character..." onkeypress="handleChatKeyPress(event)">
<button class="voice-btn" id="voiceBtn" onclick="toggleVoiceInput()" title="Voice input">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path>
<path d="M19 10v2a7 7 0 0 1-14 0v-2"></path>
<line x1="12" y1="19" x2="12" y2="23"></line>
<line x1="8" y1="23" x2="16" y2="23"></line>
</svg>
</button>
<button class="send-btn" id="sendBtn" onclick="sendChatMessage()" title="Send message">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="22" y1="2" x2="11" y2="13"></line>
<polygon points="22,2 15,22 11,13 2,9 22,2"></polygon>
</svg>
</button>
</div>
</div>
</div>
<!-- Twitch Chat Overlay (Stream Mode) -->
<div class="twitch-chat-overlay" id="twitchChatOverlay" style="display: none;">
<div class="chat-drag-header">
<div class="header-left">
<button class="chat-toggle-btn" onclick="toggleDock()" title="Dock/Undock">⚹</button>
</div>
<div class="header-center">
<span class="drag-handle">⋮⋮</span>
<h4>📺 Twitch Chat</h4>
</div>
<div class="header-right">
<button class="chat-toggle-btn" onclick="toggleChatVisibility()" title="Hide chat input">🔇</button>
</div>
</div>
<div class="chat-overlay-content" id="twitchChatContent" style="overflow-y: auto; max-height: 400px;">
<div class="chat-placeholder">
Connect to Twitch channel to see chat messages...
</div>
</div>
<div class="chat-overlay-footer">
<div class="accumulation-progress">
<span>Collecting messages: <span id="accumulationCount">0</span>/<span id="accumulationTarget">5</span></span>
<div class="progress-bar">
<div class="progress-fill" id="accumulationProgress"></div>
</div>
</div>
</div>
</div>
<!-- Settings Panel -->
<div class="settings-panel" id="settingsPanel">
<div class="settings-header">
<h3>Settings</h3>
<button class="close-btn" onclick="toggleSettings()">×</button>
</div>
<div class="settings-content">
<!-- VRM Controls -->
<div class="accordion-section">
<div class="accordion-header" onclick="toggleAccordionFromHTML('vrmControls')">
<span>🎭 VRM Controls</span>
<span class="accordion-icon">▼</span>
</div>
<div class="accordion-content" id="vrmControls">
<div class="control-group">
<label>Input Volume</label>
<input type="range" id="inputlevel" min="0" max="100" value="0" readonly="" class="range-display">
<span class="range-value" id="inputValue">0</span>
</div>
<div class="control-group">
<label>Mouth Threshold: <span id="mouthValue">10</span></label>
<input type="range" id="mouthThreshold" min="0" max="50" value="10" oninput="updateVRMControlsSetting()">
</div>
<div class="control-group">
<label>Mouth Gain: <span id="gainValue">0.1</span></label>
<input type="range" id="mouthGain" min="0" max="30" value="1" oninput="updateVRMControlsSetting()">
</div>
<div class="control-group">
<label>Mouth Smoothing: <span id="mouthSmoothValue">0.3</span></label>
<input type="range" id="mouthSmoothing" min="0" max="100" value="30" oninput="updateVRMControlsSetting()">
</div>
<div class="control-group">
<label>Expression (Serious ↔ Smiling)</label>
<input type="range" id="expression" min="0" max="100" value="80">
<span class="range-value" id="expressionValue">80</span>
</div>
</div>
</div>
<!-- VRM Position Controls -->
<div class="accordion-section">
<div class="accordion-header" onclick="toggleAccordionFromHTML('vrmPosition')">
<span>🎯 VRM Position</span>
<span class="accordion-icon">▼</span>
</div>
<div class="accordion-content" id="vrmPosition">
<div class="control-group">
<label>X Position (Left ↔ Right)</label>
<input type="range" id="vrmPosX" min="-5" max="5" step="0.1" value="0" oninput="updateVRMPosition()">
<span class="range-value" id="vrmPosXValue">0</span>
</div>
<div class="control-group">
<label>Y Position (Down ↔ Up)</label>
<input type="range" id="vrmPosY" min="-3" max="3" step="0.1" value="0" oninput="updateVRMPosition()">
<span class="range-value" id="vrmPosYValue">0</span>
</div>
<div class="control-group">
<label>Z Position (Back ↔ Forward)</label>
<input type="range" id="vrmPosZ" min="-5" max="5" step="0.1" value="0" oninput="updateVRMPosition()">
<span class="range-value" id="vrmPosZValue">0</span>
</div>
<div class="control-group">
<label>Scale</label>
<input type="range" id="vrmScale" min="0.1" max="3" step="0.1" value="1" oninput="updateVRMPosition()">
<span class="range-value" id="vrmScaleValue">1.0</span>
</div>
<div class="control-group">
<label>Y Rotation (Turn Left ↔ Right)</label>
<input type="range" id="vrmRotY" min="-180" max="180" step="5" value="0" oninput="updateVRMPosition()">
<span class="range-value" id="vrmRotYValue">0°</span>
</div>
<div class="control-group">
<label>Reset Position</label>
<button class="control-btn" onclick="resetVRMPosition()">
🎯 Reset to Center
</button>
</div>
</div>
</div>
<!-- File Upload -->
<div class="accordion-section">
<div class="accordion-header" onclick="toggleAccordionFromHTML('vrmModel')">
<span>📁 VRM Model</span>
<span class="accordion-icon">▼</span>
</div>
<div class="accordion-content" id="vrmModel">
<div class="control-group">
<label>Available Models</label>
<select id="modelSelector" onchange="loadSelectedModel()">
<option value="">Select a model...</option>
</select>
<button class="control-btn" onclick="refreshModelList()" style="margin-left: 8px;" title="Refresh model list">🔄</button>
</div>
<div class="file-upload-container" style="margin-top: 15px;">
<input type="file" id="file" accept=".vrm,.VRM" onchange="dofile()" hidden="">
<button class="upload-btn" onclick="document.getElementById('file').click()">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="7,10 12,15 17,10"></polyline>
<line x1="12" y1="15" x2="12" y2="3"></line>
</svg>
Upload Custom VRM
</button>
<p class="upload-hint">Drag & drop also supported</p>
</div>
</div>
</div>
<!-- TTS Configuration -->
<div class="accordion-section">
<div class="accordion-header" onclick="toggleAccordionFromHTML('ttsSettings')">
<span>🔊 Text-to-Speech</span>
<span class="accordion-icon">▼</span>
</div>
<div class="accordion-content" id="ttsSettings">
<div class="control-group">
<label>
<input type="checkbox" id="enableTTS" checked="" onchange="saveUISettings()">
Enable Text-to-Speech
</label>
</div>
<div class="control-group">
<label>Azure TTS Key (Optional)</label>
<div class="input-with-eye">
<input type="password" id="azureKey" placeholder="Leave empty to use browser TTS" onchange="updateAzureConfig()">
<button type="button" class="eye-btn" onclick="togglePasswordVisibility('azureKey', this)">👁️</button>
</div>
</div>
<div class="control-group">
<label>Azure Region</label>
<input type="text" id="azureRegion" value="eastus" onchange="updateAzureConfig()">
</div>
<div class="control-group">
<label>Voice</label>
<div style="display: flex; gap: 5px; align-items: center;">
<select id="voiceSelect" onchange="updateAzureConfig()" style="flex: 1;">
<option value="en-US-JennyNeural">Jenny (US)</option>
<option value="en-US-AshleyNeural">Ashley (US)</option>
<option value="en-US-GuyNeural">Guy (US)</option>
<option value="en-GB-SoniaNeural">Sonia (UK)</option>
</select>
<button class="control-btn" onclick="refreshAzureVoices()" title="Refresh Azure voice list" style="padding: 5px 10px; font-size: 12px;">
🔄
</button>
</div>
</div>
<div class="control-group">
<label>TTS Volume</label>
<input type="range" id="ttsVolume" min="0" max="1" step="0.1" value="0.9" onchange="updateAzureConfig()">
<span class="range-value" id="ttsVolumeValue">90%</span>
</div>
<div class="control-group">
<label>TTS Pitch</label>
<input type="range" id="ttsPitch" min="-12" max="12" step="0.1" value="1.3" onchange="updateAzureConfig()">
<span class="range-value" id="ttsPitchValue">+1.3st</span>
</div>
<div class="control-group">
<label>Speech Rate</label>
<input type="range" id="ttsRate" min="0.5" max="2.0" step="0.1" value="1.0" onchange="updateAzureConfig()">
<span class="range-value" id="ttsRateValue">1.0x</span>
</div>
<div class="control-group">
<label>Browser Voice (Fallback)</label>
<select id="browserVoice" onchange="updateBrowserVoice()">
<option value="">Auto-select female voice</option>
</select>
</div>
<div class="control-group" style="margin-top: 10px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 10px;">
<label>TTS Animation Status</label>
<div style="margin-top:6px;">
<span>Mode:</span>
<span id="ttsAnimationStatus" style="padding: 4px 8px; border-radius: 5px; background: #444; color: #4ecdc4; font-size: 12px;">Direct Animation Control</span>
</div>
<div style="display:flex; gap:8px; margin-top:8px;">
<button class="control-btn" id="testTalkingBtn" onclick="testTalkingAnimation()" style="flex:1;">🎭 Test Talking Animation</button>
</div>
</div>
<div class="tts-info">
<p>💡 <strong>TTS & Animation Integration:</strong></p>
<p>• <strong>With Azure key:</strong> High-quality neural voices + animations</p>
<p>• <strong>Without Azure key:</strong> Free browser TTS + animations</p>
<p>• <strong>Animation sync:</strong> Automatically triggers talking animations</p>
<p>• <strong>Setup:</strong> Load animations in VRM & Animations section</p>
</div>
</div>
</div>
<!-- CONSOLIDATED AI CONFIGURATION -->
<div class="accordion-section">
<div class="accordion-header" onclick="toggleAccordionFromHTML('aiConfiguration')">
<span>🤖 AI Configuration</span>
<span class="accordion-icon">▼</span>
</div>
<div class="accordion-content" id="aiConfiguration">
<!-- AI Provider Selection -->
<div class="control-group">
<label>AI Provider</label>
<select id="aiProvider" onchange="updateCurrentProvider()">
<option value="gemini">💎 Google Gemini</option>
<option value="openai">🔥 OpenAI</option>
<option value="openrouter">🌐 OpenRouter</option>
<option value="ollama" selected>🧠 Ollama (Local)</option>
</select>
</div>
<!-- Streaming Toggle -->
<div class="control-group">
<label>
<input type="checkbox" id="enableStreaming" checked onchange="updateStreamingSetting()">
⚡ Enable Streaming (Faster Response)
</label>
<p class="upload-hint">Streaming sends sentences to TTS as they're generated for faster speech</p>
</div>
<!-- Shared System Prompt for All Providers -->
<div class="control-group">
<label>⚙️ System Prompt (Technical Instructions)</label>
<textarea id="globalSystemMessage" rows="6" onchange="updateGlobalSystemPrompt()" placeholder="Technical instructions for the AI (format, behavior rules, etc.)">CRITICAL TTS FORMATTING RULES - MUST FOLLOW:
- NEVER use emojis, emoticons, or special characters (no hearts, stars, faces, symbols)
- NO asterisks for actions like *smiles* or *hugs* - these break text-to-speech
- NO markdown formatting (**, __, ~~, etc.)
- Write out emotions in words: "I'm smiling" instead of using symbols
- Keep responses clean and simple for natural speech synthesis
- Avoid unusual punctuation or special Unicode characters
- NO code blocks, lists with special bullets, or technical formatting
RESPONSE FORMAT:
- Keep responses conversational and natural
- Use complete sentences
- Speak naturally as if having a real conversation
- Express emotions through words, not symbols</textarea>
<p class="upload-hint">Technical instructions only - personality is set in Character tab</p>
</div>
<!-- Gemini Configuration -->
<div id="geminiConfig" class="provider-config">
<div class="provider-header">
<h4>💎 Google Gemini Settings</h4>
</div>
<div class="control-group">
<label>API Key</label>
<div class="input-with-eye">
<input type="password" id="geminiKey" placeholder="Enter Gemini API key" onchange="updateGeminiConfig()">
<button type="button" class="eye-btn" onclick="togglePasswordVisibility('geminiKey', this)">👁️</button>
</div>
</div>
<div class="control-group">
<label>Model</label>
<select id="geminiModel" onchange="updateGeminiConfig()">
<optgroup label="🚀 Latest Models (2.5)">
<option value="gemini-2.5-pro">Gemini 2.5 Pro</option>
<option value="gemini-2.5-flash">Gemini 2.5 Flash</option>
<option value="gemini-2.5-flash-lite-preview-06-17">Gemini 2.5 Flash-Lite Preview</option>
<option value="gemini-2.5-flash-preview-native-audio-dialog">Gemini 2.5 Flash Native Audio</option>
<option value="gemini-2.5-flash-exp-native-audio-thinking-dialog">Gemini 2.5 Flash Native Audio (Thinking)</option>
</optgroup>
<optgroup label="⚡ 2.0 Models">
<option value="gemini-2.0-flash" selected="">Gemini 2.0 Flash</option>
<option value="gemini-2.0-flash-preview-image-generation">Gemini 2.0 Flash (Image Gen)</option>
<option value="gemini-2.0-flash-lite">Gemini 2.0 Flash-Lite</option>
<option value="gemini-2.0-flash-live-001">Gemini 2.0 Flash Live</option>
</optgroup>
<optgroup label="📱 1.5 Models">
<option value="gemini-1.5-flash">Gemini 1.5 Flash</option>
<option value="gemini-1.5-flash-8b">Gemini 1.5 Flash-8B</option>
<option value="gemini-1.5-pro">Gemini 1.5 Pro</option>
</optgroup>
<optgroup label="🔥 Specialized Models">
<option value="gemini-2.5-flash-preview-tts">Gemini 2.5 Flash TTS</option>
<option value="gemini-2.5-pro-preview-tts">Gemini 2.5 Pro TTS</option>
<option value="gemini-live-2.5-flash-preview">Gemini 2.5 Flash Live</option>
</optgroup>
</select>
</div>
<div class="control-group">
<label>Temperature</label>
<input type="range" id="geminiTemperature" min="0" max="2" step="0.1" value="0.7" onchange="updateGeminiConfig()">
<span class="range-value" id="geminiTemperatureValue">0.7</span>
</div>
<div class="control-group">
<label>Max Output Tokens</label>
<input type="range" id="geminiMaxTokens" min="1" max="8192" step="1" value="1024" onchange="updateGeminiConfig()">
<span class="range-value" id="geminiMaxTokensValue">1024</span>
</div>
<div class="control-group">
<label>Top P</label>
<input type="range" id="geminiTopP" min="0" max="1" step="0.05" value="0.95" onchange="updateGeminiConfig()">
<span class="range-value" id="geminiTopPValue">0.95</span>
</div>
<div class="control-group">
<label>Top K</label>
<input type="range" id="geminiTopK" min="1" max="100" step="1" value="40" onchange="updateGeminiConfig()">
<span class="range-value" id="geminiTopKValue">40</span>
</div>
</div>
<!-- Ollama Configuration -->
<div id="ollamaConfig" class="provider-config" style="display: block;">
<div class="provider-header">
<h4>🧠 Ollama Settings</h4>
</div>
<!-- Connection Settings -->
<div class="control-group">
<label>Ollama URL</label>
<input type="text" id="ollamaUrl" value="http://localhost:11434" onchange="updateOllamaConfig()">
</div>
<div class="control-group">
<label>Model</label>
<div class="model-selector">
<select id="ollamaModel" onchange="updateOllamaConfig(); saveOllamaModelSelection()">
<option value="">Select model...</option>
</select>
<button class="refresh-btn" onclick="forceRefreshOllamaModelsFromHTML()">🔄</button>
</div>
</div>
<!-- Generation Parameters -->
<div class="control-group">
<label>Temperature (Creativity)</label>
<input type="range" id="ollamaTemperature" min="0" max="2" step="0.1" value="0.7" onchange="updateOllamaConfig()">
<span class="range-value" id="ollamaTemperatureValue">0.7</span>
</div>
<div class="control-group">
<label>Top P (Nucleus Sampling)</label>
<input type="range" id="ollamaTopP" min="0" max="1" step="0.05" value="0.9" onchange="updateOllamaConfig()">
<span class="range-value" id="ollamaTopPValue">0.9</span>
</div>
<div class="control-group">
<label>Top K (Token Limit)</label>
<input type="range" id="ollamaTopK" min="1" max="100" step="1" value="40" onchange="updateOllamaConfig()">
<span class="range-value" id="ollamaTopKValue">40</span>
</div>
<div class="control-group">
<label>Repeat Penalty</label>
<input type="range" id="ollamaRepeatPenalty" min="0.5" max="2.0" step="0.1" value="1.1" onchange="updateOllamaConfig()">
<span class="range-value" id="ollamaRepeatPenaltyValue">1.1</span>
</div>
<div class="control-group">
<label>Context Length</label>
<input type="range" id="ollamaContextLength" min="512" max="8192" step="512" value="2048" onchange="updateOllamaConfig()">
<span class="range-value" id="ollamaContextLengthValue">2048</span>
</div>
<div class="control-group">
<label>Max Tokens</label>
<input type="range" id="ollamaMaxTokens" min="50" max="2000" step="50" value="512" onchange="updateOllamaConfig()">
<span class="range-value" id="ollamaMaxTokensValue">512</span>
</div>
<!-- Advanced Parameters -->
<div class="control-group">
<label>Seed (0 = Random)</label>
<input type="number" id="ollamaSeed" value="0" min="0" max="999999" onchange="updateOllamaConfig()">
</div>
<div class="control-group">
<label>Mirostat (Perplexity Control)</label>
<select id="ollamaMirostat" onchange="updateOllamaConfig()">
<option value="0">Disabled</option>
<option value="1">Mirostat 1.0</option>
<option value="2">Mirostat 2.0</option>
</select>
</div>
<div class="control-group">
<label>Mirostat Tau</label>
<input type="range" id="ollamaMirostatTau" min="0.1" max="10.0" step="0.1" value="5.0" onchange="updateOllamaConfig()">
<span class="range-value" id="ollamaMirostatTauValue">5.0</span>
</div>
<div class="control-group">
<label>Mirostat Eta</label>
<input type="range" id="ollamaMirostatEta" min="0.01" max="1.0" step="0.01" value="0.1" onchange="updateOllamaConfig()">
<span class="range-value" id="ollamaMirostatEtaValue">0.1</span>
</div>
<!-- Performance Settings -->
<div class="control-group">
<label>GPU Layers</label>
<input type="range" id="ollamaGpuLayers" min="0" max="50" step="1" value="0" onchange="updateOllamaConfig()">
<span class="range-value" id="ollamaGpuLayersValue">0 (CPU)</span>
</div>
<div class="control-group">
<label>Thread Count</label>
<input type="range" id="ollamaThreads" min="1" max="32" step="1" value="4" onchange="updateOllamaConfig()">
<span class="range-value" id="ollamaThreadsValue">4</span>
</div>
<div class="control-group">
<label>Batch Size</label>
<input type="range" id="ollamaBatchSize" min="1" max="2048" step="1" value="512" onchange="updateOllamaConfig()">
<span class="range-value" id="ollamaBatchSizeValue">512</span>
</div>
<!-- Advanced Optimizations -->
<div class="control-group">
<label>⚡ Advanced Optimizations</label>
<div class="checkbox-group">
<label class="checkbox-label">
<input type="checkbox" id="ollamaFlashAttention" checked onchange="updateOllamaConfig()">
Flash Attention
</label>
<label class="checkbox-label">
<input type="checkbox" id="ollamaUseMmap" checked onchange="updateOllamaConfig()">
Memory Mapping
</label>
<label class="checkbox-label">
<input type="checkbox" id="ollamaF16Kv" checked onchange="updateOllamaConfig()">
F16 KV Cache
</label>
<label class="checkbox-label">
<input type="checkbox" id="ollamaMulMatQ" checked onchange="updateOllamaConfig()">
Matrix Multiplication
</label>
<label class="checkbox-label">
<input type="checkbox" id="ollamaUseMlock" onchange="updateOllamaConfig()">
Memory Lock
</label>
<label class="checkbox-label">
<input type="checkbox" id="ollamaNuma" onchange="updateOllamaConfig()">
NUMA Optimization
</label>
</div>
</div>
<!-- RoPE Settings -->
<div class="control-group">
<label>RoPE Frequency Base</label>
<input type="range" id="ollamaRopeFreqBase" min="1000" max="50000" step="1000" value="10000" onchange="updateOllamaConfig()">
<span class="range-value" id="ollamaRopeFreqBaseValue">10000</span>
</div>
<div class="control-group">
<label>RoPE Frequency Scale</label>
<input type="range" id="ollamaRopeFreqScale" min="0.1" max="2.0" step="0.1" value="1.0" onchange="updateOllamaConfig()">
<span class="range-value" id="ollamaRopeFreqScaleValue">1.0</span>
</div>
<!-- YARN Settings -->
<div class="control-group">
<label>YARN Extension Factor</label>
<input type="range" id="ollamaYarnExtFactor" min="-1" max="10" step="0.1" value="-1" onchange="updateOllamaConfig()">
<span class="range-value" id="ollamaYarnExtFactorValue">-1 (Disabled)</span>
</div>
<div class="control-group">
<label>YARN Attention Factor</label>
<input type="range" id="ollamaYarnAttnFactor" min="0.1" max="10" step="0.1" value="1.0" onchange="updateOllamaConfig()">
<span class="range-value" id="ollamaYarnAttnFactorValue">1.0</span>
</div>
<!-- Model Format -->
<div class="control-group">
<label>Model Format</label>
<select id="ollamaFtype" onchange="updateOllamaConfig()">
<option value="f16">F16 (Recommended)</option>
<option value="f32">F32 (Higher Quality)</option>
<option value="q4_0">Q4_0 (Quantized)</option>
<option value="q4_1">Q4_1 (Quantized)</option>
<option value="q5_0">Q5_0 (Quantized)</option>
<option value="q5_1">Q5_1 (Quantized)</option>
<option value="q8_0">Q8_0 (Quantized)</option>
</select>
</div>
<!-- Keep Alive -->
<div class="control-group">
<label>Keep Alive</label>
<select id="ollamaKeepAlive" onchange="updateOllamaConfig()">
<option value="5m">5 minutes</option>
<option value="10m">10 minutes</option>
<option value="30m">30 minutes</option>
<option value="1h">1 hour</option>
<option value="2h">2 hours</option>
<option value="off">Off</option>
</select>
</div>
<!-- Presets -->
<div class="control-group">
<label>Quick Presets</label>
<div class="preset-buttons">
<button class="preset-btn" onclick="setOllamaPreset('creative')">🎨 Creative</button>
<button class="preset-btn" onclick="setOllamaPreset('balanced')">⚖️ Balanced</button>
<button class="preset-btn" onclick="setOllamaPreset('precise')">🎯 Precise</button>
<button class="preset-btn" onclick="setOllamaPreset('fast')">⚡ Fast</button>
</div>
</div>
</div>
<!-- OpenAI Configuration -->
<div id="openaiConfig" class="provider-config" style="display: none;">
<div class="provider-header">
<h4>🔥 OpenAI Settings</h4>
</div>
<div class="control-group">
<label>API Key</label>
<div class="input-with-eye">
<input type="password" id="openaiKey" placeholder="Enter OpenAI API key" onchange="updateOpenAIConfig()">
<button type="button" class="eye-btn" onclick="togglePasswordVisibility('openaiKey', this)">👁️</button>
</div>
</div>
<div class="control-group">
<label>Model</label>
<select id="openaiModel" onchange="updateOpenAIConfig()">
<option value="gpt-4.1">GPT-4.1</option>
<option value="gpt-4.1-mini">GPT-4.1 Mini</option>
<option value="gpt-4.1-nano">GPT-4.1 Nano</option>
<option value="o3">O3</option>
<option value="o4-mini">O4-Mini</option>
<option value="gpt-4o">GPT-4o</option>
<option value="gpt-4o-mini">GPT-4o Mini</option>
<option value="gpt-4-turbo">GPT-4 Turbo</option>
<option value="gpt-3.5-turbo">GPT-3.5 Turbo</option>
</select>
</div>
<div class="control-group">
<label>Temperature</label>
<input type="range" id="openaiTemperature" min="0" max="2" step="0.1" value="0.7" onchange="updateOpenAIConfig()">
<span class="range-value" id="openaiTemperatureValue">0.7</span>
</div>
<div class="control-group">
<label>Max Tokens</label>
<input type="range" id="openaiMaxTokens" min="1" max="4096" step="1" value="512" onchange="updateOpenAIConfig()">
<span class="range-value" id="openaiMaxTokensValue">512</span>
</div>
<div class="control-group">
<label>Top P</label>
<input type="range" id="openaiTopP" min="0" max="1" step="0.05" value="1" onchange="updateOpenAIConfig()">
<span class="range-value" id="openaiTopPValue">1.0</span>
</div>
<div class="control-group">
<label>Frequency Penalty</label>
<input type="range" id="openaiFreqPenalty" min="0" max="2" step="0.1" value="0" onchange="updateOpenAIConfig()">
<span class="range-value" id="openaiFreqPenaltyValue">0</span>
</div>
<div class="control-group">
<label>Presence Penalty</label>
<input type="range" id="openaiPresencePenalty" min="0" max="2" step="0.1" value="0" onchange="updateOpenAIConfig()">
<span class="range-value" id="openaiPresencePenaltyValue">0</span>
</div>
</div>
<!-- OpenRouter Config -->
<div id="openrouterConfig" class="provider-config" style="display: none;">
<div class="provider-header">
<h4>🌐 OpenRouter Settings</h4>
</div>
<div class="control-group">
<label>API Key</label>
<div class="input-with-eye">
<input type="password" id="openrouterKey" placeholder="Enter OpenRouter API key" onchange="updateOpenRouterConfig()">
<button type="button" class="eye-btn" onclick="togglePasswordVisibility('openrouterKey', this)">👁️</button>
</div>
</div>
<div class="control-group">
<label>Model</label>
<input type="text" id="openrouterModel" placeholder="e.g., anthropic/claude-3.5-sonnet" onchange="updateOpenRouterConfig()">
<small style="color: #888; font-size: 11px;">Find models at <a href="https://openrouter.ai/models" target="_blank">openrouter.ai/models</a></small>
</div>
<div class="control-group">
<label>Temperature</label>
<input type="range" id="openrouterTemperature" min="0" max="2" step="0.1" value="0.7" onchange="updateOpenRouterConfig()">
<span class="range-value" id="openrouterTemperatureValue">0.7</span>
</div>
<div class="control-group">
<label>Max Tokens</label>
<input type="range" id="openrouterMaxTokens" min="1" max="4096" step="1" value="512" onchange="updateOpenRouterConfig()">
<span class="range-value" id="openrouterMaxTokensValue">512</span>
</div>
<div class="control-group">
<label>Top P</label>
<input type="range" id="openrouterTopP" min="0" max="1" step="0.05" value="1" onchange="updateOpenRouterConfig()">
<span class="range-value" id="openrouterTopPValue">1.0</span>
</div>
</div>
</div>
</div>
<!-- Twitch Stream Integration -->
<div class="accordion-section">
<div class="accordion-header" onclick="toggleAccordionFromHTML('twitchSettings')">
<span>📺 Twitch Stream Integration</span>
<span class="accordion-icon">▼</span>
</div>
<div class="accordion-content" id="twitchSettings">
<div class="control-group">
<label>
<input type="checkbox" id="enableStreamMode" onchange="toggleStreamMode()">
Enable Stream Mode
</label>
</div>
<div class="control-group">
<label>Twitch Channel</label>
<input type="text" id="twitchChannel" placeholder="Enter channel name (e.g., ninja)" onchange="saveTwitchSettings()">
</div>
<div class="control-group">
<label>Messages to Accumulate</label>
<input type="range" id="messageAccumulation" min="3" max="50" step="1" value="15" onchange="saveTwitchSettings()">
<span class="range-value" id="messageAccumulationValue">15</span>
</div>
<div class="control-group">
<div style="display: flex; gap: 10px;">
<button id="twitchConnectBtn" onclick="toggleTwitchConnection()" style="flex: 1;">Connect to Chat</button>
<button onclick="clearTwitchChat()" style="flex: 1;">Clear Chat</button>
</div>
</div>
<div class="tts-info">
<p>💡 <strong>Stream Mode:</strong></p>
<p>• Chat overlay appears on the left side</p>
<p>• AI responds after accumulating set number of messages</p>
<p>• Use hotkey for voice input while streaming</p>
<p>• Status: <span id="twitchStatus">Disconnected</span></p>
</div>
</div>
</div>
<!-- Display Options -->
<div class="accordion-section">
<div class="accordion-header" onclick="toggleAccordionFromHTML('displayOptions')">
<span>📺 Display Options</span>
<span class="accordion-icon">▼</span>
</div>
<div class="accordion-content" id="displayOptions">
<div class="control-group">
<label style="display: flex; align-items: center; gap: 8px;">
<input type="checkbox" id="stealthMode" onchange="toggleStealthMode()">
<span>🥷 Stealth Mode</span>
</label>
<p class="upload-hint">Hide header, footer, and make background transparent (perfect for desktop overlay)</p>
</div>
<div class="control-group">
<label>Your Name</label>
<input type="text" id="userName" placeholder="Enter your name..." onchange="updateUserName()">
<p class="upload-hint">This name will appear in chat logs and interactions</p>
</div>
<div class="control-group">
<label>Character Name</label>
<input type="text" id="characterName" placeholder="Enter character name..." onchange="updateCharacterName()">
<p class="upload-hint">This name will appear as the AI character in chats</p>
</div>
<div class="control-group">
<label>Quick Character Generator</label>
<div style="display: flex; gap: 10px; align-items: flex-start;">
<input type="text" id="characterPrompt" placeholder="Describe character (e.g. 'tsundere anime girl', 'wise wizard', 'cheerful assistant')" style="flex: 1;">
<button class="control-btn" onclick="generateCharacter()" style="white-space: nowrap;">🎲 Generate</button>
</div>
<p class="upload-hint">AI will generate a personality description based on your prompt</p>
</div>
<div class="control-group">
<label>🎭 Character Personality</label>
<textarea id="characterDescription" rows="4" onchange="updateCharacterDescription()"
placeholder="Describe your character's personality, traits, and behavior..."></textarea>
<button class="control-btn" onclick="applyCharacterToChat()" style="background-color: #4CAF50; margin-top: 5px;">
✅ Apply Character to Chat
</button>
<p class="upload-hint">Character personality only (name, traits, speaking style). This gets applied to the System Prompt in AI Config.</p>
</div>
<div class="control-group">
<label>
<input type="checkbox" id="showChatBubble" checked="" onchange="toggleChatBubble()">
Show Chat Bubble
</label>
</div>
<div class="control-group">
<label>
<input type="checkbox" id="enableSubtitles" checked="" onchange="toggleSubtitles()">
Enable Live Subtitles
</label>
<p class="upload-hint">Shows AI response text synced with TTS audio</p>
</div>
</div>
</div>
<!-- Voice Controls -->
<div class="accordion-section">
<div class="accordion-header" onclick="toggleAccordionFromHTML('voiceControls')">
<span>🎙️ Voice Controls</span>
<span class="accordion-icon">▼</span>
</div>
<div class="accordion-content" id="voiceControls">
<div class="control-group">
<label>Microphone Input</label>
<select id="microphoneSelect" onchange="changeMicrophone()">
<option value="">Select microphone...</option>
</select>
</div>
<div class="control-group">
<label>Mic Gain</label>
<input type="range" id="micGain" min="1" max="5" value="1" step="0.1">
<span class="range-value" id="micGainValue">1.0x</span>
</div>
<div class="control-group">
<label>Speech Recognition Hotkey</label>
<select id="speechHotkey" onchange="updateSpeechHotkey()">
<option value="Shift">Shift (Always Active)</option>
<option value="Control">Ctrl (Always Active)</option>
<option value="Alt">Alt (Always Active)</option>
<option value="Space">Space (Always Active)</option>
<option value="KeyT">T Key (Always Active)</option>
<option value="KeyV">V Key (Always Active)</option>
</select>
</div>
<div class="voice-controls">
<button class="control-btn" id="listenBtn" onclick="startListening()">
🎤 Start Listening
</button>
<button class="control-btn" id="stopBtn" onclick="stopListening()">
⏹️ Stop Listening
</button>
<button class="control-btn" id="clearConvoBtn" onclick="clearConversationHistory()" style="background-color: #ff4444; margin-top: 10px;">
🗑️ Clear Conversation History
</button>
</div>
<div class="voice-controls" style="margin-top: 10px;">
<button class="control-btn" onclick="testTTS()">
🔊 Test TTS
</button>
<button class="control-btn" onclick="testBrowserTTS()">
📢 Test Browser TTS
</button>
</div>
</div>
</div>
<!-- VRM & Animations -->
<div class="accordion-section">
<div class="accordion-header" onclick="toggleAccordionFromHTML('vrmAnimations')">
<span>🎭 VRM & Animations</span>
<span class="accordion-icon">_</span>
</div>
<div class="accordion-content" id="vrmAnimations">
<div class="control-group">
<label>Animation File (.vrma or .fbx)</label>
<input type="file" id="animationFile" accept=".vrma,.fbx" onchange="handleAnimationFile()">
<p class="upload-hint">Supports VRMA and FBX (Mixamo) animations</p>
</div>
<div class="control-group" style="display:flex; gap:8px;">
<button class="control-btn" onclick="playAnimation()" style="flex:1; background: linear-gradient(45deg, #4ecdc4, #44a6b5);">▶ Play</button>
<button class="control-btn" onclick="stopAnimation()" style="flex:1; background: linear-gradient(45deg, #ff6b6b, #ee5a52);">⏹ Stop</button>
<button class="control-btn" onclick="resetAnimation()" style="flex:1; background: linear-gradient(45deg, #ffa500, #ff8c00);">⏮ Reset</button>
<button class="control-btn" onclick="clearAnimation()" style="flex:1; background: linear-gradient(45deg, #666, #555);">🧹 Clear</button>
</div>
<div class="control-group" style="display:flex; gap:8px;">
<button class="control-btn" onclick="assignCurrentAsIdle()" style="flex:1; background: linear-gradient(45deg, #4ecdc4, #44a6b5);">😴 Set as Idle</button>
<button class="control-btn" onclick="assignCurrentAsTalking()" style="flex:1; background: linear-gradient(45deg, #ff6b6b, #ee5a52);">🗣️ Set as Talking</button>
</div>
<div class="control-group">
<p class="upload-hint">💡 <strong>Animation Workflow:</strong></p>
<p class="upload-hint">1. Load an animation file (.vrma or .fbx)</p>
<p class="upload-hint">2. Test it with Play/Stop/Reset</p>
<p class="upload-hint">3. Assign as Idle (default) or Talking (TTS)</p>
<p class="upload-hint">4. TTS will automatically use talking animation!</p>
</div>
</div>
</div>
<!-- Environment Section -->
<div class="accordion-section">
<div class="accordion-header" onclick="toggleAccordionFromHTML('environmentSettings')">
<span>🏠 Environment & Room</span>
<span class="accordion-icon">_</span>
</div>
<div class="accordion-content" id="environmentSettings">
<div class="file-upload-container">
<input type="file" id="roomFile" accept=".glb,.gltf" hidden>
<button class="upload-btn" onclick="document.getElementById('roomFile').click()">Upload Room (.glb/.gltf)</button>
<button class="control-btn" id="loadDemoRoom" style="margin-left:8px;">Load Demo Room</button>
</div>
<div class="file-upload-container" style="margin-top:10px;">
<input type="file" id="floorTextureFile" accept=".jpg,.jpeg,.png,.bmp,.gif" hidden>
<button class="upload-btn" onclick="document.getElementById('floorTextureFile').click()">Floor Texture</button>
<button class="control-btn" id="clearFloorTexture" style="margin-left:8px;">Use Default Floor</button>
</div>
<div class="control-group" style="margin-top:10px;">
<label>
<input type="checkbox" id="transparentBgToggle" onchange="toggleTransparentBackground(this.checked)"> Transparent Background
</label>
</div>
<div class="control-group">
<button class="control-btn" id="resetCamera">Reset Camera</button>
</div>
</div>
</div>
</div>
</div>
<!-- Status Indicator -->
<div class="status-indicator" id="statusIndicator">
<div class="status-icon">🎤</div>
<div class="status-text">Ready to chat</div>
</div>
<!-- Loading Screen -->
<div class="loading-screen" id="loadingScreen">
<div class="loading-content">
<div class="loading-spinner"></div>
<p>Loading VRM Avatar...</p>
</div>
</div>
<!-- Credits Footer -->
<footer class="app-footer">
<div class="credits">
<p>Webwaifu v2.0 • Based on <a href="https://github.com/automattic/VU-VRM" target="_blank">VU-VRM</a> by <strong>itsTallulahhh</strong></p>
</div>
</footer>
<!-- VRM + Room Viewer (module) -->
<script type="module">
import * as THREE from 'three';
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
import { FBXLoader } from 'three/addons/loaders/FBXLoader.js';
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
import { VRMLoaderPlugin } from '@pixiv/three-vrm';
import { VRMAnimationLoaderPlugin, createVRMAnimationClip } from '@pixiv/three-vrm-animation';
let scene, camera, renderer, controls, clock;
let vrm = null;
let currentVrm = null; // Global VRM instance for compatibility with reference script.js
let room = null;
let currentMixer = null;
let currentAnimationAction = null;
let animationClip = null;
let idleAnimation = null;
let talkingAnimation = null;
let isTalking = false;
let customFloorTexture = null;
let isDemoRoomLoaded = false;
// Eye tracking and head movement variables
let lookAtTarget = null;
let mouseMovement = { x: 0, y: 0, intensity: 0 };
let lastMousePosition = { x: 0, y: 0 };
let lastMouseTime = Date.now();
let isLeftMouseDown = false;
let isRightMouseDown = false;
let cursorTrackingEnabled = false;
const raycaster = new THREE.Raycaster();
const mouse = new THREE.Vector2();
// Advanced camera and VRM movement tracking
let lastCameraPosition = null;
let lastCameraRotation = null;
let cameraMovement = { intensity: 0, deltaX: 0, deltaY: 0, deltaZ: 0, rotationIntensity: 0 };
// VRM position configuration
const vrmConfig = {
posX: 0,
posY: 0,
posZ: 0,
scale: 1.0,
rotY: 0
};
// Mixamo to VRM bone mapping (from working reference)
const mixamoVRMRigMap = {
mixamorigHips: 'hips',
mixamorigSpine: 'spine',
mixamorigSpine1: 'chest',
mixamorigSpine2: 'upperChest',
mixamorigNeck: 'neck',
mixamorigHead: 'head',
mixamorigLeftShoulder: 'leftShoulder',
mixamorigLeftArm: 'leftUpperArm',
mixamorigLeftForeArm: 'leftLowerArm',
mixamorigLeftHand: 'leftHand',
mixamorigLeftHandThumb1: 'leftThumbMetacarpal',
mixamorigLeftHandThumb2: 'leftThumbProximal',
mixamorigLeftHandThumb3: 'leftThumbDistal',
mixamorigLeftHandIndex1: 'leftIndexProximal',
mixamorigLeftHandIndex2: 'leftIndexIntermediate',
mixamorigLeftHandIndex3: 'leftIndexDistal',
mixamorigLeftHandMiddle1: 'leftMiddleProximal',
mixamorigLeftHandMiddle2: 'leftMiddleIntermediate',
mixamorigLeftHandMiddle3: 'leftMiddleDistal',
mixamorigLeftHandRing1: 'leftRingProximal',
mixamorigLeftHandRing2: 'leftRingIntermediate',
mixamorigLeftHandRing3: 'leftRingDistal',
mixamorigLeftHandPinky1: 'leftLittleProximal',
mixamorigLeftHandPinky2: 'leftLittleIntermediate',
mixamorigLeftHandPinky3: 'leftLittleDistal',
mixamorigRightShoulder: 'rightShoulder',
mixamorigRightArm: 'rightUpperArm',
mixamorigRightForeArm: 'rightLowerArm',
mixamorigRightHand: 'rightHand',
mixamorigRightHandPinky1: 'rightLittleProximal',