import { type SpeechCreateParams } from "https://deno.land/x/openai@v4.41.1/resources/audio/speech.ts";
Properties
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
.