此 Skill 用于生成可播放的多角色中文睡前故事音频。
能力边界:
LLM 生成故事文本,TTS 合成多角色语音不做:
child_name: 小朋友age: 5interests: 冒险,动物episodes: 1(单集)| 角色 | voice_id | speed | pitch |
|---|---|---|---|
| ------ | ---------- | ------- | ------- |
| 旁白 narrator | male_0004_a | 0.9 | 0 |
| 主角 protagonist | child_0001_a | 1.0 | 0 |
| 小伙伴 sidekick | child_0001_b | 1.0 | 0 |
| 长者 elder | male_0018_a | 0.85 | -2 |
--child-name、--age、--interests 参数--continue,从 story_state.json 加载已有世界观和角色story_state.json:世界观+角色+情节摘要story_ep{N}.txt:故事文本story_ep{N}.mp3:完整音频详见 references/state_schema_cn.md。
pip install -r requirements.txt
# 首次生成
python scripts/run_story.py --child-name "小明" --age 5 --interests "恐龙,太空"
# 连载续写
python scripts/run_story.py --continue
# 不调用 TTS,仅输出文本
python scripts/run_story.py --child-name "小红" --age 7 --interests "魔法,精灵" --no-tts
# 生成多集
python scripts/run_story.py --child-name "小明" --age 5 --interests "恐龙,太空" --episodes 3
环境变量参考:.env.example
接口约定:
STORY_LLM_API_KEY,回退到 IME_MODEL_API_KEYSTORY_TTS_API_KEY,回退到 SENSEAUDIO_API_KEY共 1 个版本