An electronic device and a method for controlling the electronic device are provided. The electronic device includes a communication circuit, a speaker, a microphone, a memory, and a processor. The processor is configured to determine whether there is auditory data stored in the memory of the electronic device when an external electronic device is connected thereto through the communication circuit, send a request for auditory data to the external electronic device when there is no auditory data stored in the memory, receive the auditory data from the external electronic device, correct data, at the electronic device, about the sound received through the microphone using the auditory data, receive corrected audio data from the external electronic device, synthesize the corrected data about the sound and the corrected audio data received from the external device to obtain first synthesized data, and output a first new sound corresponding to the first synthesized data through the speaker.