ttsAdapters. BaseTTSAdapter

Provides shared logic for concrete TTS adapters.

Constructor

new BaseTTSAdapter(defaultConfigopt)

Parameters:
NameTypeAttributesDefaultDescription
defaultConfigany<optional>
{}

Provider defaults (merged with input.adapterConfig)

Methods

(async) synthesize(_input) → {Promise.<*>}

Override in subclasses to implement provider logic.

Parameters:
NameTypeDescription
_input*

Adapter input (see contracts: TTSAdapterInput).

Throws:

If not implemented by subclass.

Type
TTSSynthesizeError
Returns:

Resolves with adapter output (see contracts: TTSAdapterOutput).

Type: 
Promise.<*>