Hear a voice before assigning it
POST
https://server.heyrik.com/api/v1/voices/previewHeaders
AuthorizationstringRequiredUse Bearer $HEYRIK_API_KEY with an account-scoped API key. Keep the key on your server.
Parameters 2
Fields documented for this operation. See the request example for placement and structure.
voice_idstringRequiredLibrary or cloned voice id to speak with.
textstringWhat to say. Defaults to a sample in the voice's own language.
Response
No response example is documented for this operation yet.
Error referencePOST/voices/preview
cURL
curl -X POST https://server.heyrik.com/api/v1/voices/preview \
-H "Authorization: Bearer $HEYRIK_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "voice_id": "vx_9f2a1c30", "text": "Hello, this is a preview." }'Illustrative examples · No live request is sent
