77trust / 100

Accessible Transcript Html

by ton.halowerk.com in AI models & inference

x402 APIPassing, checked 10 h ago

Turns SRT/WebVTT captions or timed segments into an accessible HTML transcript: lang and title, headings, a speaker list, one paragraph per speaker turn with a time anchor and a jump link to the media, sound cues marked up.

POST
https://ton.halowerk.com/v1/accessible-transcript-html
Price
$0.01
per call in USDC
Uptime
98.2%
last 30 days
Response time
123 ms
190 ms slowest 5%
Last check
Passed
10 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://ton.halowerk.com/v1/accessible-transcript-html

Each call costs $0.01 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/accessible-transcript-html
content-type: application/json

{
  "captions": "1\n00:00:01,000 --> 00:00:03,500\nANNA: Welcome to the show.\n\n2\n00:00:04,000 --> 00:00:06,000\nBEN: Thanks! [laughs]\n",
  "media_url": "https://halowerk.com/episode1.mp3",
  "title": "Episode 1"
}

Parameters

ParameterTypeRequiredDescription
captionsstringNo
captions_formatstringNo One of: auto, srt, vtt. Default: "auto".
full_documentbooleanNo Default: true.
langstringNo Default: "en".
media_urlstring (uri)No
paragraph_gap_snumberNo Default: 4.
segmentsarray of objectNo
speaker_prefixesbooleanNo Default: true.
titlestringNo Default: "Transcript".

Example response

The provider's example. We can't check it without paying. Shortened for display.

Example response, 57 lines
{
  "limitations": [
    "The transcript is only as complete as the captions: WCAG 1.2.8 media alternatives also need descriptions of relevant visual information, which captions usually lack.",
    "Speaker names are taken from voice tags or \"NAME:\" prefixes; a line such as \"Note: ...\" can be mistaken for a speaker when speaker_prefixes is on."
  ],
  "result": {
    "html": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>Episode 1 – transcript</title>\n<style>body{font:1.1rem/1.6 system-ui,sans-serif;color:#1a1a1a;background:#fff;max-width:48rem;margin:0 auto;padding:1rem}a{color:#0b4f9c}a:focus{outline:3px solid #0b4f9c;outline-offset:2px}.ts{font-variant-numeric:tabular-nums;margin-right:.5rem}.speaker{font-weight:700}.sound{font-style:italic;color:#4a4a4a}.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}</style>\n</head>\n<body>\n<main>\n<h1>Episode 1</h1>\n<p>Media: <a href=\"https://halowerk.com/episode1.mp3\">Episode 1</a> (00:06)</p>\n<section class=\"transcript\" id=\"transcript\" lang=\"en\" aria-labelledby=\"transcript-heading\">\n  <h2 id=\"transcript-heading\">Transcript</h2>\n  <h3 id=\"speakers-heading\">Speakers</h3>\n  <ul aria-labelledby=\"speakers-heading\"><li>ANNA</li><li>BEN</li></ul>\n  <h3 id=\"text-heading\">Text</h3>\n  <d…",
    "paragraphs": [
      {
        "end_s": 3.5,
        "id": "t-000010",
        "speaker": "ANNA",
        "start_s": 1,
        "text": "Welcome to the show."
      },
      {
        "end_s": 6,
        "id": "t-000040",
        "speaker": "BEN",
        "start_s": 4,
        "text": "Thanks! [laughs]"
      }
    ],
    "speakers": [
      "ANNA",
      "BEN"
    ],
    "stats": {
      "last_time_s": 6,
      "paragraphs": 2,
      "paragraphs_without_speaker": 0,
      "sound_cues": 1,
      "speakers": 2,
      "words": 6
    },
    "wcag": [
      {
        "criterion": "3.1.1 Language of Page",
        "note": "lang=\"en\" is set on html."
      },
      {
        "criterion": "2.4.2 Page Titled",
        "note": "title element is set."
      },
      {
        "criterion": "1.3.1 Info and Relationships",
        "note": "Headings, list of speakers and one paragraph per turn; speaker names in strong elements."
      },
      {
        "criterion": "1.2.1 / 1.2.8 Media Alternative",
        "note": "Text alternative for the audio track; add descriptions of relevant visual information for 1.2.8."
      }
    ]
  },
  "service": "accessible-transcript-html",
  "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.01.

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/accessible-transcript-html' \
  -H 'content-type: application/json' \
  --data-raw '{"captions":"1\n00:00:01,000 --> 00:00:03,500\nANNA: Welcome to the show.\n\n2\n00:00:04,000 --> 00:00:06,000\nBEN: Thanks! [laughs]\n","media_url":"https://halowerk.com/episode1.mp3","title":"Episode 1"}'

# 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/accessible-transcript-html' \
  -H 'content-type: application/json' \
  --data-raw '{"captions":"1\n00:00:01,000 --> 00:00:03,500\nANNA: Welcome to the show.\n\n2\n00:00:04,000 --> 00:00:06,000\nBEN: Thanks! [laughs]\n","media_url":"https://halowerk.com/episode1.mp3","title":"Episode 1"}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: 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.01 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.01" });
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.01 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fton.halowerk.com%2Fv1%2Faccessible-transcript-html&method=POST
const res = await pay("https://ton.halowerk.com/v1/accessible-transcript-html", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "captions": "1\n00:00:01,000 --> 00:00:03,500\nANNA: Welcome to the show.\n\n2\n00:00:04,000 --> 00:00:06,000\nBEN: Thanks! [laughs]\n",
    "media_url": "https://halowerk.com/episode1.mp3",
    "title": "Episode 1"
  }),
});
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.01 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.01"})
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/accessible-transcript-html",
        json={
            "captions": "1\n00:00:01,000 --> 00:00:03,500\nANNA: Welcome to the show.\n\n2\n00:00:04,000 --> 00:00:06,000\nBEN: Thanks! [laughs]\n",
            "media_url": "https://halowerk.com/episode1.mp3",
            "title": "Episode 1",
        },
    )
    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

WhenResultHTTPTimePrice
10 h agoPassed40282 ms$0.01
23 h agoPassed402190 ms$0.01
3 days agoTimed out---
4 days agoPassed402130 ms$0.01
5 days agoPassed402158 ms$0.01
Show 10 older checks
5 days agoPassed402131 ms$0.01
5 days agoPassed402141 ms$0.01
6 days agoPassed402140 ms$0.01
6 days agoPassed40250 ms$0.01
7 days agoPassed402161 ms$0.01
7 days agoPassed402133 ms$0.01
7 days agoPassed40247 ms$0.01
7 days agoPassed402142 ms$0.01
8 days agoPassed402118 ms$0.01
8 days agoPassed40244 ms$0.01