UNPKG

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

Version:
23 lines 858 B
import type { AudioEncoding } from './types.js'; export declare const audioExtension: (audioEncoding: AudioEncoding) => "alaw" | "l16" | "mp3" | "mulaw" | "opus" | "wav"; /** * The <audio> tag supports 3 audio formats: MP3 (audio/mpeg), WAV (audio/wav), and OGG (audio/ogg). * https://stackoverflow.com/questions/36866611/html5-audio-browsers-unable-to-decode-wav-file-encoded-with-ima-adpcm * * Supported media types in various browsers: * https://en.wikipedia.org/wiki/HTML5_audio */ export declare const mediaType: (ext: string) => { value: string; error?: undefined; } | { error: Error; value?: undefined; }; interface CredentialsConfig { keyFilename?: string; what: string; } export declare const clientLibraryCredentials: ({ keyFilename, what }: CredentialsConfig) => string; export {}; //# sourceMappingURL=utils.d.ts.map