UNPKG

js-tts-wrapper

Version:

A JavaScript/TypeScript library that provides a unified API for working with multiple cloud-based Text-to-Speech (TTS) services

30 lines (29 loc) 1.36 kB
/** * Browser-compatible entry point for js-tts-wrapper * * This file exports only the components that work in browser environments. */ // Core components export { AbstractTTSClient } from "./core/abstract-tts.js"; export { SSMLBuilder } from "./ssml/builder.js"; export { SpeechMarkdownConverter } from "./markdown/converter.js"; // Browser-compatible engines export { AzureTTSClient } from "./engines/azure.js"; export { ElevenLabsTTSClient } from "./engines/elevenlabs.js"; export { GoogleTTSClient } from "./engines/google.js"; export { OpenAITTSClient } from "./engines/openai.js"; export { PlayHTTTSClient } from "./engines/playht.js"; export { PollyTTSClient } from "./engines/polly.js"; export { WatsonTTSClient } from "./engines/watson.js"; export { WitAITTSClient } from "./engines/witai.js"; export { SherpaOnnxWasmTTSClient } from "./engines/sherpaonnx-wasm.js"; export { EspeakBrowserTTSClient } from "./engines/espeak-wasm.js"; // Browser-compatible factory (excludes server-only engines) export { createBrowserTTSClient } from "./factory-browser.js"; // Mock client for testing (if available) // Note: This is conditionally exported in factory.ts instead // Utilities export { estimateWordBoundaries } from "./utils/word-timing-estimator.js"; export { isBrowser, isNode } from "./utils/environment.js"; // Types export * from "./types.js";