For this you probalby should use an external DLL, written in C# or VC++ etc. However, you may try to achieve some FX with BlitzBass.dll and there's also an example on how to record sound in the code archives. Doing realtime voice communication over TCP is a further chapter and its complexity should not be underestimated IMHO.