System architecture
Overview
This page covers how EDEA Transcript v1 is built:
- the parts and how they talk;
- how a recording travels from a browser or phone to two pages in Confluence;
- what happens when a step fails.
It's for anyone building or changing the system. What v1 must do is in the Spec, and why each big choice was made is in the Decision pages in the Brain. This page covers how.
The parts
Browser (Chrome or Edge) Cloudflare, behind the staff sign-in Outside services
──────────────────────── ──────────────────────────────────── ────────────────
Recorder page ── pieces ──▶ Worker: web app + API ──▶ R2 audio, transcripts
Upload page ── pieces ──▶ │ ──▶ D1 meetings, voices, names
Review screen ◀── JSON ───── │
Notetaker page ── a link ──▶ ├─▶ Notetaker bot: our Container, in the EU ── joins ──▶ Google Meet
├── posts when the bot is signed out ────────────────▶ Slack
├─▶ Fingerprint service: our Container, in the EU ◀── the Workflow too
└─▶ Workflow, one per meeting ── asks ──▶ Soniox words
── asks ──▶ ElevenLabs Scribe v2 words Soniox can't give
── asks ──▶ Claude API English terms
└─▶ Summary workflow, after a meeting is ready ── asks ──▶ Claude API the summary
── asks ──▶ DeepInfra voices
Filing, on each person's own Claude plan:
Claude (claude.ai, Claude Code) ── MCP ──▶ EDEA Transcript connector, /mcp on the same Worker
── MCP ──▶ Atlassian Rovo MCP ──▶ Confluence
| Part | What it is | What it does |
|---|---|---|
| Web app | Pages served by the Worker | The recorder (Meet and room modes), the phone upload page, the review screen and the voice profile page, beside a sidebar that lists every meeting |
| Worker | One Cloudflare Worker, in TypeScript | Serves the web app, the JSON API and the connector, and checks the sign-in on every request |
| R2 | One private Cloudflare bucket | Uploaded pieces, joined audio, raw provider results and merged transcripts |
| D1 | Cloudflare's SQL database | Each meeting's record: its tracks, pieces, voices, names and filed page links |
| Workflow | Cloudflare Workflows, one instance per meeting | Runs the processing steps in order, keeps progress, waits and retries |
| Soniox | Speech-to-text API, asynchronous | Words with a time on each word. It writes most English terms in Hebrew letters |
| ElevenLabs Scribe v2 | Speech-to-text API | Takes any track Soniox can't do. English terms come back in English letters |
| Term model | A small model on the Claude API (the TERM_MODEL setting) | Lists the English terms an engine wrote in Hebrew letters, so the code can put them back |
| Summary model | A small model on the Claude API (the SUMMARY_MODEL setting) | Writes each meeting's summary once it is ready, and revises it when a person asks for changes |
| DeepInfra | Runs NVIDIA's Nemotron 3 Diarization, a speaker diarization model | Splits a track into voices: who spoke when, up to 8 voices |
| Fingerprint service | Our own Cloudflare Container in the EU, with ffmpeg and NVIDIA's TitaNet-large speaker model (voiceprint/) | Makes a fingerprint of a team member's profile sample, and of each voice in a meeting. Cuts a short clip of each voice. Keeps nothing |
| Notetaker bot | Our own Cloudflare Container in the EU, with Google Chrome on a virtual screen (meet-bot/) | Joins a Meet call as its own signed-in Google account, "EDEA Notetaker", and records the call's sound as one track |
| Slack | The team channel's incoming webhook | Tells the team when the notetaker is signed out, with a one-time link to sign it in |
| Filing skill | The edea-transcript plugin in E-D-E-A/workflow-skills, run in Claude | Writes the notes page and the transcript page, and files both after the person's yes |
| EDEA Transcript connector | An MCP server at /mcp on the Worker | How each person's Claude reads meetings and changes them, and how the filing skill records what was filed |
| Atlassian Rovo MCP | Atlassian's MCP server, connected in Claude | How the filing skill reads and writes Confluence, as the person filing |
Once the backend confirms it has a recording, no copy stays on the laptop or phone.
Sign-in
-
Access gates the whole app. The Worker runs at its
workers.devaddress with Cloudflare Access switched on for the Worker itself, using the "E.D.E.A staff" Google sign-in. A browser gets through only after signing in. Access then hands the Worker the person's identity onctx.access, already checked by Cloudflare. -
The Worker checks every request anyway. Before any route runs, it reads the identity with
ctx.access.getIdentity():- no identity, meaning Access didn't sign the request in, gets 401;
- no identity on a request that carries Access's
Cf-Access-Jwt-Assertionheader gets 503identity_unavailable, and a warning in the log that says whetherctx.accesswas there. In production about one request in ten that Access signed in reaches the Worker this way, and the next try has an identity. A page load gets a page that loads itself again a second later. The web app sends any request again at once, a change too, up to three tries in all: the Worker refuses before it reads or writes anything. The header only changes which refusal is sent, so it never lets anyone in; - an email whose domain isn't exactly
first-edea.com(theSTAFF_EMAIL_DOMAINsetting) gets 403. So does an Access service token, which has no email.
The rule repeats Access's policy in code, so a loosened policy still can't let an outside account in. The lowercased email is who the person is, everywhere below. The Worker doesn't check which Access application signed the request in: the domain check holds whichever one did.
-
The web app is part of the Worker. Vite builds the pages and the build is packed into the Worker's code, rather than served as Workers static assets, which never pass
ctx.accesson. So every page goes through the same check as the API. -
Changes must come from the app's own pages. A request that changes something and carries a
Sec-Fetch-Siteheader other thansame-origingets 403cross_site, so another website can't make a signed-in person's browser create or finish a meeting. -
The notetaker bot never calls in either. Its Durable Object asks the bot for its pieces; the bot has no address or token for the Worker. See The notetaker bot.
-
The providers never call in. ElevenLabs, the Claude API and DeepInfra answer in the same request the Workflow sends. The Workflow asks Soniox for its results until they're done. The speech services read the audio through a short-lived signed R2 link that the Workflow makes for that one file. DeepInfra takes no link, so the Workflow sends it the audio itself.
-
The connector is the one exception. Claude's servers call it without a browser. Its paths
/mcp,/token,/registerand/.well-known/oauth-*sit outside the browser gate./mcpaccepts only tokens the Worker issued after the person, signed in by Access, allowed Claude on the connector's consent page. See The connector for Claude.
Recording and upload
What gets recorded
| Kind | Recorded with | Tracks |
|---|---|---|
| Google Meet call | The recorder page in Chrome or Edge, on a laptop | call: the Meet tab's audio, shared with "Also share tab audio". mic: the microphone of the person recording. |
| Room meeting on a laptop | The recorder page's room mode | mic only |
| Room meeting or phone call on a phone | The phone's own recorder (a recorder app, Voice Memos, iPhone call recording), then the upload page | file: the uploaded file, as it is |
| Google Meet call joined from a phone | The notetaker bot, sent from the notetaker page | file: the call's mixed sound, as the bot hears it. The meeting's kind is upload, so it is processed as a phone upload |
A Meet call's two tracks come from two MediaRecorders and stay two files; they're never mixed.
- Everything on
micis the person recording. Meet never plays a person's own voice back to them. callholds everyone else.- In a Meet call, echo cancellation is on for
mic. This keeps the call coming out of the laptop's speakers mostly off that track. Headphones keep it off entirely. - In room mode, echo cancellation and noise suppression are off, because both cut quiet voices across a table. Auto gain stays on.
micis the microphone the person picked, remembered in the browser. Without a pick it is the system's microphone, unless that is an iPhone's or iPad's and the laptop has its own: a Mac offers a nearby iPhone's microphone as one of its own. The page opens the microphone by its own id, not as Chrome's "default", so a change of the system's microphone mid-meeting doesn't move the recording. Chrome names microphones only after the person has allowed one, so the picker appears from the second recording on. While the page is open, the picker follows the system: a headset plugged in, or another microphone chosen there.
Before recording starts, the page shows the reminder to tell everyone the meeting is being recorded.
The recorder records Opus in WebM at a speech bitrate of about 32 kbit/s, so a 5-hour track is about 70 MB.
The sound line
While it records, the card draws each track's loudness as a moving line (components/SignalTrace.vue), from a meter of its own (recorder/level-meter.ts). The recording never goes through the meter: each MediaRecorder reads its stream by itself, so the meter can stop without stopping the recording.
- No sound output. A plain
AudioContextruns on the laptop's sound output, and stops when that output stops: headphones come or go, the output device fails, or the browser suspends it. Nothing started it again, so the line stood still while the recording went on (Eden, 2026-10-21). The meter's context asks for no output (sinkId: { type: "none" }), where the browser can do that. - It starts afresh by itself. When the browser suspends the context while the line is shown, the meter resumes it. When the context's clock stands still for a second while the line is shown, or Chrome reports that the audio device failed, the meter closes the context and opens a new one on the same stream. Each new start that doesn't help waits twice as long, up to 30 seconds. The console says why each time.
- Only while someone watches. The meter is suspended while the tab is hidden or the recording is paused, and its clock then stands still on purpose.
Upload in pieces
A dropped connection must lose nothing, so audio travels in pieces. The backend confirms each piece before the browser lets go of it.
- The page creates the meeting with
POST /api/meetingsand gets its id. A recorder asks who is signed in at the same time. If that fails although the meeting was made, the page deletes the empty meeting. - The audio is split into pieces:
- Recorder: each MediaRecorder hands over a piece every 10 seconds.
- Upload page: the browser cuts the chosen file into 8 MiB pieces.
- The recorder writes each piece to the browser's IndexedDB first. The upload page doesn't need to, because the file is still on the phone.
- The browser sends the piece to
PUT /api/meetings/:id/tracks/:track/pieces/:seq, as raw bytes, with the piece's SHA-256 in theX-Piece-SHA256header. - The Worker stores the piece in R2 and records it in D1, and only then answers 200. Only after that 200 does the browser delete its copy.
- If a piece isn't confirmed, it stays in IndexedDB and the upload queue retries it, in order, with backoff. That covers being offline, a timeout, a server error and an expired sign-in. Recording never waits for uploading.
- Sending the same piece twice is harmless: it goes to the same key with the same bytes, and the checksum is compared.
- When the person presses Finish, the page sends
POST /api/meetings/:id/finishwith the number of pieces on each track, the title and the recorded length.- If any are missing, the Worker answers 409 with the list, and the page sends them.
- When all are there, the Worker answers 202 and starts the meeting's Workflow.
The person can also cancel a recording while it records or is paused, from Cancel or from Back. The page asks first, because cancelling deletes the recording. Once the person agrees:
- The recorders stop, and the audio they hand over as they stop isn't kept.
- The upload queue stops sending.
- The page deletes the recording's audio from IndexedDB, and notes there that the recording was cancelled. This comes before anything that waits on the network, so a tab closed from here on leaves a cancelled recording behind, never a leftover.
- The page waits for a piece that was already on its way, but never for a retry.
- The page sends
DELETE /api/meetings/:id. The Worker deletes the meeting's audio from R2, then its rows from D1. - The page deletes its note, then lets go of the recording's Web Lock.
If the DELETE can't reach the Worker, the note stays in IndexedDB. The page sends the DELETE again the next time the web app opens, or when another recording in the same tab ends, and deletes the note once the Worker has answered. A cancelled recording is never offered as a leftover.
A piece that reaches the Worker while its recording is being deleted isn't kept: the Worker removes its audio again and answers 404.
If the tab is closed or the laptop restarts, recording stops: a closed page can't record. Every piece recorded so far is still in IndexedDB, though, and the next time the person opens the web app it offers to finish uploading them.
- Only to the person who recorded it. Each remembered recording keeps its owner's email, because a laptop may be shared.
- Never one that's still recording. A tab holds a Web Lock named after the meeting while it records or finishes it, and the browser lets go of the lock when the tab closes. A recording whose lock is held is live somewhere and isn't offered.
- With the backend's own count. Finishing a leftover asks the backend how many pieces each track has, because a closing tab may not have noted its last one.
A phone upload resumes the same way. The page asks GET /api/meetings/:id/tracks/file/pieces which pieces the backend already has and sends the rest. After a page reload the person picks the file again, because a browser can't reopen a file by itself.
Small pieces also keep every request far under Cloudflare's 100 MB limit on a request body.
Joining the pieces
The Workflow's first step joins each track's pieces, in order, into one R2 object using an R2 multipart upload, so a 5-hour track is never held in the Worker's memory at once.
-
Parts of 8 MiB, one Workflow step each. R2 needs every part but the last to be the same size, so a part is cut across piece boundaries, and a retry redoes at most one part.
-
A track already joined is skipped, so running a meeting again doesn't join it twice.
-
A missing piece fails the meeting without retrying, with the reason in
error. -
Recorder pieces join simply by being put end to end, because only a MediaRecorder's first piece carries the file header.
-
Upload pieces were cut from one file, so they join back into that file.
The step checks the joined size against the piece sizes in D1, records the file's key in tracks.audio_key, then deletes the pieces from R2. The joined audio is kept, and so are the small pieces rows in D1.
The notetaker bot
A phone can't record another app's sound, so a Meet call joined from a phone is recorded by our own bot. Why our own and not Recall.ai: the Brain page "Record Meet calls in a web recorder page, and physical meetings and phone calls by recording and upload". What the test of it found: spike/meet-bot/REPORT.md on the branch eden/meet-bot-spike.
- A team member sends it. On the notetaker page (
/bot) they paste the call's link.POST /api/bottakes onlyhttps://meet.google.com/xxx-xxxx-xxx, without what follows the code (shared/notetaker.ts); the bot checks the link again itself. The bot has one Google account, so one run is live at a time (bot_runs.live), and a second team member gets 409bot_busy. - The container starts. The run's Durable Object, one named instance
notetakerofMeetBot(src/meet-bot/container.ts), starts the container in the EU and looks at the bot every 15 seconds. Each look isadvanceRun(src/meet-bot/advance.ts). The Worker always asks and the bot only answers, on port 8080 (meet-bot/bot.mjs). - It gets its profile. The bot's Chrome profile holds its Google sign-in. R2 keeps it encrypted with AES-256-GCM under the
BOT_PROFILE_KEYsecret (src/meet-bot/profile.ts). The Durable Object gives the bot the plain archive before Chrome opens. It takes it back right after a person signs the bot in, and after each call, because Google renews the cookies as the bot uses them. A sign-in that didn't take is never kept. - It joins. Playwright drives a headed Chrome on a virtual screen (Xvfb). The bot checks its sign-in on Meet's home page first: a driven browser that isn't signed in gets "You can't join this video call", the same page as a refusal. Then it presses "Ask to join" with the microphone and camera off, and waits up to 15 minutes for the host. Nothing hides that the browser is driven. The account's own name, "EDEA Notetaker", is what the call sees.
- It records. Chrome plays the call into a PulseAudio sound card, and ffmpeg records it as one continuous Opus-in-WebM stream at 32 kbit/s, cut into pieces of a minute. The pieces must be cuts of one stream, because the join step puts them end to end. Each look takes the new pieces and keeps them as a recorder's are kept (
keepRecordedPieceinsrc/meetings.ts). The first piece makes the meeting: kindupload, onefiletrack,audio/webm, owned by the team member who sent the bot, titled "Meet call" and the meeting's code. - It leaves 2 minutes after everyone else has left, when the call ends, at 5 hours, or when a team member presses "Make it leave". It packs its profile and says it is done. The Durable Object takes the last pieces and the profile, finishes the meeting, which starts its Workflow, and tells the bot to exit. Exiting stops the container and its billing. A container that stops before it is done still has its meeting processed, with the pieces kept so far.
Signed out. Google can end the bot's session at any time.
- The bot finds itself signed out and pauses. It opens a plain Chrome on its profile at Google's sign-in page, not the driven one, because Google often refuses a sign-in in a driven browser. Chrome's managed policies (
meet-bot/chrome-policy.json) allow no extensions or saved passwords, so nothing a person leaves in it is kept. x11vnc and websockify carry the screen as VNC over a WebSocket on port 6080. - A sign-out begins (
bot_sign_ins, one open at a time). The Durable Object posts one link to the team's Slack channel through theSLACK_WEBHOOK_URLwebhook: "EDEA Notetaker is signed out of Google. It can't join Meet call xxx-xxxx-xxx, sent by Dana Levi, until then. Sign in here:https://…/bot/sign-in#<token>". The team hears once per sign-out, however many meetings the bot misses until someone signs it in, and the same link works until then. Only the hash of the link's token is kept. A link that couldn't be posted is made again, so a link nobody received never works. Without the webhook set, the sign-out is only logged. - The link opens the sign-in page (
/bot/sign-in#<token>), behind the staff sign-in like every page. The token is after the#, so it reaches no server's logs, and the page takes it off the address. The first team member to open it claims it. They get a viewer session in a__Host-cookie, and only that session, of that person, gets the bot's screen. The claim lasts as long as the run it was made for; then the link works for the next person.- When no meeting waits for the bot, opening the link starts a run that only signs it in: the bot opens its sign-in screen, and exits once it is signed in. The page waits for the screen, up to 3 minutes.
- The viewer is noVNC's client, bundled into the web app (
web/src/components/NotetakerScreen.vue). Only the WebSocket goes through the Worker and the Durable Object, at/bot/screen; it must come from the app's own page, and it carries only its own headers to the container. Nothing the container sends runs as a page of the app.
- The person signs in, and answers any check Google asks for. Nothing in the bot types an email, a password or a code. They press "I've signed it in". The bot closes the plain Chrome and checks its sign-in again. If it took, the bot keeps the profile, which ends the sign-out, and joins the call. If it didn't, the same screen opens again.
- After 30 minutes the bot checks once more, in case the person signed in without pressing the button. Still signed out, it leaves.
The bot joins a minute or two late after a sign-in, and misses that part of the call.
The meeting record
D1
Column names here are a guide; the build owns the exact schema and its migrations.
| Table | One row per | Main columns |
|---|---|---|
meetings | meeting | id, kind (meet, room, upload), title, created_by, created_by_name (from the sign-in), recorded_at, duration_ms, status, step, error, summary_status (writing, ready, failed, or none yet), summary_error, summary_started_at, notes_page_url, transcript_page_url, filed_at, filed_by (set by record_filing) |
tracks | track of a meeting | meeting_id, track (call, mic, file), pieces, bytes, audio_key, content_type |
pieces | uploaded piece | meeting_id, track, seq, bytes, sha256 |
voices | voice that said something in a meeting | meeting_id, track, label, name, email, source, confidence, closest_email, closest_similarity, clip_start_ms, clip_end_ms, named_by, fingerprint, fingerprint_model |
line_moves | line a person moved to another speaker | meeting_id, line_start_ms, voice, moved_by |
voice_profiles | team member with a profile | email, name, fingerprint, model, consent_version (the version of the notice shown at saving), consented_at (when it was saved), saved_by |
learned_voices | meeting voice that a profile learned from | email, meeting_id, track, label, fingerprint, added_by, added_at |
voice_answers | answer to the app's question whether a voice is a team member's | meeting_id, track, label, email, answered_by, answer, answered_at |
term_fixes | English term the term model put back in a meeting | meeting_id, heard, english |
bot_runs | time the notetaker bot was sent, or started to be signed in | id, live (1 while live, so only one run is), meet_url (empty for a sign-in run), title, sent_by, phase, reason, meeting_id, pieces, profile_version, ended_at |
bot_sign_ins | time the bot's Google account was signed out, until it was signed in again | id, open (1 while open, so only one is), token_hash, alerted_at, claimed_by, viewer_session_hash, ended_at |
A voice's source is one of these:
recorder_channel;voice_profile;person;- empty, while the voice is unnamed.
A meeting's status moves through:
recording, oruploadingfor a phone upload;processing, withstepsaying which step;ready, meaning processed and waiting to be reviewed and filed;filed, once the filing skill reports the pages it created.
From any of these it can go to failed, which keeps the step that failed and the reason.
R2
meetings/ID/TRACK/pieces/00042 uploaded pieces, numbered to 5 digits, deleted once joined
meetings/ID/TRACK.webm joined audio, kept (an upload keeps its own extension)
meetings/ID/words/TRACK.soniox.job the ID of the engine's job, from when it starts until it's deleted
meetings/ID/words/TRACK.soniox.json the speech engine's answer, as returned, named after the engine
meetings/ID/words/TRACK.term-fixes.json the term model's answer, as returned
meetings/ID/words/TRACK.json the track's words with times, the same shape whatever the engine
meetings/ID/voices/TRACK.json DeepInfra's answer, as returned: who spoke when
meetings/ID/transcript.json the merged transcript
meetings/ID/transcript.original.json the transcript as processing wrote it, kept when a line is first moved or a voice removed
meetings/ID/voice-clips/TRACK/LABEL.m4a a short clip of one voice, cut when someone first asks to hear the meeting's voices
meetings/ID/playable.m4a the meeting, every track mixed, as a copy that a browser can play from any moment, made once the meeting is ready
meetings/ID/summary.json the summary: its text, the model, when it was written, and who last edited it by hand
notetaker/profile.enc the notetaker bot's Chrome profile, encrypted
The merged transcript keeps voice keys, not names. A voice key is the track and the voice's label, such as call:speaker_1, because the same label on two tracks is two people. Names live in D1, so naming a voice never rewrites the transcript. Moving a line does, as The review screen describes.
{
"meetingId": "01JBXAMPLE",
"lines": [
{ "start": 12.48, "end": 17.9, "voice": "call:speaker_1", "text": "..." },
{ "start": 18.1, "end": 21.02, "voice": "mic:recorder", "text": "..." }
]
}
The API
The API is JSON over HTTPS on the Worker, at the same address as the web app. The person is whoever Access signed in.
| Method and path | What it does |
|---|---|
GET /api/me | Says who is signed in: email and name. |
GET /api/health | Checks that the database and the audio bucket answer. 200 when both do, 503 naming the one that doesn't. |
POST /api/meetings | Creates a meeting from its kind, its tracks and an optional title. Returns the id. |
PUT /api/meetings/:id/tracks/:track/pieces/:seq | Stores one piece. Answers 200 once the piece is in R2 and D1. |
GET /api/meetings/:id/tracks/:track/pieces | Lists the pieces the backend has, so an upload can resume. |
POST /api/meetings/:id/finish | Takes the piece count for each track, and optionally the title and the recorded length. Answers 409 with the missing pieces, 409 meeting_failed if processing already failed, or 202 when processing starts. |
DELETE /api/meetings/:id | Deletes a cancelled recording: its audio in R2 and its rows in D1. Only for the person who made it, and only while it still takes audio: 409 meeting_finished after that, so a cancel that arrives late never deletes a finished meeting. Answers 204. |
DELETE /api/meetings/:id/everything | Deletes a finished meeting, as Deleting a meeting describes. Any team member. Answers 204; 409 still_recording for a recording still taking audio; 404. |
GET /api/meetings | Lists the processed meetings, the one that took place last first, at most 200. Each has three counts about one person's voice: the person asking, or the team member in ?person=. They are described under The voice profile page. Only a profile admin can ask about a colleague: 403 not_admin otherwise, because the counts say which meetings a profile learned from. |
GET /api/meetings/:id | Returns one meeting: status, step, tracks, voices and names. |
GET /api/review/meetings | Lists every team member's meetings from processing on (processing, ready, filed and failed), the one that took place last first, at most 200, each with how many of its voices have no name. |
GET /api/team | Lists the team members a person can pick when naming a voice: everyone who has a voice profile, recorded a meeting, or was named in one with their email. Each is listed once, by their profile's name if they have one. |
GET /api/meetings/:id/transcript | Returns a ready or filed meeting and its lines: each line's number, start, end, track, voice label, text, and words with their times. The names come from /voices. learnedBy names the voice profiles that learned from the meeting. 404 for any other meeting. A transcript written before lines kept their words (ENG-317) gets them from each track's words/TRACK.json, taken in order, since its lines were made from those words in order; a line whose words don't say exactly its text gets none, and the page marks it as a whole. |
GET /api/meetings/:id/summary | The summary of a ready or filed meeting: none, writing, failed, or ready with its text, when it was written, and who last edited it and when. 404 for any other meeting. |
POST /api/meetings/:id/summary | Writes the summary again, in the background. With { changes }, up to 2,000 characters, it revises the summary as it stands instead. Answers 202; 409 already_writing while a summary is being written, when it starts nothing; 400 invalid_changes; 503 summary_unavailable when it can't start. |
PUT /api/meetings/:id/summary | Keeps a person's own wording of a ready summary, { text }, up to 40,000 characters, with their name and the time. 400 invalid_summary; 409 no_summary_to_edit while it is being written or before there is one. |
POST /api/meetings/:id/playable | Makes sure the meeting has a playable copy, as The review screen describes. Answers 204 when it is kept; 202 while it is made in the background, starting it again if it failed; 503 playable_unavailable when it can't start. |
GET /api/meetings/:id/playable | The playable copy's state: ready, preparing, failed, or none before it was ever asked for. |
GET /api/meetings/:id/audio | Plays the meeting's playable copy, with range requests. 404 until it is made. |
GET /api/meetings/:id/voices | Lists a processed meeting's voices: the name, the email, where the name came from, whose profile an unnamed voice sounds like, whether it has a clip, and whether it said enough for a profile to learn from. The similarity is given to two places, which is enough to order the voices by and says less about the profile's fingerprint. |
POST /api/meetings/:id/clips | Makes sure a clip of each voice is kept, as Clips of a meeting's voices describes. Answers 204, or 503 voiceprint_unavailable. |
GET /api/meetings/:id/voices/:track/:label/clip | Plays a voice's clip, with range requests. 404 until the clips are cut. |
PUT /api/meetings/:id/voices/:track/:label | A person names a voice, or corrects a name for the whole meeting. A team member's name can teach their voice profile, as A profile learns from meetings describes. |
DELETE /api/meetings/:id/voices/:track/:label | Removes a voice that is nobody in the meeting, and its lines, as Removing a voice describes. Any team member. Answers 204; 404 for a voice or a meeting that isn't processed; 409 changed_meanwhile. |
GET /api/voice-questions | The voices the app asks the signed-in person about, as Questions about voices describes: up to 20, their own voice first. |
PUT /api/meetings/:id/voices/:track/:label/answer | A person's answer, yes, no or not_sure, to whether the voice is the team member in email. 400 invalid_answer; 409 already_named for a yes about a voice that has another name, 409 already_answered for a yes after someone else's no, and 409 no_profile. |
DELETE /api/meetings/:id/voices/:track/:label/learned | The profile that learned from the voice forgets it, and the voice keeps its name. Only for the profile's owner and the profile admins: 403 not_yours_to_teach otherwise. Answers 204, also when no profile had learned from it. |
PUT /api/meetings/:id/lines/:index | A person moves one line to another voice of its track, given as track and label, with the line's start as the page shows it. 400 invalid_voice or another_track, 404 for a line or voice the meeting doesn't have, 409 changed_meanwhile, also when the line with that number starts elsewhere now. Answers the line as it is now. |
POST /api/meetings/:id/retry | Runs a failed meeting again. |
GET, PUT and DELETE /api/voice-profile | The signed-in person's own voice profile. PUT takes a recorded sample and the name to show, described under Voice profiles. GET never returns the fingerprint. DELETE answers 204 whether or not there was a profile. |
PUT /api/team/:email/voice-profile | Lets a profile admin save a team member's voice profile from a recording that person gave them, described under Saving a profile for a colleague. Nobody else can call it. |
GET /api/team/:email/voice-profile | Shows a team member's profile as GET /api/voice-profile shows a person their own. Only for that person and the profile admins: 403 not_admin otherwise, 404 no_profile when there is none. |
GET /api/voice-profiles | Lists the email and the name of each profile the person may add meeting voices to: their own, and for a profile admin everyone's. |
GET /api/bot | The notetaker's live run, or the one that ended last: its phase, why it left, and its meeting. |
POST /api/bot | Sends the notetaker to meetUrl. Answers 202; 400 not_a_meet_link; 409 bot_busy; 503 bot_unavailable when its container can't start. |
POST /api/bot/stop | Makes the notetaker leave. Any team member. Answers 202; 404 when no run is live. |
POST /api/bot/sign-in | Claims the sign-in link's token, once, and sets the viewer session's cookie. Answers 204, also to the same person in the same browser again; 409 link_used, 410 link_expired, 409 not_signed_out. |
POST /api/bot/signed-in | The person who claimed the link says the bot is signed in. 409 not_signed_out for anyone else. |
GET /bot/screen | The WebSocket to the bot's screen, for the viewer session of the person who claimed the link, while the bot is signed out. 404 otherwise; 403 for anything but a WebSocket from the app's own page. |
GET, POST /authorize | The connector's consent page, behind the browser gate, described under The connector for Claude. |
/mcp | The connector for Claude, described below. |
Adding pieces, listing them and finishing are limited to the person who created the meeting. To anyone else the meeting answers 404, as if it didn't exist.
Every team member sees every processed meeting's title, its voices and their clips (Eden, 2026-10-10), and reads its transcript (Eden, 2026-10-16). A person names voices, moves lines, and adds their own voice to their profile, in meetings that a colleague recorded.
Can every staff member file every meeting, or only the meetings they recorded? The Spec only says that everything is limited to staff. This page assumes every meeting, as for reading.
Processing
Each meeting gets one Workflow instance, started by finish. Its id is the meeting's id, so a second finish can't start a second run.
Each step is a Workflows step with its own retries. A step returns R2 keys and ids, never the transcript itself, because a step's result is capped at 1 MiB.
Every step first checks for work it has already done and skips it: the join looks in D1, the words step looks in R2 for the track's words, the engine's kept answer or its job, the terms step looks for the term model's kept answer, and the voices step looks for DeepInfra's kept answer. A retried meeting therefore never pays a provider twice for the same track.
1. Join
The step joins the pieces into one audio file per track, as described above.
2. Words
Each track gets its words on its own, and a Meet call's two tracks go side by side. The engines are tried in the order the SPEECH_ENGINES setting lists them, ["soniox", "elevenlabs"]: a track goes to the next engine when one can't give its words.
Soniox works as a job. The Workflow starts it, then asks about it until it's done:
POST /v1/transcriptionswith:model: "stt-async-v5"andaudio_url, a signed R2 link to the track's file, valid for 60 minutes, because Soniox can queue a job before it reads the audio;language_hints: ["he", "en"];enable_language_identification: true, because each word's language is how the transcript's language is found;enable_speaker_diarization: false, because voices come from DeepInfra;context.terms, the entries ofSPEECH_KEY_TERMS.
- The job's ID goes to R2 (
TRACK.soniox.job) as soon as Soniox gives it, so a step run again asks about the same job rather than paying for another. - The Workflow sleeps between checks: 15 seconds, then 30, then a minute each time, for up to an hour. Each check is
GET /v1/transcriptions/ID. A sleeping Workflow doesn't count towards the instances that run at once. - When the job is
completed, the step readsGET /v1/transcriptions/ID/transcript, keeps it in R2 as it came, deletes the job (DELETE /v1/transcriptions/ID), then keeps the words.
Soniox keeps every job until it's deleted, up to 2,000 at once, so the job is deleted whenever the track is done with it. A job Soniox is still working on can't be deleted. Its ID then stays in R2, so running the meeting again picks it up, and Soniox deletes it itself after 30 days.
Soniox sends pieces of words. A piece that starts with a space starts a new word, and a word runs from its first piece's start to its last piece's end.
When Soniox can't do a track, ElevenLabs takes it.
| What happens at Soniox | What the step does |
|---|---|
| It turns the request down (for example, a used-up balance), or the job ends with an error (for example, a recording over its fixed 300-minute limit) | Deletes the job and asks ElevenLabs at once |
| Starting a job meets a rate limit or a server error | Tries once more ten minutes on, then asks ElevenLabs |
| A check on a running job meets a rate limit, a server error or no answer within a minute | Checks again, for about half an hour, then asks ElevenLabs |
| The job hasn't finished after an hour | Asks ElevenLabs |
ElevenLabs answers in the same request. The request is POST /v1/speech-to-text with:
model_id=scribe_v2, andsource_urlset to a signed R2 link to the track's file, valid for 15 minutes;timestamps_granularity=word, so every word has a start and an end;diarize=falseandtag_audio_events=false, because voices come from DeepInfra;language_codeonly whenSPEECH_LANGUAGEis set. It's empty, so ElevenLabs detects the language, as it advises for speech that mixes languages;- one
keytermsfield for each entry ofSPEECH_KEY_TERMS.
Its asynchronous mode delivers results only to a webhook, and refuses requests when none is set up (checked against the live API on 2026-10-06). A webhook would mean ElevenLabs calling in. So each attempt waits for the answer, for up to an hour. Separate requests matter for a Meet call: ElevenLabs' 10-hour limit counts a multichannel file's channels together, so a 5-hour call sent as one two-channel file would be at that limit.
Once an answer reads as a transcript, the step keeps it in R2 as it came, then the track's words:
{ "engine": "soniox", "language": "he", "words": [{ "text": "צריך", "start": 0.6, "end": 1.0 }] }
- Language.
languageis the one the engine heard most in the file. - Silence. A track with no speech, such as a muted microphone, keeps no words and an empty language.
- Paying once. The answer is kept before the words, so an attempt that fails between the two reads the answer back next time instead of paying for the track again.
The engines sit behind one interface, chosen by name in src/speech/engines.ts, so adding an engine needs no change beyond the engine itself:
interface SpeechEngine {
linkValidForSeconds: number; // how long the engine may take to read the audio
start(audioUrl: string, signal: AbortSignal): Promise<Progress>; // the answer, or a job to ask about
check(job: string, signal: AbortSignal): Promise<Progress>;
clearAway(job: string): Promise<boolean>; // false while the engine is still working on the job
transcriptOf(answer: ArrayBuffer): Transcript; // the words read from the engine's answer
}
type Progress = { answer: ArrayBuffer } | { job: string };
type Transcript = { language: string; words: Word[] };
type Word = { text: string; start: number; end: number }; // seconds from the start of the track
3. English terms
Soniox writes most English terms in Hebrew letters: "אדמין קונסול" for "admin console". This step puts them back, track by track, once every track has its words. It never changes a word into other Hebrew, and a word keeps its times.
-
Known names, by code. Each entry of the
KNOWN_NAMESsetting, such as"אידאה": "EDEA", is put into English letters wherever it's heard. -
The term model lists the terms. The step sends the track's words to the Claude API (
POST /v1/messages) with the model named byTERM_MODEL,output_config.effort: "low"andmax_tokens: 64000. The model answers with a list of fixes:{"fixes": [{"heard": "אדמין קונסול", "english": "admin console"}]}The answer is kept in R2 (
TRACK.term-fixes.json) as soon as it reads as fixes, so a step run again doesn't pay for it twice. -
The code applies the fixes.
- A fix applies wherever its spelling appears, also after Hebrew prefix letters in the order Hebrew puts them (ו, then ש or כש, then ב, כ, ל or מ, then ה). The prefix stays in front with a hyphen: "באדמין קונסול" becomes "ב-admin console".
- Where two fixes start at the same word, the one with more words wins, then the one that needs fewer prefix letters.
- Words that a fix joins become one word, from the first word's start to the last word's end.
- A fix is used only when what was heard is in Hebrew letters and at most six words, and the English is at most 60 characters of English letters, digits and simple punctuation, with a Hebrew prefix and hyphen at most.
-
The track's words are saved again, with what the engine wrote on each changed word:
{ "engine": "soniox", "language": "he", "englishTerms": "fixed","words": [{ "text": "ה-admin console.", "start": 0.9, "end": 1.9, "was": "האדמין קונסול." }] }
The glossary keeps itself. Each fix that changed something is saved in term_fixes, once per meeting. The 350 fixes that the most meetings used go into the model's instructions as hints, marked as data, and the model still judges each meeting. Nothing in the glossary is applied by code, and nobody needs to review it.
If the Claude API stays down after four retries, turns the request down, or the answer can't be read or is cut short, the meeting is still ready. Its words then carry "englishTerms": "as heard" and a note saying why, with the known names put back.
4. Voices
After the English terms, this step sends each track that can hold more than one voice to DeepInfra, one track at a time:
- a Meet call's
calltrack; - a room recording's
mictrack; - an upload's
filetrack.
A Meet call's mic track isn't sent, because it holds only the person recording.
The request is POST https://api.deepinfra.com/v1/inference/nvidia/Nemotron-3-Diarization, with the track's audio as a file upload in the audio field.
-
The audio streams from R2. It goes through a
FixedLengthStream, so the Worker never holds the track in memory, and the request still carries its length. -
The upload is named after the meeting and the track's file, such as
01JBXAMPLE-call.webm, so a request can be traced to its meeting. Its type is the track's file type. -
DeepInfra answers in the same request, with each stretch of speech and its voice:
{ "speaker_segments": [{ "start": 0.0, "end": 4.2, "speaker": "speaker_0" }], "num_speakers": 1 } -
The answer is kept in R2 (
voices/TRACK.json) as soon as it reads as voices, so a step run again doesn't pay for it twice. -
Each request waits up to 15 minutes. A 5-hour track took 73 seconds in a test. A track with no answer in that time is asked about once more. A second wait that long fails the meeting rather than paying again.
5. Lines
This step turns words and voices into lines, and writes them to transcript.json. It runs in the same Workflow step as the names below.
- Each word gets a voice.
- On a Meet call's
mictrack, every word gets the voicerecorder. - On every other track, a word gets the DeepInfra segment that covers most of the word, among the segments speaking at its middle. On a tie, the longer segment wins. This keeps slivers of a voice, some a fiftieth of a second long, from taking words.
- A word in a gap between segments gets the nearest segment.
- On a track where DeepInfra found no voice at all, every word gets the voice
unknown.
- On a Meet call's
- Words become lines. The words of every track go into one time order, and consecutive words of one voice form a line. A line ends when another voice speaks, on either track, so a one-to-one call reads as a conversation. It also ends when the voice stops for more than 2 seconds, so a long speech reads in paragraphs.
- Each line keeps its words with their start and end times, so the review screen can mark the word being said. A line's text is its words joined with spaces. An English term that a fix made from several heard words is one word, with their times.
6. Names
Each voice that said at least one word gets a row in voices. A voice that DeepInfra found but that said nothing, such as noise, gets no row. Each voice gets its name from the first source that can give one:
- The recorder's channel. On a Meet call, the
micvoice is the person who recorded. Their name comes from their sign-in, kept on the meeting ascreated_by_namewhen the meeting is created, or is their email when the sign-in gave no name. The track decides this, never a label from DeepInfra. - A voice profile. A step after this one compares each unnamed voice with the team's voice profiles, as Voice profiles describes. A match names the voice with the source
voice_profile. - A person. Any other voice stays unnamed until someone names it on the review screen or in the filing skill.
Each voice gets a clip, up to 10 seconds: its longest DeepInfra segment that no other voice speaks over and that is 2 seconds or longer, which is also the first stretch a profile learns from. A voice with no such segment gets its longest segment. A voice with no segments, such as unknown, gets its longest line.
A voice already in voices keeps what it has, so running a meeting again never undoes a name a person gave.
The system never guesses a name. That rules out a below-threshold match, a name taken from what was said, and a "most likely" pick. The closest profile that a voice keeps is not a name: a person must confirm it. Each name records its source, and the review screen shows it.
7. Ready
The meeting becomes ready and appears on the review screen. Only then do its summary and its PlayableWorkflow start, each in a workflow of its own. The PlayableWorkflow cuts the voices' clips, fingerprints any voice that has no kept fingerprint, and makes the playable copy, as Clips of a meeting's voices, Naming voices in a meeting and The review screen describe. Running it again for a meeting from before fills in what that meeting lacks. Nothing starts it again for a meeting whose copy is kept, so the meetings processed before 2026-10-17 were run again by hand once, with wrangler workflows instances restart edea-transcript-playable playable-ID. The summary describes the summary.
Voice profiles
A voice profile lets processing name a team member by their voice. Voiceprints count as biometric data, so a profile is never kept for a guest, and it is deleted on request or when the person leaves. The app asks for no agreement, because it is an internal app (Eden, 2026-10-15, ENG-297): the profile page shows a short notice of what a profile keeps, what it is for and how to delete it, before the person saves one.
Saving a profile
PUT /api/voice-profile takes a form with two fields: name and sample. The email is always the signed-in person's, never one from the form. The checks run in this order, and the sample reaches the fingerprint service only after all of them:
- A body over 5 MiB and 64 KiB is refused before it's read: 413
sample_too_large. - A missing field, or a name that's blank or over 100 characters: 400
invalid_profile. - A sample over 5 MiB: 413
sample_too_large. Thirty seconds of Opus is about 150 KB.
The fingerprint service then answers with the fingerprint and the sample's length:
- It can't read the sample as audio: 422
sample_unreadable. - The sample is under 10 seconds: 422
sample_too_short. - It can't be reached: 503
voiceprint_unavailable.
Otherwise the profile is one row in voice_profiles: the email, the name, the fingerprint as JSON, the model that made it, the version of the notice (NOTICE_VERSION in shared/voice-profiles.ts) and the time. The API calls the last two noticeVersion and savedAt; the columns keep their first names, consent_version and consented_at. Profiles saved before the notice existed keep the version "2026-10-10". Saving again replaces the row, and the profile forgets what it learned from meetings, because the person is starting again from the new sample. The sample itself is kept nowhere.
Saving a profile for a colleague
A team member may hand over a recording of their voice instead of recording in the app. A profile admin then saves their profile with PUT /api/team/<email>/voice-profile and the same form (Eden, 2026-10-10, ENG-303). The profile admins are the setting VOICE_PROFILE_ADMINS, which starts with Eden only.
The row keeps who saved it, in saved_by. saved_by is empty when the person saved their own.
Three checks come before the checks of a person's own save:
- The caller isn't a profile admin: 403
not_admin. A setting that isn't a list makes nobody an admin. - The email in the address isn't a team member's: 400
not_a_team_member. It must look like a work address and end in the staff domain. It's kept in lower case, as the sign-in gives it, so the person finds the profile under their own email. - The person saved their own profile: 409
has_own_profile. A person's own recording outweighs one they handed to an admin.
The person stays in charge of the profile. GET /api/voice-profile shows them savedBy, they can delete it, and their own save replaces it. An admin can see a colleague's profile, and add meeting voices to it or take them out, but can't delete it in the app. Seeing it never includes the fingerprint. An admin's save for their own email counts as their own.
Nothing checks three things:
- Whether the address is a real account. A mistyped address makes a profile that nobody can see in the app, and it can still name voices. The statement under When someone leaves removes it.
- Whether the person deleted their profile before. A deletion leaves no record, so an admin could save the profile again.
- The email in the request's address. Cloudflare's request logs keep it for some days, for people who can already read the database.
Naming voices in a meeting
This step runs after the voices step. It does nothing when nobody has a profile, so no container starts.
- Clean speech for each unnamed voice. A stretch is one of DeepInfra's segments for the voice, at least 2 seconds long, that no other voice overlaps. The longest come first, up to 60 seconds. A voice with under 6 seconds of clean speech isn't compared, so
unknownnever is. - One request per track. The fingerprint service gets a signed link to the track's file, valid for 30 minutes, and each voice's stretches. It downloads the track once, decodes it once, and answers with one fingerprint per voice: the average of its stretches' fingerprints.
- Only fingerprints from the same model are compared. The comparison is the cosine similarity: 1 for the same direction, 0 for unrelated voices. A profile is compared by the average of its sample and the voices it learned from.
- A voice gets a name when its best similarity is at least
VOICE_MATCH_THRESHOLD(0.45) and at least 0.1 above the next profile's. When only one profile can be compared, there's no next profile to lead, so the voice must reach the bar plus 0.1 instead. The closest pairs are settled first, and a profile names one voice per meeting. An email already on one of the meeting's voices isn't given again, and on a Meet call the person recording is never given, because Meet never plays their own voice back. - The row is updated only while it's unnamed (
WHERE name IS NULL), with the sourcevoice_profileand the similarity inconfidence. - A voice the profiles didn't name keeps the closest profile: its email in
closest_emailand the similarity inclosest_similarity, however low. A voice that was never compared has neither, so "scored 0.12" and "never scored" stay apart.- The closest profile is never the person recording a Meet call, nor someone a voice was named after before this run. It can be someone this run names a closer voice after, which is what a person split into two voices looks like.
- Only the email is kept, not the name.
- The values go when a later run names the voice, and when the profile's person deletes the profile. A run that can't compare the voice, such as one while the service is down, leaves the old values.
The similarity a name was given on stays in confidence. Both numbers are there to tune the threshold on real meetings.
Every voice that said enough is fingerprinted, a named one too, such as the recorder's own track, and only the unnamed ones are compared. Each voice keeps its fingerprint and the model that made it in voices, guests' included, so adding a voice to a profile needs no second listen to the meeting (Eden, 2026-10-17). A kept fingerprint names nobody by itself, and it goes when the meeting is deleted. Nothing is fingerprinted while nobody has a profile, since it would name and teach nobody. A run that finds a voice's fingerprint kept uses it, without asking the service. If the service can't be reached after three tries, the meeting is still ready, with its voices unnamed for a person.
The closest profile has two uses. A person who names the voice is shown it as a suggestion: the voice profile page does that from a similarity of 0.25. And the threshold is tuned on it: a voice a person names "Eden" that scored 0.42 against Eden's profile says the bar was too high for that recording.
The threshold comes from one meeting on 2026-10-08: the right people scored 0.60 to 0.78, and the highest wrong score was 0.43. It was 0.5 at first. Eden lowered it to 0.45 on 2026-10-10, for poorer recordings than that meeting, which leaves almost no room above the highest wrong score. So a guest who sounds like a team member is the risk to watch, and more meetings, including a room recording, will retune it.
A profile learns from meetings
One sample describes a voice on one microphone in one room, so a profile from it alone misses the same person on other recordings. A profile gets better when it also holds that person's voice from real meetings (Eden, 2026-10-10).
PUT /api/meetings/:id/voices/:track/:label takes JSON with a name and, for a team member, an email. Any team member can name any voice, and can correct a name. The voice gets the name with the source person, and named_by keeps who gave it. A name without an email is a guest's, and the voice then stops keeping the profile that was closest to it.
When the name is a team member's, their profile learns from the voice. The voice's kept fingerprint goes into learned_voices as part of that person's profile, so this takes a moment. A voice without one, from a meeting processed before 2026-10-17 whose background work hasn't fingerprinted it yet, or one kept by another model, is fingerprinted again from its clean stretches, and keeps that fingerprint. The answer says learned: true, or learned: false with why:
why | What it means |
|---|---|
a_guest | The name has no email. |
not_yours_to_teach | Only the profile's owner and the profile admins add to a profile. A colleague's name still names the voice. |
no_profile | The person hasn't saved a profile. A name never makes one. |
not_enough_speech | The voice has under 6 seconds of clean speech. |
another_model | The profile was made by a different model. |
voiceprint_unavailable | The fingerprint service couldn't be reached. The name is kept, and naming the voice again later teaches the profile. |
profile_full | The profile has learned from 20 other meetings already. The name is kept. |
changed_meanwhile | While the voice was being fingerprinted, it got another name, or the person saved a new sample or deleted their profile. Nothing is kept. |
How a profile keeps and loses what it learned:
- It learns from a voice once, however often the voice is named. A colleague who names an already-learned voice the same way gets
learned: true. - It forgets the voice when the name is corrected to someone else or to a guest. Any team member's correction does this, because a wrong fingerprint in a profile is worse than a missing one. If the new name is another team member's, their profile learns it instead.
- It forgets a voice that its owner or a profile admin takes out, with
DELETE /api/meetings/:id/voices/:track/:label/learned. The voice keeps its name, because the name can be right while the stretch is a poor one to learn from. Naming the voice again teaches the profile again. - It forgets everything it learned when the person saves a new sample, and loses it all with the profile.
- It learns from 20 meetings at most (Eden, 2026-10-10),
MAX_MEETINGS_LEARNED_FROMinshared/voice-profiles.ts. A second voice from a meeting it already learned from still fits. The limit is checked before the voice is fingerprinted, and again when the fingerprint is written, so two namings at once can't pass it. GET /api/voice-profileshows the person each voice it learned from, inlearned: the meeting, its title and day, the voice, who added it and when. Never the fingerprint.
A profile is compared by the average of its sample and its meetings, each counted once. The voices learned from one meeting are averaged first, so a person whom DeepInfra split into two voices doesn't count twice.
Two limits:
- Learning from a voice without a kept fingerprint takes as long as the naming step, because the service downloads and decodes the whole track, and it runs inside the request. If the request is cut off, naming the voice again teaches the profile.
- One wrong name is enough to mislead a profile. If an admin names a guest's voice as a team member, that profile matches the guest about as well as its owner, and it holds the guest's fingerprint until the name is corrected. Nothing checks that the voice is like the sample: a profile is meant to learn voices that sound different from it.
The person who records a Meet call is the only voice on the mic track, and it is the cleanest recording of them. That track is never sent to DeepInfra, so it has no segments to cut it by. Their profile learns from the lines of the transcript that they said: a line is a stretch of their speech, and Chrome's echo cancellation keeps the call's sound off the track. The same rules apply as for any voice: lines of 2 seconds or more, the longest first, up to 60 seconds, and at least 6 seconds in all. The app names that person from their sign-in, but their profile learns only when a person presses Add.
A learned fingerprint is part of a team member's profile, and goes with the profile. The fingerprints the meeting's voices keep are not part of any profile, and go with the meeting.
Clips of a meeting's voices
A person must hear a voice to say whose it is. Each voice has one clip that plays the voice at up to three places in the meeting, with a short silence between them, 15 seconds in all at most. One place can sound right while the voice DeepInfra found is two people; the start, the middle and the end together show it.
The parts are chosen when the clip is cut (src/voices/clip-parts.ts), so a meeting that was processed under an older rule gets the same clips as a new one:
- Take the voice's stretches of 2 seconds or more that nobody speaks over. They are the stretches a profile learns from, so the clip is part of that.
- Cut the time from the first of them to the last into three equal places, and take the longest stretch of each place.
- Share the 15 seconds between the parts: 5 seconds each for three, 7.5 for two, 15 for one.
The person who records a Meet call is cut by the lines they said, since their track has no DeepInfra segments. A voice with no such stretch is played from the one stretch that processing kept for it in clip_start_ms and clip_end_ms: its longest segment, or its longest line.
The clip is cut into a small file of its own, and the track itself is never served to a browser. There are three reasons:
- A browser can't play every upload. A phone can upload
amror3gp, which Chrome doesn't play. - A recorder's WebM has no seek index. A browser would download the track from its start to reach a clip in the middle.
- A person who names voices needs a few seconds of each, not the whole meeting's audio.
How a clip is made and played:
- Once the meeting is ready, its
PlayableWorkflowcuts the clips in the background, before it makes the playable copy (src/playable-copies.ts). The Worker lists the clips that R2 already keeps for the meeting, chooses the parts of the missing ones, and asks the fingerprint service for them, one request per track. Clips that can't be cut then don't stop the copy. Whenever someone asks to hear a meeting's voices, on the profile page or in a question, the page sendsPOST /api/meetings/:id/clips, which does the same for any clip still missing, and answers at once when none is. - The service cuts from the decoded samples, not by seeking in the file, because a seek that lands a few seconds off would play another person's voice. It reads the track through a signed link, decodes it once, as far as the last part's end, joins each clip's parts with 0.4 seconds of silence, and answers each clip as an M4A file (AAC, one channel, 16 kHz). It refuses a clip of more than 5 parts, or of more than 30 seconds.
- The Worker keeps each clip at
meetings/ID/voice-clips/TRACK/LABEL.m4a. Clips of one stretch each were once kept underclips/(PR #13); they were deleted on 2026-10-16. If the service leaves one out, none of that track's clips is kept and the answer is 503, so the next try cuts the track again. GET /api/meetings/:id/voices/:track/:label/clipplays it from R2, and answers the part a player asks for, which Safari needs. A browser may keep it for an hour.
Cutting takes as long as reading the track up to its last part, which is near the track's end: 2 seconds for a 35-minute meeting on a laptop, longer for a long one. It runs in the background once per meeting, so the page doesn't wait for it, unless someone opens the meeting's voices before it is done.
Questions about voices
The app asks team members about the voices it couldn't name but that sound like a team member: "Is this Dvir?", or "Is this you?" for the person's own voice (Eden, 2026-10-12). A colleague knows a colleague's voice, so the work of naming is shared, and nobody has to open a page for it.
Which voices. GET /api/voice-questions lists the voices of processed meetings that have no name, and whose closest profile is at a similarity of 0.25 or more. Such a voice was fingerprinted, so it said enough for a profile to learn from. The person's own voice comes first.
The card. components/VoiceQuestions.vue shows the questions above the page, as one line that the person can open or put off. It isn't shown while a recording runs, nor on the profile page or the meetings. A question takes an answer only after its clip played to the end, and the three answers look alike, so that the brighter one doesn't answer for the person. The next question shows at once; the answers are sent one after the other behind it, because a yes makes the service listen to the meeting.
What an answer does (PUT …/answer, kept in voice_answers):
| Answer | What it does |
|---|---|
yes | Names the voice as that team member, by the name their profile shows, the same way as PUT …/voices/:track/:label. So their profile learns from it by the rules of A profile learns from meetings: today when the person themselves or a profile admin answers. A voice that got another name meanwhile keeps it: 409 already_named; the check is part of the update, so a name given a moment before isn't lost. A yes after someone else said no, as from a card that was opened earlier, is refused: 409 already_answered. |
no | Ends the question for everyone: one colleague who knows it isn't that person is enough. |
not_sure | Ends the question for the person who said so. The others are still asked. |
A yes also ends the question, since the voice then has a name. A person who answers again changes their answer. A person can go past a voice whose clip can't be cut or played; nothing is sent, so the app asks about it again on a later visit.
A person's own no outweighs a colleague's yes. When the team member themselves answers no, a voice that has their name loses it, their profile forgets the voice, and the voice no longer counts as sounding like them. On the profile page this is the "Not my voice" button, on a voice that someone else added. Remove, beside it, keeps the name.
The voice profile page
The page is at /profile, reached from "Voice profile" in the sidebar. Its heading says whose profile it is: the name the profile shows, the email, and whether it is the person's own or a colleague's. It is where a person sets up their own profile (ENG-297), and where a profile learns from meetings (Eden, 2026-10-10). The person is always on the page's list, with or without a profile.
-
Setting up a profile. On the person's own page, when they have no profile, a card (
components/VoiceSetup.vue) shows the notice and two ways in. Record my voice (components/SampleRecorder.vue) asks for a quiet room, then shows five sentences in Hebrew with English terms, one at a time, and last a prompt to speak in their own words. A bar fills only while the level meter hears a voice (recorder/speech-clock.ts), and the recording stops by itself at 30 seconds of speech once at least 8 of them came after the own-words prompt, so a slow reader still gives some free speech. It also stops at 110 seconds, below the 120 the service uses. The microphone opens without Chrome's noise suppression, which reshapes a voice (recorder/sample-recording.ts), and it is closed on every way out, Cancel and leaving the page included. Upload a recording takes an audio file; the page states the limits first and refuses a file over 5 MiB before sending it. Then the person checks the name the profile shows, which starts as their sign-in name, and saves. -
A new sample, or delete. The person's own profile has "Record a new sample", which says first how many meetings the profile will forget, and "Delete my profile", which asks first. Neither is offered on a colleague's profile: an admin saves a colleague's from a recording they were given.
-
In this profile. The sample, with the day it was saved and who saved it. Then each meeting voice the profile learned from, with its clip and a Remove button, and how many of the 20 meetings are used. The sample can't be played, because only its fingerprint is kept.
-
Add from meetings. The processed meetings that hold the person's voice, as far as the app knows: a voice named as theirs, an unnamed voice that sounds like their profile, or a voice the profile learned from.
GET /api/meetingscounts the three. The other meetings are one click away, because a profile can miss its owner. -
A meeting, opened. Its clips are cut, and each voice with a clip is listed, the likeliest first. A voice that said too little for a profile to learn from isn't listed: the list uses the rule that Add checks (6 seconds that nobody speaks over, in stretches of 2 seconds or more), read from the kept voices when the list is asked for, so it holds for meetings processed earlier too. One line says how many voices were left out. A voice that is in the profile stays listed, so that it can be removed. Add names the voice as the profile's owner, which is what teaches the profile. A voice named as someone else has no Add: a correction belongs to the review screen.
-
One Add at a time, because each one makes the service read a whole track.
-
A profile admin picks whose profile the page shows, from
GET /api/voice-profiles. Everyone else has only their own.
A voice counts as sounding like a profile from a similarity of 0.25 (LEAST_SIMILARITY_TO_SUGGEST in src/processed-meetings.ts). The floor is needed because every compared voice has a closest profile, however unlike it: with one profile kept, that profile is the closest to every guest. The number is a first guess, not measured. Under it, the list and the page say nothing about the voice.
The fingerprint service
- What it is.
voiceprint/server.mjs, a small Node server in a Cloudflare Container, with ffmpeg and NVIDIA's TitaNet-large speaker model run through sherpa-onnx. The model is CC-BY-4.0, credited invoiceprint/NOTICE, and the Dockerfile pins it by its checksum, because a profile's fingerprint can only be compared with fingerprints from the very same model. - What it answers.
POST /sampletakes the sample's bytes and decodes at most 120 seconds of it.POST /voicestakes a link and each voice's stretches.POST /clipstakes a link and a stretch for each voice, and answers the clips, since the service is where ffmpeg runs.POST /playabletakes links to a meeting's tracks, and answers with the meeting's playable copy and its length, on a header of its own (X-Copy-Bytes), since a hand-setContent-Lengthdoesn't survive the hop from the container. It makes one copy at a time, and stops a conversion after 20 minutes. It reads tracks only from hosts ending in.r2.cloudflarestorage.com, writes nowhere, and deletes everything it wrote to its disk when it answers. - Where it runs. One named instance,
voiceprint, ofVoiceprintContainer(src/voiceprints/container.ts). It runs onstandard-1(half a vCPU, 4 GiB), at most 2 instances, limited to the EU, and sleeps after 2 idle minutes. The Worker asks for its Durable Object in the EU too, withjurisdiction("eu"). The local runtime can't run that, so the first profile saved on the deployed app confirmed it (2026-10-10). - How it's checked. The Worker's tests stand in for it, since the Workers test runtime has no containers.
.github/workflows/voiceprint.ymlbuilds the image on pull requests that changevoiceprint/and runsvoiceprint/smoke-test.shon it.
When someone leaves
Eden deletes their profile, the notes that it was closest to a voice, the fingerprints that the meeting voices named as them keep, and the answers to whether a voice is theirs:
pnpm exec wrangler d1 execute DB --remote --command "DELETE FROM voice_profiles WHERE email = 'name@first-edea.com'; UPDATE voices SET closest_email = NULL, closest_similarity = NULL WHERE closest_email = 'name@first-edea.com'; UPDATE voices SET fingerprint = NULL, fingerprint_model = NULL WHERE email = 'name@first-edea.com'; DELETE FROM voice_answers WHERE email = 'name@first-edea.com'"
A person's own delete in the app does all four too. What the profile learned from meetings goes with it either way, because learned_voices rows are deleted with their profile. Names the profile already gave in past meetings stay, like a name a person typed. D1's Time Travel can restore the whole database to an earlier moment for a limited time, so a deleted profile isn't gone from those restore points at once.
The review screen
The review screen is where a person reads a meeting and gets its speakers right before filing. It doesn't file.
The sidebar (components/AppSidebar.vue) stands beside every page. It holds New recording, which opens the recording pages under the bar of ways to record; Meetings, under which every team member's meetings show, newest first, while the meetings are open; Voice profile; and the person signed in. Each meeting says in plain words what is left: processing, processing failed, how many voices have no name, or filed. Only a ready or filed meeting opens. The sidebar folds to a rail of icons. While a recording runs, its links are only words, so nothing leads away from the recording. On a narrow screen it opens over the page from a bar on top. The link from a filed meeting to its Confluence pages comes with filing (ENG-244).
/meetings (pages/MeetingsPage.vue) opens the newest meeting that has a transcript.
A meeting's page (pages/MeetingPage.vue):
- Who spoke how much. Each speaker's share of the time anyone spoke, the most first, with a bar in the speaker's colour. The shares are whole percents that add up to 100: each is rounded down, and the points left go to the shares that lost the most.
- Two tabs, Transcript and Summary. The page opens on the transcript. Both stay on the page, so the summary loads in the background and the transcript keeps its place.
- The transcript (
components/TranscriptLines.vue). A speaker's lines one after another stand under their name once, whichever of their voices said each. Each line shows its time and a play button, on the side its words start from: a line takes the direction of most of its letters, so Hebrew reads right to left even when it starts with an English term. - Speakers (
components/MeetingSpeakers.vue), a pane beside the transcript, which slides open and shut. It stays closed until someone opens it, and the button that opens it says how many voices have no name. It lists the speakers, the ones without a name first. Each shows its share, its minutes and lines, where its name came from (the recorder's channel, a voice profile or a person), and the two longest things it said, to play. A voice without a name, or one whose name a person changes, gets a choice of the team members the app knows (GET /api/team), or "Someone else", a guest whose name the person types. A guest given a team member's name gets a hint to choose the team member instead, so the name keeps its email. A guest already named in the meeting is offered again under "Guests in this meeting", since DeepInfra can split one person into two voices. The choice starts empty even for a voice that sounds like someone, so nothing is named by a guess. A name applies to the whole meeting. A team member is sent with their email, which can teach their voice profile, as A profile learns from meetings describes. - One person heard as several voices. DeepInfra can hear one person as two voices, and the profiles name only one voice per person, so a person often names the second one by hand. Voices named after the same person are one speaker on the page: a team member by their email, a guest by their exact name. A voice without a name is always a speaker by itself. The speaker says "Heard as 2 voices" and lists each voice under them, called by its place in the order the voices first spoke ("Voice 4"), with its own source, lines, Change and Remove. So a voice given the wrong name leaves the speaker when its name is changed, and their profile forgets it. Nothing in D1 or R2 joins the voices: each keeps its row, its clip and its fingerprint, and the page joins them every time it shows them (Eden, 2026-10-30). The summary already gets the same name on both voices' lines.
- A voice that is nobody in the meeting, such as a video playing in the room, goes with its lines, from Remove, after a question, as Removing a voice describes.
- A line given to the wrong speaker can be moved to another speaker of its track, which gives it to the voice of theirs on that track that spoke first. Only its own track, because a voice is found on one track and a line can't have been heard on another. A line can't go to a voice that DeepInfra didn't find, so two people it took for one voice can't be told apart here. A voice whose lines were all moved away stays listed.
- A ready meeting says that filing to the Brain from Claude comes soon (ENG-244).
The words of a line can't be edited here. Wording is corrected on the Confluence page after filing.
Hearing a meeting. A line's play button plays the meeting on from that line until someone stops it, and Play meeting plays it from the start. The line being heard, on either track, stays in view. A line in the Speakers pane plays only that line and stops at its end, since it is there to hear one voice. In all of them, the word being said is marked, the words before it are bright and the rest dim; a line without words is marked as a whole. The page reads where the audio is on every frame, not only on the browser's time updates, which come four times a second: a short word would be skipped, and a line would play on into the next speaker. Only the line being heard is drawn word by word, so the rest of the transcript isn't drawn again on every frame. A speaker's lines play from the meeting too, not from the voice's clip, so what is heard is the line shown.
A recorder's WebM has no seek index, so a browser can't start it from the middle. And a Meet call's tab track carries everyone but the person who records it, whose voice is only on the mic track, so a line is heard in its context only with both. So each meeting gets a playable copy in the background once it is ready, in a PlayableWorkflow of its own, one instance per meeting (src/playable-copies.ts), so nobody waits for it. A meeting from before, or one whose copy failed, gets its copy when someone first plays it: the page sends POST /api/meetings/:id/playable, which starts the workflow, or starts a failed one again, and the page looks at GET /api/meetings/:id/playable every 5 seconds until the copy is kept or has failed. A person who leaves the page stops the looking, not the making. To make the copy, the Worker gives the fingerprint service a signed link to read each track, which lasts an hour. The service mixes the tracks, which start at the same moment, into one M4A (AAC, one channel, 48 kbit/s, about 21 MB an hour) with its index at the start, and answers with the file and its length. The Worker streams it into meetings/ID/playable.m4a through its own bucket binding, so it never holds a whole copy. The service is never given a way to write: the R2 token that signs the links can only read (ENG-320). A 99-minute track takes about 100 seconds on the service's half a vCPU. The page plays the copy from GET /api/meetings/:id/audio, starting at the line's moment (#t= in the link), and the browser asks for the parts it needs. The Worker refuses a copy the service says is over 512 MB; a 5-hour one is about 105 MB.
Selectors. Every selector in the app, from the microphone to "Move to…" and the person picker, is drawn the same way (.select in styles/mogi.css): in Chrome, its list takes the app's look and opens below it.
Moving a line. PUT /api/meetings/:id/lines/:index reads transcript.json, changes the line's voice key and writes the file back. The first move keeps the transcript as processing wrote it, in transcript.original.json. The write is conditional on the version read, so of two people who move lines at the same moment, the second is refused and the Worker tries again from the new version, up to three times, then answers 409. A line is known by its number, and removing a voice renumbers the lines after its own, so the page sends the line's start too: a page opened before the removal gets 409, never another line moved.
Removing a voice
DeepInfra finds a voice for every sound that speaks, so a video playing in the room, or a radio, becomes a speaker of its own. Remove, on the voice in the Speakers pane, takes it out of the meeting. A dialog asks first and says how many lines go (Eden, 2026-10-21). DELETE /api/meetings/:id/voices/:track/:label (removeVoice in src/review.ts):
- Takes the voice's lines out of
transcript.json, the same way as a moved line: the transcript as processing wrote it is kept first intranscript.original.json, and the write is conditional on the version read, tried up to three times. - Deletes its rows in D1: the answers to whether it is a team member, what every profile learned from it, and the voice with its fingerprint.
- Deletes its clip.
The lines go first, so a failure part way leaves a voice without lines, and removing it again finishes the job. The log says who removed it. The page then reads the transcript and the voices again, because the lines after the voice's own have new numbers. The summary isn't written again by itself: an empty "Ask for a change" writes it from the transcript as it is now. To bring a voice back, someone copies its lines back from transcript.original.json by hand; its name and clip don't come back.
Deleting a meeting
Any team member can delete any finished meeting, from the bin in its toolbar (Eden, 2026-10-17); a meeting that is still processing or failed has the bin too. A dialog asks first. It names the voice profiles that learned from the meeting, from the transcript's learnedBy, and says that notes already filed in the Brain stay.
DELETE /api/meetings/:id/everything (deleteFinishedMeeting in src/meetings.ts):
- Stops the work still running for it, and deletes its stored state: the meeting's
MeetingWorkflowand itsPlayableWorkflow. A summary being written has no instance the Worker can find by the meeting, sokeepSummarydeletes the summary it just wrote when the meeting's row is gone. The playable copy and the clips do the same. The log says who deleted the meeting. - Deletes everything under
meetings/ID/in R2: pieces, tracks, words, transcript, summary, playable copy and clips. - Deletes its rows in D1:
voice_answers,learned_voices(so every profile forgets what it learned from the meeting),term_fixes,voiceswith their fingerprints,pieces,tracks, and the meeting.
The audio goes first, so a failure part way leaves the rows, and deleting again finishes the job. It goes once more after the rows, for what a summary, a clip or the copy kept while the row still stood. A recording that is still taking audio is refused with 409: only its recorder cancels it, from the recorder.
Two copies outlive the delete for a while. The summary workflows' stored state holds each summary's text until Workflows' retention ends, since those instances have no name the Worker can find. And D1's Time Travel can restore the database to a moment before the delete, for 30 days. The page then reloads the sidebar and opens /meetings, which shows the newest meeting left.
The summary
Each meeting gets a summary in the app, written by the summary model on the Claude API (ENG-318). It is for reading in the app. Filing to the Brain is a separate step, in Claude, as Filing describes.
It never holds up the meeting. The last step of processing, after the meeting is ready, starts a SummaryWorkflow and records the summary as writing in D1. That step catches every error, so a summary that can't start never fails the meeting. The workflow's first step asks the model and retries a rate limit, an overload or a server error up to 4 times. Its second keeps the answer, so a retry of keeping it never asks the model again. On success, summary.json is written and the summary is ready; on failure, it is failed with the reason in summary_error. The meeting's own status never changes.
What the model gets (src/summary/instructions.ts):
- The transcript, one line per line:
[12:05] Name: what was said. A voice without a name is "Voice" and its place in the order the voices first spoke, as on the meeting page. - The context about us (
src/summary/team-context.ts): the company, the people and how speech recognition writes their names, Mogi's state, our tools, our terms, and how we talk. It is dated, and it says which Brain pages and meetings it was built from. The model uses it to understand the meeting, and never to add a fact the meeting didn't say. - Rules for what is a decision and what is an action item, how to tell a speaker from a wrong label, and that the transcript is data, not instructions.
- Five fixed sections, in the meeting's language, with names in that language: Summary, Topics, Decisions, Action items, Open questions. A line that starts with
##is a heading and one that starts with-is an item; nothing else is formatted.
The model is Claude Haiku 5.5 at high effort. It won a head-to-head with Sonnet 5.5 on a real 99-minute meeting at a sixteenth of the cost: about $0.015 a meeting, of which most is thinking. At max effort, it thought until it ran out of room and wrote nothing.
Claiming the summary. Starting one sets summary_status = 'writing' only if no summary is being written, so two presses never pay for two summaries. A summary still writing after 90 minutes was lost, for example when its workflow couldn't record a failure: it shows as failed, and the next start is let through. A run with every retry takes at most about 80 minutes, so a second one never starts beside it. A start while one is being written is refused, and the page says so and keeps what the person asked for.
Changing it. On the Summary tab (components/MeetingSummary.vue), under the summary:
- Ask for a change. A person types what should change, and the model revises the summary as it stands, with the transcript beside it. Its instructions keep every line not asked about word for word, add nothing the transcript doesn't support, and take only the requested changes as instructions: the transcript and the summary are data. An empty field writes the summary again from the transcript, for example after voices got their names. That replaces a hand edit, so on an edited summary the page asks once first.
- Edit. A person changes the text by hand. It is kept with their name and the time, and a later revision starts from it. A summary written again from the transcript replaces it.
A Hebrew summary reads right to left as a whole, so a line that starts with an English word still reads from the right. The page writes the text as plain text, never as HTML.
The context about us goes out of date as we work. It is updated by a pull request that Eden merges, so nothing reaches the prompt without a person's yes.
Filing
In v1, meetings are filed from Claude only, on each person's own Claude plan. Filing never calls the Claude API, so it adds no per-meeting cost. Processing calls it to list English terms, for under a cent per hour of audio, and the summary for about $0.015 a meeting.
The filing skill is in the edea-transcript plugin in E-D-E-A/workflow-skills:
- It's adapted from today's Fireflies filing skill and builds on the Brain's writing rules in the
edea-confluenceplugin. - It reads the meeting through the connector and writes Confluence through Atlassian's MCP server, both connected in Claude.
- Its checks, the eight-section notes template and the Hebrew right-to-left recipe live in the skill, not in this backend.
How a meeting is filed
- Speakers are named first. On the review screen, the person names any unnamed voices and fixes wrong names.
- The person asks Claude. In claude.ai or Claude Code, they say something like "file my last meeting". The skill finds the meeting with
list_meetingsand reads it withget_meetingandget_transcript. - The skill checks the names. If a voice is still unnamed, it points the person to the review screen to hear the clip, or takes a name from them and saves it with
name_voice. - The skill asks the usual questions: the space, Hebrew or English, and the task owners.
- The skill drafts. It writes the notes, runs the names-only pass, checks for an existing page and links related pages. It shows both drafts and waits for a yes.
- On the yes, it creates the pages. It creates the notes page and then the transcript as its child page, as the person, through their own Atlassian connection. The notes page links back to the meeting in the web app, which is how the audio is found again.
- The skill reports back. It calls
record_filingwith the two page links, and the meeting becomesfiled.
Team setup, once
Each person is on their own Claude plan. The edea-transcript plugin, from the "edea" marketplace, brings the filing skill and the EDEA Transcript connector together, so one install sets both up wherever plugins run; Atlassian's connector comes with edea-confluence the same way. In claude.ai in a browser or on the phone, each person adds the connector once by its address. Either way they allow it with their staff Google account: Connect your Claude to EDEA Transcript.
workflow-skills is a public repository. The plugin carries no secrets. It does carry the connector's address, on purpose (Eden, 2026-11-30): only a staff Google account can sign in, and only Claude's callbacks can register, so knowing the address gives nothing.
Left out of v1
Filing straight from the review screen would mean the backend running the same skill on Anthropic's Managed Agents, which is billed Claude API usage, an estimated $0.50 to $1 per meeting. It's left out of v1. It can be added later if filing from Claude proves too hard for the non-developers, without changing the skill.
The connector for Claude
The connector is an MCP server at /mcp on the Worker, over Streamable HTTP, with no state between calls. Cloudflare's workers-oauth-provider makes the Worker its own OAuth server, and the MCP SDK's web-standard transport answers the calls (src/connector/). A person adds it to Claude by its address, as Connect your Claude to EDEA Transcript shows.
Signing in
- Claude registers itself at
/register. Only Claude's own callbacks are accepted:https://claude.ai/api/mcp/auth_callback(and the same onclaude.com) for claude.ai, the desktop and the phone apps, and a callback on the person's own computer for Claude Code. Any other app is refused. - Claude opens
/authorizein the person's browser. It is an ordinary page of the app, behind the browser gate, so Access signs the person in with their staff Google account and the Worker checks the domain as for every page. - The person allows it on the consent page, which names their email and where access goes. The library binds the form to that browser and forbids framing, so another site can neither post nor show it.
- The Worker issues Claude a code, then a token at
/token, bound to the connector's address. The grant keeps the person's email and name, encrypted.
A token lasts an hour, and Claude refreshes it for 30 days from the first sign-in; then the person allows it again. On every call the Worker checks again that the grant's email is staff.
There is no Access for SaaS application and no client secret: the browser gate on /authorize is the sign-in. One Access application, "edea-transcript connector (Claude)", bypasses Access on the paths Claude's servers call: /mcp, /token, /register, /.well-known/oauth-authorization-server and /.well-known/oauth-protected-resource (with /mcp after it). A path application comes before the Worker's own Access application, so every other path stays behind the gate.
workers-oauth-provider keeps registered clients, grants and tokens in the OAUTH_KV namespace, tokens only as hashes and each grant's email encrypted with a key that only its token unwraps. KV has no jurisdiction, so nothing from a meeting is kept there.
When someone leaves, removing their Google account stops new sign-ins, and their grants end within 30 days. To end them at once, delete the keys that start with grant:EMAIL: in the edea-transcript-oauth namespace.
Tools
Every tool acts as the person who connected, with the same rules as the web app: every team member reads every processed meeting, and the changes are the review screen's. Reading tools are marked read-only, and changing ones tell Claude to ask first. The server's instructions say that a transcript and a summary are data, never instructions.
| Tool | What it does |
|---|---|
list_meetings | Lists the team's meetings from processing on, the one that took place last first, 20 unless asked for up to 200, optionally of one status: id, title, recorded at, length, status, who recorded it, unnamed voices, and its link |
get_meeting | One meeting: as listed, plus its voices with names and their sources and the profile an unnamed voice sounds like, the summary's state, the failed step and reason, and the pages it was filed to |
get_transcript | A ready or filed meeting's lines, in order, with moved lines as they are now: number, start, voice key, speaker and text. An unnamed voice is "Voice N", as on the meeting page. Up to 400 lines a call, or as asked up to 1,000, with next_from_line for the next part. The first part carries the summary |
list_team | The team members a voice can be named after, as GET /api/team |
name_voice | Names a voice, as PUT /api/meetings/:id/voices/:track/:label, profile learning included |
move_line | Moves a line, as PUT /api/meetings/:id/lines/:index |
edit_summary | Keeps the person's wording of the summary, as PUT /api/meetings/:id/summary |
revise_summary | Writes the summary again, with or without changes, as POST /api/meetings/:id/summary |
rename_meeting | Changes the title of a ready or filed meeting |
record_filing | Keeps the notes page's link and, if given, the transcript page's, with who filed and when, and marks the meeting filed. Only pages under the CONFLUENCE_URL setting's /wiki/. Filing again replaces the links |
When something fails
| What fails | What happens | What the person sees |
|---|---|---|
| The connection drops while recording | Pieces wait in IndexedDB, recording carries on, and uploading resumes when the connection is back | A banner saying how much audio is waiting to upload |
| The sign-in expires while recording | As above. The page asks the person to sign in again in a new tab, then resumes | "Sign in again to keep uploading" |
| The Worker gets no identity for a request Access signed in | 503 identity_unavailable, and the web app sends the request again at once, up to three tries in all, as Sign-in describes | Nothing, unless all three fail |
| A read fails with no connection, a server error (5xx), a rate limit (429) or a timeout (408) | The web app reads again after 1 second, then after 2, or at once when the connection comes back. A change is never sent again by itself | The screen's own error and Try again, only after three tries |
| The tab is closed or the laptop restarts mid-meeting | Recording stops. Recorded pieces stay in IndexedDB | On the next visit, an offer to finish uploading that recording |
| A phone loses signal mid-upload | Upload resumes from the backend's piece list | Progress carries on |
| A piece arrives damaged | The checksum doesn't match and the Worker answers 400. A recording stops uploading, keeps every piece in IndexedDB and carries on recording; a phone upload stops | "Uploading has stopped", and on the next visit an offer to finish; on a phone, "Try again", which resumes |
| The browser can't store a piece, for example a full disk | Recording stops and uploads the pieces it kept | Why it stopped, on the done screen |
| A provider call fails with a rate limit (429), a server error (5xx) or a request timeout (408) | The step asks again, waiting 15 seconds and twice as long each time: 7 more times, about half an hour in total | "Processing" |
| Soniox can't do a track | ElevenLabs takes it, as the words step describes | "Processing" |
| ElevenLabs doesn't answer within an hour | The step asks once more. A second hour without an answer fails the meeting rather than paying again | The reason, and a Retry button |
| A provider rejects the audio, for example an unsupported file | The meeting fails without retrying, keeping the step and the provider's reason. A reason names the track, never carries a link and is cut to 300 characters | The reason, and a Retry button |
| The speech engine answers with something that isn't a transcript, or DeepInfra with something that isn't voices | The meeting fails without retrying, and the answer isn't kept | The reason, and a Retry button |
| One track of a Meet call fails | The other track still finishes and its words are kept, so running the meeting again only pays for the failed track | The reason, and a Retry button |
| The Claude API stays down, or its answer can't be read | The meeting is ready with English terms as the engine wrote them, and a note in the words saying why | The meeting, ready |
| The summary can't be written | The meeting stays ready, and the summary is failed with its reason | "The summary couldn't be written", and Try again |
| DeepInfra doesn't answer within 15 minutes | The step asks once more. A second 15 minutes without an answer fails the meeting rather than paying again | The reason, and a Retry button |
| The fingerprint service can't be reached while a meeting is processed, or isn't deployed yet | The naming step tries three times, then the meeting is ready | The meeting, ready, with its voices unnamed |
| The fingerprint service can't be reached while a profile is saved | 503 voiceprint_unavailable, and nothing is stored | Try again later |
| Filing in Claude stops after the notes page but before the transcript page | Filing again creates only what's missing, because the skill checks for existing pages first | Claude says what was created |
| The person's connector sign-in in Claude has expired | Claude asks them to sign in to that connector again | Claude's own sign-in prompt |
| Nobody lets the notetaker in within 15 minutes, or the host turns it away | It leaves, and no meeting is made | Why it left, on the notetaker page |
| Google refuses the notetaker | It leaves with Google's words | Why it left, on the notetaker page |
| The notetaker is signed out | It waits up to 30 minutes for a team member to sign it in, then leaves. The team hears once per sign-out | "The notetaker needs signing in", and the link in Slack |
| Slack can't be reached | The next look makes a new link and posts again | The same, once Slack answers |
SLACK_WEBHOOK_URL isn't set | The sign-out is logged, and nothing is posted | The same, with no link in Slack |
| The notetaker's container stops mid-call | Its meeting is processed with the pieces kept so far | Why it left, and the meeting |
| The notetaker hangs and never says it is done | Asking it keeps its container awake, so 7 hours after it was sent the Durable Object stops the container, and the meeting is processed with the pieces kept so far | "The notetaker ran past 7 hours, so it was stopped" |
Limits
- Meetings up to 5 hours. This is the target v1 is built and tested for.
- Room above that. Soniox takes up to 300 minutes per file, a limit it never raises, so a longer track goes to ElevenLabs, which takes up to 10 hours. DeepInfra answered a 5-hour track in 73 seconds.
- Audio size. A 5-hour recorder track is about 70 MB. A 5-hour phone recording in AAC at 64 kbit/s is about 145 MB.
- Pieces. An upload piece is at most 8 MiB and a recorder piece at most 1 MiB, against Cloudflare's 100 MB request limit.
- Workflow step results. These are capped at 1 MiB, so steps pass R2 keys, never transcripts.
- Voices. DeepInfra finds at most 8 voices in a track. A track with more people than that has some of them merged into one voice.
- The notetaker. One call at a time, because it has one Google account. It leaves at 5 hours. Chrome in a call uses about 2 GiB, so it runs on
standard-1, at about $0.05–0.075 a recording hour. - Voice profiles. A profile learns from 20 meetings at most. A voice needs 6 seconds of clean speech to be compared. The fingerprint service read a 5-hour track in 18 seconds on a laptop; on half a vCPU it takes minutes, and the naming step allows 20.
Configuration
| Kind | Names |
|---|---|
| Bindings | DB (D1), AUDIO (R2), MEETING_WORKFLOW (the Workflow), SUMMARY_WORKFLOW (the summary's Workflow), PLAYABLE_WORKFLOW (the playable copy's Workflow), VOICEPRINT (the Durable Object that runs the fingerprint service's container), MEET_BOT (the Durable Object that runs the notetaker bot's container), OAUTH_KV (KV, which workers-oauth-provider keeps its tokens in) |
| Secrets | SONIOX_API_KEY, ELEVENLABS_API_KEY, ANTHROPIC_API_KEY (a key scoped to one Anthropic workspace), DEEPINFRA_API_KEY, R2_ACCESS_KEY_ID and R2_SECRET_ACCESS_KEY (an R2 API token that can only read the audio bucket, for signed links), BOT_PROFILE_KEY (32 random bytes in base64; a new one loses the kept profile, so the bot is signed in again), and, not required for a deploy, SLACK_WEBHOOK_URL (the team channel's incoming webhook). The connector needs none |
| Settings | STAFF_EMAIL_DOMAIN, SPEECH_ENGINES, SONIOX_API_URL, SPEECH_LANGUAGE, SPEECH_KEY_TERMS, TERM_MODEL, SUMMARY_MODEL, KNOWN_NAMES, R2_ACCOUNT_ID, VOICE_MATCH_THRESHOLD, VOICE_PROFILE_ADMINS, CONFLUENCE_URL (the Brain's site, the only one record_filing accepts) |
- Where the data sits. The D1 database and the R2 bucket are both in Cloudflare's EU jurisdiction. A location is set when each is created and can never be moved. Wrangler creates a missing bucket in the EU on its own, but would create a missing database without the jurisdiction. So before wrangler runs, the deploy creates the database in the EU itself, and it refuses to deploy if the database exists anywhere else.
- Deploying. GitHub Actions deploys the Worker on every merge to
main. The Cloudflare API token lives in the repo'sproductionGitHub Environment, which onlymaincan use.- The secrets in use are listed under
secrets.requiredinwrangler.jsonc, so a deploy fails while one isn't set on the Worker.SLACK_WEBHOOK_URLis the one left out, because the Worker runs without it (typed insrc/env.d.ts). - The deploy fills in
R2_ACCOUNT_IDfrom the org'sCLOUDFLARE_ACCOUNT_IDvariable. wrangler deploybuilds the notetaker bot's image too. Its Chrome is the current one at each build, because Meet expects a current Chrome..github/workflows/meet-bot.ymlbuilds it on pull requests that changemeet-bot/and runsmeet-bot/smoke-test.sh, which never joins a meeting.wrangler deploybuilds the fingerprint service's image with Docker, which GitHub's runner has, and pushes it to Cloudflare. Containers need the Workers Paid plan. The Worker goes live before the container is ready, so the first meetings after a first deploy may stay unnamed.dev.enable_containersis off, sopnpm devneeds no Docker. Locally, saving a profile answers 503 and voices stay unnamed.
- The secrets in use are listed under
- Changing a setting. Settings are typed loosely (
wrangler types --strict-vars=false), so adding a key term or a known name is an edit towrangler.jsoncand nothing else.test/speech-settings.test.tsholds the key terms to ElevenLabs' limits (at most 1,000, each under 50 characters and 5 words), checks thatSPEECH_ENGINESnames only engines the Worker has, and that each known name becomes English letters only.test/team-voice-profiles.test.tsruns with the realVOICE_PROFILE_ADMINSand checks that it's a list of staff emails in lower case. - Soniox's region.
SONIOX_API_URLis Soniox's address for the project its key belongs to. Its EU region ishttps://api.eu.soniox.com/v1, for a project set up there, so moving is a new key and this setting.
To check while building
- How long Soniox takes on a 5-hour track, and ElevenLabs on a longer one. Soniox gets an hour of checks, and each ElevenLabs attempt an hour. QA on the deployed app runs a 5-hour file to measure it.
- Echo on the
mictrack without headphones. If the call still reachesmic, the merge step must drop words that are on both tracks at the same time. - Making a long meeting's playable copy. A 99-minute track took about 100 seconds on half a vCPU, so a 5-hour one takes about 5 minutes, within the step's 30. How long it takes on the deployed service isn't measured yet.
- How long a meeting's clips take to cut. QA on the deployed app times the first opening of a 35-minute meeting and of a 5-hour one.
- Picking the same file again on an iPhone. An upload resumes when the same file is picked again, recognised by its name, size and last-modified time. If iOS gives a re-picked file a new last-modified time, the upload starts over instead of resuming.
- The fingerprint service on half a vCPU. QA on the deployed app times it on a 5-hour track.
- The notetaker in a call on Cloudflare. It asked to join from Cloudflare (2026-10-22), and it recorded a call clearly on a laptop. Its first real call on production shows its CPU and memory, and how long a profile stays signed in.
- The connector in claude.ai's phone app. Connecting from claude.ai on a laptop is the tested path. The phone app uses the same callback; its first use shows whether the Access sign-in opens there as well.