An earplug for attenuating sound from an outside surroundings to an ear canal, the earplug comprising - a housing comprising an ear tip configured to form an acoustic seal with the ear canal; and - an acoustic canal extending straight through the housing to guide the sound from the outside surroundings to inside the ear canal, the acoustic canal comprising ∘ a canal section having a first diameter that is dimensioned to fit at least partially inside the ear canal, the canal section ending at one side in a first exterior opening that is in use directed to let the sound into the ear canal, wherein another side of the canal section transitions into ∘ a first resonance volume starting from an end of the canal section with a second diameter that is wider than the first diameter; the acoustic canal further comprising ∘ a second resonance volume ending at one side in a second exterior opening that is in use directed to the outside surroundings for receiving the sound, wherein another side of the second resonance volume is separated from the first resonance volume by ∘ a sound attenuating mesh bounding one side of each of the resonance volumes (22,23); wherein the acoustic canal is directed along a straight line between the second exterior opening and the oppositely facing first exterior opening; wherein a combined length of the canal section and first resonance volume, measured between the mesh and an edge of the first exterior opening is between one and two centimeters; wherein a volume of the first resonance volume is larger than a volume of the canal section; wherein the canal section and the first resonance volume are configured to form, in combination, a first resonance cavity with a first resonance peak for the sound in a first frequency range between two and five kilohertz; wherein the second resonance volume is configured to form a second resonance cavity with a second resonance peak for the sound in a second frequency range between five and ten kilohertz; wherein said cavities (C1, C2) are separated by the mesh; wherein said first and second resonance peaks (R1,R2) partially compensate attenuation of the mesh in a resonance frequencies range (Fr) above one kilohertz. - a housing comprising an ear tip configured to form an acoustic seal with the ear canal; and - an acoustic canal extending straight through the housing to guide the sound from the outside surroundings to inside the ear canal, the acoustic canal comprising ∘ a canal section having a first diameter that is dimensioned to fit at least partially inside the ear canal, the canal section ending at one side in a first exterior opening that is in use directed to let the sound into the ear canal, wherein another side of the canal section transitions into ∘ a first resonance volume starting from an end of the canal section with a second diameter that is wider than the first diameter; the acoustic canal further comprising ∘ a second resonance volume ending at one side in a second exterior opening that is in use directed to the outside surroundings for receiving the sound, wherein another side of the second resonance volume is separated from the first resonance volume by ∘ a sound attenuating mesh bounding one side of each of the resonance volumes (22,23); wherein the acoustic canal is directed along a straight line between the second exterior opening and the oppositely facing first exterior opening; wherein a combined length of the canal section and first resonance volume, measured between the mesh and an edge of the first exterior opening is between one and two centimeters; wherein a volume of the first resonance volume is larger than a volume of the canal section; wherein the canal section and the first resonance volume are configured to form, in combination, a first resonance cavity with a first resonance peak for the sound in a first frequency range between two and five kilohertz; wherein the second resonance volume is configured to form a second resonance cavity with a second resonance peak for the sound in a second frequency range between five and ten kilohertz; wherein said cavities (C1, C2) are separated by the mesh; wherein said first and second resonance peaks (R1,R2) partially compensate attenuation of the mesh in a resonance frequencies range (Fr) above one kilohertz. ∘ a canal section having a first diameter that is dimensioned to fit at least partially inside the ear canal, the canal section ending at one side in a first exterior opening that is in use directed to let the sound into the ear canal, wherein another side of the canal section transitions into ∘ a first resonance volume starting from an end of the canal section with a second diameter that is wider than the first diameter; the acoustic canal further comprising ∘ a second resonance volume ending at one side in a second exterior opening that is in use directed to the outside surroundings for receiving the sound, wherein another side of the second resonance volume is separated from the first resonance volume by ∘ a sound attenuating mesh bounding one side of each of the resonance volumes (22,23);