It might not be a wrong setting. One annoying aspect of AVRs is that when you set a PWM to 0 duty cycle (e.g. OCR1B = 0), you will get tiny glitches (very short pulses) every time the counter overflows (i.e. at the frequency of your PWM). You can get a clean 0 by using an inverted PWM, but then you get tiny glitches when you try to run at 100% duty cycle. My guess is that you're hearing a sound produced by these glitches. I can think of two ways you can investigate this further:
1) What PWM frequency are you using? Does the pitch of the sound coming out of your motors sound like it could be at that frequency? Try changing the PWM frequency and see if it has an effect on the sound. Try turning off Timer1 altogether and see if the sound goes away.
2) If your motor driver's enable line has an internal pull-down, you can get a glitch-free signal by making the PWM pin an input while you want the motors off. This will put the pin in a high-Z state, even with the PWM still running. To re-enable the PWM output, just make the pin an output again. So in short, try making the pin an input and see if the sound goes away.
- Ben