jiàn​rén​shuō​rén​huà​jiàn​guǐ​shuō​guǐ​huà

to adapt to the situation

见人说人话,见鬼说鬼话 見人說人話,見鬼說鬼話 jiàn​rén​shuō​rén​huà​jiàn​guǐ​shuō​guǐ​huà
to adapt to the situation
To be flexible and adapt one's speech or behavior according to the person or situation
to be two-faced
(derogatory) To be insincere or slippery by changing one's story depending on the audience