Speech to text and text to speech

Is there possibility to run speechtotext and Texttospeech in bacground mode when the app is closed or in background?