………………………………………………………..
What you have heard is wrong. It is completely permissible to talk while talking a bath or being undressed. .
What is not permissible is to talk while answering the call of nature. And even then, if there is a necessity, one can reply.