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

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.

Inputs of Noise Generator (white, pink, brown)
FieldTypeDefaultDescription
typeselect (white, pink, brown, blue, violet)"pink"Noise colour
durationnumber10Duration. 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.
sampleRateselect (8000, 16000, 22050, 32000, 44100, 48000, 96000)"44100"Sample rate
channelsselect (stereo, mono)"stereo"Channels
levelnumber-18Level (RMS). Average level. It is lowered automatically if the peaks would clip.
fadeInnumber0.5Fade in. Ignored for seamless loops.
fadeOutnumber0.5Fade out. Ignored for seamless loops.
loopbooleanfalseSeamless loop (the end flows into the start)
encodingselect (pcm16, float32)"pcm16"File format
seedtext"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)

{
  "mcpServers": {
    "soundscape-noise-generator": { "type": "http", "url": "https://soundscapenoisegenerator.usefulweb.site/mcp" }
  }
}