MOSS-TTSD

MOSS_TTSD

Two-speaker dialogue from a script of [S1] and [S2] turns, up to 90 seconds, each voice cloned from its own short clip. Fine-tune it on recorded dialogues.

Audio Generationtext-to-speechdialoguevoice-cloningmultilingualapache-2.0Fine-tunable
MOSS-TTSD: Audio Generation model on Kainguru

About MOSS-TTSD

Capabilities

  • Dialogue — mark every turn with [S1] or [S2]; both voices come from one request
  • Two cloned voices — a 3 to 10 second clip of each speaker with exactly what is said in it; the dialogue continues in those voices
  • Multilingual — 20 languages, from Chinese and English to Arabic, Persian and Turkish
  • Train on dialogues — fine-tune on recordings of conversations with their scripts

Good to know

  • Up to 90 seconds of dialogue per request; the audio is a 24 kHz mono WAV, billed per second of audio produced.
  • The script must start with [S1] or [S2], and only those two tags are read. Quotation marks and brackets are dropped and "ha ha" becomes a laugh.
  • A clip needs its transcript (speaker_transcript, speaker_transcript_2): the model continues from the clips in the same voices, and only the new speech is returned and billed.
  • Without a clip for a speaker the model invents that voice; keep the seed to keep it.
  • Languages: Chinese, English, German, Spanish, French, Japanese, Italian, Hebrew, Korean, Russian, Persian, Arabic, Polish, Portuguese, Czech, Danish, Swedish, Hungarian, Greek and Turkish. Azerbaijani is not one of them.
  • In fine-tuning, every transcript is a script that starts with [S1] or [S2]; training stops after 9 hours and keeps what it has learned.
  • Do not use it to imitate a real person without their consent, or to deceive.

Attribution

MOSS-TTSD v1.0 by OpenMOSS (MOSI.AI), Apache License 2.0. Language model: Qwen3-8B by Alibaba Cloud, Apache License 2.0. Audio codec: MOSS-Audio-Tokenizer by OpenMOSS, Apache License 2.0.

MOSS-TTSD inputs and output

NameTypeRequiredDefaultDetails
texttextYes—The dialogue, turn by turn: start each turn with [S1] or [S2], for example "[S1] Hello! [S2] Hi there." Up to 90 seconds of speech.
1–1000 characters
seedintegerNo—The same seed and inputs give the same audio. Leave empty for a random seed (returned in the result).
0–2147483647
speaker_audio_2fileNo—A clip of the voice for the [S2] turns: WAV, MP3, FLAC, OGG, M4A, AAC or WebM, 1 to 15 seconds (3 to 10 work best), at most 20 MB. Send its transcript too. Without a clip the model invents the voice.
Max 2048 characters · audio/wav, mpeg, flac, ogg, mp4, aac, webm
speaker_audiofileNo—A clip of the voice for the [S1] turns: WAV, MP3, FLAC, OGG, M4A, AAC or WebM, 1 to 15 seconds (3 to 10 work best), at most 20 MB. Send its transcript too. Without a clip the model invents the voice.
Max 2048 characters · audio/wav, mpeg, flac, ogg, mp4, aac, webm
speaker_transcripttextNo—Exactly what is said in the [S1] clip. Needed with the clip, and only with it.
Max 400 characters
top_kintegerNo50Sample only from this many most likely sounds.
1–200
repetition_penaltynumberNo1.1Above 1 discourages repeating patterns of sound.
1–1.5
speaker_transcript_2textNo—Exactly what is said in the [S2] clip. Needed with the clip, and only with it.
Max 400 characters
temperaturenumberNo1.1Variety of voice and delivery; higher is livelier and less steady. The model is sensitive to it.
0.3–2.5
top_pnumberNo0.9Sample only from the most likely sounds whose probabilities add up to this.
0.1–1

Output. Returns WAV audio: The dialogue as a 24 kHz mono 16-bit WAV file.

Run MOSS-TTSD with the API

Send your API key in the X-API-Key header. The run is asynchronous: submit it, then poll it until it finishes. Create an API key.

cURL
curl -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=MOSS_TTSD" \
  -H "X-API-Key: kg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "text": "example",
    "repetition_penalty": 1.1,
    "temperature": 1.1,
    "top_k": 50,
    "top_p": 0.9
  },
  "outputFormat": "json"
}'

# Poll until the execution reaches a terminal state
curl "https://api.kainguru.com/api/v1/executions/{executionId}" \
  -H "X-API-Key: kg_your_api_key"
Python
from kainguru import KainguruClient

with KainguruClient(api_key="kg_your_api_key", base_url="https://api.kainguru.com/api") as client:
    submitted = client.executions.execute(
        "MOSS_TTSD",
        {
          "text": "example",
          "repetition_penalty": 1.1,
          "temperature": 1.1,
          "top_k": 50,
          "top_p": 0.9
        },
        output_format="json",
    )
    result = client.executions.await_completion(submitted.id)
    print(result.execution.output)

Fine-tune MOSS-TTSD

You can fine-tune MOSS-TTSD on your own data and run the tuned model through the same API. Dataset: Recordings of dialogues, each with its script, every turn marked [S1] or [S2] ({"file": ..., "text": ...} items): 4 to 2000 clips of 0.5 to 20 seconds and at most 50 MB each, 10 GB in all.

The steps are in the docs.

MOSS-TTSD pricing

Price per second: 0.024492 credits ($0.00024492). The price is shown again before every run; all prices are on the pricing page.

Licence and source

CosyVoice3 0.5B: Audio Generation model on Kainguru
Audio Generation

CosyVoice3 0.5B

Text-to-speech in nine languages and Chinese dialects: clone a voice from a short clip, steer emotion, speed or…

Fine-tunable
Dia 1.6B: Audio Generation model on Kainguru
Audio Generation

Dia 1.6B

English dialogue text-to-speech: two speakers in one pass with laughter, coughs and sighs, and voice cloning from a…

Fine-tunable
MOSS-TTS Realtime: Audio Generation model on Kainguru
Audio Generation

MOSS-TTS Realtime

Natural speech for voice agents in 20 languages, in a voice cloned from a short clip. Built for streaming, served here…

Fine-tunable
MOSS-TTS v1.5: Audio Generation model on Kainguru
Audio Generation

MOSS-TTS v1.5

Speech in 31 languages from text, in a voice cloned from a short clip, with the language, the length and pauses under…

Fine-tunable
Qwen3-TTS 1.7B Base: Audio Generation model on Kainguru
Audio Generation

Qwen3-TTS 1.7B Base

Text-to-speech in ten languages that copies a voice from a few seconds of speech. Fine-tune it on recordings of one…

Fine-tunable
VoxCPM2: Audio Generation model on Kainguru
Audio Generation

VoxCPM2

Text-to-speech in 30 languages at 48 kHz: design a voice from a description, clone one from a short clip, or continue…

Fine-tunable