Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ibakaidov committed Dec 24, 2023
1 parent 4abe538 commit 4d201b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/common/interfaces/Voice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
export interface Voice {
value: string;
text: string;
}
}
8 changes: 4 additions & 4 deletions src/frontend/utils/TTS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ export class TTS {

private async getVoices () {
if (TTS.voices.length > 0) return;
const {data} = await axios.get<{id: string, lang_code:string, name: string}[]>("https://tts.linka.su/voices");

TTS.voices.push(...data.map(v => ({value: v.id, text: v.name+" ("+v.lang_code+")"})));
const { data } = await axios.get<{id: string, lang_code:string, name: string}[]>("https://tts.linka.su/voices");
TTS.voices.push(...data.map(v => ({ value: v.id, text: v.name + " (" + v.lang_code + ")" })));
}

public async playCards (file: string, cards: Card[], force = false) {
if (this.isPlaying) {
this.isPlaying = false;
Expand Down Expand Up @@ -71,4 +71,4 @@ export class TTS {
}
}

TTS.instance;
const instance = TTS.instance;

0 comments on commit 4d201b6

Please sign in to comment.