AUGUSTA — Raymond R. Killam was sentenced Wednesday to a minimum of 15 years in prison for raping his then-wife in 2015.

Killam, 43, who pleaded guilty in early August to two counts of gross sexual assault, was sentenced to 25 years in prison with all but 15 years suspended and four years of probation for the first count. For the second count, he was sentenced to an additional 10 years in prison, all suspended, and another four years of probation.

Standing in the courtroom Wednesday at the Capital Judicial Center, the victim compared her situation to that of Valerie Tieman, the Fairfield woman whose body was discovered Sept. 20 by investigators and whose husband has been charged with her slaying.

“I think if Ray is released he will come to hurt me,” she said. “(Valerie Tieman) could have been me. That could have been me if he is allowed to go free.”

Killam did not turn around during the proceeding, but in lengthy remarks he spoke of “demons” he’s experienced in the past and apologized to a number of people, including his ex-wife, their children, his parents and young men he had mentored through a religious program in Waterville.

“I’m truly, truly sorry for not being the husband that you needed me to be,” Killam said.

Authorities said Killam raped his ex-wife when they were married in April and May 2015. Justice Michaela Murphy explained that gross sexual assault can be committed by one spouse against the other.