Skip to main content

Type Alias: GatewayInferenceInputCreateSpeechRequest

type GatewayInferenceInputCreateSpeechRequest = {
model: string | "tts-1" | "tts-1-hd";
input: string;
voice: "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer";
response_format?: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
speed?: number;
};

Defined in: src/models/ai-gateway-inference.ts:5501

Portkey CreateSpeechRequest; strict modeled input with explicit JSON extension maps.

Example​

`GatewayInferenceInputCreateSpeechRequestSchema.parse(value);`

Properties​

model​

model: string | "tts-1" | "tts-1-hd";

Defined in: src/models/ai-gateway-inference.ts:5502


input​

input: string;

Defined in: src/models/ai-gateway-inference.ts:5503


voice​

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

Defined in: src/models/ai-gateway-inference.ts:5504


response_format?​

optional response_format?: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";

Defined in: src/models/ai-gateway-inference.ts:5505


speed?​

optional speed?: number;

Defined in: src/models/ai-gateway-inference.ts:5506