import { type SpeechCreateParams } from "https://deno.land/x/openai@v4.69.0/resources/audio/mod.ts";
Properties
model: (string & { }) | SpeechModel
One of the available TTS models:
tts-1
or tts-1-hd
The voice to use when generating the audio. Supported voices are alloy
,
echo
, fable
, onyx
, nova
, and shimmer
. Previews of the voices are
available in the
Text to speech guide.
The format to audio in. Supported formats are mp3
, opus
, aac
, flac
,
wav
, and pcm
.