RAPID CITY, S.D. (AP) — A Rapid City woman accused of raping a 14-year-old boy and videotaping the alleged acts has pleaded guilty by reason of mental illness.

A psychiatrist for the state and defense attorney Paul Winter say 29-year-old April Solles was suffering from depression at the time of the incidents in mid-2011.

Solles faces up to 30 years in prison when she's sentenced Sept. 23, though prosecutor Tracy Decker says the sentence could be a mix of prison time and time in a mental health institution.

The case started unfolding late in 2011 when Solles' 1-year-old girl died of a head injury. A 14-year-old boy was charged with murder in juvenile court but authorities haven't said if he is the same boy in the rape case.

Copyright 2013 The Associated Press.