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
"""Speech-to-text on the final mix (music, foley and all): every narration line must come back.
usage: python -I tools/finalasr.py <film.mp4> <demo_dir> [model=small.en]"""
import sys, os, json, re, subprocess, tempfile
from faster_whisper import WhisperModel
mp4, D = sys.argv[1], sys.argv[2]; model = sys.argv[3] if len(sys.argv) > 3 else 'small.en'
wav = os.path.join(tempfile.mkdtemp(), 'mix16k.wav')
subprocess.run(['ffmpeg', '-v', 'error', '-y', '-i', mp4, '-ac', '1', '-ar', '16000', wav], check=True)
segs, _ = WhisperModel(model, device='cpu', compute_type='int8').transcribe(wav, language='en', word_timestamps=True, vad_filter=False)
words = [(w.start, w.end, w.word) for s in segs for w in s.words]
heard = ' '.join(w for _, _, w in words)
print('heard:', heard.strip())
norm = lambda s: re.sub(r'[^a-z0-9 ]', ' ', s.lower().replace('kilometres', 'kilometers')).split()
lines = json.load(open(os.path.join(D, 'voice/lines.json')))
H = norm(heard); bad = 0
for L in lines:
exp = norm(L.get('asr') or L['text'])
# find the expected words as a contiguous run in what was heard
ok = any(H[i:i + len(exp)] == exp for i in range(len(H) - len(exp) + 1))
bad += not ok
print(('OK ' if ok else 'MISS ') + ' '.join(exp))
print('all lines heard in the final mix' if not bad else f'{bad} line(s) not heard verbatim')