Use MQTT last will and retained message

Hi all!
To avoid timeouts for TTS and audio play command, would it be possible to use the last will MQTT feature?
Cheers