I work in the biz (unglamorously) and they usually just mime so the sound team can record crisp dialogue from the cast. The background chatter is added afterwards.
They prefer the term “supporting artistes” instead of “extras”!
I’ve never quite got over the time one of them flushed a banana skin down the loo at a huge country house...