This may be too late to help the OP but for others who encounter the same noise:
I assume you are asking about the steady clickity clack sound, not the wind noise or the gear whine. Check that the chain is not hitting one of the bolts on the chain ring, or that you might have a worn out chain or chain ring sprocket that is not engaging smoothly.
Does the same click happen when pedaling with the motor turned off?