Another way to say "talking to someone is for communicating" is "Talking is a way to communicate."