It is probably supposed to be a piezo buzzer, they will beep with just DC applied
That circuit would make perfect sense to me if you swapped the speaker for an LED or some other light source, is this circuit even oscillating to makethe speaker "whale" ?