Selective mutism
Selective mutism is used as a term to describe children and young people who are able to talk comfortably to some people, such as family members and close friends, but are silent or unable to talk freely when other people are present.