That may be because of a bad wire or bad Audio Port. Usually if you are using speakers with audio cards or on-board audios of poor quality then interferences occur which cause such crackles. Make sure there arent so many devices around the speaker as they can also cause disturbances.