# Audio Calc – dBFS & Linear Amplitude Converter

> Audio Calc – dBFS & Linear Amplitude Converter is a paid API for AI agents from audio-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-30).

Converts between linear amplitude and dBFS, and computes RMS level, crest factor, and headroom for sine, square, triangle, or sawtooth waveforms.

## Facts

- Endpoint: GET https://audio-calc.x402tookit.com/dbfs?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/audio-calc-dbfs-linear-amplitude-converter-ec5063b3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GusMY7Baisfqi8gukVgqq

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-calc-dbfs-linear-amplitude-converter-ec5063b3
```

Example prompt: What is the RMS level and crest factor of a sine wave at -6 dBFS, and what's the equivalent linear amplitude and headroom?

## When to prefer this

Use this endpoint when you need precise audio-level math: converting between linear and logarithmic scales, understanding the RMS behavior of a specific waveform, checking headroom, or getting exact PCM integer codes for a given level — all in a single call without writing DSP code.

## Known failure modes

- Missing both 'amplitude' and 'dbfs' parameters returns an error — exactly one must be provided
- dBFS value above 0 (clipping) may return a warning or be rejected
- Invalid 'shape' enum value returns a validation error
- Negative amplitude values are invalid and will likely error

## How this service works

Convert between linear amplitude and dBFS, and get the RMS level and crest factor of a sine, square, triangle or sawtooth.

## Output

Returns the input amplitude and its dBFS equivalent, RMS amplitude and RMS dBFS for the selected waveform shape, crest factor (linear and in dB), headroom in dB, percent of full scale, and the corresponding 16-bit and 24-bit integer PCM codes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "dbfs": {
       "type": "number",
       "description": "Peak level in dBFS (0 or below for undistorted audio)"
      },
      "shape": {
       "enum": [
        "sine",
        "square",
        "triangle",
        "sawtooth"
       ],
       "type": "string",
       "description": "Waveform for RMS: sine (default), square, triangle or sawtooth"
      },
      "amplitude": {
       "type": "number",
       "description": "Linear peak amplitude where 1.0 is full scale (use this, or dbfs)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "dbfs": {
       "type": [
        "null",
        "number"
       ]
      },
      "shape": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "rmsDbfs": {
       "type": [
        "null",
        "number"
       ]
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "amplitude": {
       "type": [
        "null",
        "number"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "headroomDb": {
       "type": [
        "null",
        "number"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "crestFactor": {
       "type": [
   
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/audio-calc-dbfs-linear-amplitude-converter-ec5063b3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from audio-calc.x402tookit.com](https://www.zero.xyz/host/audio-calc.x402tookit.com/llms.txt)
