# Audio Calc: Nyquist Frequency & Aliasing Calculator

> Audio Calc: Nyquist Frequency & Aliasing Calculator 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).

Calculates the Nyquist frequency for a given sample rate, plus optional tone aliasing analysis (alias frequency, samples per cycle, below-Nyquist status) and the guard band above 20 kHz.

## Facts

- Endpoint: GET https://audio-calc.x402tookit.com/sample-rate?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-nyquist-frequency-aliasing-calculator-c43bce32
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nJVKsEwztlEUv7m6O9P7Y

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-nyquist-frequency-aliasing-calculator-c43bce32
```

Example prompt: What's the Nyquist frequency for a 44100 Hz sample rate, and will a 20500 Hz tone alias at that rate?

## When to prefer this

Choose this endpoint when you need precise Nyquist frequency calculations for a specific audio sample rate, want to verify whether a particular tone frequency will alias, or need to determine how many samples represent one cycle of a tone. It is specifically tailored for digital audio DSP contexts and returns audio-domain-native units and interpretations rather than generic math results.

## Known failure modes

- Missing required sampleRate query parameter returns an error
- Non-numeric or zero/negative sampleRate values may return validation errors or unexpected results
- Very high or very low sample rates outside real-world audio ranges may produce degraded or flagged responses
- Payment failure (x402) returns 402 status before any computation is performed

## How this service works

Nyquist frequency for a sample rate, plus the alias frequency and samples per cycle of a tone, and the guard band above 20 kHz.

## Output

Returns a JSON object with the Nyquist frequency (half the sample rate), the sample period in microseconds, the guard band above 20 kHz, a human-readable summary and common use description, and optionally (if a tone frequency is supplied) the tone's alias frequency, samples per cycle, cycles per sample, period in milliseconds, and a below-Nyquist verdict with explanatory reasons.

## 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": [
      "sampleRate"
     ],
     "properties": {
      "frequency": {
       "type": "number",
       "description": "Optional tone frequency in Hz to check for aliasing"
      },
      "sampleRate": {
       "type": "number",
       "description": "Sample rate in Hz, for example 44100"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "tone": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "aliasHz": {
         "type": [
          "null",
          "number"
         ]
        },
        "frequencyHz": {
         "type": [
          "null",
          "number"
         ]
        },
        "belowNyquist": {
         "type": [
          "boolean",
          "null"
         ]
        },
        "cyclesPerSample": {
         "type": [
          "null",
          "number"
         ]
        },
        "samplesPerCycle": {
         "type": [
          "null",
          "number"
         ]
        },
        "periodMilliseconds": {
         "type": [
          "null",
          "number"
         ]
        }
       }
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "commonUse": {
       "type": [
        "null",
        "string"
       ]
      },
      "nyquistHz": {
       "type": [
        "null",
        "number"
       ]
      },
      "disclaimer": {
 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/audio-calc-nyquist-frequency-aliasing-calculator-c43bce32/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)
