VideoUltra API
    Preparing search index...

    Interface SpeechEndpointOptions

    interface SpeechEndpointOptions {
        appliesSpeed?: boolean;
        endpoint: string;
        fetch?: {
            (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
            (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
        };
        format?: "mp3"
        | "wav"
        | "opus"
        | "aac"
        | "flac";
        headers?: Record<string, string>;
        model?: string;
        voices?: SpeechVoice[];
    }
    Index
    appliesSpeed?: boolean

    Whether the service honours the OpenAI-style speed field (default true). Set false for one that ignores it: the editor then sends speed 1 and plays the clip at the chosen speed, keeping the voice's pitch.

    endpoint: string

    An OpenAI-compatible /audio/speech URL — your own server or proxy (it adds the key), a hosted service, or a self-hosted open voice model with that API.

    fetch?: {
        (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
        (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
    }

    For tests / custom transports.

    Type Declaration

      • (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
      • Parameters

        • input: RequestInfo | URL
        • Optionalinit: RequestInit

        Returns Promise<Response>

      • (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
      • Parameters

        • input: RequestInfo | URL
        • Optionalinit: RequestInit

        Returns Promise<Response>

    format?: "mp3" | "wav" | "opus" | "aac" | "flac"

    Audio format asked for (default mp3).

    headers?: Record<string, string>
    model?: string

    Model name sent as model.

    voices?: SpeechVoice[]

    The voices to offer. Default: the six common OpenAI-style voice ids.