Transit visa for the Sri Lankan passport

I have a British passport and my lady has a Sri Lankan passport with permanent residence in the United Kingdom. We go to Srilanka through Bangkok. The stop is 7 hours in Bangkok, we are thinking of leaving for a few hours. Does my lady need a transit visa? If you need it, can I get it? Please let me know
Thank you