| CPC G10L 15/22 (2013.01) [G06F 3/167 (2013.01); G10L 15/30 (2013.01); G10L 2015/223 (2013.01); G10L 2015/228 (2013.01)] | 20 Claims | 

| 
               1. An electronic device comprising: 
            a microphone; 
                memory storing instructions, a plurality of domain sets and a capsule database including a plurality of capsules corresponding to the plurality of domain sets, the plurality of capsules including relationships between a plurality of concepts and actions corresponding to the plurality of domain sets; and 
                at least one processor, comprising processing circuitry, electrically connected to the microphone and the memory, 
                wherein the instructions, when executed by the at least one processor individually or collectively, cause the electronic device to: 
                acquire a voice signal using the microphone; 
                acquire context information associated with at least one of the electronic device or a user; 
                determine whether domain sets are identified from among the plurality of domain sets stored in the memory based on the context information; 
                when a single domain set is identified among the plurality of domain sets based on the context information, determine a first domain set as the identified single domain set; 
                when more than one domain set are identified among the plurality of domain sets based on the context information, select the first domain set among the identified more than one domain set based on an utterance of the user in the voice signal; 
                when no domain sets are identified among the plurality of domain sets based on the context information: 
                transmit, to a server, the context information and the voice signal, 
                  receive, from the server, the first domain set corresponding to the context information and the voice signal; 
                generate a plan including a plurality of operations for processing a task corresponding to the voice signal based on the determined first domain set and capsules corresponding to the determined first domain set; and 
                perform the plurality of operations corresponding to the voice signal. 
               |