Train sound effects you generate yourself

Trains mark a period. A steam locomotive, a diesel express and a modern electric metro each place a scene in a different decade before any dialogue, and audiences read them immediately. Trains are also large, so perspective matters more than usual: trackside, on the platform and inside the carriage are three different sounds from the same train.

Listen: 10 samples from the trains collection

Every clip shows the exact prompt that produced it. The render script reads its prompts from the same file as this page. Copy one, change a word and generate your own.

  • Steam departure

    via audiocpp-stable-audio-3-sfx

    steam locomotive departing a station, slow chuffing accelerating with wheel slip and a whistle, trackside, open air

  • Steam whistle

    via audiocpp-stable-audio-3-sfx

    steam locomotive whistle blowing long and mournful, multi-tone brass with a valley echo, distant outdoor

  • Platform pass-by

    via audiocpp-stable-audio-3-sfx

    modern electric train passing through a station without stopping, rising roar and doppler, platform perspective

  • Subway interior

    via audiocpp-stable-audio-3-sfx

    inside a subway carriage between stations, rhythmic rail clatter with motor whine and rattling panels, seamless loop

  • Level crossing

    via audiocpp-stable-audio-3-sfx

    railway level crossing bells ringing and barriers lowering, roadside, outdoor, traffic waiting

  • Freight train

    via audiocpp-stable-audio-3-sfx

    long freight train rolling slowly past, endless wheel clatter and couplings knocking, trackside, distant horn

  • Brakes squeal

    via audiocpp-stable-audio-3-sfx

    train braking into a station, steel wheels squealing sharply and grinding to a stop, platform reverb

  • Station ambience

    via audiocpp-stable-audio-3-sfx

    railway station concourse ambience, echoing announcements, footsteps and distant train movement, large hall

  • Doors closing

    via audiocpp-stable-audio-3-sfx

    modern train doors beeping then hissing closed with a pneumatic thump, platform, close

  • Track rhythm

    via audiocpp-stable-audio-3-sfx

    steady rhythmic clatter of wheels over rail joints at speed, trackside close, seamless loop

Prompts that work

These models respond to physical description. Name the material, the action and the space.

  • Steam

    steam locomotive departing a station, slow chuffing accelerating with wheel slip and a whistle, trackside, open air

    "Wheel slip" makes a steam departure believable. The moment of lost traction is in the real recordings and missing from generic prompts.

  • Modern electric

    modern electric train passing through a station without stopping, rising roar and doppler, platform perspective

    "Without stopping" implies speed, and "platform perspective" puts the listener beside the track.

  • Interior bed

    inside a subway carriage between stations, rhythmic rail clatter with motor whine and rattling panels, seamless loop

    "Between stations" keeps the bed steady. Otherwise the model adds a stop, which breaks the loop.

  • The rhythm alone

    steady rhythmic clatter of wheels over rail joints at speed, trackside close, seamless loop

    Isolating the rail joints gives you a rhythmic layer that works under any train, which makes it more reusable than a whole train.

Making trains sounds that fit

Period is set by propulsion

Steam chuffs and whistles; diesel clatters and sounds a horn; electric hums and whines. That choice places a scene in a decade more reliably than set dressing, and the models handle it well because the three families are distinct in the training data. State it: "steam locomotive", "diesel locomotive", "modern electric train". Plain "train" leaves the choice to the model.

Rail joints set the rhythm

The classic train rhythm comes from wheels crossing gaps in the rail, which is why modern continuously welded track sounds much smoother than older jointed track. For the clackety rhythm, ask for "rail joints". For a modern high-speed line, ask for a smooth continuous roar. Each fits a different decade.

Stations have reverb, open track has almost none

A station is a large hard enclosure with a long reverb tail and echoing announcements. Open track has almost no reflection beyond ground bounce. Moving the same train between them changes it completely, and it takes one word in the prompt. When a train sound feels wrong for a shot, check the space first. Most mismatches are a trackside recording under a platform shot, or the reverse.

Why generate locally

The models run on your machine, which changes the cost, the privacy and what you can automate.

Offline after download

Weights are fetched once. After that, generation, the library and the API all work with the network off. Everything lives in one SQLite file and one folder of WAVs under ~/.soundbox, and nothing is uploaded.

Your agent can use it

Soundbox runs an MCP server in the same process, with tools for generating and listing sounds. Generated files come back as absolute paths, so an agent can copy them into a project.

Licences stated up front

Every model's terms are shown before you download it, and non-commercial weights need an explicit confirmation. Soundbox is MIT. The licence of the model that made a sound governs what you may do with it.

Connect a coding agent
claude mcp add --transport http soundbox http://127.0.0.1:17494/mcp
Generate over HTTP
curl -X POST http://127.0.0.1:17494/api/generate \
  -H 'Content-Type: application/json' \
  -d '{"model":"audiocpp-stable-audio-3-sfx","prompt":"8-bit coin pickup blip","duration_s":1}'

Frequently asked questions

How do I build a whole station scene?
Layer three renders: a station concourse bed for the room and the crowd, one train event for the action (an arrival, a pass-by, doors closing), and one small detail near the microphone, such as a case wheeling past or an announcement. Generating them separately lets you control the balance and the timing, the same way a production mixer works with location recordings.
Can I use these sounds in a commercial video or game?
It depends on the model that made them. Soundbox shows each model's licence before you download its weights. The clips on this page were rendered with Stable Audio 3.0 Small SFX, which uses the Stability AI Community License: commercial use is free below USD $1M annual revenue, and above that Stability requires an enterprise licence. Soundbox itself is MIT, but the audio is governed by the licence of the model that made it. Read that licence before you ship; this summary is not legal advice.
Does this work offline?
Yes, once the weights are on disk. Generation, the library and the HTTP API all run locally against one SQLite file and one folder of WAVs under ~/.soundbox. There is no account and no API key, and nothing is uploaded. The only step that uses the network is the initial model download.
What hardware does it need?
The clips here were rendered on a consumer NVIDIA GPU at roughly ten seconds of wall time per clip, through audio.cpp's quantised GGUF runtime, which needs little VRAM. CPU-only generation is supported, but expect minutes per clip instead of seconds: fine for a handful of sounds, slow for a whole library.
Can an agent generate these for me?
Yes. While the app is open, Soundbox runs an MCP server at http://127.0.0.1:17494/mcp with tools for generating, listing and mixing sounds. Every generated file comes back as an absolute path, so a coding agent can render the sound a scene needs and put it straight into the project. The several hundred clips across these pages were made this way.