11. A method of controlling an electronic device for generating a system response, including a storage storing domain information that is categorized for dialogue subjects, and control information for performing tasks corresponding to the dialogue subjects and dialogue patterns for the dialogue subjects, the method comprising: receiving, with a microphone, a user utterance sound; detecting, with a processor, a current domain, among the domain information, based on the user utterance sound; determining, with the processor, one among the current domain and a previous domain as a selected domain to be used to process the user utterance sound received by the microphone, said selected domain being determined based on a first confidence between the user utterance sound and the current domain and a second confidence between the user utterance sound and the previous domain that is used before the current domain to process a previous user utterance sound, wherein the processor determines the current domain as the selected domain; storing, with the processor, information of the previous domain in the storage as interrupted domain information in response to the current domain being determined as the selected domain; processing, with the processor, the user utterance sound to generate a first system response, based on the selected domain; outputting, with an external device or a speaker of the electronic device, the first system response; and outputting, with the speaker of the electronic device, an audible second system response responding to the previous user utterance sound based on the stored interrupted domain information, after the user utterance sound is processed based on the current domain as the selected domain.
11. A method of controlling an electronic device for generating a system response, including a storage storing domain information that is categorized for dialogue subjects, and control information for performing tasks corresponding to the dialogue subjects and dialogue patterns for the dialogue subjects, the method comprising: receiving, with a microphone, a user utterance sound; detecting, with a processor, a current domain, among the domain information, based on the user utterance sound; determining, with the processor, one among the current domain and a previous domain as a selected domain to be used to process the user utterance sound received by the microphone, said selected domain being determined based on a first confidence between the user utterance sound and the current domain and a second confidence between the user utterance sound and the previous domain that is used before the current domain to process a previous user utterance sound, wherein the processor determines the current domain as the selected domain; storing, with the processor, information of the previous domain in the storage as interrupted domain information in response to the current domain being determined as the selected domain; processing, with the processor, the user utterance sound to generate a first system response, based on the selected domain; outputting, with an external device or a speaker of the electronic device, the first system response; and outputting, with the speaker of the electronic device, an audible second system response responding to the previous user utterance sound based on the stored interrupted domain information, after the user utterance sound is processed based on the current domain as the selected domain. 14. The method of claim 11 , further comprising, in response to the processing the user utterance sound to generate the first system response based on a context using a control of a function of the external device in the selected domain, generating a system response for controlling the function of the external device, based on information of the function of the external device.