He was convicted of rape and kidnapping, sentenced to 20-30 years for each count although his court-appointed attorney objected to the confession being used during the trial. The case was appealed all the way to the Supreme Court and in 1966 the Miranda warning was mandated by the high court in a 5-4 decision.
You have the right to remain silent. Anything you say can and will be used against you in a court of law. You have the right to speak to an attorney, and to have an attorney present during any questioning. If you cannot afford a lawyer, one will be provided for you at government expense.
Read more about Miranda v. Arizona