If you are using DCC or a radio control unit then operating your loco horns and whistles by remote control is usually easy. Your hand held controller will have a button or lever which can be used to sound the horn or whistle whenever you wish.
However, many garden railways are track powered using simple DC controllers and have no means of sounding the horn or whistle. The solution is to use a wireless door chime from your local hardware or consumer electronics store. This page shows you how it is done.