What is a peacock thinking?
Screaming like a person in trouble. Nobody is in trouble.
The call carries for well over a kilometre, and that is the point - it is a peacock advertising itself to peahens it cannot see. Breeding season is when it becomes relentless.
There is a stranger layer to the display. Peacocks also produce infrasound below human hearing when they shake the train, so a peahen is receiving a signal you are not, on top of the one keeping the entire street awake.
Try it on a real one
Three peeks a day, free. No account, nothing to install.