A South Carolina man who wrapped electrical tape around a dog's muzzle to stop her from barking has been sentenced to five years in prison.