TTSProviderManager
Defined in: main/services/tts-provider.ts:22
Manages text-to-speech synthesis across multiple TTS providers.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TTSProviderManager():
TTSProviderManager
Returns
Section titled “Returns”TTSProviderManager
Methods
Section titled “Methods”getConfig()
Section titled “getConfig()”getConfig():
TTSConfig|null
Defined in: main/services/tts-provider.ts:42
Returns the current TTS provider configuration.
Returns
Section titled “Returns”TTSConfig | null
The active TTS config, or null if not configured.
setConfig()
Section titled “setConfig()”setConfig(
config):void
Defined in: main/services/tts-provider.ts:30
Sets the active TTS provider configuration.
Parameters
Section titled “Parameters”config
Section titled “config”The TTS configuration to use.
Returns
Section titled “Returns”void
synthesize()
Section titled “synthesize()”synthesize(
text):Promise<TTSResponse>
Defined in: main/services/tts-provider.ts:51
Synthesizes text to speech using the configured provider.
Parameters
Section titled “Parameters”string
The text to convert to speech.
Returns
Section titled “Returns”Promise<TTSResponse>
The synthesized audio response.
testConnection()
Section titled “testConnection()”testConnection():
Promise<boolean>
Defined in: main/services/tts-provider.ts:332
Tests the TTS provider connection by synthesizing a short test phrase.
Returns
Section titled “Returns”Promise<boolean>
True if the provider is reachable and working, false otherwise.