@jackdbd/eleventy-plugin-text-to-speech
Version:
Eleventy plugin for the Google Cloud Text-to-Speech API
16 lines • 618 B
TypeScript
import type { TextToSpeechClient } from '@google-cloud/text-to-speech';
import type { AudioEncoding, AudioInnerHTML, Rule } from './types.js';
import type { Writer } from './writers.js';
interface Config {
audioEncodings: AudioEncoding[];
audioInnerHTML: AudioInnerHTML;
cacheExpiration: string;
rules: Rule[];
textToSpeechClient: TextToSpeechClient;
transformName: string;
voice: string;
writer: Writer;
}
export declare const makeInjectAudioTagsIntoHtml: (config: Config) => (content: string, outputPath: string) => Promise<string>;
export {};
//# sourceMappingURL=transforms.d.ts.map