Can I replace a mechanical doorbell with a digital one?
As long as both require the same voltages you will be fine. If you are in the U.S. the line voltage to the transformer is standard house voltage (120 volts AC). The output voltage of the transformer to the chime is nominally 16v.