CPC G06F 40/35 (2020.01) [G06F 40/143 (2020.01); G06F 40/166 (2020.01); G06F 40/232 (2020.01); G10L 15/1815 (2013.01); G10L 15/22 (2013.01); G10L 25/63 (2013.01)] | 20 Claims |
1. An electronic device, comprising:
a memory;
a communication module comprising communication circuitry; and
a processor, operatively connected with the memory and the communication module, configured to control the electronic device to:
obtain an utterance text corresponding to utterance speech;
obtain an intent of the utterance text and emotion information based on the utterance speech and the utterance text;
obtain a response text for the utterance text based on the intent of the utterance text and the emotion information;
obtain a markup language including information about an output unit of text of the response text based on at least one of the intent of the utterance text, the emotion information, or the response text; and
add the markup language to the response text and provide the response text, wherein
the output unit of text includes at least one selected from among a phoneme unit, a consonant and vowel unit, a syllable unit, or a word unit.
|