A squeaky carpeted floor can be fixed a few ways, depending on what access you have.
If you can pull up the carpet to reach the area, you can screw or nail down through the squeaking floorboard into the subfloor, then replace the carpet.
If you have a basement, have someone step on and off the offending spot above while you watch from below to find the loose board. Once you know which board is the culprit, drive a screw up through the floor joist and subfloor into the loose board. Hopefully this pulls it snug against the subfloor and stops the squeak. Alternatively, from the basement, screw a piece of 2x4 onto the floor joist, then screw up through the 2x4 and subfloor into the loose board. You can also gently tap a shim between the subfloor and the floor joist to see if that tightens things up.
Those are the main approaches worth trying — hopefully one of them quiets things down.