Dust and dirt don’t just accumulate on your iPhone’s screen but can also penetrate into the speaker and microphone, compromising the sound quality and potentially leading to your smartphone becoming entirely silent.
A safe way to clean your iPhone’s microphone is to use a clean and dry toothbrush. Clean the microphone with slow and careful movements using the toothbrush without applying too much pressure. Avoid using water or wet cleaners that could turn the dust into mud.
Avoid sharp objects that could cause severe damage and if there is a bigger problem, visit a specialized technician.