Component evidence
Defines OpenAI voice options and supported voices for TTS and ASR.
// Source: https://github.com/VoltAgent/voltagent | License: MIT | Copyright 2025 VoltAgent Inc
// Provided via justclaw.it.com; keep this notice with the code.
import type { SpeechCreateParams } from "openai/resources/audio/speech";
import type { TranscriptionCreateParams } from "openai/resources/audio/transcriptions";
import type { BaseVoiceProviderOptions } from "../base/types";
export const OPENAI_VOICES = [
"alloy",
"echo",
"fable",
"onyx",
"nova",
"shimmer",
"ash",
"coral",
"sage",
] as const;
export type OpenAIVoice = (typeof OPENAI_VOICES)[number];
/**
* OpenAI voice options
*/
export type OpenAIVoiceOptions = BaseVoiceProviderOptions & {
/**
* OpenAI API key
*/
apiKey: string;
/**
* Model to use for speech recognition
* @default "whisper-1
... (truncated -- full source via MCP)