An electronic device comprising: a speaker; a microphone; a communication interface; at least one processor electrically connected to the speaker, the microphone, and the communication interface; and a memory electrically connected to the at least one processor, wherein the memory stores instructions, and the instructions are configured to cause the at least one processor, when executed, to: activate a voice recognition service in response to receiving a specified user input, receive a first voice signal while the voice recognition service is active, and recognize first voice information from the received first voice signal; process a task based on the received first voice information; analyze the first voice information to determine at least one word that can be registered as a user wake word and register the at least one word as a user wake word; deactivate the voice recognition service after processing the task; receive a second voice signal distinct from the specified user input in the state in which the voice recognition service is deactivated, in response to receiving the second voice signal, recognize second voice information from the second voice signal and identify whether at least a portion of the second voice information corresponds to a registered user wake word, and in response to identifying that the at least the portion of the second voice information corresponds to a registered user wake word, activate the voice recognition service and process a task based on the second voice information. a speaker; a microphone; a communication interface; at least one processor electrically connected to the speaker, the microphone, and the communication interface; and a memory electrically connected to the at least one processor, wherein the memory stores instructions, and the instructions are configured to cause the at least one processor, when executed, to: activate a voice recognition service in response to receiving a specified user input, receive a first voice signal while the voice recognition service is active, and recognize first voice information from the received first voice signal; process a task based on the received first voice information; analyze the first voice information to determine at least one word that can be registered as a user wake word and register the at least one word as a user wake word; deactivate the voice recognition service after processing the task; receive a second voice signal distinct from the specified user input in the state in which the voice recognition service is deactivated, in response to receiving the second voice signal, recognize second voice information from the second voice signal and identify whether at least a portion of the second voice information corresponds to a registered user wake word, and in response to identifying that the at least the portion of the second voice information corresponds to a registered user wake word, activate the voice recognition service and process a task based on the second voice information. activate a voice recognition service in response to receiving a specified user input, receive a first voice signal while the voice recognition service is active, and recognize first voice information from the received first voice signal; process a task based on the received first voice information; analyze the first voice information to determine at least one word that can be registered as a user wake word and register the at least one word as a user wake word; deactivate the voice recognition service after processing the task; receive a second voice signal distinct from the specified user input in the state in which the voice recognition service is deactivated, in response to receiving the second voice signal, recognize second voice information from the second voice signal and identify whether at least a portion of the second voice information corresponds to a registered user wake word, and in response to identifying that the at least the portion of the second voice information corresponds to a registered user wake word, activate the voice recognition service and process a task based on the second voice information.