Pigeons a nuisance? Try pigeon annoyer. Sound waves at 17,000 cycles per second (speaker is shown as 1,000 ohm resister) is above human hearing and pigeons will want quieter nesting area.
Many oscillators and amplifiers in EveryCircuit to choose from or make your own.
If human nuisance, try 2500 cycles per second sound range.