The former Texas middle school teacher who admitted to having sex with her 13-year-old student has been sentenced to 10 years in prison.