Lecture Slide Sync
by ton.halowerk.com in AI models & inference
Aligns a lecture transcript with its slide deck: each transcript segment gets the slide being talked about, each slide its time range, plus slides never discussed. Takes a slide PDF or slide texts and timed segments, WebVTT/SRT captions or up to 30 s of audio. Slide text comes from the PDF text layer (pdf.js, Mozilla) or from slides; words of at least three letters are lower-cased, Snowball stop words (German and English, BSD-3-Clause) dropped and plural -s stripped.
https://ton.halowerk.com/v1/lecture-slide-sync- Price
- $0.02
- per call in USDC
- Uptime
- 95.8%
- last 30 days
- Response time
- 124 ms
- 259 ms slowest 5%
- Last check
- Passed
- 10 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://ton.halowerk.com/v1/lecture-slide-sync
Each call costs $0.02 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://ton.halowerk.com/v1/lecture-slide-sync
content-type: application/json
{
"segments": [
{
"end": 4,
"start": 0,
"text": "Photosynthesis happens in the chloroplast."
},
{
"end": 9,
"start": 4,
"text": "The Krebs cycle runs in the mitochondria."
}
],
"slides": [
"Photosynthesis in the chloroplast",
"Krebs cycle in the mitochondria"
]
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
allow_backtrack | boolean | No | Default: true. |
audio_base64 | string | No | |
audio_url | string (uri) | No | |
captions | string | No | |
language | string | No | |
segments | array of object | No | |
slides | array of string | No | |
slides_pdf_base64 | string | No |
Example response
The provider's example. We can't check it without paying.
Example response, 60 lines
{
"limitations": [
"Matching uses the words on the slides; slides that are mostly images, formulas or scanned text without a text layer cannot be matched (run OCR first).",
"Slides on similar topics share words, so neighbouring slides can be confused; similarity values show how sure each assignment is.",
"Audio input is limited to 30 s; for whole lectures supply the transcript as segments or captions."
],
"result": {
"backtracks": 0,
"matched_share": 1,
"method": {
"alignment": "Viterbi with move-on 0.02, skip 0.05 + 0.02 per slide, back 0.15",
"allow_backtrack": true,
"weighting": "TF-IDF over slides, cosine similarity"
},
"segments": [
{
"end": 4,
"index": 0,
"matched": true,
"similarity": 1,
"slide": 1,
"start": 0,
"text": "Photosynthesis happens in the chloroplast."
},
{
"end": 9,
"index": 1,
"matched": true,
"similarity": 1,
"slide": 2,
"start": 4,
"text": "The Krebs cycle runs in the mitochondria."
}
],
"slides": [
{
"end": 4,
"mean_similarity": 1,
"segments": 1,
"slide": 1,
"start": 0,
"title": "Photosynthesis in the chloroplast",
"words": 2
},
{
"end": 9,
"mean_similarity": 1,
"segments": 1,
"slide": 2,
"start": 4,
"title": "Krebs cycle in the mitochondria",
"words": 3
}
],
"transcript_source": "segments",
"uncovered_slides": []
},
"service": "lecture-slide-sync",
"status": "success"
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.02.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://ton.halowerk.com/v1/lecture-slide-sync' \
-H 'content-type: application/json' \
--data-raw '{"segments":[{"end":4,"start":0,"text":"Photosynthesis happens in the chloroplast."},{"end":9,"start":4,"text":"The Krebs cycle runs in the mitochondria."}],"slides":["Photosynthesis in the chloroplast","Krebs cycle in the mitochondria"]}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://ton.halowerk.com/v1/lecture-slide-sync' \
-H 'content-type: application/json' \
--data-raw '{"segments":[{"end":4,"start":0,"text":"Photosynthesis happens in the chloroplast."},{"end":9,"start":4,"text":"The Krebs cycle runs in the mitochondria."}],"slides":["Photosynthesis in the chloroplast","Krebs cycle in the mitochondria"]}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.02 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.02" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.02 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fton.halowerk.com%2Fv1%2Flecture-slide-sync&method=POST
const res = await pay("https://ton.halowerk.com/v1/lecture-slide-sync", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"segments": [
{
"end": 4,
"start": 0,
"text": "Photosynthesis happens in the chloroplast."
},
{
"end": 9,
"start": 4,
"text": "The Krebs cycle runs in the mitochondria."
}
],
"slides": [
"Photosynthesis in the chloroplast",
"Krebs cycle in the mitochondria"
]
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.02 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.02"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://ton.halowerk.com/v1/lecture-slide-sync",
json={
"segments": [
{
"end": 4,
"start": 0,
"text": "Photosynthesis happens in the chloroplast.",
},
{
"end": 9,
"start": 4,
"text": "The Krebs cycle runs in the mitochondria.",
},
],
"slides": [
"Photosynthesis in the chloroplast",
"Krebs cycle in the mitochondria",
],
},
)
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 10 h ago | Passed | 402 | 39 ms | $0.02 |
| 23 h ago | Passed | 402 | 167 ms | $0.02 |
| 3 days ago | Timed out | - | - | - |
| 4 days ago | Passed | 402 | 41 ms | $0.02 |
| 5 days ago | Passed | 402 | 119 ms | $0.02 |
Show 10 older checks
| 5 days ago | Passed | 402 | 151 ms | $0.02 |
| 5 days ago | Passed | 402 | 119 ms | $0.02 |
| 6 days ago | Passed | 402 | 45 ms | $0.02 |
| 6 days ago | Passed | 402 | 176 ms | $0.02 |
| 7 days ago | Passed | 402 | 130 ms | $0.02 |
| 7 days ago | Passed | 402 | 124 ms | $0.02 |
| 7 days ago | Passed | 402 | 129 ms | $0.02 |
| 7 days ago | Passed | 402 | 38 ms | $0.02 |
| 8 days ago | Passed | 402 | 131 ms | $0.02 |
| 8 days ago | Passed | 402 | 172 ms | $0.02 |