Interface VoiceCallConfig

Full voice call system configuration.

interface VoiceCallConfig {
    provider: ProviderConfig;
    tts?: VoiceCallTtsConfig;
    stt?: VoiceCallSttConfig;
    inboundPolicy?: InboundPolicy;
    allowedNumbers?: string[];
    defaultMode?: CallMode;
    maxDurationSeconds?: number;
    webhookBaseUrl?: string;
    streaming?: {
        enabled: boolean;
        wsPath?: string;
    };
}

Properties

provider: ProviderConfig

Active telephony provider.

TTS settings for phone audio.

STT settings for phone audio.

inboundPolicy?: InboundPolicy

Inbound call policy.

allowedNumbers?: string[]

Allowlist of E.164 numbers (for 'allowlist' policy).

defaultMode?: CallMode

Default call mode for outbound calls.

maxDurationSeconds?: number

Maximum call duration in seconds (default: 300 = 5 min).

webhookBaseUrl?: string

Webhook base URL for receiving provider callbacks.

streaming?: {
    enabled: boolean;
    wsPath?: string;
}

Media stream configuration.

Type declaration

  • enabled: boolean

    Whether to use bidirectional media streams.

  • Optional wsPath?: string

    WebSocket path for media streams (default: /voice/media-stream).