How to customize sound patterns in deterrent devices