Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/resources/mod.ts>ChatCompletionAudioParam

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Latest
interface ChatCompletionAudioParam
import { type ChatCompletionAudioParam } from "https://deno.land/x/openai@v4.68.0/resources/mod.ts";

Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.

Properties

format:
| "wav"
| "mp3"
| "flac"
| "opus"
| "pcm16"

Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.

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

Specifies the voice type. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.