How can I create a track for each speaker in the dialogue?

I need to be able to listen to each speaker separately and only on left or right side of headset respectively.

You need to have a mixing console or sound card with two independent mic Inputs, and panoramize two input signals to Left/Right