How can i control the speed of a motor?

Is there any type of computer program or any way in which i can adjust the speed of a motor or make the motor rotate at a adjustable frequency.
6 answers 6