技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
style-tts2【数据与研究】Use StyleTTS2 source-checkout workflows for TTS data/config preparation, staged CUDA training, fine-tuning, pretrained inference, and troubleshooting.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this operating skill when a task involves the StyleTTS2 research repository: text-to-speech training, fine-tuning, pretrained LJSpeech/LibriTTS inference, source-checkout dependency checks, or debugging data/config/checkpoint failures.
If the request is unclear, start with data/config validation before attempting a training or inference run.
StyleTTS2 is source-checkout research code, not an installable Python distribution. Do not claim that pip install -e . works unless packaging metadata has been added after this skill was generated. Use the checkout as the working tree and run the repository launchers through bundled helpers.
Read references/runtime-overview.md for the distilled repository layout, dependency set, backend expectations, and verified helper APIs. Read references/repo-provenance.md before deciding whether this skill is stale for a different checkout.
Before a task that depends on imports or CUDA, run the bundled safe checker from this skill directory or with an explicit checkout path:
python scripts/check_runtime.py --repo-root /path/to/StyleTTS2 --check-cuda
The checker imports source modules, reports missing hidden dependencies, and can optionally load helper assets without starting training, downloading models, or synthesizing audio.
The repository README documents:
pip install -r requirements.txt
For local training/inference, also account for runtime imports and demo dependencies discovered from source inspection:
python -m pip install pandas tensorboard
python -m pip install phonemizer # inference demos only; also provide espeak-ng or espeak
Use a CUDA-enabled PyTorch/Torchaudio build for training and fine-tuning. Inference can run on CPU or CUDA, but CPU is slower.
| Task signal | Route | First safe action |
|---|---|---|
list row, root_path, OOD text, config YAML, missing data | data-and-config | Run validate_data_lists.py or inspect_config.py. |
train_first.py, train_second.py, train_finetune.py, checkpoint resume, OOM, NaN | training | Run build_training_command.py in dry-run mode. |
LJSpeech/LibriTTS demo, reference audio, phonemizer, alpha, beta, diffusion_steps | inference | Run check_inference_assets.py. |
import failure, CUDA unavailable, missing pandas/tensorboard, source checkout not importable | references/troubleshooting.md | Run scripts/check_runtime.py. |
Training jobs are long-running CUDA jobs that write checkpoints/logs and may download WavLM through Transformers. Do not start them without explicit user approval. Pretrained voice outputs must be disclosed as synthesized unless the user has voice permission and license rights.
This skill routes under the speech/audio scenario via references/repo-routing-metadata.json. Do not hand-edit the live repo-skills-router; use the verifier/import helper if the user later asks to import.