ST. JOHNSBURY — A former music teacher at Vermont’s Danville High School has pleaded guilty to having a sexual relationship with a 14-year-old student.

In a plea agreement, 25-year-old Abby Shocik pleaded guilty in Caledonia County criminal Friday to one count of sexual assault. In exchange, she was sentenced to three to eight years in prison, with all but 12 months suspended.

Shocik has already served nearly 15 months in prison since her arrest in December 2011.

The Caledonian Record reported that the male student told police he and Shocik had sex in a car and in rooms at the school. Investigators said the sex was consensual and there was no evidence of coercion.