Text-to-Speech
Transformers
Safetensors
audiodit
feature-extraction
audio
tts
environmental-tts
flow-matching
dit
custom_code
Instructions to use humanify/LongCat-AudioDiT-Env-TTS-1B-augment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use humanify/LongCat-AudioDiT-Env-TTS-1B-augment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="humanify/LongCat-AudioDiT-Env-TTS-1B-augment", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("humanify/LongCat-AudioDiT-Env-TTS-1B-augment", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 3,114 Bytes
7dd5a70 66d0e2c 7dd5a70 66d0e2c 7dd5a70 66d0e2c 7dd5a70 66d0e2c 7dd5a70 66d0e2c 7dd5a70 66d0e2c 7dd5a70 66d0e2c 7dd5a70 66d0e2c 7dd5a70 66d0e2c 7dd5a70 66d0e2c 7dd5a70 66d0e2c 7dd5a70 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | ---
license: other
license_name: longcat-audiodit-license
base_model: meituan-longcat/LongCat-AudioDiT-1B
tags:
- audio
- text-to-speech
- tts
- environmental-tts
- flow-matching
- dit
library_name: transformers
pipeline_tag: text-to-speech
---
# LongCat-AudioDiT Env-TTS — `augment` (10,000-step fine-tune)
Fine-tune of [meituan-longcat/LongCat-AudioDiT-1B](https://huggingface.co/meituan-longcat/LongCat-AudioDiT-1B)
for the **three-stream env-tts task**: given a reference environment audio, a
reference speaker audio, and three text streams (env caption / speaker caption /
target speech text), generate target speech that places the target text in the
referenced environment with the referenced speaker timbre.
This `augment` variant adds **environment-consistent augmentation** so the
generated target lives in the referenced acoustic scene.
## Differences from the base model
Six learnable boundary tokens (three latent-space, three text-space):
```
latent sequence : [<boe> z_env <bos> z_spk <bon> z_target]
text sequence : [<boe_t> env_text_emb <bos_t> spk_text_emb <bon_t> target_text_emb]
```
`encode_multistream_text(...)` is the entry-point; `AudioDiTModel.forward(...)`
also accepts a pre-assembled `prompt_latent`.
## Training summary
| Field | Value |
|---|---|
| Steps | 10,000 |
| Hardware | 1× RTX PRO 6000 Blackwell (96 GB), bf16 |
| Effective batch | 16 × grad_accum 2 × 1 GPU = **32 rows / step** |
| Learning rate | cosine 5e-5 (warmup 250) |
| AdamW | β₁=0.9, β₂=0.999, wd=0.01 |
| EMA | disabled |
| LoRA | r=32, alpha=32, target = attn + ffn |
| Full-train | boundary tokens + AdaLN + text_conv + latent / latent_cond / input embeds + output_proj + time_embed |
| Data | [ChristianYang/Env-TTS-Clean](https://huggingface.co/datasets/ChristianYang/Env-TTS-Clean) |
| Audio | target ∈ [3, 15] s; three-stream RMS-norm to −23 dBFS; peak-clip at 0.5 |
### Augmentation (the `augment` change)
Noise + RIR are streamed on-demand from
[ChristianYang/DNS-Noise](https://huggingface.co/datasets/ChristianYang/DNS-Noise)
(DNS-Challenge `noise_fullband` + `impulse_responses`, republished as 24 kHz mono):
- **Speaker ref** — an independent 50/25/25 draw: clean / noise / noise+RIR, SNR ∈ [−5, 15] dB.
- **Env + target (coupled)** — a *separate* 50/25/25 draw whose **same** noise clip and
**same** RIR are applied to **both** env and target, placing the generated target in one
consistent acoustic scene. The RIR tail is kept; env/target are capped to 15 s.
## How to load
Uses custom code in this repo, so pass `trust_remote_code=True`:
```python
from transformers import AutoModel, AutoTokenizer
model = AutoModel.from_pretrained(
"ChristianYang/LongCat-AudioDiT-Env-TTS-1B-augment",
trust_remote_code=True,
).cuda().eval()
tokenizer = AutoTokenizer.from_pretrained(model.config.text_encoder_model)
```
See the training repo's `tasks/inference.py` for end-to-end env-tts inference.
## License
Inherits the original [meituan-longcat/LongCat-AudioDiT-1B](https://huggingface.co/meituan-longcat/LongCat-AudioDiT-1B) license.
|