UNPKG

@lobehub/tts

Version:

A high-quality & reliable TTS React Hooks library

33 lines (31 loc) 945 B
import { getVoiceLocaleOptions } from "./utils/getVoiceList.mjs"; import { getEdgeVoiceOptions } from "./EdgeSpeechTTS/options.mjs"; import { getAzureVoiceOptions } from "./MicrosoftSpeechTTS/voiceList.mjs"; import { getOpenaiVoiceOptions } from "./OpenAITTS/voiceList.mjs"; import { getSpeechSynthesisVoiceOptions } from "./SpeechSynthesisTTS/options.mjs"; //#region src/core/VoiceList.ts var VoiceList = class { constructor(locale) { this.locale = locale; } get speechSynthesVoiceOptions() { return getSpeechSynthesisVoiceOptions(this.locale); } get azureVoiceOptions() { return getAzureVoiceOptions(this.locale); } get edgeVoiceOptions() { return getEdgeVoiceOptions(this.locale); } get microsoftVoiceOptions() { return getEdgeVoiceOptions(this.locale); } static { this.openaiVoiceOptions = getOpenaiVoiceOptions(); } static { this.localeOptions = getVoiceLocaleOptions(); } }; //#endregion export { VoiceList };