Skip to main content
POST
Generate Voice Preview
Generate a preview audio sample using one of your voice clones. This allows you to test voice quality and settings before using the voice clone in LinkedIn messages or other applications.
Requires the voice:preview permission.

Request

Authorization
string
required
Bearer token with your API key that has voice:preview permission (e.g., “Bearer bna-your-api-key”)
Content-Type
string
required
Must be application/json

Body Parameters

voiceId
string
required
The ID of the voice clone to use for preview generation
text
string
required
Text to synthesize into speech (1-500 characters)

Examples

Basic Voice Preview

Advanced Preview with Custom Settings

Response

The response is the audio file binary data with Content-Type: audio/mpeg No JSON response is returned - the endpoint streams the audio file directly for immediate playback or download.

Preview Guidelines

Text Recommendations

  • Short test: 10-30 words for quick quality check
  • Medium test: 50-100 words for comprehensive evaluation
  • Full test: 100-500 words for complete voice assessment
  • Avoid: Very short texts (under 5 words) may not showcase voice quality
For LinkedIn Outreach:
For General Testing:
For Emotional Range:
Listen for:
  • Naturalness: Does it sound human and conversational?
  • Clarity: Are words pronounced clearly?
  • Consistency: Is the voice stable throughout?
  • Emotion: Does it convey the intended tone?
  • Similarity: Does it match your original voice?

Voice Settings Optimization

SettingLow (0.0-0.3)Medium (0.4-0.7)High (0.8-1.0)
StabilityMore expressive, variableBalanced expressionVery consistent, robotic
ClarityMore natural, may varyGood balanceMaximum similarity, clear
Speaker BoostDisabled-Enabled

Error Responses

Voice Clone Not Found (404)

Text Too Long (400)

Voice Generation Failed (500)

Integration Examples

Voice Quality Testing Workflow

Next Steps

LinkedIn Voice Messages

Send voice messages via LinkedIn

Voice Clone Settings

Adjust voice generation settings

List Voice Clones

View all your voice clones

Voice Best Practices

Learn voice optimization tips