Skip to content

TTSProviderManager

Defined in: main/services/tts-provider.ts:22

Manages text-to-speech synthesis across multiple TTS providers.

new TTSProviderManager(): TTSProviderManager

TTSProviderManager

getConfig(): TTSConfig | null

Defined in: main/services/tts-provider.ts:42

Returns the current TTS provider configuration.

TTSConfig | null

The active TTS config, or null if not configured.


setConfig(config): void

Defined in: main/services/tts-provider.ts:30

Sets the active TTS provider configuration.

TTSConfig

The TTS configuration to use.

void


synthesize(text): Promise<TTSResponse>

Defined in: main/services/tts-provider.ts:51

Synthesizes text to speech using the configured provider.

string

The text to convert to speech.

Promise<TTSResponse>

The synthesized audio response.


testConnection(): Promise<boolean>

Defined in: main/services/tts-provider.ts:332

Tests the TTS provider connection by synthesizing a short test phrase.

Promise<boolean>

True if the provider is reachable and working, false otherwise.