openai/openai-realtime-api-beta

Add support for voices that are already supported in Chat.completions (onyx, nova)

Opened this issue · 0 comments

alloy, echo, fable, onyx, nova

/**
* @property {"alloy"|"shimmer"|"echo"} [voice]
*/

export type SessionResourceType = {
    model?: string;
    modalities?: string[];
    instructions?: string;
    voice?: "alloy" | "shimmer" | "echo";
    input_audio_format?: AudioFormatType;
    output_audio_format?: AudioFormatType;
    input_audio_transcription?: AudioTranscriptionType | null;
    turn_detection?: TurnDetectionServerVadType | null;
    tools?: ToolDefinitionType[];
    tool_choice?: "auto" | "none" | "required" | {
        type: "function";
        name: string;
    };
    temperature?: number;
    max_response_output_tokens?: number | "inf";
};