Premade Voice

Mirako provides a collection of premade voice profiles that you can use directly in your applications. These voices are production-ready and require no additional setup, so it serves as a quick way to get started with text-to-speech synthesis.

List Available Premade Voices

You can get a list of available premade voice profiles using Mirako CLI:

sh
mirako voice premade

Or, you can integrate the functionality into your application using the Mirako API.

python
import requests

# API configuration
API_KEY = "your_api_key_here"
BASE_URL = "https://mirako.co"

def get_premade_voices():
    """Get list of available premade voice profiles"""
    
    response = requests.get(
        f"{BASE_URL}/v1/voice/premade_profiles",
        headers=headers
    )
    
    if response.status_code == 200:
        voices = response.json()['data']
        
        print("📢 Available Premade Voices:")
        for voice in voices:
            print(f"  • {voice['name']} (ID: {voice['id']})")
            if voice.get('description'):
                print(f"    {voice['description']}")
            if voice.get('sample_clip'):
                print(f"    Sample: {voice['sample_clip']}")
        
        return voices
    else:
        print(f"Error: {response.text}")
        return []

# Get available voices
premade_voices = get_premade_voices()

Using Premade Voices

To use a premade voice, simply refer to its voice_id in your API requests for text-to-speech or interactive sessions.

Dive Deeper