Skip to main content

Step 1: Sign up and get your API key

First, you’ll need to obtain your API key from the Vogent dashboard.
  1. Go to app.vogent.ai
  2. Sign up or log in to your account
  3. Navigate to API in the sidebar
  4. Create a new key by clicking New Key
This is a private API key; make sure to never expose it client-side.

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 called my-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?