Then, yeah, it might be a leaking header gasket. Or even a collector gasket. Or wait, you said it was at the motor. Did tightening the header bolts make the sound change at all? If the sound changed, it's definitely the gasket. If that didn't change it, it still might be the gasket or something...