CPC G10L 15/18 (2013.01) [G10L 13/08 (2013.01); G10L 15/16 (2013.01); G10L 15/26 (2013.01)] | 17 Claims |
1. An electronic apparatus comprising:
a communication interface;
a memory configured to store at least one instruction; and
a processor configured to execute the at least one instruction to:
receive a text corresponding to a user utterance and information regarding a first external device from the first external device via the communication interface;
obtain a plurality of weights of a plurality of elements related to the first external device by inputting the text corresponding to the user utterance to a first neural network model;
identify a second external device for obtaining response information regarding the user utterance from among a plurality of external devices based on the information regarding the first external device, information regarding the plurality of external devices, and the plurality of weights;
control the communication interface to transmit the text corresponding to the user utterance to the second external device;
receive first response information regarding the user utterance from the second external device via the communication interface;
obtain second response information corresponding to the first external device by inputting the first response information and the information regarding the first external device to a second neural network model; and
control the communication interface to transmit the second response information to the first external device,
wherein the processor is further configured to:
identify a module for performing a function corresponding to a first response type included in the first response information;
determine whether the module is included in the first external device; and
determine whether to change the first response information to the second response information based on determining whether the module is included in the first external device.
|