Sermon Snip
Finds the sermon inside a church’s Sunday recording and trims it for their podcast.
Sermon Snip takes a church’s full Sunday recording and hands back just the sermon, ready for their podcast feed, YouTube and SermonAudio. I built it solo in about two weeks from first prototype to public launch. It’s live at sermonsnip.app with its first church.
The problem
A Sunday recording runs about 90 minutes: worship, announcements, prayers, the sermon, more singing. The sermon is about 35 of those minutes, and where it starts changes every week. Someone at the church scrubs through it by hand to cut it out.
The obvious shortcut is to listen for “amen.” It doesn’t work. “Amen” ends the opening prayer, the songs, the pastoral prayer and the whole service, not only the sermon. Cut at the first one or the last one and you get the wrong 35 minutes.
The fix
Read the whole service instead of listening for one word.
- Transcribe. Whisper on Cloudflare Workers AI turns the recording into timestamped lines.
- Match the pastor’s own cues. Each church saves how its pastor usually opens and closes (“Open your Bibles with me to…”). Sermon Snip fuzzy-matches those phrases against the transcript. It forgives Whisper’s near-misses, like reading heard as meeting, but keeps the words close together so a hymn line that shares a few words doesn’t count.
- Score against sermon length. Each start and end candidate is scored against how long this church’s sermons usually run. That starts at 35 minutes and narrows as the church confirms more sermons.
- Pick. Cloudflare’s Clef decision model chooses the start and end lines from that short list, with a confidence for each.
The church answers one question: did we get the edges right?
Clips that follow the speaker
Sermon Snip also scans each sermon for short, shareable moments: a scripture reading, a story, a line worth quoting. Any of them can be trimmed and exported straight from the review page as a tall clip for Reels, Shorts and TikTok, with the captions burned in. The first version cropped dead center, and pastors don’t stand still: they walked right out of the frame.
Now the clip follows the speaker. The church taps the pastor in the first frame, or auto mode picks the person who moves the most. OpenCV tracks that person through a small, low-frame-rate copy of the clip. Those positions become a camera move: it holds still while the speaker stays near the middle and glides after them only when they drift, fills short gaps where they’re lost with the nearest frame where they were seen, and simplifies the path so ffmpeg can render it in one pass. It’s speaker tracking, not facial recognition: it follows a shape on stage and never identifies anyone. Every job runs under a deadline, and idle containers shut themselves down.
The build
It runs on Cloudflare end to end: a Worker serving a React app, D1 for data, R2 for media, and an ffmpeg container that cuts the audio and video once the edges are approved. A trimmed sermon goes out to the church’s podcast feed, YouTube and SermonAudio, and short clips go to Facebook, Instagram and TikTok. Around that: passwordless sign-in, Stripe billing, and a public listening page you can search by meaning.
Figures
Notes
- Fig. 2 Figs. 2 and 3 use demo data. The churches, pastor and recording are made up.
- Fig. 5 Figs. 4 and 5 use the repo’s own test recording, a stick figure walking the stage, run through the production clip code.