style: run format:apply
This commit is contained in:
@@ -11,7 +11,9 @@ const ttsGoogle: TTSModule = {
|
||||
name: 'Google',
|
||||
defaultVoice: 'en',
|
||||
|
||||
async getVoices(): Promise<string[]> { return GOOGLE_TTS_VOICES.voices },
|
||||
async getVoices(): Promise<string[]> {
|
||||
return GOOGLE_TTS_VOICES.voices;
|
||||
},
|
||||
|
||||
async generate(voice: string, text: string): Promise<TTSResponse> {
|
||||
const query = new URLSearchParams({
|
||||
|
||||
@@ -83,8 +83,7 @@ class PollyTTS implements TTSModule {
|
||||
}
|
||||
|
||||
canBeUsed(): boolean {
|
||||
if (!config.aws_access_id || !config.aws_access_key)
|
||||
return false;
|
||||
if (!config.aws_access_id || !config.aws_access_key) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user