Alert at doorbell when detect motion

How to configure alert sound when detect any motion ?