API & MCP

Everything a person can do on Ambience Generator (rain, wind, stream, fire, hum, drone), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Ambience Generator (rain, wind, stream, fire, hum, drone)

Creates procedural background sound — rain with individual drops, gusty wind, a bubbling stream, a crackling campfire, room tone with mechanical hum, or an evolving drone — as a seamless-loop WAV. Every layer is synthesized from seeded noise and oscillators (no samples), with intensity, brightness and character controls and an optional room reverb.

Inputs of Ambience Generator (rain, wind, stream, fire, hum, drone)
FieldTypeDefaultDescription
kindselect (rain, wind, stream, fire, hum, drone)"rain"Sound
durationnumber20Loop length. Up to 60 seconds (stereo up to 48 kHz). A seamless loop can be repeated as long as you like in any player that loops. 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-20Level (RMS)
loopbooleantrueSeamless loop
loopCrossfadenumber1Loop crossfade. Longer crossfades hide the seam better; at most a quarter of the loop length is used.
roomselect (none, small-room, living-room, studio, hall, cathedral, cave, forest)"none"Room
intensitynumber0.5Intensity (rain, wind strength, water flow, fire size)
densitynumber120Raindrops per second at full intensity (rain)
brightnessnumber0.5Brightness (rain, fire, hum, drone)
gustinessnumber0.5Gustiness (wind)
pitchnumber0.5Pitch (wind) or water size (stream: 0 brook … 1 river)
detailnumber0.5Bubbles (stream) or crackles (fire)
frequencynumber—Frequency (hum fundamental or drone root). Empty = 100 Hz hum (transformer hum on 50 Hz mains; use 120 for 60 Hz mains) or a 55 Hz drone root.
partialsinteger—Harmonics (hum, 1–16) or voices (drone, 2–8). Empty = 8 harmonics or 4 voices.
detuneCentsnumber8Detune spread (drone)
motionnumber0.5Slow movement (drone LFO depth, hum wobble)
lfoRatenumber0.08LFO rate (drone)
roomToneDbnumber-24Room tone level relative to the hum (hum)
encodingselect (pcm16, float32)"pcm16"File format
seedtext"1"Seed. Same seed and settings = the same file. Change it for different drops, gusts and crackles.

Example request

Steady rain, 6 s seamless loop

curl -X POST https://soundscapeambiencegenerator.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"kind":"rain","duration":6,"sampleRate":"44100","intensity":0.6,"density":150,"brightness":0.5,"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-ambience-generator": { "type": "http", "url": "https://soundscapeambiencegenerator.usefulweb.site/mcp" }
  }
}