mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Clean-up labels
This commit is contained in:
@@ -25,12 +25,12 @@ class GSVITtsProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
languageLabels = {
|
languageLabels = {
|
||||||
'多语种混合': '多语种混合',
|
'Multilingual': '多语种混合',
|
||||||
'中文': '中文',
|
'Chinese': '中文',
|
||||||
'英文': '英文',
|
'English': '英文',
|
||||||
'日文': '日文',
|
'Japanese': '日文',
|
||||||
'中英混合': '中英混合',
|
'Chinese-English': '中英混合',
|
||||||
'日英混合': '日英混合',
|
'Japanese-English': '日英混合',
|
||||||
};
|
};
|
||||||
defaultSettings = {
|
defaultSettings = {
|
||||||
provider_endpoint: 'http://127.0.0.1:5000',
|
provider_endpoint: 'http://127.0.0.1:5000',
|
||||||
@@ -51,8 +51,7 @@ class GSVITtsProvider {
|
|||||||
stream_chunk_size: 100,
|
stream_chunk_size: 100,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Added new methods to obtain characters and emotions
|
||||||
// 新增获取角色和情绪的方法
|
|
||||||
async fetchCharacterList() {
|
async fetchCharacterList() {
|
||||||
const response = await fetch(this.settings.provider_endpoint + '/character_list');
|
const response = await fetch(this.settings.provider_endpoint + '/character_list');
|
||||||
if (!response.ok) {
|
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}"/>
|
<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>
|
<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" />
|
<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>
|
<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" />
|
<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>
|
<p>
|
||||||
For more information, visit the
|
For more information, visit the
|
||||||
<a href="https://github.com/X-T-E-R/GPT-SoVITS-Inference" target="_blank">GSVI project page</a>.
|
<a href="https://github.com/X-T-E-R/GPT-SoVITS-Inference" target="_blank">GSVI project page</a>.
|
||||||
|
Reference in New Issue
Block a user