(chore) Run ESLint
This commit is contained in:
parent
c8f3a0be40
commit
3e60d9e4d8
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue