1. A method for an electronic device, the method comprising: receiving, by a processor of the electronic device, an input of a first text; receiving, by the processor, a voice input; transforming the voice input into a second text by performing voice recognition; determining at least a part of the second text corresponding to the first text; correcting, by the processor, the second text by replacing at least a part of the second text with the first text; and outputting, by the processor, the corrected second text.