API & MCP
Everything a person can do on Noise Generator (white, pink, brown), a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://soundscapenoisegenerator.usefulweb.site/api/v1/calculate– run Noise Generator (white, pink, brown)GET https://soundscapenoisegenerator.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Noise Generator (white, pink, brown)
Generates coloured noise with the correct spectral slope (white 0, pink −3, brown −6, blue +3, violet +6 dB per octave) as a downloadable WAV, mono or decorrelated stereo, 8–96 kHz, with level, fades, seamless looping and a seed for repeatable files. The measured spectrum, slope and levels are reported so you can verify the colour.
| Field | Type | Default | Description |
|---|---|---|---|
type | select (white, pink, brown, blue, violet) | "pink" | Noise colour |
duration | number | 10 | Duration. Up to 120 seconds (stereo at 96 kHz: up to 60 seconds). The WAV file is kept on the server for about 2 hours so you can download it, then deleted. |
sampleRate | select (8000, 16000, 22050, 32000, 44100, 48000, 96000) | "44100" | Sample rate |
channels | select (stereo, mono) | "stereo" | Channels |
level | number | -18 | Level (RMS). Average level. It is lowered automatically if the peaks would clip. |
fadeIn | number | 0.5 | Fade in. Ignored for seamless loops. |
fadeOut | number | 0.5 | Fade out. Ignored for seamless loops. |
loop | boolean | false | Seamless loop (the end flows into the start) |
encoding | select (pcm16, float32) | "pcm16" | File format |
seed | text | "1" | Seed. Same seed and settings = the same file, byte for byte. Change it for a different noise. |
Example request
Pink noise, 5 s stereo, 44.1 kHz
curl -X POST https://soundscapenoisegenerator.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"type":"pink","duration":5,"sampleRate":"44100","channels":"stereo","level":-18,"seed":"1"}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://soundscapenoisegenerator.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
soundscape_noise_generator - Local stdio connector:
node src/mcp-stdio.ts --tool=soundscape-noise-generator
{
"mcpServers": {
"soundscape-noise-generator": { "type": "http", "url": "https://soundscapenoisegenerator.usefulweb.site/mcp" }
}
}