"My dog barks too much" is not a description of a problem. It is a description of a sound.
Barking is a category, not a behaviour, and the responses that help one type reliably make another worse. So before any technique, work out which bark you have.
The five barks
Alarm barking. Something happened, a noise at the gate, a person on the stairs, a vehicle. Sharp, repetitive, directed outward, usually with the dog facing the source. Common in Indian homes where the gate, the street and every passing scooter are audible and visible.
Demand barking. Directed at you. Wants food, attention, a door opened, the game to continue. Often with pauses to check whether it is working.
Boredom barking. Monotonous, rhythmic, unfocused. Sounds almost mechanical. A dog with nothing to do, filling time.
Frustration barking. At something the dog wants and cannot reach, a dog on the other side of a gate, a squirrel, a person walking past. Higher-pitched, often with pacing, jumping, spinning.
Distress barking. Left alone. Frantic, often with howling, and usually alongside pacing, destruction near exits, drooling or house soiling. This is separation distress, and it is a different problem needing a different article.
How to identify yours: for two days, note down every barking episode, when, what happened first, what you did, how long it lasted. The pattern is usually obvious within a page, and it is far more reliable than trying to remember.
What to do for each
Alarm barking
Do not shout. From the dog's point of view, you have heard the alarm and joined in loudly. Alarm barking is the single most commonly worsened type of barking, and shouting is why.
Reduce the input. Frosted film or a screen on gate-facing glass, so the dog cannot see every passer-by. A fan, air conditioner or radio to mask footsteps and gate noise. Move the resting spot away from the front door. This alone resolves a substantial share of cases.
Teach a finish, not a ban. Your dog announcing someone is at the gate is useful. Twenty minutes of it is not. Acknowledge, go and look, then call your dog to you and reward the return. You are teaching "report once, then come back", which is a realistic target. "Never bark" is not.
Demand barking
Give it nothing. No eye contact, no talking, no touching, no "no". Any response is a response. Turn away, or leave the room.
Then reward the quiet. The instant your dog stops and settles, that is when attention or food arrives. This is the half people skip, and without it you are only removing an outlet.
Expect an extinction burst. It gets louder and more insistent before it stops, because the behaviour used to work and your dog is trying harder. If you give in during that phase, you have taught your dog that persistence pays, and the next round will be worse than the first.
Boredom barking
This one is not a training problem, it is a schedule problem.
Add mental work, which tires dogs far more effectively than distance: scatter feeding instead of a bowl, food puzzles, short training sessions, chews, and sniffing time on walks. Ten minutes of nose work beats an extra kilometre.
Frustration barking
Increase distance from the trigger until your dog can think, then work at that distance. Frustration barking that is repeatedly rehearsed at close range tends to become reactivity.
Stop rehearsing it. A dog that spends the day barking at the gate at people passing is practising for hours daily and getting better at it.
Distress barking
Do not treat this with barking techniques. A dog barking from panic at being left alone needs a graduated absence protocol, and possibly veterinary input.
Why anti-bark collars are the wrong tool
Citronella, ultrasonic and shock collars all work the same way: make barking unpleasant.
They do not address why the dog is barking. A bored dog is still bored. A frightened dog is still frightened, and has now learned that being frightened brings something unpleasant, which tends to surface elsewhere, often as something harder to live with than the barking.
They fire indiscriminately. On another dog's bark, on a cough, on a household noise. A dog receiving unpleasant surprises with no discernible pattern becomes anxious, and anxious dogs bark more.
The exception nobody argues about: if a dog's barking is genuinely threatening its home, a landlord ultimatum, a housing society complaint, that is a real crisis and it deserves urgent professional help, not a collar bought online.
Barking at night
Common in Indian neighbourhoods and usually diagnosable.
Find out what is actually happening. Street dogs passing, guards on rounds, other dogs starting a chain, cats. A dog sleeping within earshot of the gate is on duty all night.
Then: move the sleeping spot to an interior room, add masking sound, and block visual access.
Rule out the medical causes, particularly in an older dog. Pain, and canine cognitive dysfunction, both present as night waking, restlessness and vocalising, and no amount of training will fix either.
The bottom line
Identify the bark before you treat it. Alarm barking needs less input and a taught finish. Demand barking needs total non-response followed by rewarded quiet. Boredom barking needs work, not correction. Frustration needs distance. Distress needs a different plan entirely.
Shouting worsens the most common type. Anti-bark collars silence the symptom and leave the cause running.
And the realistic goal is a dog that reports once and settles, not a dog that never speaks.
Barking that only happens when you leave the house, alongside pacing, drooling or destruction near doors, is separation distress rather than a barking problem.