style: change fn def type
This commit is contained in:
@@ -9,9 +9,9 @@ const USER_AGENT =
|
||||
|
||||
const ttsGoogle: TTSModule = {
|
||||
name: 'Google',
|
||||
getVoices: async (): Promise<string[]> => GOOGLE_TTS_VOICES.voices,
|
||||
async getVoices(): Promise<string[]> { return GOOGLE_TTS_VOICES.voices },
|
||||
|
||||
generate: async (voice: string, text: string): Promise<TTSResponse> => {
|
||||
async generate(voice: string, text: string): Promise<TTSResponse> {
|
||||
const query = new URLSearchParams({
|
||||
ie: 'UTF-8',
|
||||
q: text,
|
||||
|
||||
Reference in New Issue
Block a user