Expand Lumen stories and add island postcards
This commit is contained in:
@@ -22,6 +22,10 @@ parser.add_argument('--root',type=Path,default=Path(__file__).resolve().parents[
|
||||
parser.add_argument('--story-root',type=Path,help='Render an independent story package with narration/scripts.json and audio/ assets')
|
||||
a=parser.parse_args()
|
||||
source=(a.story_root/'narration') if a.story_root else a.root/'assets/narration'
|
||||
if (source/'performance.json').exists():
|
||||
performance=json.loads((source/'performance.json').read_text())
|
||||
if performance.get('engine')=='qwen3-voice-design':
|
||||
parser.error('This story uses Qwen VoiceDesign; run scripts/render_qwen_narration.py')
|
||||
raw=(a.story_root/'audio') if a.story_root else a.root/'assets/audio'
|
||||
(source/'flac').mkdir(parents=True,exist_ok=True) if a.story_root else None
|
||||
records=json.loads((source/'scripts.json').read_text())
|
||||
|
||||
Reference in New Issue
Block a user