## Preview `client.voices.preview(VoicePreviewParamsbody, RequestOptionsoptions?): void` **post** `/voices/preview` Generate a short audio preview for a given voice. Provide the voice ID and provider, and the API returns an audio/mpeg stream you can play back to hear how the voice sounds before assigning it to an assistant. ### Parameters - `body: VoicePreviewParams` - `provider: "cartesia" | "elevenlabs"` The provider to use for the preview. - `"cartesia"` - `"elevenlabs"` - `voiceId: string` The voice ID to generate a preview for. ### Example ```typescript import Revox from '@revoxai/sdk'; const client = new Revox({ apiKey: process.env['REVOX_API_KEY'], // This is the default and can be omitted }); await client.voices.preview({ provider: 'cartesia', voiceId: 'voiceId' }); ```