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

45 lines (44 loc) 2.26 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"; // Browser-compatible engines export { AzureTTSClient } from "./engines/azure.js"; export { CartesiaTTSClient } from "./engines/cartesia.js"; export { CereVoiceTTSClient } from "./engines/cerevoice.js"; export { DeepgramTTSClient } from "./engines/deepgram.js"; export { ElevenLabsTTSClient } from "./engines/elevenlabs.js"; export { EspeakBrowserTTSClient } from "./engines/espeak-wasm.js"; export { FishAudioTTSClient } from "./engines/fishaudio.js"; export { GeminiTTSClient } from "./engines/gemini.js"; export { GoogleTTSClient } from "./engines/google.js"; export { HumeTTSClient } from "./engines/hume.js"; export { MistralTTSClient } from "./engines/mistral.js"; export { ModelsLabTTSClient } from "./engines/modelslab.js"; export { MurfTTSClient } from "./engines/murf.js"; export { OpenAITTSClient } from "./engines/openai.js"; export { PlayHTTTSClient } from "./engines/playht.js"; export { PollyTTSClient } from "./engines/polly.js"; export { ResembleTTSClient } from "./engines/resemble.js"; export { SherpaOnnxWasmTTSClient } from "./engines/sherpaonnx-wasm.js"; export { UnrealSpeechTTSClient } from "./engines/unrealspeech.js"; export { UpliftAITTSClient } from "./engines/upliftai.js"; export { WatsonTTSClient } from "./engines/watson.js"; export { WitAITTSClient } from "./engines/witai.js"; export { XaiTTSClient } from "./engines/xai.js"; // Browser-compatible factory (excludes server-only engines) export { createBrowserTTSClient } from "./factory-browser.js"; export * as SpeechMarkdown from "./markdown/converter-browser.js"; export { configureSpeechMarkdown, SpeechMarkdownConverter } from "./markdown/converter-browser.js"; export { SSMLBuilder } from "./ssml/builder.js"; // Mock client for testing (if available) // Note: This is conditionally exported in factory.ts instead // Types export * from "./types.js"; export { isBrowser, isNode } from "./utils/environment.js"; // Utilities export { estimateWordBoundaries } from "./utils/word-timing-estimator.js"; export * as VoiceUtils from "./core/voice-utils.js";