Skip to content

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 种现成风格,也能做出你自己的

499 B
Raw Blame
# whisper listen-back: transcribe each voices/v*.wav and compare with tts/lines.json (VOICES=dir changes the directory)
from faster_whisper import WhisperModel
import glob, os
D = os.path.abspath(os.environ.get('VOICES', os.path.join(os.path.dirname(os.path.abspath(__file__)), 'voices')))
m = WhisperModel("base.en", device="cpu", compute_type="int8")
for f in sorted(glob.glob(f"{D}/v*.wav")):
    segs, _ = m.transcribe(f, beam_size=5)
    print(f[-7:-4], " ".join(s.text.strip() for s in segs))