BELFAST — A former music teacher will serve three years in prison for sexually abusing a child.

William Wiley was sentenced Tuesday in Waldo County Superior Court to 15 years in prison, with 12 of those years suspended. A jury in April found him guilty of 10 counts of unlawful sexual contact with a 12-year-old girl in 2004. The girl and her mother were living in Wiley’s house at the time.

The Bangor Daily News reported that Justice Ann Murray allowed Wiley to be released on bail until his appeal of his conviction is resolved. Wiley claims he is innocent.

Wiley used to be a music teacher at Searsport Elementary School. He was not accused of molesting any of his students.