-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathindex.html
1843 lines (1701 loc) · 116 KB
/
index.html
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>
<head>
<meta charset="UTF-8">
<title>xVA Synth</title>
</head>
<link rel="stylesheet" type="text/css" href="style.css">
<style id="cssHack">
::selection {
background: gray;
}
::-webkit-scrollbar-thumb {
background: rgba(204,204,204, 0.5) !important;
}
a {
color: rgb(204, 204, 204);
}
.invertedButton {
background: none;
border: 2px solid #ccc;
}
</style>
<style id="css_hack_pitch_editor">.slider::-webkit-slider-thumb {height: 50px;}</style>
<body>
<div id="chromeBar">
<div id="dragBar">xVA Synth</div>
<div id="chromeActions">
<div id="chromeMin">🗕</div>
<div id="chromeMax">🗖</div>
<div id="chromeQuit">✖</div>
</div>
</div>
<div id="appcontent">
<div id="left">
<div class="top" id="topLeft">
<div id="selectedGameDisplay">Select game</div>
<button id="changeGameButton">⇄</button>
</div>
<div id="searchContainer">
<input type="text" id="voiceSearchInput" name="" placeholder="Search voices...">
</div>
<div class="content">
<div id="voiceTypeContainer" style="height: calc(95vh - 107px)"></div>
<div style="height: 35px;width: 100%;display: flex;justify-content: center;">
<button id="nexusMenuButton" class="invertedButton" style="width: 280px;max-width: 300px;">Get more voices</button>
</div>
</div>
</div>
<div id="right">
<div id="rightBG1"></div>
<div id="rightBG2"></div>
<div id="topRight" class="top">
<span></span>
<div id="title">
<div id="titleInfo" style="display: none;">i</div>
<div id="titleDetails" class="flexTable">
<div>
<div id="i18n_voiceInfo_name">Voice Name:</div>
<div id="titleInfoName"></div>
</div>
<div>
<div id="i18n_voiceInfo_id">Voice ID:</div>
<div id="titleInfoVoiceID"></div>
</div>
<div>
<div id="i18n_voiceInfo_gender">Gender:</div>
<div id="titleInfoGender"></div>
</div>
<div>
<div id="i18n_voiceInfo_appVersion">App version:</div>
<div id="titleInfoAppVersion">4</div>
</div>
<div>
<div id="i18n_voiceInfo_modelVersion">Model version:</div>
<div id="titleInfoModelVersion"></div>
</div>
<div>
<div id="i18n_voiceInfo_modelType">Model type:</div>
<div id="titleInfoModelType"></div>
</div>
<div>
<div id="i18n_voiceInfo_lang">Language:</div>
<div id="titleInfoLanguage">English</div>
</div>
<div>
<div id="i18n_voiceInfo_author">Trained by:</div>
<div id="titleInfoAuthor"></div>
</div>
<div>
<div id="i18n_voiceInfo_license">License:</div>
<div id="titleInfoLicense">Unknown</div>
</div>
</div>
<div id="titleName">Select Voice Type</div>
</div>
<svg style="display:none;" id="cogButton" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50">
<path fill="black" stroke="white" stroke-width="3" d="M47.16,21.221l-5.91-0.966c-0.346-1.186-0.819-2.326-1.411-3.405l3.45-4.917c0.279-0.397,0.231-0.938-0.112-1.282 l-3.889-3.887c-0.347-0.346-0.893-0.391-1.291-0.104l-4.843,3.481c-1.089-0.602-2.239-1.08-3.432-1.427l-1.031-5.886 C28.607,2.35,28.192,2,27.706,2h-5.5c-0.49,0-0.908,0.355-0.987,0.839l-0.956,5.854c-1.2,0.345-2.352,0.818-3.437,1.412l-4.83-3.45 c-0.399-0.285-0.942-0.239-1.289,0.106L6.82,10.648c-0.343,0.343-0.391,0.883-0.112,1.28l3.399,4.863 c-0.605,1.095-1.087,2.254-1.438,3.46l-5.831,0.971c-0.482,0.08-0.836,0.498-0.836,0.986v5.5c0,0.485,0.348,0.9,0.825,0.985 l5.831,1.034c0.349,1.203,0.831,2.362,1.438,3.46l-3.441,4.813c-0.284,0.397-0.239,0.942,0.106,1.289l3.888,3.891 c0.343,0.343,0.884,0.391,1.281,0.112l4.87-3.411c1.093,0.601,2.248,1.078,3.445,1.424l0.976,5.861C21.3,47.647,21.717,48,22.206,48 h5.5c0.485,0,0.9-0.348,0.984-0.825l1.045-5.89c1.199-0.353,2.348-0.833,3.43-1.435l4.905,3.441 c0.398,0.281,0.938,0.232,1.282-0.111l3.888-3.891c0.346-0.347,0.391-0.894,0.104-1.292l-3.498-4.857 c0.593-1.08,1.064-2.222,1.407-3.408l5.918-1.039c0.479-0.084,0.827-0.5,0.827-0.985v-5.5C47.999,21.718,47.644,21.3,47.16,21.221z M25,32c-3.866,0-7-3.134-7-7c0-3.866,3.134-7,7-7s7,3.134,7,7C32,28.866,28.866,32,25,32z"></path>
</svg>
</div>
<div class="content">
<div id="inputContainer">
<div id="micContainer" style="width:100px;margin-top: -10px;margin-bottom: 10px;">
<svg id="mic_SVG" xmlns="http://www.w3.org/2000/svg" fill="grey" viewBox="0 0 352 512"><path stroke="grey" d="M176 352c53.02 0 96-42.98 96-96V96c0-53.02-42.98-96-96-96S80 42.98 80 96v160c0 53.02 42.98 96 96 96zm160-160h-16c-8.84 0-16 7.16-16 16v48c0 74.8-64.49 134.82-140.79 127.38C96.71 376.89 48 317.11 48 250.3V208c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v40.16c0 89.64 63.97 169.55 152 181.69V464H96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16h-56v-33.77C285.71 418.47 352 344.9 352 256v-48c0-8.84-7.16-16-16-16z"/></svg>
<svg id="mic_progress_SVG" height="75" width="75">
<circle id="mic_progress_SVG_circle" stroke-width="5" fill="transparent" stroke="white" r="35" cx="37" cy="37" />
</svg>
<div id="s2s_voiceId_selected_label_container" style="width: 125px;display: flex;justify-content: center;">
<div id="s2s_voiceId_selected_label" style="display:none;color: white;position: absolute;background: rgba(0,0,0,0.5);z-index: 100;padding: 2px;font-size: 9pt;margin-top: -10px;">Voice conversion only available for v3 models.</div>
</div>
</div>
<!-- <textarea id="dialogueInput" placeholder="Type your text here..."></textarea> -->
<!-- ======================== -->
<!-- ======= TEMP ======= -->
<!-- ======================== -->
<div id="text_editor_scratch_space"></div>
<div id="textEditorTooltip"></div>
<div id="textEditorContainer">
<div id="textEditorElem"></div>
<textarea spellcheck="false" id="dialogueInput" placeholder="Type your text here..."></textarea>
</div>
<!-- ======================== -->
<!-- ======= TEMP ======= -->
<!-- ======================== -->
</div>
<div id="wavesurferContainerContainer" style="display: flex;justify-content: center;height: 100px; max-height: 100px; width: 100%;overflow: hidden;">
<div id="wavesurferContainer" style="height: 200px; width: calc(100% - 20px);cursor: text;filter: drop-shadow(1px 0px 0px rgba(0, 0, 0, 1));">
</div>
</div>
<div id="buttonContainer">
<button style="display:none;" id="keepSampleButton">Keep sample</button>
<div style="display:none;" id="spinner" class="spinner"></div>
<button style="display:none;" id="samplePlayPause">Play</button>
<button id="generateVoiceButton" disabled>Generate Voice</button>
</div>
<div id="adv">
<div id="editorContainer" style="height: 225px;background-color: rgba(255, 255, 255, 0.2);">
</div>
<div id="editorTooltip"></div>
<div id="adv_opts">
<div>
<div>
<span id="i18n_seq_edit_view">View:</span>
<select id="seq_edit_view_select">
<option id="seq_edit_view_pitch_energy" value="pitch_energy">Pitch+Energy</option>
<option id="seq_edit_view_pitch" value="pitch">Pitch</option>
<option id="seq_edit_view_energy" value="energy">Energy</option>
<option id="seq_edit_view_emAngry" value="emAngry">Emotion: Angry</option>
<option id="seq_edit_view_emHappy" value="emHappy">Emotion: Happy</option>
<option id="seq_edit_view_emSad" value="emSad">Emotion: Sad</option>
<option id="seq_edit_view_emSurprise" value="emSurprise">Emotion: Surprise</option>
</select>
</div>
<div>
<span id="i18n_energy">Energy:</span>
<input id="letterEnergyNumb" disabled="true" type="number" name="energyNum" min="3.6" step="0.01" max="4.3">
</div>
<div>
<span id="i18n_length">Length:</span>
<input id="letterLengthNumb" disabled="true" type="number" name="lengthNum" min="0.1" step="0.1" max="15">
</div>
<div>
<span id="i18n_pitch">Pitch:</span>
<input id="letterPitchNumb" disabled="true" type="number" name="lengthNum" min="-3" step="0.025" max="3">
</div>
<div>
<span id="i18n_emotion_is">Emotion:</span>
<input id="letterEmotionNumb" disabled="true" type="number" name="lengthNum" min="0" step="0.05" max="1">
</div>
<div>
<span id="i18n_style_emb_is">Style:</span>
<input id="letterStyleNumb" disabled="true" type="number" name="lengthNum" min="0" step="0.05" max="1">
</div>
<button id="resetLetter_btn">Reset Letter</button>
<div id="vocoder_options_container" style="display: none;">
<span id="i18n_vocoder">Vocoder:</span>
<select id="vocoder_select">
<option value="256_waveglow">WaveGlow</option>
<option value="big_waveglow">Big WaveGlow</option>
<option value="qnd">Quick-and-dirty</option>
</select>
<span id="bespoke_hifi_bolt">🗲</span>
</div>
</div>
<div>
<div>
<span id="i18n_seq_edit_edit">Edit:</span>
<select id="seq_edit_edit_select">
<option id="seq_edit_edit_pitch" value="pitch">Pitch</option>
<option id="seq_edit_edit_energy" value="energy">Energy</option>
<option id="seq_edit_edit_emotion" value="emotion">Emotion</option>
</select>
</div>
<div id="editor_amplitude_options">
<span>Amplitude</span>
<input id="setting_editor_audio_amplitude" name="" placeholder="1" type="number" step=0.01 min=0>
</div>
<button id="reset_btn">Reset</button>
<button id="amplify_btn">Amplify</button>
<button id="flatten_btn">Flatten</button>
<button id="jitter_btn">Jitter</button>
<button id="increase_btn">Raise</button>
<button id="decrease_btn">Lower</button>
<div>
<span id="i18n_pacing">Pacing:</span>
<input id="pace_slid" style="width: 100px;" type="range" name="length" min="0.5" step="0.01" max="2" value="1">
<input style="margin-left: 5px;" id="paceNumbInput" type="number" name="paceNumbInput" min="0.5" step="0.1" max="2" value="1">
</div>
<div id="variantElements" style="display: none">
<span id="i18n_variant">Variant</span>
<select id="variant_select"></select>
</div>
</div>
<div>
<div id="style_embedding_dropdown_container">
<span id="i18n_base_style_emb_is">Base Style:</span>
<select id="style_emb_select" style="width: 200px;" disabled="true">
<option id="default_opt_style_emb"></option>
</select>
<button id="style_emb_manage_btn" style="margin-left: 5px;">Manage</button>
</div>
<div id="base_lang_options_container">
<span id="i18n_base_lang">Base Language:</span>
<select id="base_lang_select" disabled="true"></select>
</div>
<div>
<span id="i18n_use_SR">Use SR</span>
<input id="useSRCkbx" type="checkbox">
</div>
<div>
<span id="i18n_use_cleanup">Use Clean-up</span>
<input id="useCleanupCkbx" type="checkbox" checked>
</div>
</div>
</div>
</div>
<div id="voiceSamples"></div>
<div style="display: flex;align-items: center;margin-left: 10px;margin-right: 6px;margin-top: 10px;height: 35px;">
<div style="flex-grow: 1;display: flex;margin-right: 5px;">
<input id="voiceSamplesSearch" placeholder="Search output file names..." style="height: 30px;font-size: 14pt;margin-right: 2px;">
<input id="voiceSamplesSearchPrompt" placeholder="Search prompts..." style="height: 30px;font-size: 14pt;">
</div>
<div style="width: 650px;display: flex;align-items: center;justify-content: flex-end;">
<button id="main_paginationPrev" style="margin-right: 5px;">Previous</button>
<div style="display: flex;align-items: center;">
<div id="i18n_page_main">Page:</div>
<input id="main_pageNum" type="number" min="1" step="1" style="height: 25px;width: 50px;margin: 10px;">
<div id="main_total_pages" style="margin-right: 10px;"></div>
</div>
<button id="main_paginationNext" style="margin-right: 5px;">Next</button>
<button id="voiceRecordsDeleteAllButton" style="margin-right: 10px;">Delete all</button>
<div id="i18n_sortByOutput" style="text-shadow: 0px 0px 1px rgba(255,255,255,0.4);font-weight: bold;margin-right: 5px;">Sort by:</div>
<button id="voiceRecordsOrderByButton" style="margin-left: 5px;margin-right: 5px;">Name</button>
<button id="voiceRecordsOrderByOrderButton">Ascending</button>
</div>
</div>
</div>
</div>
<div id="settingsContainer" style="display:none">
<div class="modal" style="height: 75vh;width: 60vw">
<h2 id="i18n_settings" style="margin-bottom: 0;">Settings</h2>
<div style="width: 90%;">
<input id="searchSettingsInput" placeholder="Search settings...">
</div>
<div id="settingsOptionsContainer" class="flexTable">
<div>
<div id="i18n_setting_gpu">Use GPU (requires CUDA)</div>
<div>
<input id="useGPUCbx" type="checkbox" name="">
</div>
</div>
<div>
<div style="flex-direction: row;justify-content: flex-end;">
<span id="i18n_settings_curr_install">Current installation:</span>
<span id="settings_installation" style="margin-left: 5px;">CPU</span>
</div>
<div>
<button id="setting_change_installation">Change to CPU+GPU</button>
</div>
</div>
<div>
<div id="i18n_setting_autoplay">Autoplay generated audio</div>
<div>
<input id="setting_autoplaygenCbx" type="checkbox" name="">
</div>
</div>
<div>
<div id="i18n_setting_defaulthifi">Default to loading the HiFi vocoder on voice change, if available</div>
<div>
<input id="setting_defaultToHiFi" type="checkbox" name="">
</div>
</div>
<div>
<div id="i18n_setting_keeppacing">Keep the same pacing value on new text generations</div>
<div>
<input id="setting_keepPaceOnNew" type="checkbox" name="">
</div>
</div>
<!-- <div>
<div id="i18n_setting_tooltip">Show the sliders tooltip</div>
<div>
<input id="setting_slidersTooltip" type="checkbox" name="">
</div>
</div> -->
<div>
<div id="i18n_autoregen">Auto regenerate</div>
<div>
<input id="autoplay_ckbx" type="checkbox" name="">
</div>
</div>
<div>
<div id="i18n_showDiscordStatus">Show Discord status</div>
<div>
<div style="display: flex;align-items: center;">
<input id="setting_show_discord_status" type="checkbox" name="">
<button id="openDiscord">Join xVASynth server</button>
</div>
</div>
</div>
<div>
<div id="i18n_setting_promptfontsize">Text prompt font size</div>
<div>
<input id="setting_prompt_fontSize" type="number" min="6" step="1">
</div>
</div>
<div>
<div id="i18n_setting_bg_fade">Background image fade opacity</div>
<div>
<input id="setting_bg_gradient_opacity" type="number" min="0" max="1" step="0.1">
</div>
</div>
<div>
<div id="i18n_setting_autoreloadvoices">Auto-reload voices on files changes</div>
<div>
<input id="setting_areload_voices" type="checkbox" name="">
</div>
</div>
<div>
<div id="i18n_setting_keepeditorstate">Keep editor state on voice change</div>
<div>
<input id="setting_keepEditorOnVoiceChange" type="checkbox" name="">
</div>
</div>
<div>
<div id="i18n_setting_pitchrangeoverride">Pitch range over-ride</div>
<div style="flex-direction: row">
<input id="setting_pitchrangeoverrideEnabledCkbx" type="checkbox" name="">
<input id="setting_pitchrangeoverride" type="number" style="margin-right: 25px;" min="1" step="1">
</div>
</div>
<div>
<div id="i18n_setting_outputjson">Output .json (needed for editing)</div>
<div>
<input id="setting_output_json" type="checkbox" name="">
</div>
</div>
<div>
<div id="i18n_setting_seqnumbering">Use sequential numbering for file names</div>
<div>
<input id="setting_output_num_seq" type="checkbox" name="">
</div>
</div>
<div>
<div id="i18n_setting_spacepadding">Automatically pad text sequence with spaces (better quality, usually)</div>
<div>
<input id="setting_space_padding" type="checkbox" name="">
</div>
</div>
<div>
<div id="i18n_setting_base_speaker">Base app output device</div>
<div>
<select id="setting_base_speaker">
</select>
</div>
</div>
<div>
<div id="i18n_setting_alt_speaker">Alternate output device (ctrl+click play)</div>
<div>
<select id="setting_alt_speaker">
</select>
</div>
</div>
<div>
<div id="i18n_settings_useSound">Use sound for errors</div>
<div>
<input id="setting_use_error_sound" type="checkbox" name="">
</div>
</div>
<div>
<div id="i18n_settings_err_soundfile">Error sound file</div>
<div style="flex-direction: row;">
<input id="setting_error_sound_file" style="width: 80%;">
<button id="setting_errorSoundFileBtn" class="svgButton"></button>
</div>
</div>
<div>
<div id="i18n_settings_showTOTD">Show tip of the day</div>
<div style="flex-direction: row;">
<input id="setting_showTipOfTheDay" type="checkbox" style="width: 50%;">
<button id="setting_btnShowTOTD">Show now</button>
</div>
</div>
<div>
<div id="i18n_settings_unseenTOTD">Only show unseen tips</div>
<div>
<input id="setting_showUnseenTipOfTheDay" type="checkbox">
</div>
</div>
<div>
<div id="i18n_settings_playChangedAudio">Play only changed audio, when regenerating</div>
<div>
<input id="setting_playChangedAudio" type="checkbox">
</div>
</div>
<div>
<div id="i18n_settings_arpabetPagination">ARPAbet pagination size</div>
<div>
<input id="setting_arpabet_paginationSize" type="number" value="200">
</div>
</div>
<div>
<div id="i18n_settings_max_filename_chars">Maximum filename characters (trimming for maximum windows filepath length)</div>
<div>
<input id="setting_max_filename_chars" type="number" placeholder="70" min="20">
</div>
</div>
<div>
<div id="i18n_settings_clear_text_after_synth">Clear the text input after generation</div>
<div>
<input id="setting_clear_text_after_synth" type="checkbox">
</div>
</div>
<div>
<div id="i18n_settings_model_version_highlight">Highlight only models with at least this version</div>
<div style="flex-direction: row">
<input id="setting_do_model_version_highlight" type="checkbox">
<input id="setting_model_version_highlight" style="margin-right: 25px;" type="number" min="1" step="0.1" value="2">
</div>
</div>
<div>
<div id="i18n_setting_output_files_pagination_size">Output records pagination size</div>
<div>
<input id="setting_output_files_pagination_size" type="number" value="25">
</div>
</div>
<hr style="width:100%">
<div>
<div id="i18n_setting_external_edit">External program for editing audio</div>
<div style="flex-direction: row">
<input id="setting_external_audio_editor" name="" placeholder="C:/Program Files (x86)/Audacity/audacity.exe" style="width: 80%">
<button id="setting_externalEditorButton" class="svgButton"></button>
</div>
</div>
<div>
<div id="i18n_setting_ffmpeg">Use ffmpeg post-processing</div>
<div>
<input id="setting_audio_ffmpeg" name="" type="checkbox">
</div>
</div>
<!-- <div>
<div id="i18n_setting_ffmpeg_preapply">(recommended) Pre-apply ffmpeg effects to the preview sample</div>
<div>
<input id="setting_audio_ffmpeg_preview" name="" type="checkbox">
</div>
</div> -->
<div>
<div id="i18n_setting_ffmpeg_format">Audio format (wav, mp3, etc)</div>
<div>
<input id="setting_audio_format" name="" placeholder="wav">
</div>
</div>
<div>
<div id="i18n_setting_ffmpeg_hz">Audio sample rate (Hz)</div>
<div>
<input id="setting_audio_hz" type="number" placeholder="22050">
</div>
</div>
<div>
<div id="i18n_setting_ffmpeg_padstart">Silence padding start (ms)</div>
<div>
<input id="setting_audio_pad_start" name="" placeholder="0">
</div>
</div>
<div>
<div id="i18n_setting_ffmpeg_padend">Silence padding end (ms)</div>
<div>
<input id="setting_audio_pad_end" name="" placeholder="0">
</div>
</div>
<div>
<div id="i18n_setting_ffmpeg_pitchMult">Pitch multiplier</div>
<div>
<input id="setting_audio_pitchMult" name="" type="number" placeholder="1" min="0">
</div>
</div>
<div>
<div id="i18n_setting_ffmpeg_tempo">Tempo</div>
<div>
<input id="setting_audio_tempo" name="" type="number" placeholder="1" min="0">
</div>
</div>
<div>
<div id="i18n_setting_ffmpeg_deessing">De-essing</div>
<div>
<input id="setting_audio_deessing" name="" type="number" placeholder="0.1" min="0" max="1">
</div>
</div>
<div>
<div id="i18n_setting_ffmpeg_bitdepth">Audio bit depth</div>
<div>
<select id="setting_audio_bitdepth">
<option value="pcm_s16le">pcm_s16le</option>
<option value="pcm_s32le">pcm_s32le</option>
</select>
</div>
</div>
<div>
<div id="i18n_setting_useNR">Use noise reduction (recommended when using SR)</div>
<div>
<input id="setting_audio_useNR" name="" type="checkbox">
</div>
</div>
<div>
<div id="i18n_setting_ffmpeg_nr">Noise Reduction (dB)</div>
<div>
<input id="setting_audio_nr" name="" type="number" placeholder="5" min="0.01" max="97" step="0.1">
</div>
</div>
<div>
<div id="i18n_setting_ffmpeg_nf">Noise Floor (dB)</div>
<div>
<input id="setting_audio_nf" name="" type="number" placeholder="-20" min="-80" max="-20" step="1">
</div>
</div>
<div>
<div id="i18n_setting_ffmpeg_amplitude">Amplitude multiplier</div>
<div>
<input id="setting_audio_amplitude" name="" placeholder="1" type="number" step=0.01 min=0>
</div>
</div>
<div>
<div id="i18n_settings_doubleAmpDisplay">Also display amplitude setting in the editor</div>
<div>
<input id="setting_show_editor_ffmpegamplitude" name="" type="checkbox">
</div>
</div>
<hr style="width:100%">
<div>
<div id="i18n_setting_batch_json">Output .json editor data for batch lines</div>
<div>
<input id="setting_batch_json" type="checkbox" name="">
</div>
</div>
<!-- <div>
<div id="i18n_setting_batch_fastmode">Use fast mode for Batch synth</div>
<div>
<input id="setting_batch_fastmode" type="checkbox" name="">
</div>
</div>
<div>
<div id="i18n_settings_batch_mp_max_parallelizations">Maximum parallelizations of lines for Fast mode</div>
<div>
<input id="setting_batch_maxFastModeParallelizations" type="number" placeholder="1000" min="1">
</div>
</div> -->
<div>
<div id="i18n_setting_batch_multip">Use multi-processing for batch mode ffmpeg output</div>
<div>
<input id="setting_batch_multip" type="checkbox" name="">
</div>
</div>
<div>
<div id="i18n_setting_batch_multip_count">Number of processes (0 for cpu count -1)</div>
<div>
<input id="setting_batch_multip_count" type="number" placeholder="0" min="0">
</div>
</div>
<div>
<div id="i18n_settings_csv_delimiter">CSV delimiter</div>
<div>
<input id="setting_batch_delimiter">
</div>
</div>
<div>
<div id="i18n_settings_paginationSize">Pagination size</div>
<div>
<input id="setting_batch_paginationSize" type="number">
</div>
</div>
<div>
<div id="i18n_settings_groupVoiceID">Group voices by voiceId and vocoder in preprocessing to minimize model switching</div>
<div>
<input id="setting_batch_doGrouping" type="checkbox">
</div>
</div>
<div>
<div id="i18n_settings_groupVocoder">Also do a secondary group by the vocoder - can take long to do with big files (100k+ lines)</div>
<div>
<input id="setting_batch_doVocoderGrouping" type="checkbox">
</div>
</div>
<hr style="width:100%">
<div>
<div id="i18n_setting_microphone">Microphone</div>
<div>
<select id="setting_mic_selection">
</select>
</div>
</div>
<!-- <div>
<div id="i18n_setting_autogeneratevoice">Automatically generate voice</div>
<div>
<input id="setting_s2s_autogenerate" type="checkbox" name="">
</div>
</div> -->
<div style="min-height: 65px;display: none;">
<div id="i18n_setting_s2s_bgnoise">Remove background noise from microphone. You need to record a background noise clip first. (requires sox >= v14.4.2) </div>
<div>
<div style="display: flex;align-items: center;">
<input style="margin-right: 20px;" id="setting_s2s_removeNoise" type="checkbox" name="">
<button id="s2s_settingsRecNoiseBtn">Record noise</button>
</div>
</div>
</div>
<div>
<div id="i18n_vc_strength">Voice Conversion strength (1-3 recommended)</div>
<div>
<input id="setting_s2s_vcstrength" name="" placeholder="2" type="number" step=0.1>
</div>
</div>
<!-- <div>
<div id="i18n_setting_s2s_bgnoise_strength">Noise removal strength (0.2-0.3 recommended)</div>
<div>
<input id="setting_s2s_noiseRemStrength" name="" placeholder="0.25" type="number" step=0.01 min=0 max=1>
</div>
</div> -->
<hr style="width:100%">
<div>
<div>WaveGlow</div>
<div style="flex-direction: row;">
<input id="setting_256waveglow_path" style="width: 80%">
<button id="setting_waveglowPathButton" class="svgButton"></button>
</div>
</div>
<div>
<div>BIG WaveGlow</div>
<div style="flex-direction: row;">
<input id="setting_bigwaveglow_path" style="width: 80%">
<button id="setting_bigwaveglowPathButton" class="svgButton"></button>
</div>
</div>
<div id="setting_models_path_container" style="display: none">
<div id="setting_models_path_label"></div>
<div style="flex-direction: row;">
<input id="setting_models_path_input" style="width:80%">
<button id="setting_modelsPathButton" class="svgButton"></button>
</div>
</div>
<div id="setting_out_path_container" style="display: none">
<div id="setting_out_path_label"></div>
<div style="flex-direction: row;">
<input id="setting_out_path_input" style="width:80%">
<button id="setting_outPathButton" class="svgButton"></button>
</div>
</div>
</div>
<div id="resetBtnsContainer" style="width:100%;height: 60px;">
<button style="padding: 0px;" id="reset_settings_btn">Reset Settings</button>
<button style="padding: 0px;" id="reset_paths_btn">Reset Paths</button>
</div>
<div id="app_version">v1.0.0</div>
</div>
</div>
<div id="updatesContainer" style="display:none">
<div class="modal">
<div id="updatesVersions">This app version: 1.0.0</div>
<div id="i18n_updateslog">Updates log:</div>
<div id="updatesLogList">
</div>
<button id="checkUpdates">Check for updates now</button>
</div>
</div>
<div id="pluginsContainer" style="display:none">
<div class="modal" style="width: 90vw">
<h2 id="i18n_plugins">Plugins</h2>
<div id="i18n_plugins_trusted">Download plugins only from trusted sources</div>
<div id="batch_container">
<div id="batch_intro">
</div>
<div id="plugins_main" style="display: block;">
<div id="pluginsRecordsHeader">
<div id="i18n_pluginsh_enabled">Enabled</div>
<div id="i18n_pluginsh_order">Order</div>
<div id="i18n_pluginsh_name">Plugin Name</div>
<div id="i18n_pluginsh_author">Author</div>
<div id="i18n_pluginsh_endorse">Endorse</div>
<div id="i18n_pluginsh_version">Plugin Version</div>
<div id="i18n_pluginsh_type">Type</div>
<div id="i18n_pluginsh_minv">Min App Version</div>
<div id="i18n_pluginsh_maxv">Max App Version</div>
<div id="i18n_pluginsh_description">Description</div>
<div id="i18n_pluginsh_pluginid">Plugin Id</div>
</div>
<div id="pluginsRecordsContainer">
</div>
</div>
<div id="plugins_opts">
<button disabled="true" id="plugins_moveUpBtn">Move Up</button>
<button disabled="true" id="plugins_moveDownBtn">Move Down</button>
<button disabled="true" id="plugins_applyBtn">Apply</button>
</div>
</div>
</div>
</div>
<div id="infoContainer" style="display:none">
<div class="modal">
<h2 id="i18n_appinfo">App info</h2>
<span>
<span id="i18n_appinfo_instr_1">For instructions on how to use the app, please watch</span>
<a id="i18n_appinfo_instr_2" style="display:inline" href="https://www.youtube.com/watch?v=W-9SFoNuTtM" target="_blank">this short video</a>
<span id="i18n_appinfo_instr_3">showcase on YouTube.</span>
</span>
<span>
<span id="i18n_appinfo_instr_4">You can also view and/or contribute to the community guide on GitHub </span>
<a id="i18n_appinfo_instr_5" href="https://github.com/DanRuta/xvasynth-community-guide" target="_blank">here</a><span>.</span>
</span>
<hr>
<div id="i18n_keyboard_reference">Keyboard shortcuts reference</div>
<div class="flexTable" style="overflow-y: auto;">
<div>
<div id="i18n_keyboard_enter">Enter</div>
<div id="i18n_keyboard_enter_do">Generate the audio</div>
</div>
<div>
<div id="i18n_keyboard_escape">Escape</div>
<div id="i18n_keyboard_escape_do">Close modals and menus</div>
</div>
<div>
<div id="i18n_keyboard_space">Space</div>
<div id="i18n_keyboard_space_do">Bring focus to the input textarea</div>
</div>
<div>
<div id="i18n_keyboard_ctrls">Ctrl+S</div>
<div id="i18n_keyboard_ctrls_do">Keep sample</div>
</div>
<div>
<div id="i18n_keyboard_ctrlshifts">Ctrl+Shift-S</div>
<div id="i18n_keyboard_ctrlshifts_do">Keep sample (but with naming prompt)</div>
</div>
<div>
<div id="i18n_keyboard_yn">Y/N</div>
<div id="i18n_keyboard_yn_do">Yes/No options in prompt modals</div>
</div>
<div>
<div id="i18n_keyboard_lr">Left/Right arrows</div>
<div id="i18n_keyboard_lr_do">Move left/right along which letter is focused</div>
</div>
<div>
<div id="i18n_keyboard_shift_lr">Shift-Left/Right arrows</div>
<div id="i18n_keyboard_shift_lr_do">Create multi-letter selection range</div>
</div>
<div>
<div id="i18n_keyboard_ctrl_lr">Ctrl+Left/Right arrows</div>
<div id="i18n_keyboard_ctrl_lr_do">Move the sequence-wide pacing slider</div>
</div>
<div>
<div id="i18n_keyboard_alt_ctrl_lr">Alt-Ctrl-Left/Right arrows</div>
<div id="i18n_keyboard_alt_ctrl_lr_do">Adjust width of letter selection</div>
</div>
<div>
<div id="i18n_keyboard_ctrla">Ctrl+A</div>
<div id="i18n_keyboard_ctrla_do">Select all editor sequence letters</div>
</div>
<div>
<div id="i18n_keyboard_ud">Up/Down arrows</div>
<div id="i18n_keyboard_ud_do">Move pitch up/down for the letter(s) selected</div>
</div>
<div>
<div id="i18n_keyboard_ctrl_ud">Ctrl+Up/Down arrows</div>
<div id="i18n_keyboard_ctrl_ud_do">Pitch increase/decrease buttons</div>
</div>
<div>
<div id="i18n_keyboard_ctrlshiftud">Ctrl+Shift+Up/Down arrows</div>
<div id="i18n_keyboard_ctrlshiftud_do">Pitch amplify/flatten buttons</div>
</div>
<div>
<div id="i18n_keyboard_ctrlenter">Ctrl+Enter</div>
<div id="i18n_keyboard_ctrlenter_do">Manually re-generate a line</div>
</div>
</div>
</div>
</div>
<div id="patreonContainer" style="display:none">
<div class="modal">
<h2 id="i18n_support">Support</h2>
<!-- <span id="i18n_support_link">You can support 'xVASynth' development on patreon</span> -->
<!-- <span id="patreonButton" href="https://www.patreon.com/bePatron?u=48461563" data-patreon-widget-type="become-patron-button">
<svg style="height: 1rem;width: 1rem;" viewBox="0 0 569 546" xmlns="http://www.w3.org/2000/svg"><g><circle cx="362.589996" fill="#ffffff" cy="204.589996" data-fill="1" id="Oval" r="204.589996"></circle><rect fill="#ffffff" data-fill="2" height="545.799988" id="Rectangle" width="100" x="0" y="0"></rect></g></svg>
<span style="width:5px"></span>
Become a Patron!
</span> -->
<!-- <br> -->
<!-- <div>Search: xVASynth patreon</div> -->
<!-- <br><hr><br> -->
<span id="i18n_support_thanks">Special thanks:</span>
<span id="creditsList" style="overflow-y: auto;width: 100%;"></span>
</div>
</div>
<div id="gameSelectionContainer" style="display:none">
<div class="modal">
<div>
<input id="searchGameInput" placeholder="Search games...">
<div id="noAssetFilesFoundMessage" style="display:none;margin-top: 10px;margin-bottom: -10px;">Can't see all games' images? Get some example asset files from <a href="https://drive.google.com/drive/folders/1ktxlAsx25ZWR1LwXcuxwB69cRb_2Ol6N?usp=sharing">here</a> and place in <a id="assetDirLink" href="#">here</a></div>
</div>
<div id="gameSelectionListContainer"></div>
</div>
</div>
<div id="EULAContainer" style="display:none">
<div class="modal">
<div id="splash_screen1" style="flex-grow: 1;display: flex;
flex-direction: column;justify-content: space-around;width: 100%;">
<div>
<h1>Welcome to xVASynth</h1>
<div style="margin-bottom: 30px;">Watch the videos below for a quick introduction to the app</div>
</div>
<style>
.video {
aspect-ratio: 16 / 9;
width: 45%;
}
</style>
<div style="flex-grow: 1;align-items: center;display: flex; justify-content: center;">
<iframe class="video" src="https://www.youtube.com/embed/5u4xpI-cAd8" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
<iframe style="margin-left:5px;" class="video" src="https://www.youtube.com/embed/W-9SFoNuTtM" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
</div>
<div>
<button id="splashNextButton1">Next</button>
</div>
</div>
<div id="splash_screen2" style="display: none;flex-direction: column;align-items: center;">
<h1>End User License Agreement</h1>
<div>
<h2>End-User License Agreement (EULA) of <span class="app_name">xVASynth</span></h2>
<p>This End-User License Agreement ("EULA") is a legal agreement between you and <span class="company_name">Dan Ruta</span>. Our EULA was created by <a href="https://www.eulatemplate.com">EULA Template</a> for <span class="app_name">xVASynth</span>.</p></p>
<p>This EULA agreement governs your acquisition and use of our <span class="app_name">xVASynth</span> software ("Software") directly from <span class="company_name">Dan Ruta</span> or indirectly through a <span class="company_name">Dan Ruta</span> authorized reseller or distributor (a "Reseller"). Our Privacy Policy was created by <a href="https://www.generateprivacypolicy.com/">the Privacy Policy Generator</a>.</p>
<p>Please read this EULA agreement carefully before completing the installation process and using the <span class="app_name">xVASynth</span> software. It provides a license to use the <span class="app_name">xVASynth</span> software and contains warranty information and liability disclaimers.</p>
<p>If you register for a free trial of the <span class="app_name">xVASynth</span> software, this EULA agreement will also govern that trial. By clicking "accept" or installing and/or using the <span class="app_name">xVASynth</span> software, you are confirming your acceptance of the Software and agreeing to become bound by the terms of this EULA agreement.</p>
<p>If you are entering into this EULA agreement on behalf of a company or other legal entity, you represent that you have the authority to bind such entity and its affiliates to these terms and conditions. If you do not have such authority or if you do not agree with the terms and conditions of this EULA agreement, do not install or use the Software, and you must not accept this EULA agreement.</p>
<p>This EULA agreement shall apply only to the Software supplied by <span class="company_name">Dan Ruta</span> herewith regardless of whether other software is referred to or described herein. The terms also apply to any <span class="company_name">Dan Ruta</span> updates, supplements, Internet-based services, and support services for the Software, unless other terms accompany those items on delivery. If so, those terms apply.</p>
<h3>License Grant</h3>
<p><span class="company_name">Dan Ruta</span> hereby grants you a personal, non-transferable, non-exclusive licence to use the <span class="app_name">xVASynth</span> software on your devices in accordance with the terms of this EULA agreement.</p>
<p>You are permitted to load the <span class="app_name">xVASynth</span> software (for example a PC, laptop, mobile or tablet) under your control. You are responsible for ensuring your device meets the minimum requirements of the <span class="app_name">xVASynth</span> software.</p>
<p>You are not permitted to:</p>
<ul>
<li>Edit, alter, modify, adapt, translate or otherwise change the whole or any part of the Software nor permit the whole or any part of the Software to be combined with or become incorporated in any other software, nor decompile, disassemble or reverse engineer the Software or attempt to do any such things</li>
<li>Reproduce, copy, distribute, resell or otherwise use the Software for any commercial purpose</li>
<li>Allow any third party to use the Software on behalf of or for the benefit of any third party</li>
<li>Use the Software in any way which breaches any applicable local, national or international law</li>
<li>use the Software for any purpose that <span class="company_name">Dan Ruta</span> considers is a breach of this EULA agreement</li>
<li style="color:red">Label xVASynth output as being audio spoken by any real person. Make sure to obviously clarify where possible/appropriate that the audio is software generated.</li>
<li style="color:red">Use any xVASynth output for hurtful, offensive, demeaning, or any other negative effect, towards any real person. Be nice.</li>
<li style="color:red">Use xVASynth in a commercial setting</li>
</ul>
<h3>Intellectual Property and Ownership</h3>
<p><span class="company_name">Dan Ruta</span> shall at all times retain ownership of the Software as originally downloaded by you and all subsequent downloads of the Software by you. The Software (and the copyright, and other intellectual property rights of whatever nature in the Software, including any modifications made thereto) are and shall remain the property of <span class="company_name">Dan Ruta</span>.</p>
<p><span class="company_name">Dan Ruta</span> reserves the right to grant licences to use the Software to third parties.</p>
<h3>Termination</h3>
<p>This EULA agreement is effective from the date you first use the Software and shall continue until terminated. You may terminate it at any time upon written notice to <span class="company_name">Dan Ruta</span>.</p>
<p>It will also terminate immediately if you fail to comply with any term of this EULA agreement. Upon such termination, the licenses granted by this EULA agreement will immediately terminate and you agree to stop all access and use of the Software. The provisions that by their nature continue and survive will survive any termination of this EULA agreement.</p>
<h3>Governing Law</h3>
<p>This EULA agreement, and any dispute arising out of or in connection with this EULA agreement, shall be governed by and construed in accordance with the laws of <span class="country">gb</span>.</p>
</div>
<div>
<input type="checkbox" id="EULA_accept_ckbx">
<span id="i18n_eula_accept">I accept the EULA</span>
</div>
<button id="EULA_closeButon">Close</button>
</div>
</div>
</div>
<div id="batchGenerationContainer" style="display:none;">
<div class="modal" style="height: 87vh;width: 97vw;padding-bottom: 0;">
<h2 id="i18n_batch_synthesis" style="margin-top: -10px;margin-bottom: 10px;">Batch synthesis</h2>
<div id="batch_container" style="margin-top: 0;margin-bottom: 0;">
<div id="batch_intro">
<div>
<div style="display: flex;align-items: center;justify-content: center;">
<span id="i18n_batchsize">Batch size:</span>
<input type="number" id="batch_batchSizeInput" value="1" placeholder="1" min="1" step="1">
</div>
<div>
<span id="i18n_vramUsage">VRAM usage:</span>
<span id="vramUsage">22.5/24.0 GB (87%)</span>
</div>
</div>
<div></div>
<div style="flex-grow: 1;display: flex;align-items: center;justify-content: flex-end;">
<div>
<div style="height: 40px;display: flex;justify-content: center;align-items: center;">
<div><button id="batch_paginationPrev">Previous</button></div>
<div style="display: flex;align-items: center;">
<div id="i18n_page">Page:</div>
<input id="batch_pageNum" type="number" min="1" step="1" style="height: 25px;width: 50px;margin: 10px;">
<div id="batch_total_pages" style="margin-right: 10px;"></div>
</div>
<div><button id="batch_paginationNext">Next</button></div>
</div>
</div>
<button id="batch_instructions_btn">Instructions</button>
<button id="batch_generateSample">Generate Sample</button>
</div>
</div>
<div id="batch_main">
<span id="batchDropZoneNote">Drag and drop .csv files here</span>
<div id="batchRecordsHeader" style="display: none;">
<div id="i18n_batchh_num">#</div>
<div id="i18n_batchh_status">Status</div>
<div id="i18n_batchh_actions">Actions</div>
<div id="i18n_batchh_voice">Voice</div>
<div id="i18n_batchh_text">Text or <i>VC content</i></div>
<div id="i18n_batchh_game">Game</div>
<div id="i18n_batchh_outpath">Out Path</div>
<div id="i18n_batchh_base_lang">Base lang</div>
<div id="i18n_batchh_vc_style">VC style</div>
<div id="i18n_batchh_vocoder">Vocoder</div>
<div id="i18n_batchh_pacing">Pacing</div>
<div id="i18n_batchh_pitch_amp">Pitch Amp.</div>
</div>