Merge pull request #332 from ac19991029/feature/timestamp-alignment

Add optional post-generation timestamp alignment
This commit is contained in:
ZGY
2026-06-29 13:13:57 +08:00
committed by GitHub
10 changed files with 523 additions and 117 deletions

View File

@@ -229,6 +229,23 @@ voxcpm clone \
# Batch processing
voxcpm batch --input examples/input.txt --output-dir outs
# Optional post-generation timestamps with stable-ts
pip install "voxcpm[timestamps]"
voxcpm design \
--text "VoxCPM2 brings studio-quality multilingual speech synthesis." \
--output out.wav \
--timestamps \
--timestamp-level word \
--timestamp-language en
# Character timestamps are best-effort and are derived from word alignment
voxcpm design \
--text "欢迎使用 VoxCPM2。" \
--output out.wav \
--timestamps \
--timestamp-level char \
--timestamp-language zh
# Help
voxcpm --help
```