
Soundtraxx has a number of decoders available that include sound with their functions. This pane is designed to control those CVs. The screen shot below is one from a programmer for one of their steam sound decoders. They also have diesel sound decoders available.
These sounds can be coordinated with the mechanism of the locomotive, and appropriate sounds can be triggered from the function keys of the throttle. Others can be set to be triggered at startup or to run in the background.

For specific function options, see your decoder documentation and the programmer for the specific decoder.