You can connect a MIDI controller to an amplifier or a speaker with a built-in amplifier. The process is rather easy.
Insert one side of the MIDI audio cable into your keyboard’s MIDI Out port and the other side into your amplifier’s MIDI In port. Next, plug in your amplifier, and you’re good to go!