mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
(chore) Run ESLint
This commit is contained in:
@@ -251,7 +251,7 @@ class SBVits2TtsProvider {
|
|||||||
return {
|
return {
|
||||||
name: `${speaker} (${style})`,
|
name: `${speaker} (${style})`,
|
||||||
voice_id: `${key}-${speaker_id}-${style}`,
|
voice_id: `${key}-${speaker_id}-${style}`,
|
||||||
preview_url: false
|
preview_url: false,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -302,7 +302,7 @@ class SBVits2TtsProvider {
|
|||||||
{
|
{
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
@@ -319,7 +319,7 @@ class SBVits2TtsProvider {
|
|||||||
async previewTtsVoice(id) {
|
async previewTtsVoice(id) {
|
||||||
this.audioElement.pause();
|
this.audioElement.pause();
|
||||||
this.audioElement.currentTime = 0;
|
this.audioElement.currentTime = 0;
|
||||||
const lang_code = this.langKey2LangCode[this.settings.lang] ?? 'ja-JP'
|
const lang_code = this.langKey2LangCode[this.settings.lang] ?? 'ja-JP';
|
||||||
const text = getPreviewString(lang_code);
|
const text = getPreviewString(lang_code);
|
||||||
const response = await this.fetchTtsGeneration(text, id);
|
const response = await this.fetchTtsGeneration(text, id);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
|
Reference in New Issue
Block a user