Check ballcock/fill valve on the toilet, it could be going bad. The sound is then picked up by the pipes. Shut off the water and pull up the float ball, rod and plunger assembly. Turn over the rubber washer. Flush out the supply line and reassembly ballcock and plunger assembly.