Expand Lumen stories and add island postcards
This commit is contained in:
@@ -21,6 +21,14 @@ scripts = {s['pageId']: s for s in read(package / 'narration/scripts.json')}
|
||||
manifest = read(package / 'narration/manifest.json')
|
||||
tracks = read(package / 'audio/narration_manifest.json')['tracks']
|
||||
assert tracks == manifest['tracks'], 'Runtime/provenance manifests differ'
|
||||
performance_path = package / 'narration/performance.json'
|
||||
if performance_path.exists():
|
||||
performance = read(performance_path)
|
||||
cast = read(package / 'narration/cast.json')
|
||||
assert manifest.get('performance') == performance, 'Stale performance configuration'
|
||||
assert manifest.get('speakers') == cast, 'Stale voice design'
|
||||
assert manifest.get('model') == performance['model'], 'Wrong narration model'
|
||||
assert manifest.get('modelRevision') == performance['revision'], 'Wrong model revision'
|
||||
assert len({p['id'] for p in notebook}) == len(notebook), 'Duplicate page IDs'
|
||||
prose = {p['id'] for p in notebook if p['type'] != 'puzzle'}
|
||||
assert set(scripts) == prose == set(tracks), 'Every prose page must have exactly one recording'
|
||||
@@ -52,6 +60,13 @@ for page in notebook:
|
||||
for segment, cue in zip(script['segments'], track['cues']):
|
||||
assert segment['speaker'] == cue['speaker']
|
||||
assert cast[segment['speaker']]['voice'] == cue['voice']
|
||||
if performance_path.exists():
|
||||
expected = ' '.join((cast[segment['speaker']]['designPrompt'],
|
||||
performance['delivery'], segment['direction']))
|
||||
assert cue['instruct'] == expected, 'Performance instruction was not rendered'
|
||||
assert track['engine'] == performance['engine']
|
||||
assert track['model'] == performance['model']
|
||||
assert track['modelRevision'] == performance['revision']
|
||||
for event in track['events']:
|
||||
assert 0 <= event['startMs'] < event['endMs'] <= track['durationMs']
|
||||
assert all(event['endMs'] <= c['startMs'] or event['startMs'] >= c['endMs'] for c in track['cues']), 'Foley must leave the spoken words clear'
|
||||
|
||||
Reference in New Issue
Block a user