The Virtual Sound Decoder (VSD) provides a way for those who do not have sound-equipped locomotives (or who are not satisfied with the hardware sound decoder options in smaller scales) to enjoy throttle-controlled locomotive sounds from their computer speakers.
Here is the documentation overview for the JMRI Virtual Sound Decoder: