I started offering to buy a glass of wine or beer or some snacks for the family whenever they have a crying baby. I've
done it anonymously through a flight attendant, and on multiple occasions they've accepted the offer. I find that I don't hear the noise as much once I've put my heart into the right place and tried to help the situation in a small way.