Take an audio stream, apply STT, interpret the result as an algorithm, run the algorithm, take its output, apply TTS, then send that audio stream to the output.
Connect the dots for me, I'm not seeing it. Unless you are talking about building a function approximator for a bunch of measured transfer characteristics, in which case you could as easily do that well before AI.