Expand Lumen stories and add island postcards
This commit is contained in:
@@ -39,19 +39,9 @@ for page in notebook['pages']:
|
||||
page['caption'] = chapters[page['campaignIndex']//4]
|
||||
write(PACKAGE/'campaign.json',campaign)
|
||||
write(PACKAGE/'notebook.json',notebook)
|
||||
cast = {
|
||||
'Elias': {'voice':'bm_george','speed':.93,'language':'en-gb',
|
||||
'direction':'A postman recording a night he barely survived. Personal and restrained; fear through careful observation, not theatrical shouting.'},
|
||||
'Iris': {'voice':'bf_emma','speed':.91,'language':'en-gb',
|
||||
'direction':'A tired guardian speaking quietly so the house will not hear. Clear, urgent warnings; fragile relief near the end.'},
|
||||
'Ada': {'voice':'bf_isabella','speed':.94,'language':'en-gb',
|
||||
'direction':'The postmistress. A practical voice with a serious warning.'},
|
||||
'The borrowed voice': {'voice':'bf_isabella','speed':.87,'language':'en-gb',
|
||||
'direction':'An imitation of Ada through a closed door. Do not exaggerate; its familiarity is the threat.'},
|
||||
'The echo': {'voice':'bm_george','speed':.87,'language':'en-gb',
|
||||
'direction':'An imitation of Elias behind a door, slightly slower and distant.'},
|
||||
}
|
||||
write(PACKAGE/'narration/cast.json',cast)
|
||||
cast = read(PACKAGE/'narration/cast.json')
|
||||
performance = read(PACKAGE/'narration/performance.json')
|
||||
assert set(performance['scenes']) == set(entries), 'Every scene needs performance direction'
|
||||
roles = {
|
||||
'midnight.opening':['Ada'],
|
||||
'midnight.feather.memory':['Iris','Elias','Iris','Iris'],
|
||||
@@ -91,16 +81,38 @@ for page_id,(title,text) in entries.items():
|
||||
segment={'speaker':speaker,'text':part,'pauseMs':700 if part.endswith('\n\n') else 220}
|
||||
if speaker in ('The borrowed voice','The echo') or (page_id=='midnight.feather.memory' and speaker=='Iris'):
|
||||
segment['perspective']='behind-door'
|
||||
if speaker=='Iris': segment['direction']=cast['Iris']['direction']
|
||||
scene = performance['scenes'][page_id]
|
||||
segment['direction'] = scene.get(speaker, scene['Elias'])
|
||||
action=actions.get(end)
|
||||
if isinstance(action,str): segment.update(afterEffect=action,pauseMs=1350)
|
||||
elif action: segment['pauseMs']=action
|
||||
if part.strip() in ('I kept walking.','It did not strike.','The mouth closed.'):
|
||||
segment['pauseMs']=1200
|
||||
segments.append(segment)
|
||||
# Keep short paragraphs together for connected acting and voice continuity.
|
||||
# Explicit silences and Foley boundaries always remain separate takes.
|
||||
joined=[]
|
||||
for segment in segments:
|
||||
previous=joined[-1] if joined else None
|
||||
if (previous and previous['speaker']==segment['speaker']
|
||||
and previous['direction']==segment['direction']
|
||||
and previous.get('perspective')==segment.get('perspective')
|
||||
and previous['pauseMs']<=700 and not previous.get('afterEffect')
|
||||
and len((previous['text']+segment['text']).split())<=90):
|
||||
previous['text']+=segment['text']
|
||||
previous['pauseMs']=segment['pauseMs']
|
||||
if segment.get('afterEffect'): previous['afterEffect']=segment['afterEffect']
|
||||
else:
|
||||
joined.append(segment.copy())
|
||||
segments=joined
|
||||
if page_id=='midnight.chair.memory':
|
||||
for segment in segments:
|
||||
if segment['speaker']=='Iris':
|
||||
segment['direction'] = ('Her mother is about to leave forever. Let the name falter with grief; quiet and audible, no sobbing sounds.'
|
||||
if '...' in segment['text'] else 'Gather courage and finish her mother\'s name clearly. Tender, grieving, determined; no sobbing sounds.')
|
||||
assert ''.join(s['text'] for s in segments)==text
|
||||
records.append({'pageId':page_id,'resource':page_id.replace('.','_'),'text':text,
|
||||
'speaker':'Elias','production':'diary-drama-v2','segments':segments})
|
||||
'speaker':'Elias','production':'diary-qwen-v3','segments':segments})
|
||||
write(PACKAGE/'narration/scripts.json',records)
|
||||
library=read(ROOT/'assets/library.json')
|
||||
story=next(s for s in library['stories'] if s['id']=='midnight-invitation')
|
||||
|
||||
Reference in New Issue
Block a user