Skip to content
Fourohtwo

Media tools

rengi.dev/v1/media-tools/extract-audio

Media tools: Pull the sound out of a video as MP3, OGG, Opus, M4A, WAV or FLAC: all of it or a part, with optional mono and sample rate (16 kHz mono WAV is what speech-to-text wants). Full schema: https://rengi.dev/v1/media-tools/schema

BaseSolanaUnchecked
POSThttps://rengi.dev/v1/media-tools/extract-audio

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/media-tools/extract-audio", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"format":"mp3","videoUrl":"https://rengi.dev/samples/clip.mp4"}),
});
console.log(await res.json());

Example input

{
  "format": "mp3",
  "videoUrl": "https://rengi.dev/samples/clip.mp4"
}

More from Rengi Forge