He's undergoing surgery to relieve pressure on his brain.

NASHVILLE - The publicist for Randy Travis says the country music singer has suffered a stroke in a Texas hospital.

Publicist Kirt Webster said Wednesday night that the 54-year-old Travis suffered the stroke while he was being treated for congestive heart failure because of a viral illness.

Webster said Travis was undergoing surgery Wednesday night to relieve pressure on his brain. He has been in critical condition.

Doctors said earlier Wednesday that Travis was in good health until three weeks before he was hospitalized, when he contracted a viral upper respiratory infection.

That information was released via video by physicians William Gray and Michael Mack of the Baylor Health Care System. Before Travis suffered the stroke, Mack said the singer's condition had stabilized "and he has shown signs of improvement."

REPORT: Travis' heart trouble could be life-threatening

MORE: How the booster device works

The Grammy winner, best known for his hits Forever and EverAmen and Three Wooden Crosses, was admitted to a Texas hospital Sunday with viral cardiomyopathy, a condition that can lead to heart failure. The cardiomyopathy caused his heart to weaken and enlarge, so it could not pump properly. To assist his heart function, Travis received an IMPELLA peripheral left ventricular assist device, according to a statement released by his publicist, Kirt Webster.

On Monday, Travis' sister-in-law Teresa Trawick told People.com that his family has a history of heart problems. "(His mother) passed away at an early age with her heart, so it is like these boys are following right in their footsteps," she said.

Travis, who pleaded guilty to a charge of driving while intoxicated in Texas earlier this year, was hospitalized in 2012 after a fight near a church in Plano, Texas.

Contributing: The Associated Press

Copyright 2013 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.