AI SeedbankHelp preserve open and free AI for humanity's future

← All models

OpenMOSS-Team_MOSS-TTS-v1.5

OpenMOSS-Team · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: 1 · Leechers: 0

Observed 2026-09-02T13:56:39Z via announce.aitorrent.org:7070.

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


license: apache-2.0 tags:

  • text-to-speech language:
  • zh
  • yue
  • en
  • ar
  • cs
  • da
  • de
  • nl
  • es
  • fr
  • fi
  • el
  • he
  • hi
  • hu
  • ja
  • it
  • ko
  • mk
  • ms
  • ru
  • fa
  • pl
  • pt
  • sv
  • ro
  • sw
  • tl
  • th
  • tr
  • vi

MOSS-TTS Family


    

MOSS-TTS-v1.5

MOSS-TTS-v1.5 is continued from MOSS-TTS 1.0. It preserves the main 1.0 capabilities, including zero-shot voice cloning, long-form speech generation, token-level duration control, Pinyin/IPA pronunciation control, multilingual synthesis, and code-switching. For the full 1.0 feature walkthrough, input schema, decoding hyperparameters, and evaluation tables, please refer to the MOSS-TTS 1.0 README.

Compared with MOSS-TTS 1.0, v1.5 focuses on the following improvements:

  • Stronger multilingual synthesis with language tags: when the language field is omitted, v1.5 may improve some languages and regress slightly on others compared with 1.0. When the language is specified, v1.5 is stronger than 1.0 on almost all supported languages. Set the tag when building the user message, for example processor.build_user_message(text=text_fr, language="French").
  • More stable voice cloning: v1.5 improves speaker similarity and reduces cloning variance, making repeated generations more consistent.
  • Better long-reference, short-text cloning: v1.5 handles scenarios where the reference audio is much longer than the target text more reliably than 1.0.
  • More stable punctuation-following prosody: v1.5 follows punctuation-driven pauses more closely, especially in long sentences.
  • Explicit pause control: v1.5 supports inline pause markers such as "[pause 3.2s]". For example, 我今天学习了一首中国的古诗,它的名字是[pause 3.2s]静夜思! inserts an explicit 3.2s pause before 静夜思.

Supported Languages

MOSS-TTS-v1.5 currently supports 31 languages. It keeps the 20 languages supported by MOSS-TTS 1.0 and extends multilingual continued training to additional languages including Cantonese, Dutch, Finnish, Hindi, Macedonian, Malay, Romanian, Swahili, Tagalog, Thai, and Vietnamese.

Language Code Flag Language Code Flag Language Code Flag
Chinese zh 🇨🇳 Cantonese yue 🇭🇰 English en 🇺🇸
Arabic ar 🇸🇦 Czech cs 🇨🇿 Danish da 🇩🇰
Dutch nl 🇳🇱 Finnish fi 🇫🇮 French fr 🇫🇷
German de 🇩🇪 Greek el 🇬🇷 Hebrew he 🇮🇱
Hindi hi 🇮🇳 Hungarian hu 🇭🇺 Italian it 🇮🇹
Japanese ja 🇯🇵 Korean ko 🇰🇷 Macedonian mk 🇲🇰
Malay ms 🇲🇾 Persian (Farsi) fa 🇮🇷 Polish pl 🇵🇱
Portuguese pt 🇵🇹 Romanian ro 🇷🇴 Russian ru 🇷🇺
Spanish es 🇪🇸 Swahili sw 🇹🇿 Swedish sv 🇸🇪
Tagalog tl 🇵🇭 Thai th 🇹🇭 Turkish tr 🇹🇷
Vietnamese vi 🇻🇳

Quick Start

Environment Setup

We recommend a clean, isolated Python environment with Transformers 5.0.0 to avoid dependency conflicts.

conda create -n moss-tts python=3.12 -y
conda activate moss-tts

Install all required dependencies:

git clone https://github.com/OpenMOSS/MOSS-TTS.git
cd MOSS-TTS
pip install --extra-index-url https://download.pytorch.org/whl/cu128 -e .

(Optional) Install FlashAttention 2

For better speed and lower GPU memory usage, you can install FlashAttention 2 if your hardware supports it.

pip install --extra-index-url https://download.pytorch.org/whl/cu128 -e ".[flash-attn]"

If your machine has limited RAM and many CPU cores, you can cap build parallelism:

MAX_JOBS=4 pip install --extra-index-url https://download.pytorch.org/whl/cu128 -e ".[flash-attn]"

Notes:

  • Dependencies are managed in pyproject.toml, which currently pins torch==2.9.1+cu128 and torchaudio==2.9.1+cu128.
  • If FlashAttention 2 fails to build on your machine, you can skip it and use the default attention backend.
  • FlashAttention 2 is only available on supported GPUs and is typically used with torch.float16 or torch.bfloat16.

Basic Usage

Tip: MOSS-TTS-v1.5 uses the same generation API as the 1.0 MossTTSDelay-8B checkpoint. For multilingual inputs, set language whenever the language is known.

MOSS-TTS provides a convenient generate interface for rapid usage. The examples below cover:

  1. Direct generation (Chinese / English / multilingual text with language tags / Pinyin / IPA)
  2. Voice cloning
  3. Duration control
  4. Explicit pause control with [pause X.Ys]
from pathlib import Path
import importlib.util
import torch
import torchaudio
from transformers import AutoModel, AutoProcessor
# Disable the broken cuDNN SDPA backend
torch.backends.cuda.enable_cudnn_sdp(False)
# Keep these enabled as fallbacks
torch.backends.cuda.enable_flash_sdp(True)
torch.backends.cuda.enable_mem_efficient_sdp(True)
torch.backends.cuda.enable_math_sdp(True)


pretrained_model_name_or_path = "OpenMOSS-Team/MOSS-TTS-v1.5"
device = "cuda" if torch.cuda.is_available() else "cpu"
dtype = torch.bfloat16 if device == "cuda" else torch.float32

def resolve_attn_implementation() -> str:
    # Prefer FlashAttention 2 when package + device conditions are met.
    if (
        device == "cuda"
        and importlib.util.find_spec("flash_attn") is not None
        and dtype in {torch.float16, torch.bfloat16}
    ):
        major, _ = torch.cuda.get_device_capability()
        if major >= 8:
            return "flash_attention_2"

    # CUDA fallback: use PyTorch SDPA kernels.
    if device == "cuda":
        return "sdpa"

    # CPU fallback.
    return "eager"


attn_implementation = resolve_attn_implementation()
print(f"[INFO] Using attn_implementation={attn_implementation}")

processor = AutoProcessor.from_pretrained(
    pretrained_model_name_or_path,
    trust_remote_code=True,
)
processor.audio_tokenizer = processor.audio_tokenizer.to(device)

text_1 = "亲爱的你,\n你好呀。\n\n今天,我想用最认真、最温柔的声音,对你说一些重要的话。\n这些话,像一颗小小的星星,希望能在你的心里慢慢发光。\n\n首先,我想祝你——\n每天都能平平安安、快快乐乐。\n\n希望你早上醒来的时候,\n窗外有光,屋子里很安静,\n你的心是轻轻的,没有着急,也没有害怕。\n\n希望你吃饭的时候胃口很好,\n走路的时候脚步稳稳,\n晚上睡觉的时候,能做一个又一个甜甜的梦。\n\n我希望你能一直保持好奇心。\n对世界充满问题,\n对天空、星星、花草、书本和故事感兴趣。\n当你问“为什么”的时候,\n希望总有人愿意认真地听你说话。\n\n我也希望你学会温柔。\n温柔地对待朋友,\n温柔地对待小动物,\n也温柔地对待自己。\n\n如果有一天你犯了错,\n请不要太快责怪自己,\n因为每一个认真成长的人,\n都会在路上慢慢学会更好的方法。\n\n愿你拥有勇气。\n当你站在陌生的地方时,\n当你第一次举手发言时,\n当你遇到困难、感到害怕的时候,\n希望你能轻轻地告诉自己:\n“我可以试一试。”\n\n就算没有一次成功,也没有关系。\n失败不是坏事,\n它只是告诉你,你正在努力。\n\n我希望你学会分享快乐。\n把开心的事情告诉别人,\n把笑声送给身边的人,\n因为快乐被分享的时候,\n会变得更大、更亮。\n\n如果有一天你感到难过,\n我希望你知道——\n难过并不丢脸,\n哭泣也不是软弱。\n\n愿你能找到一个安全的地方,\n慢慢把心里的话说出来,\n然后再一次抬起头,看见希望。\n\n我还希望你能拥有梦想。\n这个梦想也许很大,\n也许很小,\n也许现在还说不清楚。\n\n没关系。\n梦想会和你一起长大,\n在时间里慢慢变得清楚。\n\n最后,我想送你一个最最重要的祝福:\n\n愿你被世界温柔对待,\n也愿你成为一个温柔的人。\n\n愿你的每一天,\n都值得被记住,\n都值得被珍惜。\n\n亲爱的你,\n请记住,\n你是独一无二的,\n你已经很棒了,\n而你的未来,\n一定会慢慢变得闪闪发光。\n\n祝你健康、勇敢、幸福,\n祝你永远带着笑容向前走。"
text_2 = "We stand on the threshold of the AI era.\nArtificial intelligence is no longer just a concept in laboratories, but is entering every industry, every creative endeavor, and every decision. It has learned to see, hear, speak, and think, and is beginning to become an extension of human capabilities. AI is not about replacing humans, but about amplifying human creativity, making knowledge more equitable, more efficient, and allowing imagination to reach further. A new era, jointly shaped by humans and intelligent systems, has arrived."
text_3 = "nin2 hao3,qing3 wen4 nin2 lai2 zi4 na3 zuo4 cheng2 shi4?"
text_4 = "nin2 hao3,qing4 wen3 nin2 lai2 zi4 na4 zuo3 cheng4 shi3?"
text_5 = "您好,请问您来自哪 zuo4 cheng2 shi4?"
text_6 = "/həloʊ, meɪ aɪ æsk wɪtʃ sɪti juː ɑːr frʌm?/"
text_7 = "Bonjour, je voudrais essayer une voix française naturelle et stable."
text_8 = "我今天学习了一首中国的古诗,它的名字是[pause 3.2s]静夜思!"

# Use audio from ./assets/audio to avoid downloading from the cloud.
ref_audio_1 = "https://speech-demo.oss-cn-shanghai.aliyuncs.com/moss_tts_demo/tts_readme_demo/reference_zh.wav"
ref_audio_2 = "https://speech-demo.oss-cn-shanghai.aliyuncs.com/moss_tts_demo/tts_readme_demo/reference_en.m4a"

conversations = [
    # Direct TTS (no reference). Language tags are recommended in v1.5.
    [processor.build_user_message(text=text_1)],
    [processor.build_user_message(text=text_2)],
    # Direct TTS (no reference). For languages ​​other than Chinese and English, it is recommended to use language tags.
    [processor.build_user_message(text=text_7, language="French")],
    # Pinyin or IPA input
    [processor.build_user_message(text=text_3)],
    [processor.build_user_message(text=text_4)],
    [processor.build_user_message(text=text_5)],
    [processor.build_user_message(text=text_6)],
    # Explicit pause control. Use [pause X.Ys], such as [pause 3.2s].
    [processor.build_user_message(text=text_8)],
    # Voice cloning (with reference)
    [processor.build_user_message(text=text_1, reference=[ref_audio_1])],
    [processor.build_user_message(text=text_2, reference=[ref_audio_2])],
    # Duration control
    [processor.build_user_message(text=text_2, tokens=325)],
    [processor.build_user_message(text=text_2, tokens=600)],
]

model = AutoModel.from_pretrained(
    pretrained_model_name_or_path,
    trust_remote_code=True,
    # If FlashAttention 2 is installed, you can set attn_implementation="flash_attention_2"
    attn_implementation=attn_implementation,
    torch_dtype=dtype,
).to(device)
model.eval()

batch_size = 1

save_dir = Path("inference_root")
save_dir.mkdir(exist_ok=True, parents=True)
sample_idx = 0
with torch.no_grad():
    for start in range(0, len(conversations), batch_size):
        batch_conversations = conversations[start : start + batch_size]
        batch = processor(batch_conversations, mode="generation")
        input_ids = batch["input_ids"].to(device)
        attention_mask = batch["attention_mask"].to(device)

        outputs = model.generate(
            input_ids=input_ids,
            attention_mask=attention_mask,
            max_new_tokens=4096,
        )

        for message in processor.decode(outputs):
            audio = message.audio_codes_list[0]
            out_path = save_dir / f"sample{sample_idx}.wav"
            sample_idx += 1
            torchaudio.save(out_path, audio.unsqueeze(0), processor.model_config.sampling_rate)

More Usage

MOSS-TTS-v1.5 is API-compatible with MOSS-TTS 1.0. For continuation with prefix audio, detailed UserMessage and AssistantMessage fields, generation hyperparameters, Pinyin/IPA preprocessing examples, and evaluation results, see the MOSS-TTS 1.0 README.

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:93f64a35cc3e96862904f0dad672a5f2ba0aac70&dn=OpenMOSS-Team_MOSS-TTS-v1.5

Open magnet in torrent client · infohash 93f64a35cc3e96862904f0dad672a5f2ba0aac70

Files & hashes

PathSizesha1sha256
README.md13.4 KB (13,744 B)332204b0c5964b2ed86441e0f4bedacb0c08a6f520581413205fbc34a6cdee97cbbfa8c1564fe1569a0a76e0ed466d3b21fff30b
__init__.py0 B (0 B)e69de29bb2d1d6434b8b29ae775ad8c2e48c5391e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
added_tokens.json704 B (704 B)82da7c72d0a900d520bfe3ef5e2b3bb95bf87f6d9dfb40d3a3f8654c8af17771d767a494e973b9a33d5c3aeffa1b21f77db8e6d3
chat_template.jinja352 B (352 B)92909f8edadc3842c289ccfd7cd5de6a9ac655e4894e3ace884e212ae34e1f46063686e7ebcc8b2fa0153af4579dfa5685f63184
config.json2.2 KB (2,275 B)ddfae7149e06a804f5afbcae068fa77ac4ed103e214fc997d98f51ab57925a5939afc6280e76044198b664221622e70d098ed06e
configuration_moss_tts.py5.5 KB (5,584 B)f7e91c65f7f30c35d309b4ebc50453cf5c89eebf257842f2fa90124307408f36d55b74e135ee32b7afacbe30280964f7feb329d1
inference_utils.py5.0 KB (5,092 B)b2175d852af5469e3e9dd7688b2c8798d1a1cea812cdf3260114e44c8cba816782f743779ab621e0ba4047e59a3f3579cfcb0e26
merges.txt1.6 MB (1,671,853 B)31349551d90c7606f325fe0f11bbb8bd5fa0d7c78831e4f1a044471340f7c0a83d7bd71306a5b867e95fd870f74d0c5308a904d5
model-00001-of-00004.safetensors4.59 GB (4,932,667,368 B)e20f2c3e9bad79ae78dcaa90ef119770e7015df4749b82d07cebea77dd15af365e2efeb1dc0dd54537f7010795fdf42f520743a9
model-00002-of-00004.safetensors4.58 GB (4,915,961,640 B)376ee2a514cacb626224a4afa36d2aecef7beeb24d891c8adb8bf9c135e8a44cd9f003f1dbf8b09278ced48d5af1fe7d989efb39
model-00003-of-00004.safetensors4.64 GB (4,983,069,760 B)77c8e2215e0c6fca881a09258a8ce155357de502111013e05174e67748443eafdd4d64c051292d0e5fce2cac23a16988b661eea1
model-00004-of-00004.safetensors2.00 GB (2,148,040,304 B)abb883e635d8264faf0a6175e2938166fa10c7a4951ee88cf85996ee5c39441ace6e50f52894adad5da42ad2314b9a9db7f940b8
model.safetensors.index.json39.5 KB (40,416 B)ae07ffbcefc80e9f53c0c1d786836dbc295c1f6e021ef3f74a92ee33fc076dde096d4fa9b7b45c34c9bdbfe730bf79368ac86bb2
modeling_moss_tts.py24.7 KB (25,330 B)b3941bc66dd2b46ee695825c50d034dd22285dc3360ceee27c67831d820ff5324f8687f4408db1a91aef53683934544879aa90ca
processing_moss_tts.py34.7 KB (35,531 B)a84f65c9757729479d750e8e7729c2995d204d1ee591ff156e8fadcae34db5613a2221fab7ec5d814bfc0ec001e8ec4ef2782425
processor_config.json145 B (145 B)b5df3b949f047d5949fafa7d42b9cf8693fcbb946821d4805f10fb8b5cc743c021215097e03f1a25f7c220dfc4fb0d62b5dc97e0
special_tokens_map.json631 B (631 B)f1e356a4bfa4ead1419a3116957555c1cbfeb26a55cbd0665670e196ce105db3f0d787e5eb35bce235fcb2bd50acbdd60c1e39c6
tokenizer.json10.9 MB (11,422,691 B)00b404aa9977cc4c5ed4f47984c76542b6295fb0cb3c8fa82993d515469c2800cc455bff4aaa3c4fed9da1f2b0c0668c304f335a
tokenizer_config.json5.4 KB (5,501 B)c75c008749bc999e4749eafb407512f428b01acc87b1f37a4a73e4c4b61637a1446763e8bdea274347f0418cd5c68ead488c8ea4
tts_robust_normalizer_single_script.py14.2 KB (14,544 B)d7f6a66698582a84420f5268672fcac3d0100306b7c1fab4fd7bdc8c779df99f6af310fd8cd0746b759db684bf147e0c182b3183
vocab.json2.6 MB (2,776,833 B)4783fe10ac3adce15ac8f358ef5462739852c569ca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910

Cite this release

Canonical URL
https://aiseedbank.org/models/OpenMOSS-Team_MOSS-TTS-v1.5/
Slug
OpenMOSS-Team_MOSS-TTS-v1.5
Infohash
93f64a35cc3e96862904f0dad672a5f2ba0aac70
License
apache-2.0
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: OpenMOSS-Team_MOSS-TTS-v1.5.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositoryOpenMOSS-Team/MOSS-TTS-v1.5
Revision (pinned)cdd3b911b1585e3f2dbc7775ef10f9926f58850a
Fetched at2026-09-02T12:01:02Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-02T12:04:06Z

apache-2.015.83 GB (16,995,760,298 bytes)safetensorsmoss_tts_delaytext-to-speechcustom_codeyue30 languages (zh, en, ar …)paper: 2603.18090