Make call after sound detection

I would like to set up my iPhone to make a call when a sound (crying baby) is detected but I don’t know if its possible. When the option is activated, a message is shown - maybe this can be used as a trigger? Any support is appreciated. Thanks