The simplest speakers are unpowered units that are driven by a small amplifier on the computer's soundcard. Their volume is controlled using whatever software is running on the computer, settings being made using the keyboard or mouse.