set min and max to volume and speed