Yeah I used to have a great 'sleep noise' machine when I lived in an apt right near the railroad crossing.
Worked great, and I could adjust the volume (unlike a fan) and cue in crickets, wind, surf, rain, owls, doves, tree frogs..... I loved it, and it sure beat listening to screaming train whistles.