To cancel out noise while sleeping, you can either wear earplugs to bed or use a dedicated sound machine that helps you get a good night's sleep. Also, headphones are a more feasible option if you want to block out the noise outside your bedroom.