Text To Speech with notifications

Manually this works and texts can be read aloud. But any app that automatically wants to read aloud the messages are not able to find the text/audio synthesizer. What is wrong?