v1
latestOpenAPI 3.0.1MIT2026-07-26104203277.0 KBPreview TTS voice
Generate a short preview clip for a TTS voice.
post/v2/tts/voices/preview
Query parameters
projectIdstring required
Example:ae6d58c6-c6bd-4ae0-ad74-b8b39c29928b
Project identifier.
Request body
Example request
{
"audioUrl": "https://cdn.tryhamsa.com/uploads/voice.wav",
"audioTranscription": "مرحباً، هذا مثال على التسجيل الصوتي.",
"language": "ar",
"dialectId": "145a7af6-3614-4bb2-be5d-702000d459ab",
"text": "أهلاً بك، هذا مثال لنطق الصوت."
}Response
Preview generated successfully.
Example response
{
"success": true,
"message": "Operation completed successfully",
"messageKey": "OPERATION_SUCCESSFUL",
"data": {
"audioUrl": "https://cdn.tryhamsa.com/previews/preview.wav"
}
}