It's difficult to answer this question without knowing whether you are a student or a teacher.
If you are a student, consider asking your teacher if you can move to a quiet place within the classroom to work or possibly just outside the door to the classroom.
If you are a teacher, be sure you are "ready" for class. Keep the pace of your class moving, so students have less idle time to visit. Consider special seating assignments, if you haven't already, to decrease close contact between friends. Remember too that students have limited attention span when it comes to listening. Consider giving instructions or a mini-lecture of no more than 10 min. Then, ask the students to do something in response. Build in some type of movement within your class about every 15 min. (20 min. for high school students). For instance, in response to a question you pose, ask students to stand to demonstrate their agreement/disagreement. Ask one or two students on each side to state their opinions or to add something to the discussion.
Remember too that active learning is seldom a quiet activitiy. But, students can learn to use softer voices.