Your transcription webhook should land in a review queue
A publisher adds a 50-minute interview to its CMS. The transcription request comes back with a job ID, the editor closes the tab, and the transcript finishes while nobody is looking. The integration works if the next time the editor opens the story, the right transcript is waiting there.
Start by saving your CMS record ID and the transcription job ID together. Give each submission a stable idempotency key tied to the recording and settings you intend to process. A retry after a timeout should use the same key. A replacement recording or a deliberate settings change should create a new work item. That distinction keeps a retry from creating another job and keeps an old transcript from overwriting a new edit.
For Pepys, a completion or failure arrives as a signed webhook. Verify the signature against the raw body before parsing it, deduplicate the event ID, and save the event or enqueue durable work before returning success. Fetch the finished transcript in the worker using the stored job ID. The event tells you what happened. The transcript endpoint gives you the text and timing data. See Pepys’s webhook reference for the headers and verification procedure.
Use a small set of CMS states: waiting for transcript, transcript ready for review, and transcription failed. On failure, preserve the original recording and give the editor enough context to decide whether to retry. On success, keep the machine transcript in a draft field. Publication happens after someone checks names, figures, and quotations against the audio.
Test three cases with one short sample recording: deliver the same event twice, finish the second version of a recording before the first, and close the editor before the job finishes. Pass when there is one review item for the right recording and the editor can find it without reopening the original browser session.
原文:https://www.a8q9.cn/en/article/your-transcription-webhook-should-land-in-a-review-queue-1520c5.html