# Relaystation Silence Detection & Trimming

> Relaystation Silence Detection & Trimming is a paid API for AI agents from api.relaystation.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Detects silent intervals in audio as JSON or trims silence out of audio files to produce tighter, cleaner recordings.

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/media/silence
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-silence-detection-trimming-ba1aad1f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2jaJwqCQJT4m95SrBV95s

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability relaystation-silence-detection-trimming-ba1aad1f -d '<json body>'
```

Example prompt: Can you trim the silence out of this podcast episode audio file so the final cut sounds tighter and more professional?

## When to prefer this

Choose this endpoint when you need to detect or remove silence from audio files programmatically, especially in podcast production, voice note cleanup, or interview editing pipelines. It's ideal when you want either structured JSON timestamp data about silent regions or a ready-to-use trimmed audio output, and you need a pay-per-call approach without a subscription.

## Known failure modes

- Unsupported audio format returns an error — ensure file is a common format like MP3, WAV, or M4A
- File too large or exceeding processing limits may result in a timeout or rejection
- Invalid or missing audio data in the request body returns a 400 error
- Silence threshold misconfiguration may result in no intervals detected or entire file flagged as silent
- Network timeout if the audio file upload is slow or the file is very long

## How this service works

$0.0005/call. Detect silent intervals as JSON or trim the silence out — tighter podcasts and voice notes. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

Returns either a JSON array of detected silent intervals with start/end timestamps (in detection mode) or a processed audio file with silence removed (in trim mode), depending on the mode specified in the request.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "properties": {
      "file": {
       "type": "object",
       "description": "cputools input-source: { inline: <base64 ≤ 4 MiB> } or { inputKey: <scratch key ≤ 50 MB> }. The input container must sniff (ffprobe) to the live allowlist (operator-tunable cputools.media.input_formats): 3g2, 3gp, aac, asf, avi, flac, flv, gif, m4a, m4v, matroska, mj2, mov, mov,mp4,m4a,3gp,3g2,mj2, mp3, mp4, mpeg, mpegts, mpegvideo, ogg, wav, webm, wmv. An off-list input is a free 422 UNSUPPORTED_FORMAT."
      },
      "action": {
       "type": "string",
       "enum": [
        "detect",
        "trim"
       ]
      },
      "thresholdDb": {
       "type": "integer",
       "minimum": -90,
       "maximum": 0
      },
      "minDurationSeconds": {
       "type": "number",
       "minimum": 0.1,
       "maximum": 60
      },
      "format": {
       "type": "string",
       "enum": [
        "mp3",
        "m4a",
        "aac",
        "wav",
        "ogg",
        "flac"
       ]
      }
     }
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/relaystation-silence-detection-trimming-ba1aad1f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relaystation.ai](https://www.zero.xyz/host/api.relaystation.ai/llms.txt)
