Skip to content

Interface: ITTSProvider

Makaio Framework


Makaio Framework / contracts / ITTSProvider

Defined in: ../../../packages/contracts/src/capabilities/voice/types.ts:107

Text-to-speech capability provider.

Providers implement audio synthesis for the voice pipeline. The response is an async iterable so callers can stream audio to the client progressively without buffering the full utterance.

readonly capabilities: TTSProviderCapabilities

Defined in: ../../../packages/contracts/src/capabilities/voice/types.ts:113

Structured capabilities for provider selection.


readonly capabilityId: "tts"

Defined in: ../../../packages/contracts/src/capabilities/voice/types.ts:109

Discriminant that identifies the TTS capability slot in the registry.


readonly displayName: string

Defined in: ../../../packages/contracts/src/capability/types.ts:11

Human-readable name for display in UI

ICapabilityProvider.displayName


readonly id: string

Defined in: ../../../packages/contracts/src/capability/types.ts:9

Unique identifier for this provider instance

ICapabilityProvider.id


readonly optional providerKey?: string

Defined in: ../../../packages/contracts/src/capability/types.ts:17

Stable provider identity used for joins across registries.

Unlike id, this should remain stable across runtime re-registration.

ICapabilityProvider.providerKey


readonly runtime: ProviderRuntime

Defined in: ../../../packages/contracts/src/capabilities/voice/types.ts:111

Where this provider runs.

isAvailable(): Promise<boolean>

Defined in: ../../../packages/contracts/src/capabilities/voice/types.ts:126

Check whether this provider is ready to accept requests.

Promise<boolean>

true when the underlying adapter is initialised and reachable


synthesize(request): AsyncIterable<AudioChunk>

Defined in: ../../../packages/contracts/src/capabilities/voice/types.ts:120

Synthesize text into a stream of PCM audio chunks.

TTSRequest

Text content and optional language preference

AsyncIterable<AudioChunk>

Async iterable of audio chunks, delivered in order


optional validate(): Promise<{ error?: string; valid: boolean; }>

Defined in: ../../../packages/contracts/src/capability/types.ts:22

Optional validation method to check provider configuration/credentials.

Promise<{ error?: string; valid: boolean; }>

Validation result with optional error message

ICapabilityProvider.validate