Spaces:
Running
Running
Upload index.html
Browse files- templates/index.html +7 -7
templates/index.html
CHANGED
@@ -199,10 +199,6 @@
|
|
199 |
<source src="" type="audio/mp3"/>
|
200 |
Your browser does not support the audio element.
|
201 |
</audio>
|
202 |
-
<div class="form-group form-check">
|
203 |
-
<input type="checkbox" id="streaming2" onchange="updateLink()">
|
204 |
-
<label class="form-check-label">流式响应</label>
|
205 |
-
</div>
|
206 |
</div>
|
207 |
</div>
|
208 |
</div>
|
@@ -226,8 +222,11 @@
|
|
226 |
</a>
|
227 |
</div>
|
228 |
</div>
|
|
|
229 |
<h2>所有模型均为网络搜集,感谢模型原作者的付出!</h2>
|
230 |
<h2>请严格遵循模型原作者使用协议!</h2>
|
|
|
|
|
231 |
<p>
|
232 |
Nene_Nanami_Rong_Tang:
|
233 |
<a href="https://github.com/CjangCjengh/TTSModels" rel="noreferrer" target="_blank">CjangCjengh/TTSModels</a>
|
@@ -268,6 +267,7 @@
|
|
268 |
vits_chinese:
|
269 |
<a href="https://github.com/PlayVoice/vits_chinese" rel="noreferrer" target="_blank">PlayVoice/vits_chinese</a>
|
270 |
</p>
|
|
|
271 |
</div>
|
272 |
<br/>
|
273 |
|
@@ -329,10 +329,10 @@
|
|
329 |
var noise = document.getElementById("inputNoise" + modelType).value;
|
330 |
var noisew = document.getElementById("inputNoisew" + modelType).value;
|
331 |
var max = document.getElementById("inputMax" + modelType).value;
|
332 |
-
|
333 |
-
|
334 |
if (modelType == 1) {
|
335 |
var url = baseUrl + "/voice/vits?text=" + text + "&id=" + id;
|
|
|
336 |
} else if (modelType == 2) {
|
337 |
var emotion = document.getElementById('emotion').value;
|
338 |
var url = baseUrl + "/voice/w2v2-vits?text=" + text + "&id=" + id + "&emotion=" + emotion;
|
@@ -356,7 +356,7 @@
|
|
356 |
url += "&max=" + max;
|
357 |
}
|
358 |
|
359 |
-
if (streaming.checked) {
|
360 |
url += '&streaming=true';
|
361 |
}
|
362 |
return url;
|
|
|
199 |
<source src="" type="audio/mp3"/>
|
200 |
Your browser does not support the audio element.
|
201 |
</audio>
|
|
|
|
|
|
|
|
|
202 |
</div>
|
203 |
</div>
|
204 |
</div>
|
|
|
222 |
</a>
|
223 |
</div>
|
224 |
</div>
|
225 |
+
<div>
|
226 |
<h2>所有模型均为网络搜集,感谢模型原作者的付出!</h2>
|
227 |
<h2>请严格遵循模型原作者使用协议!</h2>
|
228 |
+
</div>
|
229 |
+
<div>
|
230 |
<p>
|
231 |
Nene_Nanami_Rong_Tang:
|
232 |
<a href="https://github.com/CjangCjengh/TTSModels" rel="noreferrer" target="_blank">CjangCjengh/TTSModels</a>
|
|
|
267 |
vits_chinese:
|
268 |
<a href="https://github.com/PlayVoice/vits_chinese" rel="noreferrer" target="_blank">PlayVoice/vits_chinese</a>
|
269 |
</p>
|
270 |
+
</div>
|
271 |
</div>
|
272 |
<br/>
|
273 |
|
|
|
329 |
var noise = document.getElementById("inputNoise" + modelType).value;
|
330 |
var noisew = document.getElementById("inputNoisew" + modelType).value;
|
331 |
var max = document.getElementById("inputMax" + modelType).value;
|
332 |
+
|
|
|
333 |
if (modelType == 1) {
|
334 |
var url = baseUrl + "/voice/vits?text=" + text + "&id=" + id;
|
335 |
+
var streaming = document.getElementById('streaming' + modelType);
|
336 |
} else if (modelType == 2) {
|
337 |
var emotion = document.getElementById('emotion').value;
|
338 |
var url = baseUrl + "/voice/w2v2-vits?text=" + text + "&id=" + id + "&emotion=" + emotion;
|
|
|
356 |
url += "&max=" + max;
|
357 |
}
|
358 |
|
359 |
+
if (modelType == 1 && streaming.checked) {
|
360 |
url += '&streaming=true';
|
361 |
}
|
362 |
return url;
|