UNPKG

@lobehub/tts

Version:

A high-quality & reliable TTS React Hooks library

22 lines (20 loc) 549 B
import { getVoiceLocaleOptions } from "../utils/getVoiceList.mjs"; import voiceList_default from "./voiceList.mjs"; import { getSpeechSynthesisVoiceOptions } from "./options.mjs"; //#region src/core/SpeechSynthesisTTS/index.ts var SpeechSynthesisTTS = class { constructor(locale) { this.locale = locale; } get voiceOptions() { return getSpeechSynthesisVoiceOptions(this.locale); } static { this.localeOptions = getVoiceLocaleOptions(); } static { this.voiceList = voiceList_default; } }; //#endregion export { SpeechSynthesisTTS };