// This file was auto-generated by Fern from our API Definition.

import type * as Vapi from "../index.js";

export interface VapiVoicemailDetectionPlan {
    /**
     * This is the maximum duration from the start of the call that we will wait for a voicemail beep, before speaking our message
     *
     * - If we detect a voicemail beep before this, we will speak the message at that point.
     *
     * - Setting too low a value means that the bot will start speaking its voicemail message too early. If it does so before the actual beep, it will get cut off. You should definitely tune this to your use case.
     *
     * @default 30
     * @min 0
     * @max 60
     */
    beepMaxAwaitSeconds?: number | undefined;
    /** This is the provider to use for voicemail detection. */
    provider: Vapi.VapiVoicemailDetectionPlanProvider;
    /** This is the backoff plan for the voicemail detection. */
    backoffPlan?: Vapi.VoicemailDetectionBackoffPlan | undefined;
    /**
     * This is the detection type to use for voicemail detection.
     * - 'audio': Uses native audio models (default)
     * - 'transcript': Uses ASR/transcript-based detection
     * @default 'audio' (audio detection)
     */
    type?: Vapi.VapiVoicemailDetectionPlanType | undefined;
}
