Clean-up labels

This commit is contained in:
Cohee 2024-05-18 20:03:02 +03:00
parent 93c3e9e1dd
commit 699d640845
1 changed files with 15 additions and 24 deletions

View File

@ -25,12 +25,12 @@ class GSVITtsProvider {
}
languageLabels = {
'多语种混合': '多语种混合',
'中文': '中文',
'英文': '英文',
'日文': '日文',
'中英混合': '中英混合',
'日英混合': '日英混合',
'Multilingual': '多语种混合',
'Chinese': '中文',
'English': '英文',
'Japanese': '日文',
'Chinese-English': '中英混合',
'Japanese-English': '日英混合',
};
defaultSettings = {
provider_endpoint: 'http://127.0.0.1:5000',
@ -51,8 +51,7 @@ class GSVITtsProvider {
stream_chunk_size: 100,
};
// 新增获取角色和情绪的方法
// Added new methods to obtain characters and emotions
async fetchCharacterList() {
const response = await fetch(this.settings.provider_endpoint + '/character_list');
if (!response.ok) {
@ -87,9 +86,6 @@ class GSVITtsProvider {
<input id="gsvi_tts_endpoint" type="text" class="text_pole" maxlength="250" value="${this.defaultSettings.provider_endpoint}"/>
<div>Goto <a target="_blank" href="https://www.yuque.com/xter/zibxlp/knu8p82lb5ipufqy">API Document</a>.</div>
<label for="gsvi_speed">Speed: <span id="gsvi_tts_speed_output">${this.defaultSettings.speed}</span></label>
<input id="gsvi_speed" type="range" value="${this.defaultSettings.speed}" min="0.5" max="2" step="0.01" />
@ -112,11 +108,6 @@ class GSVITtsProvider {
<label for="gsvi_stream_chunk_size">Stream Chunk Size: <span id="gsvi_stream_chunk_size_output">${this.defaultSettings.stream_chunk_size}</span></label>
<input id="gsvi_stream_chunk_size" type="range" value="${this.defaultSettings.stream_chunk_size}" min="100" max="400" step="1" />
<title>About GSVI (GPT-Sovits Inference)</title>
<p>
GSVI (GPT-Sovits Inference) is an inference enhancement project based on
<a href="https://github.com/RVC-Boss/GPT-SoVITS" target="_blank">GPT-Sovits</a>, allowing you to run an API interface locally, offering emotion-rich speech-to-text and convenient model management features.
</p>
<p>
For more information, visit the
<a href="https://github.com/X-T-E-R/GPT-SoVITS-Inference" target="_blank">GSVI project page</a>.