PWM Frequency

I am using a L293D and PWM to set a motor speed.
But the frequency is too high.

How can I modify the freqency of the PWM ?
I need somethink like a few Khz ( 2 Khz for exemple )

Best regards

Georges