# audio.halowerk.com Silence Trimmer

> audio.halowerk.com Silence Trimmer is a paid API for AI agents from audio.halowerk.com, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-15).

Detects and shortens silent stretches in audio files using ffmpeg level detection, reducing pauses that exceed a threshold while preserving a configurable minimum floor (default 400ms) to avoid unnatural sentence collisions

## Facts

- Endpoint: POST https://audio.halowerk.com/trim-silence
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/audio-halowerk-com-silence-trimmer-47049975
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_05Csp7ek3_YxXEv4OBfj1

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 audio-halowerk-com-silence-trimmer-47049975 -d '<json body>'
```

Example prompt: Trim the long silences from this podcast recording — shorten any pause over 1 second down to a 400ms floor so it sounds natural but moves faster.

## When to prefer this

Choose this endpoint when you need to shorten audio files by compressing long silences without completely removing pauses — ideal for podcast cleanup, interview editing, or lecture recordings where you want faster pacing but natural speech rhythm preserved. It is distinct from full silence removal tools because it enforces a configurable minimum floor, avoiding the jarring sentence-collision defect of hard cuts.

## Known failure modes

- Unsupported audio format or corrupt file returns an error
- Threshold or floor values outside acceptable ranges may be rejected
- Very short audio files with no silence exceeding the threshold are returned unchanged
- Network timeout for large audio files
- Missing or malformed audio payload returns a 400-level error

## How this service works

Finds silent stretches with ffmpeg level detection and shortens each one that exceeds the threshold length. Pauses are shortened to a floor, never removed outright: a pause cut to zero makes the end of one sentence collide with the start of the next, which is a worse defect than the dead air it replaced. The floor defaults to 400 milliseconds, roughly the pause a speaker leaves between sentences, and is settable.

## Output

A processed audio file with long silent stretches shortened to the configured floor duration (default 400ms), returned as an audio file stream or URL. Silences exceeding the threshold are compressed but never fully removed, preserving natural sentence pacing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "audio": {
   "type": "object",
   "properties": {
    "url": {
     "type": "string",
     "maxLength": 2048,
     "description": "Public http(s) URL."
    },
    "content_base64": {
     "type": "string",
     "maxLength": 12000000,
     "description": "The file inline, base64."
    }
   },
   "description": "The recording. Either url or content_base64.",
   "additionalProperties": false
  },
  "trim_edges": {
   "type": "boolean",
   "default": true,
   "description": "Remove leading and trailing silence completely."
  },
  "keep_seconds": {
   "type": "number",
   "default": 0.4,
   "maximum": 5,
   "minimum": 0,
   "description": "What a shortened pause is left at. Zero makes sentences collide and is allowed but not advised."
  },
  "output_format": {
   "enum": [
    "mp3",
    "wav",
    "flac",
    "opus"
   ],
   "type": "string",
   "default": "mp3",
   "description": "Format of the trimmed file."
  },
  "noise_floor_db": {
   "type": "integer",
   "default": -35,
   "maximum": -20,
   "minimum": -70,
   "description": "Level below which audio counts as silence. Raise it for a noisy recording."
  },
  "threshold_seconds": {
   "type": "number",
   "default": 1.5,
   "maximum": 30,
   "minimum": 0.2,
   "description": "Pauses longer than this are shortened."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/audio-halowerk-com-silence-trimmer-47049975/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from audio.halowerk.com](https://www.zero.xyz/host/audio.halowerk.com/llms.txt)
