@squidcloud/client
    Preparing search index...

    Interface OpenAiCreateSpeechOptions

    Options for creating speech using OpenAI's text-to-speech models.

    interface OpenAiCreateSpeechOptions {
        modelName: "tts-1" | "tts-1-hd";
        responseFormat?: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
        speed?: number;
        voice?: "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer";
    }

    Hierarchy (View Summary)

    Index

    Properties

    modelName: "tts-1" | "tts-1-hd"

    The OpenAI model to use for speech creation (e.g., 'tts-1' or 'tts-1-hd').

    responseFormat?: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm"

    The format of the audio output; defaults to 'mp3'.

    speed?: number

    The speed of the speech; defaults to 1.0.

    voice?: "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer"

    The voice to use for speech synthesis; defaults to model-specific value.