Hi,
Use a series limiting resistor and give the port to port via capacitor scheme a try. You bet you can produce interesting effecting where one PIC generates the sound and the other modulates it.

A recommendation would be to use a non-polar cap. Or two electrolytes back to back.

BTW in this scheme both has to be an output.

Regards

Sougata