The correct option is B cry
'If you hear the baby cry' is usually said by a mother. The word 'cry' completes the speech and words like 'say, shout, weep, whisper' do not. The mother usually remarks that if her baby is heard crying, she needs to be informed. Thus, Option A is correct and the others are not because they do not complete the sentence properly.