WEST CHESTER, Pa. (AP) — A West Chester man who attempted to stab his estranged wife and attacked a relative on Valentine's Day will serve a minimum of 32 years in state prison.

Forty-seven-year-old William Brown was scheduled to go on trial for attempted murder next month, but pleaded guilty Wednesday. The Daily Local News reports (http://bit.ly/2uAOIsw ) Judge James MacElree II handed down a sentence of 32 to 70 years in prison for the attack.

Brown was arrested on Valentine's Day of last year at his wife's home where he stormed in armed with knives. Police say Brown's wife was able to alert police to what was happening in her home during the incident by secretly dialing 911 on a cell phone, and leaving it on live during the attack.