A toolbox of film styles made in code for Claude Code: 66 ready to use, and your own. Each style is a style prompt plus a demo film made entirely in code by Claude Opus 5.5, with no video model. By Lemomo. · 一套用代码做片的风格工具箱:66 种现成风格,也能做出你自己的
JavaScript agent-skillsai-agentsai-short-filmai-videoanimationcanvasclaudeclaude-codeclaude-code-pluginclaude-code-skillcreative-codingffmpegfilmmakingmotion-graphicsopus-5-5prompt-librarytext-to-speechthreejsvideo-productionwebgl
"""Narration intelligibility self-check on the final mix: cut mix.wav into segments by subtitle interval, transcribe with Whisper and compare with the script
.venv/bin/python styles/blueprint/demo/tools/check_mix.py"""
import os, json, re, numpy as np, soundfile as sf, librosa
from faster_whisper import WhisperModel
HERE = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
m = WhisperModel('base.en', device='cpu', compute_type='int8')
y, sr = sf.read(os.path.join(HERE, 'mix.wav')); y = y.mean(1)
y = librosa.resample(y, orig_sr=sr, target_sr=16000)
subs = json.load(open(os.path.join(HERE, 'subs.json')))
L = {l['id']: l for l in json.load(open(os.path.join(HERE, 'lines.json')))}
norm = lambda s: re.sub(r'[^a-z0-9 ]', '', s.lower().replace("'", '').replace('-', ' ')).split()
bad = 0
for s in subs:
seg = y[int(max(0, s['t0'] - .2) * 16000): int((s['t1'] + .2) * 16000)].astype(np.float32)
got = ' '.join(x.text.strip() for x in m.transcribe(seg, beam_size=5, language='en')[0])
want = L[s['id']].get('asr', L[s['id']]['text']); ok = norm(got) == norm(want); bad += not ok
print('OK ' if ok else 'DIFF', s['id'], '|', got)
print('mismatches:', bad)