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.
curl -X POST "https://api.buena.ai/api/v2/voice-clones/preview" \ -H "Authorization: Bearer bna-your-api-key" \ -H "Content-Type: application/json" \ -d '{ "voiceId": "pNInz6obpgDQGcFmaJgB", "text": "Hello! This is a test of my voice clone. How does it sound?" }' \ --output preview.mp3
curl -X POST "https://api.buena.ai/api/v2/voice-clones/preview" \ -H "Authorization: Bearer bna-your-api-key" \ -H "Content-Type: application/json" \ -d '{ "voiceId": "pNInz6obpgDQGcFmaJgB", "text": "This is a test with my voice clone for maximum clarity and stability." }' \ --output preview.mp3
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
Content Suggestions
For LinkedIn Outreach:
Copy
"Hi [Name], I hope you're having a great week! I came across your profile and was impressed by your experience in [industry]. I'd love to connect and share some insights that might be valuable for your work."
For General Testing:
Copy
"This is a test of my voice clone quality. I'm checking for naturalness, clarity, and overall sound. The voice should sound smooth and professional."
For Emotional Range:
Copy
"I'm excited to share this opportunity with you! It's been an amazing journey, and I believe this could be incredibly valuable. What do you think?"
Quality Assessment
Listen for:
Naturalness: Does it sound human and conversational?
async function testVoiceQuality(voiceId) { const testTexts = [ "Hello, this is a quick test.", "Hi there! I hope you're having a fantastic day. I wanted to reach out because I saw your impressive work at your company.", "I'm excited about this opportunity and would love to discuss it further. When might be a good time to chat?", ]; const results = []; for (const text of testTexts) { try { const response = await fetch( "https://api.buena.ai/api/v2/voice-clones/preview", { method: "POST", headers: { Authorization: "Bearer bna-your-api-key", "Content-Type": "application/json", }, body: JSON.stringify({ voiceId: voiceId, text: text, }), } ); const audioBlob = await response.blob(); const audioUrl = URL.createObjectURL(audioBlob); results.push({ text: text, audioUrl: audioUrl, size: audioBlob.size, }); console.log(`✅ Generated preview for: "${text.substring(0, 30)}..."`); } catch (error) { console.error(`❌ Failed to generate preview: ${error.message}`); } } return results;}