Under US Federal law you can waive your right to a jury trial, but the prosecutor and the court both have to agree to it before you can have a bench trial instead. State laws vary.