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
"""whisper listen-back on the full mix: whether the voice is still intelligible under music and effects (per-word match rate)"""
import sys, json, re, difflib, numpy as np, soundfile as sf, librosa, os
from faster_whisper import WhisperModel
H = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
y, sr = sf.read(os.path.join(H, 'mix.wav')); y = librosa.resample(y.mean(1), orig_sr=sr, target_sr=16000).astype(np.float32)
m = WhisperModel(os.environ.get('WM', 'medium.en'), device='cpu', compute_type='int8')
segs, _ = m.transcribe(y, beam_size=5, language='en')
got = ' '.join(s.text for s in segs)
norm = lambda s: re.sub(r'[^a-z0-9 ]', ' ', s.lower().replace("'", '')).split()
want = ' '.join(L.get('asr', L['text']) for L in json.load(open(os.path.join(H, 'lines.json'))))
a, b = norm(want), norm(got); sm = difflib.SequenceMatcher(a=a, b=b)
print(got); print('match %.1f%%' % (100 * sum(x.size for x in sm.get_matching_blocks()) / len(a)))
for op, i1, i2, j1, j2 in sm.get_opcodes():
if op != 'equal': print(op, a[i1:i2], '→', b[j1:j2])