ton.halowerk.com/v1/caption-drift-fix
Measures how far SRT/WebVTT captions are out of sync with the speech in the audio (constant offset and linear drift such as a 25/23.976 fps mismatch) and returns the corrected captions with before/after overlap. Decodes the audio track (16 kHz mono), detects speech with Silero VAD v6.2 (MIT, pinned SHA-256) or an energy detector, and rasterises speech and caption display times on a 20 ms grid.
POST
https://ton.halowerk.com/v1/caption-drift-fixUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://ton.halowerk.com/v1/caption-drift-fix", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"captions":"1\n00:00:01,300 --> 00:00:03,300\nGood morning and welcome to the program.\n","max_offset_s":3,"media_base64":"T2dnUwACAAAAAAAAAAAAAAAAAAAAAGS5xGoBE09wdXNIZWFkAQE4AUAfAAAAAABPZ2dTAAAAAAAAAAAAAAAAAAABAAAASZW+VAEuT3B1c1RhZ3MGAAAAZmZtcGVnAQAAABQAAABlbmNvZGVyPUxhdmMgbGlib3B1c09nZ1MAAEC/AAAAAAAAAAAAAAIAAABGKji+EQ8ODg4OIh0bIjUzLiowJyUnGAL5jsjhz5S+lx76gm6wGAIrLMOM2AvXBba9ENIYAissw4zYC9cFtr0Q),
});
console.log(await res.json());Example input
{"captions":"1\n00:00:01,300 --> 00:00:03,300\nGood morning and welcome to the program.\n","max_offset_s":3,"media_base64":"T2dnUwACAAAAAAAAAAAAAAAAAAAAAGS5xGoBE09wdXNIZWFkAQE4AUAfAAAAAABPZ2dTAAAAAAAAAAAAAAAAAAABAAAASZW+VAEuT3B1c1RhZ3MGAAAAZmZtcGVnAQAAABQAAABlbmNvZGVyPUxhdmMgbGlib3B1c09nZ1MAAEC/AAAAAAAAAAAAAAIAAABGKji+EQ8ODg4OIh0bIjUzLiowJyUnGAL5jsjhz5S+lx76gm6wGAIrLMOM2AvXBba9ENIYAissw4zYC9cFtr0Q