Aveline
This is a plague!! I spray and spray and hoover yet still they come. This has been going on for years. We have a few blank patches in carpets now.
and 
Then you are indeed dealing with cloth moths and they will not only attack the carpet.
You need to get rid of that carpet quickly, or if you cannot bear to do so, hang it outside for a week or too and simply douse it in moth repellant.
While you are waiting to see if the moths stop laying there, you need to wash all clothes and soft furnishings, including pillows and eiderdowns that can be washed and send anything that cannot be washed to the dry-cleaners.
You can, if you like, take the opportunity to get rid of clothes you no longer often wear.
All clothes cupboards, drawers, storage boxes need to be washed well too. It is the moth larvae that do the damage, not the adult moths.
Remember too to check fur-line boots - these can be put in a plastic bag and left overnight in the freezer, as can anything else that can neither be washed or dry-cleaned.
Beloved old teddies and other soft toys are at risk too, so if you do not want Teddy to die of an attack of the moth, do check his or her fur/cloth very carefully.
The other variety of moth you want to get rid of, is the ones haunting the kitchen - they lay their eggs in flour, breadcrumbs etc.