dots-studio/dots.tts-mf-2steps-stts

🤗 Hugging Face 来源text-to-speechapache-2.02.2B 参数4.4 GBsafetensors✓ 5 个校验和今天更新
一条命令提交

在你的模型文件夹旁边运行它。它会制作种子、将文件与 Hugging Face 比对,然后提交。你只需开始做种,并粘贴你账户中的密钥。它只读取你的文件,绝不修改。如果愿意,可以先阅读脚本。

curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo dots-studio/dots.tts-mf-2steps-stts ./model-folder
需要做种者 →

dots.tts-mf-2steps-stts

This repository provides a standalone dots.tts artifact for fixed two-step double-streaming TTS inference. The sampling and streaming contracts are stored in config.json and selected automatically. Sampling and streaming cadence options should be omitted.

Quick start

import torch
import soundfile as sf

from dots_tts.runtime_double_streaming import DotsTtsRuntimeDoubleStreaming

runtime = DotsTtsRuntimeDoubleStreaming.from_pretrained(
    "dots-studio/dots.tts-mf-2steps-stts",
    precision="bfloat16",
    optimize=True,
    max_generate_length=500,
)

text = "Hello from two-step double streaming."
text_token_ids = runtime.model.tokenizer.encode(text, add_special_tokens=False)

session = runtime.start_double_streaming(
    prompt_audio_path="/path/to/reference.wav",
    prompt_text="The exact transcript spoken in the reference audio.",
)

chunks = []
for token_id in text_token_ids:
    chunk = session.push_text_token(token_id)
    if chunk is not None:
        chunks.append(chunk.detach().cpu())

for chunk in session.finish_text():
    chunks.append(chunk.detach().cpu())

audio = torch.cat(chunks, dim=-1).float().squeeze().numpy()
sf.write("double_streaming.wav", audio, runtime.sample_rate)

For a complete command-line example, see scripts/example_double_streaming.py.

Passing incompatible sampling values raises an error. Streaming cadence is selected from the artifact configuration.

Scope and limitations

This model is intended for fixed two-step double-streaming inference. Other sampling or streaming settings are not claimed. High-fidelity voice cloning must be used only with authorization and consent; do not use it for impersonation, fraud, or disinformation.


Citation

@article{dotstts2026,
  title         = {dots.tts Technical Report},
  author        = {dots.tts Team},
  year          = {2026},
  eprint        = {2606.07080},
  archivePrefix = {arXiv},
  primaryClass  = {cs.SD},
}

License

Released under Apache-2.0.