Step 1: Sign up and get your API key
First, you’ll need to obtain your API key from the Vogent dashboard.- Go to app.vogent.ai
- Sign up or log in to your account
- Navigate to API in the sidebar
- Create a new key by clicking New Key
Step 2: Make Your First Request
Basic Text-to-Speech
Let’s start with a simple text-to-speech request:Test the Audio
After running the code above, you should have an audio file calledmy-first-voice.wav. Play it to hear the generation!
Step 3: Create a Conversation
Now let’s try the multispeaker feature to create a conversation:Step 4: Real-time Streaming with WebSockets
For real-time applications, you can use WebSockets to stream text and receive audio chunks as they’re generated:Why Use WebSocket Streaming?
WebSocket streaming is perfect for:- Live chatbots - Generate speech as the conversation progresses
- Real-time applications - Immediate audio feedback
- Interactive experiences - Dynamic content that changes based on user input
- Low-latency needs - Start playing audio before the full text is processed
Next Steps
Congratulations! You’ve successfully generated your first AI voices. Here’s what to explore next:Explore Models
Learn about different AI models and their capabilities
Voice Library
Browse our complete voice library and cloning options
API Reference
Detailed API documentation with all parameters
Advanced Features
Discover advanced features like voice cloning and SSML
Need Help?
- Documentation: Explore our comprehensive API documentation
- Support: Contact our support team at support@vogent.ai
- Community: Join our Discord community for discussions and tips
- Examples: Check out more examples in our GitHub repository