Detect hard clipping and reconstruct the clipped samples
ton.halowerk.com/v1/declip-restore
Detect hard clipping and reconstruct the clipped samples: clip levels, clipped share and runs per polarity, plus the restored audio as FLAC or WAV. Decodes up to 20 s (up to 2 channels, native rate up to 48 kHz). Clipping per polarity: samples equal to the maximum (or minimum) value, counted when at least 10 samples and 0.01 % of all samples sit at a level of at least 0.05 full scale in at least t
POST
https://ton.halowerk.com/v1/declip-restoreUptime100% 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
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://ton.halowerk.com/v1/declip-restore", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"audio_base64":"T2dnUwACAAAAAAAAAAAAAAAAAAAAAGS5xGoBE09wdXNIZWFkAQE4AUAfAAAAAABPZ2dTAAAAAAAAAAAAAAAAAAABAAAASZW+VAEuT3B1c1RhZ3MGAAAAZmZtcGVnAQAAABQAAABlbmNvZGVyPUxhdmMgbGlib3B1c09nZ1MAAEC/AAAAAAAAAAAAAAIAAADhL4GbESoiHzMODg4OLiggNA8ODg4cGOA9fQJEOsAG4ZiC90q6E2WRsGLjIRCuNaf7lAuz0yTahU+lMAqu8OuQGOz2ZDwLNQykEKGwt8OxH+BJXGSvBItBnVF8FF2a92eM4BjtQ9qITXm1AIxQ7DMgrRChajUF27IeK65x1oagcQYYiyXmddxEdhG76Bhy4Kl),
});
console.log(await res.json());Example input
{"audio_base64":"T2dnUwACAAAAAAAAAAAAAAAAAAAAAGS5xGoBE09wdXNIZWFkAQE4AUAfAAAAAABPZ2dTAAAAAAAAAAAAAAAAAAABAAAASZW+VAEuT3B1c1RhZ3MGAAAAZmZtcGVnAQAAABQAAABlbmNvZGVyPUxhdmMgbGlib3B1c09nZ1MAAEC/AAAAAAAAAAAAAAIAAADhL4GbESoiHzMODg4OLiggNA8ODg4cGOA9fQJEOsAG4ZiC90q6E2WRsGLjIRCuNaf7lAuz0yTahU+lMAqu8OuQGOz2ZDwLNQykEKGwt8OxH+BJXGSvBItBnVF8FF2a92eM4BjtQ9qITXm1AIxQ7DMgrRChajUF27IeK65x1oagcQYYiyXmddxEdhG76Bhy4Kl