Technical Info
This page describes the technology behind Northborough Government News: how a meeting's video becomes a written summary, a web page and a podcast episode, and which tools and AI models do each part of the work.
Mitch (a real human) wrote this section
Technical readers may be curious how this is all put together. My goal in creating this web site (and companion podcast) is, at its core, somewhat selfish. I want to keep track of what's going on in Northborough government - but I don't have time to watch all the meetings. I suspect at least a few others might have a similar interest.
The short version: Now and then (currently 11pm and 7am) a Mac app I wrote looks on Northborough Media Connection's YouTube channel for new meeting videos. It's (hopefully) smart enough to skip videos that aren't meetings. When it finds a new video, it creates a text summary of that meeting. That gets uploaded to the site as a new story. The same Mac app then creates a version of that summary that is better for listening, since someone reading a written story out loud isn't quite right. It then "reads" that story to an audio file. That gets uploaded as a podcast. Along the way the same Mac app looks for potential Open Meeting Law violations. This was a technical challenge related to an important topic, and it was interesting enough to leave it in there.
Each step involved a lot of work to set up. There is AI involved in most steps, but not always the kind of AI people think about these days. In making the app I wanted to limit the use of "general purpose" AI, both because it's expensive and it's not great for the environment. So there's a surprising amount of AI that happens on my computer, which is just a regular Mac laptop.
A huge goal for this is that I want it to run automatically. I don't want to be a newspaper editor or publisher. If this needs my constant attention I'll certainly lose interest.
The only two steps that require my regular attention right now are related to the human voices, both real and synthetic.
The first is "knowing" who said what at a meeting. This is called diarization. The app downloads the audio from YouTube, and generates a transcript using a SpeechTranscriber tool Apple provides (it's better than YouTube's captions). Then I run an AI model on my Mac that goes through the same audio file and separates, roughly by syllable, the different speakers. It gives each speaker an identifier based on the speech pattern. From the transcription and other context (including agendas and the members of all boards and committees, which the app gets from the Town web site) it tries to guess who is who. It's...ok, but not great. But it's built to learn. Once I tell it who a voice is it's remarkably good at knowing that person at the next meeting it looks at. It isn't perfect. I've run across one pair of people it truly can't tell apart. There are always new people at meetings - guest speakers and the like - who often need my help to confirm. The app is getting better at it though. If the agenda says (for example) Jane Smith is seeking a zoning variance, and the transcript has someone introducing themselves as Jane, it can do the math. About half of the stories need my help there, but it's usually five minutes or less - and shrinking.
The other requirement of my time is pronunciation in the podcast episodes. The app uses an amazing local model called Chatterbox to generate the audio. Like the diarizer it runs entirely on my Mac, so it doesn't cost anything and doesn't add to the forest-burning needs of huge data centers. Chatterbox is an open-source model built to (seriously) mimic real voices. The idea is you say a few words and it learns to speak like you. Freaky. I sure as heck didn't want to be the narrator to this but I needed voices. Another great local model is Kokoro. It has several really good voices, but its overall phrasing is more robotic than Chatterbox. So I use Kokoro voices as the ones Chatterbox will mimic. And it helped to solve a real problem. The English language is weird. So is pronunciation, especially of names. We have three Select Board members with pronunciations Chatterbox had trouble with. Rea sounded like Reya, Rutan like Rootten, and Tietjen like tie-et-jean. Chatterbox doesn't use phonetic spelling (you can't say TEE-jen - it'll say each letter). So I added a pronunciation screen. On that I play with other words that sound right, like Ray for Rea. If I need something I can't fake, I have Kokoro say it since it does take phonetic hints. Then the app splices that tiny segment in whenever it hits the challenging word. It sounds right because Chatterbox mimics the same Kokoro voice. Crazy, but it works. Once I define a pronunciation it remembers it for every meeting. This takes a while, but once I do one or two meetings of a committee it's good with the rest.
The only uses of "Data Center AI" are:
- Generating the web story from the transcript. This uses Claude Opus. It takes in the transcript, agenda (from text OCR'd from the PDF), and member names from the web site. I keep tweaking the prompt but it's pretty good now. I tested Apple's new Private Cloud Compute model - but the token limit is too low so the results aren't great.
- Converting the web story to an audio script. Also Claude Opus. I might try Private Cloud Compute for this soon since the token count wouldn't be a problem. My gut feeling is Claude would still do a better job, and the audio script is important to get right.
- Finding Open Meeting Law violations. The app uses Claude Sonnet to look for violations. But how it looks is truly bonkers. I created a local model (not really a model in the strict sense) of:
- The Open Meeting Law itself
- The official Open Meeting Law guidance from the Attorney General
- All (I'm not making this up) 3600+ public decisions of the Attorney General's office related to Open Meeting Law complaints. I laugh a little when I think about this - it's really something. Every day it looks for new decisions and adds them to the local knowledge base. This uses Claude Haiku to generate summaries used for later analysis.
If you can't tell, I'm proud of the Open Meeting Law analysis. It's not perfect, but it's pretty good. To the best of my knowledge nobody's done anything like this yet.
Everything else runs on my Mac. These are good little computers.
Please drop me a note at mitch@mitchcohen.com if you're curious about anything else.
AI wrote this next section, upon my prompt to summarize the technical workflow used to generate this web site. This text will automatically change over time as the project changes.
AI-generated text starts here...
How it works: from meeting video to web site and podcast
The technical steps behind the site and podcast, with the tools and models each step uses. This describes how the pipeline works, not how to use the app.
Pipeline: find meeting → agenda → transcript → speakers → Open Meeting Law review → summary → web site → podcast episode → podcast feed
Built with: a macOS app (Swift, SwiftUI) plus two Swift packages, ViolationFinderKit and OMLKit. Most work runs on the Mac. Claude is used for writing and reasoning; a few steps use small open models running locally.
1. Finding meetings
- Source: the town's public-access YouTube channel, listed with yt-dlp.
- When: every hour, around the clock, plus a full check each morning and evening that also reads the town website, fetches new OML decisions and makes a backup. A meeting that fails is left for the next full check unless it's changed in the meantime.
- Live meetings: when a check sees a meeting streaming that it will look at once it's over (a dated title, or a placeholder title naming a body, such as "Open Space Meeting_2026.11.30_M1 (NMC)"), the Mac running the checks looks again every 10 minutes, listing only the first page of the channel's Live tab. Once YouTube shows the stream as finished, the regular check runs right away. Watching stops after 8 hours, or at the first failed look, leaving the meeting to the hourly check. A watched meeting that ended but still wasn't taken for a meeting is listed among the check's problems, with the reason, rather than dropped.
- Archive: older meetings come from the Northborough Cable Access archive catalog.
- Duplicates: a meeting added twice (the same video, or the same board on the same day) is merged.
- Network: every request uses a fresh session with a standard browser user agent; nothing is kept between requests.
2. Agendas and town records
-
Finding the agenda: taken from links in the video description. When there's none, it's taken from the town calendar's iCalendar feed (
export.ics→ event page → agenda). - Town records: the town's Minutes & Agendas pages (a CivicPlus Drupal site) are read for each board's agendas and minutes. Committees the app has no meetings for are listed too, once a week, for Meeting Coverage; their agendas aren't downloaded.
- Meeting dates: a rescheduled notice with the old day struck through ("October ~~21~~ 28") keeps both days in its text; the second is taken.
- School committees: the Regional and Northborough School Committees post their packets and minutes in the school district's public Google Drive folders, read through Drive's plain folder listing. A meeting's draft minutes come from the next meeting's packet until approved minutes are posted. A subcommittee's folders and files are the ones with its name ("RSC Audit Subcommittee 2026_03_09"), and its draft minutes come from its own next meeting's packet.
- PDF text: PDFKit reads each page's embedded text. Pages without text are read with Apple Vision OCR.
-
Checks that use no model:
- Wrong agenda: an agenda whose dates don't match the meeting is flagged (old links get reused).
- Minutes approval: whether minutes were approved on time, read from the board's later minutes (the vote they record: "motion to approve the minutes of June 9", "the minutes of the previous meeting") and agendas (the item listing them). Where a meeting's minutes say what it approved, they settle it: minutes listed on the agenda but deferred weren't approved that day.
3. Transcript
-
Sources, in order of preference:
- a transcript made on the Mac, listening for the meeting's names (Settings > Transcripts, on by default);
- captions the uploader provided;
- YouTube's automatic captions (WebVTT via yt-dlp, timed to the word).
-
On-device transcription: Apple SpeechAnalyzer (
SpeechTranscriber, falling back toDictationTranscriber), given the names the meeting is likely to use: the board's members, town staff and the agenda packet's names. It runs on the Mac, and the audio is deleted afterwards. In testing, stories written from these transcripts had fewer errors and clearer vote counts than ones from YouTube's captions.- When: a new meeting is transcribed before anything else, so naming the voices, the review and the story all read it. A story rewritten for a meeting not yet transcribed is transcribed first too.
- Kept: the transcript is kept with the meeting for good and used from then on.
- Fallback: if transcribing fails, YouTube's captions are used, and the story says so. Stories written before Nov. 16, 2026 used YouTube's captions until they're rewritten.
4. Speakers (who said what)
-
Separating voices: FluidAudio runs Core ML versions of open models on the Mac's Neural Engine:
- pyannote segmentation (where speech is);
- WeSpeaker voice embeddings (256-number voiceprints);
- PLDA and VBx clustering (which segments are the same voice).
- Models are bundled: about 21 MB, shipped with the app, so nothing is downloaded while it runs.
-
Recognizing people: each voice's voiceprint is compared with saved samples of known people (cosine similarity).
- Close calls: when two people score within 0.08 of each other, the voice is labeled "either of" rather than guessed.
-
Names from the meeting itself: after the voices are separated, Claude Haiku reads the labeled transcript, with the board's members, staff, the agenda and packet names, and the minutes once they're posted. It names each voice from direct evidence only: someone called on by name who then speaks, an introduction, someone saying who they are, a thank-you by name, or the minutes saying who presented. It must quote each piece of evidence.
- Checks: the app accepts a name only with strong evidence and at least one quote found in the transcript. Medium confidence also needs the name to be expected (a member, staff member or known person) or the voice to sound like that person.
- Rejected: a name is rejected when the voice sounds unlike that person's voice in other meetings, or when the evidence gives the voice two different people.
- Use: accepted names name voices no one has named, and don't override a close voice match. They don't teach the voice library until confirmed.
-
The video: the step first reads frames of the meeting's YouTube video with Apple Vision text recognition, on the Mac. It fetches only the frames it needs: each a few seconds' piece of the file, found through the index at the start of the file.
- Zoom meetings: while someone shares their screen, the current speaker's name is in the top-right corner. Read during each voice's longer turns, it names the voice when it agrees across frames. The gallery's tile names say who attended.
- Slides: names and titles on shown slides join the meeting's names.
- In-room meetings: that corner is ignored, because it belongs to a presenter's own screen.
- In tests: a 3-hour Zoom meeting took about 30 seconds and 150 frames, and named six voices with none wrong.
- Again with minutes: the morning and evening checks repeat this once the minutes are posted.
- In tests on four meetings you had named: 54 voices named right and none wrong, at a few cents a meeting.
-
Human review:
- Naming and correcting: new voices are named in the app. Merged voices can be split, and mixed turns can be sorted one by one using the meeting audio.
- Look-alike voices: a meeting can withhold names for two voices that can't be told apart. Those voices are then never used as samples.
- Labeled transcript: each caption word goes to whichever voice was speaking at that moment.
5. Open Meeting Law review
-
Knowledge base, built once and updated over time:
- AG determinations: downloaded from the Massachusetts Attorney General's public decisions database. Text comes from PDFKit, with Vision OCR as a fallback.
- Per-decision summaries and topic tags: Claude Haiku.
- Catalog of violation types: distilled from the statute, regulations, the AG's guide and the decisions using Claude Opus; the tags were mapped onto those types with Claude Sonnet.
- Reference texts: the statute (G.L. c. 30A §§ 18–25), the regulations, and the AG's guide and checklists, bundled with the app.
-
Review: Claude (Sonnet by default), run through the Claude Code CLI in an isolated mode (no tools, plugins or file access), in two passes:
- Screen: reads the catalog, law, agenda and timestamped transcript, and lists possible issues with verbatim quotes.
- Assess: weighs each issue against precedents chosen locally (topic tags plus keyword overlap and recency, no model call) and the full AG guidance, and rates how likely the AG would be to find a violation.
- Quote check: every quote given as evidence must be found in the transcript, matching words rather than exact punctuation and capitalization.
- Not checked: what the meeting's own minutes say (a summary of each discussion, the documents used, the votes and attendance). Those minutes are written after the meeting, and the app doesn't read them, so a finding could only guess. Findings of these kinds in older reviews are hidden. Whether the minutes were approved on time is still checked, from later minutes and agendas (above). Posting times are skipped too unless Settings turns them on.
- Alternative reviewer: Apple's Private Cloud Compute model. Its context is 32K tokens, so the transcript is screened in parts and only the relevant passages of the law and guidance are passed in.
6. Summary
- Model: Claude (Opus by default), through the same isolated CLI call, returning structured JSON.
- Input: the speaker-labeled transcript, the agenda, and the voices with their names.
-
Earlier coverage: before Claude writes, the Mac looks through the past year's stories, from every committee, for sections about the same matters, so a story can add a sentence of background and link to the earlier one ("The chief made the full case to the Financial Planning Committee on Nov. 19").
- Matching: by words, with no Claude call. Each earlier section is scored against the new meeting's agenda and transcript (TF-IDF over single words and two-word phrases, with common words, filler and procedural sections such as minutes and adjournment left out). The names the meeting is expected to have count as if said.
- Same matter, not just same words: a section must also share at least three distinctive two-word phrases with the meeting ("ladder truck", "tax classification", "construction manager"): phrases few other sections have.
- What Claude gets: up to five sections, no more than two from one meeting, about 2,000 words at most, shown as the site shows them (withheld names stay withheld). Claude is told to use one only for the same matter, as a sentence or two of attributed background, never to fill in what happened at this meeting.
- Links: a reference Claude makes to a meeting it wasn't given is kept as plain words. On the site the reference links to that meeting's page, and both pages list each other under "Related meetings". In the app, the Summary tab lists the earlier stories Claude was given, and a reference opens that meeting.
- Split votes: the story names who voted against or abstained only when the transcript shows each vote (a roll call whose names and answers can be read, a member saying how they're voting, or the answer alone on a line from a voice with a confirmed name, not a likely match) and the names match the announced count. Never worked out from who argued what or by elimination; otherwise only the count.
- Check Story (by hand): a button on the Summary tab. Claude (the summary model, at high effort, since checking is careful cross-referencing and most of the cost is reading the transcript) reads the version shown against the speaker-labeled transcript and lists what an editor would fix: votes and who voted which way, motions, who said what, quotes, figures, and names that contradict how people introduce themselves (names in the voices list count as right even when the captions differ). Each finding gives the section, what the story says, what the transcript shows with its time, and a fix. It changes nothing. The findings are kept with that version, so each version is checked at most once; a rewrite is a new version that can be checked again. About what writing the story cost.
-
Revise (by hand): Claude changes only what you ask in the newest version, in as few words as it can, and the result is saved as a new version (Compare Versions shows what changed).
- From Check Story: each finding has a Fix button, and checked findings can be fixed together (Fix Selected). The request starts as each finding's suggested fix, which you can edit before sending. The Revise button takes any request.
- What Claude reads: the story with each paragraph and motion numbered, in the writer's markup (speaker tags, times, links), so unchanged parts are kept exactly. For the transcript, it gets only the lines within four minutes of each finding's time, or of its section's times when the finding has none: usually a few cents. A request with no times gets the whole transcript, about what writing the story cost.
- Rules: the same as for writing: quotes exact, remarks credited to the voice that said them, votes named only when the transcript shows each one, figures as stated. When the transcript doesn't support a change, Claude leaves it alone and says why; that note is shown and kept with the version.
- Kept from rewrites: batch runs and the Needs Attention batch don't write a revised story again, since a rewrite starts over without the changes. Summarize Again by hand warns first; earlier versions stay in the history either way.
-
Edit Story (by hand): the newest version as text, in a window beside a live preview (or the changes so far), with Find and Replace, undo and spelling. No Claude, no cost.
-
The text: each part on its own line after its id, as Revise gives it to Claude:
<headline>,<overview>, paragraphs<s2.p3>, motions<s2.m1> … || OUTCOME: …, under## Section n: Titleheadings. Speaker tags, times and links are shown in gray. A paragraph is removed by emptying it and added with a line starting<s2.p+>. Quotes, times and the sections themselves can't change here. - Checked as you type: Save stays off while there's an error: a tag, time or link that's broken or names a voice, time or meeting the story can't have; a section or motion added or removed; an empty headline, overview or outcome; text outside a part. Warnings (tags, times or links removed, paragraphs removed, much shorter) ask before saving. Before writing, the new version must save and read back the same, and differ only in its words.
- Saved as a new version, "Edited by hand", with your note; like a Revise, batch runs don't write over it, and the site, Facebook post and podcast script follow.
-
The text: each part on its own line after its id, as Revise gives it to Claude:
- Instructions version: stories written with older instructions are listed in Needs Attention and rewritten by batch runs only if written on or after Nov. 24, 2026, when version 4 came in. Earlier stories stay as they are; the Summary tab still says which version wrote them.
-
Checks on the result:
- quotes must appear in the transcript;
- speakers must be voices in the meeting;
- times must fall within the meeting.
- Tag check: a short second Claude call turns speakers mentioned in plain text ("the chair") into tags, so names stay correct when a voice is renamed later.
- Names: filled in when pages are built, from the people directory. Withheld names are never shown.
- Usage tracking: time, tokens and cost are recorded for every Claude step.
-
Versions: every writing of a story is kept, in the app only. The site always shows the newest.
- Confirming: Summarize Again by hand, from the Summary tab or Needs Attention, asks first. It says the story will be written from scratch, so most of its wording changes, and reminds you of the smaller fixes: naming a voice updates the story without a rewrite, and Revise changes only what you ask. When Needs Attention lists only name changes, it says those already show. Return keeps the current version.
- Why: Summarize Again asks why (optional; Needs Attention's reasons are shown as a hint). The story records that note, and who asked: you on the Summary tab, you from Needs Attention, the automation, or a batch run.
- What changed: worked out by comparing each version with the one before, so it's there for versions from before notes were kept too: instructions, model, speakers found or found again, speakers renamed (those the stories mention), transcript and agenda. "Made from the same …" means a rewrite with nothing new to go on.
- On the Summary tab: the version picker shows each version's date and a few words of why. Under the story: which version it is, who wrote it, the note, what changed, and a warning when it isn't the newest.
- Compare Versions: any two versions, paragraph by paragraph, with names as known now. Paragraphs that share at least half their words show the words taken out (struck through, red) and put in (green); others show as taken out or put in whole. Since Claude writes each version from scratch, most paragraphs usually differ; Changes Only hides the rest.
7. Web site
- Static HTML generated in Swift from templates: home, meeting list, podcast, a page per meeting, people, a page per person, about, privacy, and technical info.
- Podcast page: what the podcast is, buttons to follow it in Apple Podcasts (its Apple Podcasts listing, or the feed if no listing is set), Spotify (its Spotify listing; no button if none is set) or Overcast, the feed address with a Copy button, and how to add it to other apps (without a Spotify listing, including why Spotify can't add it by address). Below that, episodes newest first, 20 to a page, each with its own player. The players load nothing until played, and starting one pauses any other.
-
Meeting pages link to earlier stories they refer to, and list under "Related meetings", oldest first, both the meetings their story refers to and the later stories that refer back. Each says in a few words what connects them ("$2.5 million fire ladder truck request").
-
Topics: written right after a story, before it's saved: for each link, Haiku (high effort) reads the sentence and paragraph that make it and the earlier story, and names the matter the two share. A fraction of a cent each; in tests Haiku at high effort matched Sonnet, where at low effort it sometimes named the paragraph's other subject. Kept in the story (
linkTopics), so building the site never calls Claude.--link-topicsnames any links still without one (stories from before, or a failed call); a link without a topic is listed without one.
-
Topics: written right after a story, before it's saved: for each link, Haiku (high effort) reads the sentence and paragraph that make it and the earlier story, and names the matter the two share. A fraction of a cent each; in tests Haiku at high effort matched Sonnet, where at low effort it sometimes named the paragraph's other subject. Kept in the story (
-
Home page:
- Stories: the last 7 days' meetings, newest first, at least 5 and at most 8. The rest of the last 60 days are listed under "Earlier meetings".
- Lead: normally the newest meeting. An elected board's meeting from the last 7 days (Select Board, Planning Board, and the Northborough, Regional and Combined School Committees, not their subcommittees) leads instead for 24 hours after its first story is written. A rewrite doesn't count as new. The hourly site build moves the lead back.
- Podcast strip: a one-line "Listen to the podcast" strip, between the lead article and the other stories, plays the newest episode and links to the podcast page.
- Technical info: this document, converted to HTML when the app is built (only when it has changed). A new version is written and uploaded on the next site build.
-
Feeds and sharing:
-
an RSS feed of articles (
feed.xml); -
a separate podcast feed (
podcast.xml); -
Open Graph tags for link previews. A meeting page's preview picture is its own card (
cards/<page>.png, 1200 × 630), drawn by the app in the site's colors: the site's icon and name, the headline, and the committee and date. Other pages show the site's share image.
-
an RSS feed of articles (
- Incremental: only files that changed are written.
-
Upload: lftp
mirror -Rover SFTP sends just the changes and removes files the site no longer has.- Safe if cut short: each file goes up under a temporary name and is renamed into place only when complete, so a dropped connection never leaves an empty or half-written page.
-
Gentle on the server: shared hosts block an address that signs in too often or keeps failing to.
- One connection, one file at a time, and at most 2 tries.
- An upload starts once the server has been quiet for a minute (counting every copy of the app on this Mac); otherwise it waits, and changes made meanwhile go up with it. A burst of edits is one sign-in.
- After a failed upload, the next waits 15 minutes, then 30, then an hour. Upload Now skips that wait, but not the minute.
-
Facebook: the Mac that uploads the site posts each meeting's story to the site's Facebook Page through the Graph API (v26.0), once the meeting's page is on the server. No model is used.
-
The post: the story's headline and opening paragraph as the page shows them (withheld names stay withheld), then a note that the link is in the comments. It's a photo post: the meeting's card is the photo, sent with the call (Facebook fetches nothing), described for screen readers, with the text as its caption. The link to the meeting's page is a comment from the Page. The headline and opening are wrapped in the site's wording (
facebookHeadline,facebookOpening, for fixed text or emoji around them), and the note and the comment are the site's wording too (facebookNote,facebookComment; once the meeting has a podcast episode,facebookCommentWithEpisode, which says how long it is). A comment whose wording changes, as when its episode goes up, is edited. - Which meetings: those posted from their meeting page (Post to Facebook), and, once Settings > Facebook turns it on, every story first written after that.
- Keeping up: when a story's headline or opening changes, the post's text is edited; a link comment that failed is made on the next run; a page that moves gets its comment changed. A hidden or deleted meeting's post is deleted.
- Pace: at most five new posts a run, 15 seconds apart; the run stops if Facebook asks it to slow down.
-
Records: each post's ID, its comment and the text it was made from, in the data folder (
facebook/), so both Macs show it. Requests from either Mac wait there until the posting Mac has done them. The app secret and the Page's token (made from Graph API Explorer's short-lived token, and never expiring) are kept in the posting Mac's Keychain, and every call is signed with the app secret.
-
The post: the story's headline and opening paragraph as the page shows them (withheld names stay withheld), then a note that the link is in the comments. It's a photo post: the meeting's card is the photo, sent with the call (Facebook fetches nothing), described for screen readers, with the text as its caption. The link to the meeting's page is a comment from the Page. The headline and opening are wrapped in the site's wording (
8. Podcast episodes
-
Listening script: Claude rewrites the summary "for the ear": shorter sentences, no tables or links, and numbers and names said in full.
- Length: as long as the story supports, up to 1,000 words (about six minutes); for a long story, up to 80% of its length, at most 1,800 words (about eleven minutes). An episode whose script was cut short by the old 1,000-word limit shows as "Could be longer" in Needs Attention.
- Closing: says the episode was written with automated tools and read by an electronic voice, that it's unofficial and not affiliated with the town, and where the web site is.
- In the app: the Summary tab shows the script beside the written summary, with the pronunciations it was read with.
-
When the story changes: making the episode again keeps the script while the story reads the same, and otherwise:
- Updated when the story changed only by Revise or by speakers' names. Claude gets the script with its paragraphs numbered, the story now, and the story's paragraphs that changed (before and after, from the story text saved with the script), and returns only the paragraphs to change; the rest is kept word for word. The opening and closing are never changed. If nothing in the script is affected, nothing changes.
- Written from scratch when the story was written again from scratch since, when its story allows a longer script, or when you choose Write a Fresh Script.
- Confirming: Make Episode Again, on the Summary tab or in Needs Attention, asks first. It says whether the script will be kept, updated or written from scratch, and that the episode will be replaced. Return keeps the current episode. When the script would be updated, Write a Fresh Script Instead is offered.
- History: a script that's replaced is kept, with how it was made (written, updated or edited by hand, and Claude's note on an update or yours on an edit). Under the podcast script: how the current one was made, and Earlier Scripts, which compares any two paragraph by paragraph.
- Edit Script (by hand): the script's body as text, in the same window as Edit Story; the opening and closing stay as they are. Markup that would be read aloud is an error; digits, removed paragraphs, a much shorter script or one over its length limit are warnings. An edited script is never written again on its own (not even to be longer): Needs Attention lists the episode as "Script edited by hand since it was made", Make Episode Again reads it as it is, and writing it fresh warns that it replaces your edits. A later change to the story still updates only the paragraphs it affects.
- Hard words: names that Kokoro's pronunciation dictionary (misaki, with espeak-ng as fallback) and the system word lists don't know.
-
Name research (for hard names spoken in the meeting):
- Finding the name: the meeting audio (yt-dlp, cached for 14 days) is cut into short clips where the name is spoken, using ffmpeg and the transcript's word times.
- What was heard: Whisper large-v3-turbo (via mlx-whisper) gives spellings, and a wav2vec2 phoneme model (ljspeech-gruut) gives sounds.
- Automatic acceptance: when what was heard agrees with the speech engine's own guess, the name is accepted automatically.
- Otherwise: the episode waits for a person to choose from audible options, type a spelling, or set the stressed syllable.
- Shared word list: a decision is kept and used for every later episode.
- When: the new-meetings check makes each new meeting's episode right after its summary. If a name still needs a decision, the episode waits and a notification says which names.
-
Speech: Chatterbox (Resemble AI, MIT license), run on the Mac. Each Mac picks its model in Settings > Podcast:
- Chatterbox-Turbo (the default): a 350M model run on the GPU through Apple's MLX framework, using the chatterbox-mlx package (pinned to one release). It reads at its own pace, about 8% slower than the original, which was preferred for listening. Peak memory is about 9 GB.
- The original Chatterbox: a 0.5B Llama-based model plus the S3Gen vocoder, run with PyTorch on the CPU. Peak memory is about 6 GB.
- Voices: cloned from 14-second reference samples: Chatterbox's default voice and samples made with Kokoro-82M voices. Five voices rotate, and no voice repeats on the same day while others are free.
- Text handling: text is read in chunks of up to 260 characters, with short pauses between chunks and paragraphs. Names are given as plain-English respellings, because Chatterbox can't take phonetic input. Dates are written out in words ("November seventeenth"), because Turbo can misread a numeral next to a year.
- Speed: a 5–6 minute episode takes a few minutes with Turbo, plus about 20 seconds for each passage with a spliced name and under a minute for the name check, or roughly 25 minutes with the original. Episodes are made one at a time.
- Watermark: Chatterbox embeds Resemble's inaudible Perth watermark, which identifies the audio as AI-made.
- Kokoro-82M is also available for quick test episodes (about a minute), with exact phonetic (IPA) pronunciations.
- Encoding: ffmpeg normalizes loudness to −16 LUFS and encodes AAC at 96 kbps mono, with fast-start for streaming.
-
Publishing:
- each article page gets an audio player;
-
podcast.xmlcarries iTunes tags and the app icon as artwork; - each episode is dated when it first entered the feed, and keeps that date if remade.
-
Splicing exact names: Chatterbox can't take sounds or stress marks, so for names whose exact sounds are set:
- Kokoro reads the passage with the exact sounds, and Chatterbox's voice conversion (S3Gen) turns that reading into the episode voice;
- the two readings are aligned (DTW on MFCCs), carrying Kokoro's word edges onto Chatterbox's;
- just the name is cut in, with 20 ms of silence each side (adjustable), 15 ms fades, and loudness and pitch matched to the passage;
- Whisper checks that the words around each name came out intact; if not, the whole passage is Kokoro's reading in the episode voice.
-
Checking names: Chatterbox reads each chunk independently, so a name it says right in one chunk can come out wrong in the next ("Reardon" as "Reeder").
- Listening: after the reading, Whisper transcribes each chunk that holds a name. Names are capitalized words the system dictionary doesn't have, plus respelled words; a word the script only ever capitalizes at the start of a sentence ("Hydroseeding and streetlights remain") isn't counted as a name. Whisper isn't told the names: when it was, it heard them as written however they were said.
- Comparing: the name is found in what Whisper heard from the words on either side of it. It passes if Whisper's spelling matches, is one letter off, or has the same consonants, with k, ck and ch counted as c ("Mick Menamey" for McMenemy, "Katiottori" for Cacciatori).
- Reading again: a chunk with a name heard wrong is read again, up to three times.
- Still wrong: in voices made from Kokoro samples, the passage becomes Kokoro's reading in the episode voice, with each respelled name's exact sounds, but only when Kokoro knows the name: from its dictionary, or from exact sounds in the word list. Kokoro's guess at a name can be worse than Chatterbox's (it read "Cacciatori" as "kak-see-uh-TOR-ee"), so then, as in other voices, the closest reading is kept.
- In the app: the Summary tab lists each name that needed care: spliced names, and each name Whisper heard wrong, with what it heard and what became of it (right on a later reading, Kokoro's reading, or the closest one kept), and a button that plays that spot in the episode.
- In tests on one 6-minute episode: 21 chunks held names. Over four readings of each, about one in ten was flagged, and each flagged chunk passed when read again within two tries.
9. Running it
- Two Macs: the Mac mini runs automatic checks; a laptop is used for manual work such as naming speakers and choosing pronunciations.
-
Meeting Coverage (a window in the app, not on the web site): which meetings the town posted were recorded for YouTube. No model is used.
- Meetings: each agenda posted on the town website, by committee and day. A joint meeting counts for each committee in it. Cancelled meetings, site walks and visits (no minutes of their own) and closed executive sessions aren't counted, and the last three days wait for their video.
- Videos: the app's meetings and the town channel's meeting videos (live streams and uploads, listed with yt-dlp when the window opens), matched by committee and day, a day either side for a video dated by its upload.
- By committee: meetings held and recorded, least recorded first: never, rarely (under a third), sometimes, usually, always. Selecting committees lists only their meetings.
- Each meeting: links to its agenda, minutes (or "Not posted") and packet, and its video, with "Not in the app" for a channel video the app hasn't added.
- Videos with no posted agenda: meeting videos matching no agenda, such as a body the town lists elsewhere or a misdated video.
-
Saved documents: each town website check saves, into the data folder's
town-documents/<committee>/, the agenda and minutes of every meeting not recorded and the minutes of every meeting recorded, from the window's start date on. A file already saved isn't fetched again; an amended agenda is saved beside the first. One request a second.
-
Needs Attention: each story and episode keeps a record of what it was made from: speakers' names, transcript, agenda, pronunciations and reading settings. A window lists the ones that would come out differently if made again, and why, so recent ones can be remade.
- Not made yet: the window also lists each meeting from a chosen day on (Settings > Checks; Nov. 1, 2026 here) that has no story or no episode yet, with the error from the automation's last try where there was one, and episodes waiting for how to say names. These are listed however long ago the meeting was; hidden meetings and possible duplicates aren't.
- Shared data: both Macs use one data folder in iCloud Drive, with coordinated file writes. Changes from either Mac trigger a site rebuild.
- Local speech tools: three Python 3.11 environments: one for Kokoro, Whisper and the phoneme model, one for the original Chatterbox, and one for Chatterbox-Turbo. They're installed once per Mac and run offline after setup. A helper stays running for three minutes after each use, with its models loaded, so test clips after the first take a second or two rather than about twenty.
Models at a glance
| Step | Model / tool | Runs |
|---|---|---|
| Transcription | Apple SpeechAnalyzer, listening for the meeting's names | On device |
| Captions (fallback) | YouTube automatic captions (yt-dlp) | YouTube |
| Speaker separation | pyannote, WeSpeaker, PLDA/VBx (via FluidAudio, Core ML) | On device |
| PDF text | PDFKit, Apple Vision OCR | On device |
| Names from the meeting | Claude Haiku | Anthropic |
| OML review | Claude Sonnet (or Apple Private Cloud Compute) | Anthropic / Apple PCC |
| Decision summaries, tags | Claude Haiku | Anthropic |
| Violation catalog | Claude Opus (built once) | Anthropic |
| Meeting summary | Claude Opus | Anthropic |
| Listening script | Claude | Anthropic |
| Name research | Whisper large-v3-turbo (mlx-whisper), wav2vec2 phonemes | On device |
| Name check | Whisper large-v3-turbo (mlx-whisper) | On device |
| Pronunciation dictionary | misaki, espeak-ng | On device |
| Episode speech | Chatterbox-Turbo or the original Chatterbox (voices from Kokoro-82M samples) | On device (GPU via MLX, or CPU) |
| Quick test speech | Kokoro-82M | On device |
| Audio encoding | ffmpeg | On device |
| Upload | lftp (SFTP) | — |