Most EVs do have such a speaker. But it only plays when they're driving at low speeds where they could be a threat to pedestrians, bikes, etc. And also there's no standardization of the noise.
Maybe that's changing with the latest round of vehicles, but I don't recall hearing about any regulation passed.