UNPKG

@jackdbd/eleventy-plugin-text-to-speech

Version:
23 lines 901 B
import type { TextToSpeechClient } from '@google-cloud/text-to-speech'; import type { google } from '@google-cloud/text-to-speech/build/protos/protos'; import type { AudioEncoding } from './types.js'; interface SynthesizeSpeechConfig { audioEncoding: AudioEncoding; client: TextToSpeechClient; text: string; voice: google.cloud.texttospeech.v1.IVoiceSelectionParams; } export declare const synthesizeSpeech: ({ audioEncoding, client, text, voice }: SynthesizeSpeechConfig) => Promise<{ value: string | Uint8Array; error?: undefined; } | { error: Error; value?: undefined; }>; interface ListVoicesConfig { client: TextToSpeechClient; languageCode?: string; } export declare const listVoices: ({ client, languageCode }: ListVoicesConfig) => Promise<google.cloud.texttospeech.v1.IVoice[] | null | undefined>; export {}; //# sourceMappingURL=text-to-speech.d.ts.map