Loading playground
Input
Additional Settings
Customize your input with more control.
Result
Idle
Customize your input with more control.
Customize your input with more control.
Your request will cost $0.04 per 1000 character.
Transform your text into natural-sounding speech with Dia TTS, a state-of-the-art text-to-speech API that delivers studio-quality voice output with realistic dialogue generation.
Dia TTS enables developers to generate lifelike speech from text input, offering exceptional clarity and natural prosody. Dia directly generates realistic dialogue from transcripts with audio conditioning that enables emotion control and produces natural nonverbals like laughter and throat clearing.
Generate remarkably natural speech with a 1.6 billion parameter model trained on extensive voice datasets. The model captures subtle nuances in pronunciation, intonation, and emotional expression, specializing in realistic dialogue synthesis.
Clone dialog voices from a sample audio and generate dialogs from text prompts using advanced AI techniques to create high-quality text-to-speech with voice consistency.
Getting started with Dia TTS takes just a few minutes. Here's how:
Implement robust error handling to manage API responses:
Your request will cost $0.04 per 1000 characters. Our transparent, usage-based pricing scales with your needs:
View detailed pricing or contact sales for enterprise solutions.
We're here to help you succeed:
Ready to transform your text into natural speech? Sign up now to get your API key and start building with Dia TTS.
bash# Using npm
npm install --save @fal-ai/client
# Using pip
pip install fal-clientjavascriptimport { fal } from "@fal-ai/client";
fal.config({
credentials: "YOUR_FAL_KEY_HERE"
});javascriptconst result = await fal.subscribe("fal-ai/dia-tts", {
input: {
text: "[S1] Welcome to Dia TTS. This is an example of generated speech. (laughs) [S2] It sounds incredibly natural!"
}
});javascripttry {
const result = await fal.subscribe("fal-ai/dia-tts", {
input: {
text: inputText
}
});
} catch (error) {
console.error("TTS generation failed:", error.message);
}