Generate a video: voice recitation + starry background + timed Chinese subtitles.
~/.openclaw/skills/tts-gen-pipeline/ with at least one cloned voicedashscope, websockets, moviepy, pillow, numpy/usr/share/fonts/opentype/noto/NotoSerifCJK-Regular.ttcpython3 scripts/poetry_recitation.py --poem "床前明月光\n疑是地上霜" --title "静夜思"
# or specify a voice:
python3 scripts/poetry_recitation.py --poem "..." --title "静夜思" --voice 章彦博
| Arg | Required | Description |
|---|---|---|
| ----- | ---------- | ------------- |
--poem | Yes | Poem text, use \n for line breaks |
--title | No | Title displayed at top of video |
--voice | No | Voice name: cloned voice (e.g. 章彦博) or system voice (cherry/serena/ethan/chelsie). Default: first cloned voice |
--output | No | Output video path (default: ~/workspace/audio/) |
Cloned voices: Check with python3 ~/.openclaw/skills/tts-gen-pipeline/scripts/generate.py list-local
System voices: cherry (甜美女声), serena (温柔女声), ethan (沉稳男声), chelsie (磁性男声)
--voice preference)poetry_recitation.py with the poem--voice matches a local cloned voice name → uses cloned voice model--voice matches a system voice name → uses system voice modelGenerated video (1920x1080, 24fps, H.264 + AAC) saved to ~/workspace/audio/.
共 1 个版本