Supported AI Models
Miralas.io utilizes category-leading open-source models for ultra-low latency voice agents and zero-shot voice cloning. Data privacy and speed are our top priorities.
Comparison Summary
| Feature | Meta Llama 3.1 (8B) | Chatterbox |
|---|---|---|
| Primary Role | Text / Logic / Dialogue | Audio / TTS / Cloning |
| Size | 8 Billion | ~0.5 Billion |
| Native Languages | 8 | 23+ |
| Input Needed | Text Prompt | Text + 3s Audio Ref |
| Output Generated | Text Output | High-Fidelity Audio |
Quick Start: Voice Cloning API
Get started with Miralas.io's voice cloning API in just a few lines of TypeScript. Provide a short audio reference and generate speech in any supported language.
typescript
import fs from "fs";
async function cloneVoiceAndSpeak() {
const audioRef = fs.readFileSync("./my-voice-sample.wav");
const base64Audio = audioRef.toString("base64");
const response = await fetch("https://api.miralas.io/v1/audio/speech", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
model: "chatterbox-multilingual",
input: "Merhaba, Miralas altyapısı ile sesimi anında klonlayabilirim!",
voice_reference: `data:audio/wav;base64,${base64Audio}`,
language: "tr"
})
});
const result = await response.blob();
// Save or play the generated audio buffer...
}