Lattice Boltzmann simulations were carried out to investigate the noise mitigation mechanisms of a 3-D printed porous trailing-edge insert, elucidating the link between noise reduction and material permeability. The porous insert is based on a unit cell resembling a lattice of diamond atoms. It replaces the last 20 % chord of a NACA 0018 at zero angle-of-attack. A partially blocked insert is considered by adding a solid partition between 84 % and 96 % of the aerofoil chord. The regular porous insert achieves a substantial noise reduction at low frequencies, although a slight noise increase is found at high frequencies. The partially blocked porous insert exhibits a lower noise reduction level, but the noise emission at mid-to-high frequency is slightly affected. The segment of the porous insert near the tip plays a dominant role in promoting noise mitigation, whereas the solid-porous junction contributes, in addition to the rough surface, towards the high-frequency excess noise. The current study demonstrates the existence of an entrance length associated with the porous material geometry, which is linked to the pressure release process that is responsible for promoting noise mitigation. This process is characterised by the aerodynamic interaction between pressure fluctuations across the porous medium, which is found at locations where the porous insert thickness is less than twice the entrance length. Present results also suggest that the noise attenuation level is related to both the chordwise extent of the porous insert and the streamwise turbulent length scale. The porous inserts also cause a slight drag increase compared to their solid counterpart.