style: change fn def type
This commit is contained in:
@@ -9,9 +9,9 @@ const USER_AGENT =
|
|||||||
|
|
||||||
const ttsGoogle: TTSModule = {
|
const ttsGoogle: TTSModule = {
|
||||||
name: 'Google',
|
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({
|
const query = new URLSearchParams({
|
||||||
ie: 'UTF-8',
|
ie: 'UTF-8',
|
||||||
q: text,
|
q: text,
|
||||||
|
|||||||
Reference in New Issue
Block a user