Mr. Smeow's loud, annoying robot dog
As Jay suggests usually the loadspeaker can be disconnected and the device will continue to otherwise work,  else a resistor will usually make a good replacement and you probably don't neet to be exact, use a 33 ohm resistor to replace a 32 ohm loudspeaker, or 3.9 ohm to replace 4 ohm loudspeaker etc.