Skip to content
Fourohtwo

Audio tools

rengi.dev/v1/audio-tools/loop

Audio tools: Turn music or ambience into a seamless loop: cuts at zero crossings and crossfades the end into the start with an equal-power curve. Returns the loop, a 3x preview and loop points in samples. Full schema: https://rengi.dev/v1/audio-tools/schema

BaseSolanaUnchecked
POSThttps://rengi.dev/v1/audio-tools/loop

UptimeNot checked yet

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://rengi.dev/v1/audio-tools/loop", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"audioUrl":"https://rengi.dev/samples/ambience.wav","crossfadeMs":250}),
});
console.log(await res.json());

Example input

{
  "audioUrl": "https://rengi.dev/samples/ambience.wav",
  "crossfadeMs": 250
}

More from Rengi Forge