Customize your input with more control.
Customize your input with more control.
Customize your input with more control.
Your request will cost $0.1 per 1000 character.
Your request will cost $0.1 per 1000 character.
Transform your text into natural-sounding speech with MiniMax TTS, a powerful text-to-speech API designed for developers who need high-quality voice synthesis in their applications.
MiniMax TTS delivers studio-quality voice synthesis with advanced neural networks, offering natural prosody, clear articulation, and emotion-aware speech generation. Perfect for applications ranging from audiobook production to accessible content creation.
Generate lifelike speech with precise control over:
Getting up and running with MiniMax TTS takes just a few minutes. Here's how to begin:
bash# Using npm npm install --save @fal-ai/client # Using pip pip install fal-client
javascriptimport { fal } from "@fal-ai/client"; fal.config({ credentials: "YOUR_FAL_KEY_HERE" });
javascriptconst result = await fal.subscribe("fal-ai/minimax/speech-02-hd", { input: { text: "Welcome to MiniMax TTS. This is a demonstration of our natural speech synthesis." } });
MiniMax TTS supports both synchronous and queue-based processing. The API accepts plain text input and returns audio in multiple formats including MP3, WAV, FLAC, and PCM.
Control fine-grained speech parameters:
javascriptconst response = await fal.subscribe("fal-ai/minimax/speech-02-hd", { input: { text: "This is an important announcement.", voice_setting: { voice_id: "Wise_Woman", speed: 1.0, vol: 1.0, pitch: 0, english_normalization: false }, output_format: "mp3" } });
For handling multiple requests or asynchronous workflows:
javascript// Submit request const { request_id } = await fal.queue.submit("fal-ai/minimax/speech-02-hd", { input: { text: "Your text here" }, webhookUrl: "https://optional.webhook.url/for/results" }); // Check status const status = await fal.queue.status("fal-ai/minimax/speech-02-hd", { requestId: request_id, logs: true }); // Get result const result = await fal.queue.result("fal-ai/minimax/speech-02-hd", { requestId: request_id });
The API provides extensive control over voice parameters:
javascript{ voice_setting: { voice_id: string, // One of 300+ available voices speed: number, // Speed control (default: 1.0) vol: number, // Volume control (default: 1.0) pitch: number, // Pitch adjustment (default: 0) english_normalization: boolean // Improves number reading } }
MiniMax TTS supports 30+ languages including:
Available audio output formats:
For optimal results with MiniMax TTS:
english_normalization flag for better number reading performanceImplement robust error handling to manage API responses:
javascripttry { const result = await fal.subscribe("fal-ai/minimax/speech-02-hd", { input: { text: inputText } }); } catch (error) { console.error("Speech generation failed:", error.message); // Implement fallback behavior }
MiniMax offers multiple TTS models:
MiniMax TTS is built for production workloads with:
View detailed pricing or contact sales for enterprise solutions.
We're here to help you succeed:
Start building with MiniMax TTS today and bring natural speech to your applications.