First time asking a question on SE; Google and old SE questions have always gotten me by before. :) I think this is the right place to ask.
Background: I'm working with linux (ultimately an RPi, to be specific, but testing on Mint 18) planning to record audio from a mic and simultaneously output text-to-speech audio to a user. I'm working under the assumption that the output is going to play over a speaker near the mic. I haven't set up the hardware yet, as I want to make sure this is a feasible project first.
Problem: I'm trying to figure out how to filter out the TTS audio I'm producing from the mic audio that I'm recording.
I can't even figure out the search terms to use on Google, though it seems like this has to have been covered before.
So my questions are 1) what search terms can I use to find information on this, and 2) are there any preexisting linux tools that can do this?
Thanks for any and all pointers. First time in years that I haven't found the solution to my probs on my own.
EDIT: I should have clarified, this is something I'm hoping to do via a script on the command line, maybe even live.