Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/openai_deno/mod.ts>CreateSpeechParams

OpenAI API wrapper for deno.
Latest
interface CreateSpeechParams
Re-export
import { type CreateSpeechParams } from "https://deno.land/x/openai_deno@v0.9.8/mod.ts";

Properties

optional
responseFormat:
| "mp3"
| "opus"
| "aac"
| "flac"
| string

The format to audio in. Supported formats are mp3, opus, aac, and flac.

optional
speed: number

The speed of the generated audio. Select a value from 0.25 to 4.0. 1.0 is the default.