(chore) Run ESLint

This commit is contained in:
Cohee 2024-06-09 22:13:20 +03:00
parent c8f3a0be40
commit 3e60d9e4d8
1 changed files with 3 additions and 3 deletions

View File

@ -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) {