The 58-year-old star wants to get back in shape so that he can return to his comedy tour this winter.
Last March, Williams underwent surgery to replace a valve in his heart, which forced the star to cancel several performances of his Weapons of Self-Destruction tour.
To get back in shape, Williams is riding his bike. Last month, he traveled to France to support his friend Lance Armstrong in the Tour de France.