The Barking might be that they want to communicate and it can mean different things depending on the situation.
As much as shock collars work for some dogs,Shock collars can cause pets harm and may make dogs aggressive, especially if they associate the person or animal they are barking at with the pain.
Just go to the vet to know exactly what's wrong.