Electronic device and control method thereof
Through artificial intelligence algorithms and speech recognition technology, it solves the problem of electronic devices being unable to distinguish users when multiple users voice input, achieving accurate recognition and personalized response, and a method of controlling electronic devices that maintains context.
Patent Information
- Application Number
- CN202410706581.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2018-02-23
- Filing Date
- 2019-01-02
- Publication Date
- 2024-10-01
AI Technical Summary
Existing electronic devices cannot distinguish between different users when processing multiple users' voices, resulting in response errors and the inability to maintain context.
By using models trained with artificial intelligence algorithms, combined with microphones and speakers, it recognizes and differentiates the voices of different users, uses discourse history information to provide personalized responses, and stores or delays processing of user voices when necessary.
In the case of multiple users' voice input, it is possible to accurately identify users and provide responses that maintain context, ensuring the accuracy and personalization of responses.
Smart Images

Figure CN118732840A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to an electronic device and a control method thereof, and more particularly to an electronic device and a control method thereof that recognizes a user voice and provides various interactions according to the recognized user voice.
[0002] The present disclosure further relates to artificial intelligence (AI) systems and their applications that use machine learning algorithms to simulate human brain functions such as recognition or determination. Background Art
[0003] In recent years, artificial intelligence systems that achieve human-level intelligence have been applied to various fields. Unlike traditional rule-based intelligent systems, artificial intelligence systems are systems that are trained, determined, and become intelligent by the machine itself. With the use of artificial intelligence systems, the recognition rate is improved and user preferences are understood more accurately. Therefore, traditional rule-based systems are gradually replaced by artificial intelligence systems based on deep learning.
[0004] Artificial intelligence technology consists of machine learning (such as deep learning) and basic technologies that use machine learning. Machine learning is an algorithmic technology that self-classifies / self-trains the characteristics of input data, while basic technologies use machine learning algorithms (such as deep learning) to simulate human brain functions such as recognition or determination. It consists of technical fields such as language understanding, visual understanding, reasoning / prediction, knowledge representation, and operational control.
[0005] Artificial intelligence technology is applied to the following fields. Language understanding is a technology that recognizes human language / letters and applies / processes them, and includes natural language processing, machine translation, conversion systems, question answering, speech recognition / synthesis, etc. Visual understanding is a technology that recognizes objects from a human perspective and processes them, and includes object recognition, object tracking, image search, human body recognition, scene understanding, spatial understanding, image improvement, etc. Reasoning / prediction is a technology that recognizes information and performs logical reasoning and prediction on it, and includes reasoning based on knowledge / possibility, optimization prediction, preference-based planning, recommendation, etc. Knowledge representation is a technology that performs automatic processing of human experimental information into knowledge data, and includes knowledge construction (data generation / classification), knowledge management (data application), etc. Operation control is a technology that controls the automatic driving of a vehicle or the movement of a robot, and includes motion control (navigation, collision or walking), operation control (behavior control), etc.
[0006] Meanwhile, electronic devices that recognize user voices and provide various interactions based on the recognized user voices have been conventionally developed. In addition, the electronic device can respond not only to a one-time user voice, but also to continuous user voices and provide responses by reflecting the speech history. However, when another user's user voice is received between continuous user voices, the electronic device cannot distinguish between these voices and will provide a completely wrong response. Summary of the invention
[0007] Technical issues
[0008] The present disclosure is made based on the above needs, and an object of the present disclosure is to provide an electronic device and a control method thereof that can provide a response with context maintained despite the user's voices being input from multiple users respectively.
[0009] Technical Solution
[0010] To achieve the above objectives, according to an embodiment of the present disclosure, an electronic device is provided, including a microphone, a speaker, and a processor configured to be electrically connected to the microphone and the speaker, wherein the processor is configured to, based on a first user voice input through the microphone, identify a user who utters the first user voice, and provide, through the speaker, a first response sound obtained by inputting the first user voice into an artificial intelligence model trained with an artificial intelligence algorithm, based on a second user voice input through the microphone, identify a user who utters the second user voice, and, based on the fact that the user who utters the first user voice is the same as the user who utters the second user voice, provide, through the speaker, a second response sound obtained by inputting the second user voice and speech history information into the artificial intelligence model.
[0011] The device may further include a memory, and the processor may be configured to store the second user voice in the memory based on the fact that the user who uttered the second user voice is different from the user who uttered the first user voice, and to provide a third response sound obtained by inputting the second user voice into the artificial intelligence model based on the fact that the user who uttered the first user voice has not input a user voice for a predetermined time period or longer.
[0012] The processor can be configured to, based on an input first user voice, identify a first user who utters a first user voice, and provide, through a speaker, a first response sound obtained by inputting the first user voice into an artificial intelligence model, and to, based on an input second user voice, identify a second user who utters a second user voice, and provide, through a speaker, a third response sound obtained by inputting the second user voice into the artificial intelligence model and different from the first response sound.
[0013] The processor can be configured to, based on a first additional user voice input by the first user, provide, through a speaker, a first additional response sound obtained by inputting the first additional user voice and first speech history information corresponding to the first user voice into an artificial intelligence model, and, based on a second additional user voice input by the second user, provide, through a speaker, a second additional response sound different from the first additional response sound obtained by inputting the second additional user voice and second speech history information corresponding to the second user voice into the artificial intelligence model.
[0014] The device may further include a display electrically connected to the processor, and the processor may be configured to display a first UI corresponding to the first user through the display when the first additional response sound is provided, and to display a second UI corresponding to the second user through the display when the second additional response sound is provided.
[0015] The processor can be configured to obtain a first domain corresponding to the first user voice and a second domain corresponding to the second user voice based on the fact that the user who utters the first user voice is different from the user who utters the second user voice, and to provide, through a speaker, a second response sound obtained by inputting the second user voice and speech history information into the artificial intelligence model based on the fact that the first domain is the same as the second domain.
[0016] The device may further include a memory electrically connected to the processor, and the processor may be configured to, based on a second user voice being input within a first predetermined time period from the time the first user voice is input, the user who uttered the first user voice is the same as the user who uttered the second user voice, and the first domain corresponding to the first user voice is different from the second domain corresponding to the second user voice, store the first user voice in the memory without providing the first response sound, and provide a third response sound obtained by inputting the second user voice into the artificial intelligence model through a speaker.
[0017] The processor may be configured to provide, through a speaker, a first response sound obtained by inputting a first user voice stored in a memory into an artificial intelligence model, based on the user not inputting a user voice corresponding to the second domain within a second predetermined time period or longer.
[0018] The device may further include a camera, and the processor may be configured to recognize the user based on at least one of an image captured by the camera or a user voice input through the microphone.
[0019] The processor can be configured to identify the user who utters the first user voice based on the user's mouth shape contained in the image within the time period when the first user voice is input, and to identify that the user who utters the second user voice is the same as the user who utters the first user voice based on a change in the recognized user's mouth shape contained in the image within the time period when the second user voice is input.
[0020] According to an embodiment of the present disclosure, a control method for an electronic device is provided, the method comprising: based on a first user voice being input, identifying a user who utters the first user voice, providing a first response sound obtained by inputting the first user voice into an artificial intelligence model trained by an artificial intelligence algorithm, based on a second user voice being input, identifying a user who utters the second user voice, and based on the fact that the user who utters the first user voice is the same as the user who utters the second user voice, providing a second response sound obtained by inputting the second user voice and speech history information into the artificial intelligence model.
[0021] The method may further include storing the second user voice based on that the user who uttered the second user voice is different from the user who uttered the first user voice, and providing a third response sound obtained by inputting the second user voice into the artificial intelligence model based on that the user who uttered the first user voice has not input a user voice for a predetermined time period or longer.
[0022] Identifying a user who utters a first user voice may include identifying the first user who utters the first user voice based on the input first user voice, providing a first response sound may include providing a first response sound obtained by inputting the first user voice into an artificial intelligence model, identifying a user who utters a second user voice may include identifying the second user who utters the second user voice, and the method may also include providing a third response sound obtained by inputting the second user voice into the artificial intelligence model that is different from the first response sound.
[0023] The method may further include, based on the first user inputting a first additional user voice, providing a first additional response sound obtained by inputting the first additional user voice and first speech history information corresponding to the first user voice into an artificial intelligence model, and based on the second user inputting a second additional user voice, providing a second additional response sound different from the first response additional sound obtained by inputting the second additional user voice and second speech history information corresponding to the second user voice into the artificial intelligence model.
[0024] Providing the first additional response sound may include displaying a first UI corresponding to the first user when providing the first additional response sound. Providing a second additional response sound different from the first additional response sound may include displaying a second UI corresponding to the second user when providing the second additional response sound.
[0025] The method may further include obtaining a first domain corresponding to the first user voice and a second domain corresponding to the second user voice based on that the user who utters the first user voice is different from the user who utters the second user voice, and providing a second response sound obtained by inputting the second user voice and speech history information into the artificial intelligence model based on that the first domain is the same as the second domain.
[0026] In the method, based on the fact that the second user voice is input within a first predetermined time period from the time when the first user voice is input, the user who uttered the first user voice is the same as the user who uttered the second user voice, and the first domain corresponding to the first user voice is different from the second domain corresponding to the second user voice, the first user voice can be stored in the memory without providing a first response sound, and a third response sound obtained by inputting the second user voice into the artificial intelligence model is provided.
[0027] The method may further include providing a first response sound obtained by inputting the first user voice into the artificial intelligence model based on the user not inputting the user voice corresponding to the second domain within a second predetermined time period or longer.
[0028] Identifying the user may include identifying the user based on at least one of an image captured by a camera or a user voice input through a microphone.
[0029] Identifying the user who utters the first user voice may include identifying the user who utters the first user voice based on the user's mouth shape contained in the image during the time period when the first user voice is input, and providing a second response sound may include identifying that the user who utters the second user voice is the same as the user who utters the first user voice based on a change in the recognized user's mouth shape contained in the image during the time period when the second user voice is input.
[0030] Beneficial Effects
[0031] According to the above-described embodiments of the present disclosure, when user voices are respectively input by a plurality of users, the electronic device is able to provide a response while maintaining the context by processing, delaying, or separately processing the voices of the plurality of users based on the existing user voices. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1a and Figure 1b is a schematic diagram for explaining a method for processing multiple user voices according to an embodiment;
[0033] Figure 2 is a schematic diagram showing an electronic system for providing sound in response to user voice according to an embodiment;
[0034] Figure 3a is a block diagram for explaining a configuration of an electronic device according to an embodiment;
[0035] Figure 3b is a block diagram showing a specific configuration of an electronic device according to an embodiment;
[0036] Figure 4a and Figure 4b is a schematic diagram for explaining delay processing of user voices among multiple users according to an embodiment;
[0037] Figure 5a to Figure 5c is a schematic diagram for explaining a method for synchronously processing multiple user voices in real time according to an embodiment;
[0038] Figure 6 is a schematic diagram for explaining collective interaction with multiple users according to an embodiment;
[0039] Figure 7 is a schematic diagram for explaining an operation when multiple user voices of the same user corresponding to multiple domains respectively are input according to an embodiment;
[0040] Figure 8a and 8b is a schematic diagram for explaining a method for identifying a user who issues a user voice according to an embodiment;
[0041] Figure 9a and 9b is a schematic diagram for explaining additional training of an artificial intelligence model according to an embodiment;
[0042] Fig.10 is a flowchart for explaining the operation of an electronic device storing an artificial intelligence model according to an embodiment;
[0043] Fig.11 is a timing diagram for explaining operations of an electronic device and an external server storing an artificial intelligence model according to an embodiment;
[0044] Fig.12 is a block diagram for explaining a configuration of an external server according to an embodiment, the external server being used to train and use an artificial intelligence model to provide a response to a user's request;
[0045] Fig.13 is a block diagram showing a learning unit according to an embodiment;
[0046] Fig.14is a block diagram showing a response unit according to an embodiment;
[0047] Fig.15 is a schematic diagram showing an example in which an electronic device and an external server are connected to each other for training and recognition data according to an embodiment;
[0048] Fig.16 is a flowchart for explaining a control method of an electronic device according to an embodiment. DETAILED DESCRIPTION
[0049] Hereinafter, various embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be noted that the technology disclosed in the present disclosure is not intended to limit the scope of the present disclosure to specific embodiments, but should be interpreted as including all modifications, equivalents and / or alternatives of the embodiments of the present disclosure. When explaining the drawings, similar reference numerals may be used for similar elements.
[0050] In the present disclosure, terms used herein, such as "comprising", "may comprise", "consisting of", or "may consist of", etc., are used to specify the existence of corresponding features (e.g., constituent elements such as numbers, functions, operations, or parts), rather than excluding the existence of additional features.
[0051] In the present disclosure, expressions such as "A or B", "at least one of A[and / or] B", or "one or more of A[and / or] B" include all possible combinations of the listed items. For example, "A or B", "at least one of A and B", or "at least one of A or B" includes any of (1) at least one A, (2) at least one B, or (3) at least one A and at least one B.
[0052] The expressions “first,” “second,” and the like used in the present disclosure may denote various elements regardless of their order and / or importance and may be used to distinguish one element from another without limiting the elements.
[0053] If a certain element (for example, a first element) is described as being "operably or communicatively coupled to / coupled to", or is "connected to" another element (for example, a second element), it should be understood that the element may be directly connected to the other element or also connected through another element (for example, a third element). On the other hand, if a certain element (for example, a first element) is described as being "directly coupled to" or "directly connected to" another element (for example, a second element), it can be understood that there is no element (for example, a third element) between the element and the other element.
[0054] In addition, the expression "configured to" used in the present disclosure may be used interchangeably with other expressions, such as "suitable for", "capable of", "designed to", "adapted to", "made to", and "capable of", depending on the specific circumstances. At the same time, the expression "configured to" does not necessarily mean that the device is "specially designed to" in terms of hardware. On the contrary, in some cases, the expression "the device is configured to" may mean that the device is "capable of" performing an operation together with another device or component. For example, the phrase "a unit or processor configured (or set) to perform A, B, and C" may refer to a dedicated processor (e.g., an embedded processor) that performs the corresponding operations, or a general-purpose processor (e.g., a CPU or application processor) that can perform the corresponding operations by executing one or more software programs stored in a memory device.
[0055] The electronic device according to various embodiments of the present disclosure may include, for example, at least one of a smart phone, a tablet computer, a mobile phone, a videophone, an e-book reader, a desktop computer, a laptop computer, a netbook computer, a workstation, a server, a PDA, a portable multimedia player (PMP), an MP3 player, a mobile medical device, a camera, or a wearable device. Wearable devices may include at least one of an accessory type (e.g., a watch, a ring, a bracelet, an anklet, a necklace, glasses, contact lenses, or a head-mounted device (HMD)); a fabric or clothing-embedded type (e.g., an electronic fabric); a skin-attached type (e.g., a skin pad or a tattoo); or a bio-implanted type (implantable circuit). In addition, in some embodiments, the electronic device may include, for example, a television, a digital video disk (DVD) player, an audio system, a refrigerator, an air conditioner, a vacuum cleaner, an oven, a microwave oven, a washing machine, an air purifier, a set-top box, a home automation control panel, a security control panel, a media box (such as Samsung HOMESYNC TM , Apple TV TM or Google TV TM ), game consoles (such as XBOX TM 、PLAYSTATION TM ), at least one of an electronic dictionary, an electronic key, a camcorder or an electronic photo frame.
[0056] In other embodiments, the electronic device may include at least one of medical instruments (e.g., various portable medical measuring instruments, such as blood glucose meters, heart rate meters, blood pressure meters, or temperature measuring devices, magnetic resonance angiography (MRA), magnetic resonance imaging (MRI), or computed tomography (CT) or ultrasound equipment, etc.), navigation systems, global satellite navigation systems (GNSS), event data recorders (EDR), flight data recorders (FDR), automotive infotainment equipment, ship electronic equipment (such as ship navigation devices, gyroscopes, etc.), avionics equipment, security devices, car head devices, industrial or household robots, drones, ATMs of financial institutions, points of sale (POS) of stores, or Internet of Things devices (such as light bulbs, sensors, sprinklers, fire alarms, thermostats, street lights, toasters, sports equipment, hot water tanks, heaters, boilers, etc.).
[0057] In the present disclosure, the term "user" may refer to a person using an electronic device or a device (e.g., an artificial intelligence electronic device).
[0058] Figure 1a and Figure 1b is a schematic diagram for explaining a method of processing voices of a plurality of users according to an embodiment.
[0059] like Figure 1a As shown, the electronic device can receive the user voice issued by user A. For example, the electronic device can receive the user voice issued by user A "add Jiangnan University party to the calendar".
[0060] The electronic device can transmit the user voice of user A to the external server. The external server may include a first server that converts the user voice into text and a second server that provides response information to the user voice based on the converted text, but this is only an embodiment and the external server may be implemented by a single server.
[0061] The external server can convert the user voice received from the electronic device into text by speech to text (STT) technology. The external server can obtain the response information to the user voice by inputting the converted text into the artificial intelligence model trained by the artificial intelligence algorithm. The response information can be a response sound including the response to the user voice, and can be transmitted to the electronic device as audio data. Alternatively, the response information can be text information obtained by the second server, and can be converted into a response sound by the first server using text to speech (TTS) technology and transmitted to the electronic device. However, it is not limited to this, and the response information can further include information about the image, and information about the voice. In this case, the information about the image can be information such as text, image, URL, etc. containing a response to the user voice. In addition, the information about the voice can be the same as the information about the image, but this is only one embodiment, and the information about the voice can include only a part of the information about the image, or it can be a summary of the information about the image.
[0062] The external server may transmit a response sound to the user voice to the electronic device. For example, the external server may send a response sound of "What date / time?" to the electronic device as a response to the user voice of user A. The electronic device may provide the received response sound.
[0063] However, the function of providing the response sound by the external server can be performed by the electronic device. For example, the electronic device can convert the user voice issued by user A into text, obtain response information to the user voice by inputting the converted text into the artificial intelligence model, transform the response information into a response sound, and provide the response sound to user A.
[0064] Next, the electronic device may receive a user voice issued by user B. For example, the electronic device may receive a user voice issued by user B asking “What is the weather like today?”
[0065] The electronic device may determine whether the users are the same by comparing the user voice of user A and the user voice of user B. For example, the electronic device may determine whether the users are the same based on the voice print of each of the user voice of user A and the user voice of user B. If the users are different from each other, the electronic device may store the user voice of user B in the memory without transmitting the user voice to the external server.
[0066] Alternatively, the external server may determine whether the users are the same. For example, the electronic device may transmit the user voice of user B to the external server without determining whether the users are the same. The external server may determine whether the users are the same by comparing the received user voice of user B with the previous user voice of user A. If the users are different from each other, the external server may store the user voice of user B in a memory. In this case, the external server may not generate a response sound to the user voice of user B. The electronic device may not receive any information from the external server, nor may it provide a response sound to the user voice of user B. In addition, the external server may be in a state of providing a response to user A, and may transmit a response sound to the electronic device unit to guide user B to wait. The electronic device may provide the received response sound to user B.
[0067] Then, the electronic device may receive the user voice issued by user A. For example, the electronic device may receive the user voice issued by user A saying "3 o'clock on the 17th of this month".
[0068] The electronic device can provide a response sound to the user voice of user A through the same method as described above. For example, the electronic device can provide a response sound "Added at 3 o'clock on December 17" to the user voice of user A.
[0069] Then, if Figure 1b As shown, if the user voice from user A is not input within a predetermined time period, the electronic device may transmit the user voice of "How is the weather today?" issued by user B to the external server. The external server may transmit the response sound "You just asked about the good weather today" to the user voice of user B to the electronic device by the same method as described above. The electronic device may provide the received response sound to user B. The electronic device may recognize the presence of user B and provide a response sound. If the presence of user B is not recognized, the electronic device may store the response sound in a memory, and may provide a response sound if the presence of user B is recognized later.
[0070] In addition, when the external server stores the user voice of user B and provides a response sound of "Added at 3 o'clock on December 17" to the electronic device, the external server can determine that the interaction with user A has ended. When it is determined that the interaction with user A has ended, the external server can transmit the response sound "You just asked whether the weather today is good" to the user voice of user B stored in the memory to the electronic device.
[0071] The training model provided by the above-mentioned external server can be, for example, a neural network-based model as a determination model based on artificial intelligence algorithm training. The trained determination model can be designed to simulate the human brain structure on a computer, and can also include a plurality of network nodes including weights and simulated human neural network neurons. The multiple network nodes can be connected to each other to simulate the synaptic activity of neurons transmitting and receiving signals through synapses. In addition, the trained determination model can include, for example, a neural network model or a deep learning model developed from a neural network model. In a deep learning model, a plurality of network nodes can be located at different depths (or layers) from each other, and data can be sent and received according to convolutional connections. Examples of trained determination models may include deep neural networks (DNNs), recursive neural networks (RNNs), and bidirectional recursive deep neural networks (BRDNNs), but are not limited thereto.
[0072] In addition, the electronic device may use a personal assistant program, which is an artificial intelligence-specific program (or artificial intelligence agent) to receive responses to user voices, such as the above-mentioned sounds and images. The personal assistant program may be executed by an existing general-purpose processor (such as a CPU) or a separate AI-specific processor (such as a GPU) as a dedicated processor for providing artificial intelligence (AI)-based services.
[0073] Specifically, when a predetermined user input (e.g., a user utterance corresponding to a text indicating an electronic device, etc.) is input or a button provided on the electronic device (e.g., a button for executing the artificial intelligence agent) is pressed, the artificial intelligence agent can be operated (or executed). The artificial intelligence agent can transmit the input user voice to an external server, provide a response sound to the user voice through a speaker based on information about the voice received from the external server, and provide a wizard screen including a response to the user voice based on information about the image received from the external server.
[0074] When a predetermined user input is detected on a screen or button provided on an electronic device (e.g., a button that executes the artificial intelligence agent), the artificial intelligence agent can be operated. In addition, the artificial intelligence agent may have been in an execution state before the predetermined user input is detected or the button provided on the electronic device is pressed. In this case, after the predetermined user input is detected or the button provided on the electronic device is pressed, the artificial intelligence agent of the electronic device can provide voice and images including a response to the user's voice. In addition, before the predetermined user input is detected or the button provided on the electronic device is pressed, the artificial intelligence agent may be in a standby state. The standby state is a state of detecting the receipt of a predefined user input so as to control the start of the operation of the artificial intelligence agent. When a predetermined user input is detected or a button provided on the electronic device is pressed when the artificial intelligence agent is in a standby state, the electronic device can operate the artificial intelligence agent and provide voice and images including a response to the user's voice.
[0075] According to another embodiment of the present disclosure, when the electronic device directly obtains information about voice and image including a response to the user's voice through an artificial intelligence model, the artificial intelligence agent can obtain information about voice and image by controlling the artificial intelligence model. The artificial intelligence agent can perform the above operations of the external server.
[0076] Figure 2 is a schematic diagram showing an electronic system for providing a response sound to a user's voice according to an embodiment. Figure 2 As shown, the electronic system may include an electronic device 100 and an external server 200 .
[0077] The electronic device 100 may store an artificial intelligence dedicated program. The artificial intelligence dedicated program may be implemented in various aspects.
[0078] First, regarding the artificial intelligence dedicated program according to the first aspect, the electronic device 100 can be used to receive the user voice and provide a response sound to the user voice. In this case, the electronic device 100 can transmit the input user voice to the external server 200, receive the response sound to the user voice from the external server 200, and provide the received response sound to the user.
[0079] The external server 200 may identify the user by the user voice received from the electronic device 100. For example, the external server 200 may identify the user by the voiceprint of the user voice. However, it is not limited thereto, and any method of identifying the user by the user voice may be used.
[0080] The external server 200 can determine the domain of the user voice. For example, when receiving the user voice of "What's the weather like today?", the external server 200 can recognize that the domain of the received user voice is the information request domain. In addition, when receiving the user voice of "Open the latest music", the external server 200 can recognize that the domain of the received user voice is the device control domain.
[0081] In addition, the external server 200 may determine whether the context of the received user voice is consistent with the context of the utterance history information. For example, if a user voice of "How is the weather today?" is received, and then a user voice of "How about tomorrow?" is received, the external server 200 may determine that the contexts are consistent with each other. In addition, if a user voice of "How is the weather today?" is received, and then a user voice of "What programs are on TV now?" is received, the external server 200 may determine that the contexts are inconsistent with each other.
[0082] The external server 200 may generate response information based on whether the recognized user, the domain of the received voice, and the context are consistent with each other. That is, information indicating whether the recognized user, the domain of the received voice, and the context are consistent with each other may be input into the artificial intelligence model stored in the external server 200 together with the user voice.
[0083] However, this is only one embodiment, and only the user's voice may be input into the artificial intelligence model. For example, the artificial intelligence model may include a first artificial intelligence sub-model that recognizes the user by the input user's voice, and a second artificial intelligence sub-model that generates response information by the user's voice.
[0084] In this case, the second artificial intelligence sub-model may not be able to determine whether the domain and context of the user voice are consistent with each other. However, the sample conversation pattern used in the training process of the second artificial intelligence sub-model may generally be a conversation pattern with a consistent domain and context. Therefore, when a user voice with a domain or context different from the utterance history information is input, the second artificial intelligence sub-model may process the input user voice separately or delay the processing of the user voice.
[0085] That is, when using an artificial intelligence model, the external server 200 may not specifically determine the domain and context of the user's voice. However, due to the influence of the sample conversation pattern used in the training process, the external server 200 may generate response information in which the domain and context of the user's voice are substantially reflected.
[0086] The external server 200 may transform the generated response information into a response sound and transmit the response sound to the electronic device 100 .
[0087] Regarding the artificial intelligence dedicated program according to the second aspect, the electronic device 100 can be used to receive a user voice, identify a user, and provide a response sound to the user voice. In this case, the electronic device 100 can identify the user who issued the input user voice, and transmit the input user voice and the identified user information to the external server 200. The electronic device 100 can receive a response sound to the user voice from the external server 200, and provide the received response sound to the user.
[0088] The external server 200 may generate response information by inputting the user voice and user information into the artificial intelligence algorithm. The external server 200 may manage the speech history information based on the user information. For example, when receiving the user voice of user A, the external server 200 may input the speech history information of user A and the user voice of user A into the artificial intelligence algorithm to generate response information, and when receiving the user voice of user B, the external server 200 may input the speech history information of user B and the user voice of user B into the artificial intelligence algorithm to generate response information.
[0089] The external server may transform the generated response information into a response sound and transmit the response sound to the electronic device 100 .
[0090] The artificial intelligence dedicated program according to the third aspect may be a program including an artificial intelligence model. In this case, the electronic device 100 may identify the user who issued the input user voice, and generate response information by inputting the input user voice and the identified user information into the artificial intelligence model. The electronic device 100 may transform the response information into a response sound, and output the response sound through a speaker. That is, the electronic device 100 may provide a response sound to the user voice without an external server 200.
[0091] Figure 3a is a block diagram for explaining the configuration of an electronic device according to an embodiment.
[0092] like Figure 3a As shown, the electronic device 100 may include a microphone 110 , a speaker 120 , and a processor 130 .
[0093] The electronic device 100 may be a device that receives a user voice and provides various interactions according to the received user voice. For example, the electronic device 100 may be a speaker, a laptop, a PC, a tablet computer, or a smart phone. However, it is not limited thereto, and the electronic device 100 may also be any device as long as it can receive a user voice and provide a response sound according to the user voice.
[0094] In addition, the electronic device 100 may be a device including a display instead of the speaker 120. In this case, the electronic device 100 may receive a user voice and interact through the display according to the received user voice. In addition, the electronic device 100 may be any device as long as it can receive a user voice and provide response information to the received user voice.
[0095] The microphone 110 is a component for receiving a user's voice or other sounds and converting them into audio data. The microphone 110 may be electrically connected to the processor 130 and receive the user's voice under the control of the processor 130.
[0096] The microphone 110 may include a plurality of sub-microphones. For example, the microphone 110 may include one sub-microphone each on the front, rear, right, and left portions of the electronic device 100. However, the electronic device 100 is not limited thereto, and may include only one microphone 110.
[0097] The speaker 120 is a component that outputs not only various audio data but also various alarms or voice messages. The speaker 120 may be electrically connected to the processor 130 and output a response sound under the control of the processor 130.
[0098] The speaker 120 may include a plurality of sub-speakers. For example, the speaker 120 may include one sub-speaker each at the left and right parts of the electronic device 100. However, the present invention is not limited thereto, and the electronic device 100 may also include only one speaker 120.
[0099] The processor 130 may generally control the operation of the electronic device 100 .
[0100] According to an embodiment, the processor 130 may be implemented by a digital signal processor (DSP), a microprocessor, or a time controller (TCON). However, it is not limited thereto, and the processor 130 may also include one or more of a central processing unit (CPU), a microcontroller unit (MCU), a microprocessing unit (MPU), a controller, an application processor (AP), a communication processor (CP), and an ARM processor, or may be defined as a corresponding term. In addition, the processor 130 may be implemented by a system on chip (SoC) or a large-scale integration (LSI) including a processing algorithm, or may be implemented in the form of a field programmable gate array (FPGA).
[0101] When a first user voice is input through the microphone 110 , the processor 130 may identify the user who utters the first user voice and provide, through the speaker 120 , a first response sound obtained by inputting the first user voice into an artificial intelligence model trained by an artificial intelligence algorithm.
[0102] The artificial intelligence model can be stored in the electronic device 100, and in this case, the processor 130 can input the first user voice into the artificial intelligence model to obtain a first response sound.
[0103] In addition, the artificial intelligence model can be stored in the external server 200, and in this case, the processor 130 can transmit the first user voice to the external server 200 and receive a first response sound obtained by inputting the first user voice from the external server 200 into the artificial intelligence model.
[0104] When a second user voice is input through the microphone 110, the processor 130 can identify the user who makes the second user voice. If the user who makes the first user voice is the same as the user who makes the second user voice, the processor 130 can provide a second response sound obtained by inputting the second user voice and speech history information into the artificial intelligence model through the speaker 120.
[0105] For example, the processor 130 may receive a second user voice issued by the user who issued the first user voice, and in this case, the processor 130 may provide a second response sound obtained by inputting not only the second user voice but also the speech history information into the artificial intelligence model. That is, the second response sound may be obtained by reflecting not only the currently input user voice but also all previously input user voices and response information according to the user voices.
[0106] The electronic device 100 may further include a camera, and the processor 130 may recognize the user based on at least one of an image captured by the camera or a user voice input through a microphone.
[0107] Specifically, the processor 130 may identify the user who uttered the first user voice by recognizing the face of the user included in the image within a time period in which the first user voice is input.
[0108] In addition, the processor 130 may identify the user who uttered the first user voice based on the user's mouth shape contained in the image within the time period when the first user voice was input.
[0109] For example, the processor 130 may capture an image taken by a camera in real time, and identify a user who changes his mouth shape among a plurality of users included in the image captured in real time during a time period when the first user voice is input, as a user who utters the first user voice.
[0110] If the mouth shape of the recognized user included in the image changes within a time period when the second user voice is input, the processor 130 may recognize that the user uttering the first user voice is the same as the user uttering the second user voice.
[0111] In addition, the processor 130 may also identify whether the users are the same through the speaker 120. For example, the speaker 120 may include a plurality of sub-speakers, and when a first user voice is input, the processor 130 may identify the user position that issued the first user voice by using the plurality of sub-speakers.
[0112] When the second user voice is input, the processor 130 may identify the position of the user uttering the second user voice by using a plurality of sub-speakers, and determine whether the user has changed by comparing with the previously identified user position.
[0113] In addition, the processor 130 can identify the user by the voiceprint of the user's voice. For example, the electronic device 100 may further include a memory electrically connected to the processor 130, and the processor 130 may perform a frequency analysis on each of the multiple user voices and store the frequency characteristics of each of the multiple user voices in the memory. Then, when the first user voice is input, the processor 130 may perform a frequency analysis on the first user voice and identify the user who issued the first user voice based on the information stored in the memory. The processor 130 may perform the same operation on the second user voice and determine whether the user is the same as the identified user.
[0114] The operation using the voiceprint may also be performed by the external server 200. In this case, the electronic device 100 may not perform the operation of identifying the user, and may transmit the input user voice to the external server 200. The external server 200 may identify the user who issued the received user voice by performing frequency analysis on the received user voice.
[0115] In addition, the processor 130 may not identify the user who issued the input user voice, but may classify gender, children / adults / elderly, and identify regions, etc. For example, when the first user voice is input, the processor 130 may identify that the user who issued the first user voice is an adult male who speaks the standard language. When the second user voice is input, the processor 130 may identify that the user who issued the second user voice is an adult female who speaks the standard language. In this case, the processor 130 may identify that the users are not the same.
[0116] Gender, classification of children / adults / elderly, area identification, etc. may also be performed by the external server 200. In this case, the electronic device 100 may not perform the operation of identifying the user, but transmit the input user voice to the external server 200. The external server 200 may use the received user voice to classify gender, children / adults / elderly, identify the area, etc., and may determine whether the users are the same.
[0117] In the above scheme, the processor 130 may store the input user voice and the response sound to the user voice in the memory as the speech history information within a predetermined time period from the input of the user voice. For example, when the user voice of "How is the weather tomorrow?" is input, the processor 130 may provide a response sound of "The weather will be good tomorrow" to the user voice, and store the interaction information in the memory as the speech history information within 10 minutes from the input of the user voice. When the same user inputs an additional user voice within 10 minutes from the input of the user voice, the processor 130 may provide an additional response sound obtained by inputting the additional user voice and the speech history information into the artificial intelligence model. In addition, when the same user inputs an additional user voice after 10 minutes from the input of the user voice, the processor 130 may provide a response sound obtained by inputting only the additional user voice into the artificial intelligence model without determining whether the user who issued the additional user voice is the same as the user who issued the initial user voice. That is, only when an additional user voice is input within a predetermined time period from when the user voice is input, the processor 130 may determine whether the user who uttered the additional user voice is the same as the user who uttered the initial user voice.
[0118] When an additional user voice is input within a predetermined time period from the input of the user voice, the processor 130 may change the starting point of the predetermined time period to the time point when the additional user voice is input. For example, when the first user voice is input at 6:00 p.m. and the second user voice is input at 6:05 p.m., which is within 10 minutes of the predetermined time period from 6:00 p.m., the processor 130 may store the interaction information as speech history information from 6:05 p.m. to 6:15 p.m. (10 minutes after the predetermined time period). The speech history information may include the first user voice, the first response sound to the first user voice, the second user voice, and the second response sound to the second user voice. That is, when the time period for storing the speech history information is extended by the user voices continuously emitted by the user, the processor 130 may maintain the speech history information stored in the memory until the extended time.
[0119] However, without limitation thereto, although the time period for storing the speech history information is extended by the user voice continuously uttered by the user, the speech history information may not be maintained to be stored in the memory until the extended time. For example, when the time period for storing the voice history information is extended by the user voice continuously uttered by the user, the processor 130 may store only the user voice and the response sound from the past time point before the predetermined time period from the current time point to the current time point as the speech history information. That is, the processor 130 may delete the user voice that has passed the predetermined time period from the speech time point and the response sound that has passed the predetermined time period from the sound provision time point from the speech history information in the memory.
[0120] When the electronic device 100 stores the artificial intelligence model, the memory may store the speech history information of each user in chronological order. For example, the memory may store the speech history information on January 1, 2017, the speech history information of user A on January 5, 2017, the speech history information of user B on January 4, 2017, and so on. The processor 130 may transmit the speech history information stored in the memory after a predetermined time period to the external server 200. If necessary, the processor 130 may receive the speech history information transmitted to the external server 200 from the external server 200. The processor 130 may extract keywords, etc. of the speech history information, and before transmitting the speech history information to the external server 200, store the extracted keywords in the memory, and may also transmit the speech history information to the external server 200. When the user later searches for past speech history information, the extracted keywords may be used.
[0121] For example, when a user issues a user voice saying "Which restaurant did we search for in Jeju Island 5 years ago?", the processor 130 can search for Jeju Island and restaurant as keywords from keywords 5 years ago, and receive corresponding speech history information from the external server 200. The processor 130 can provide the information required by the user from the speech history information received from the external server.
[0122] The electronic device 100 may further include a memory. When the user who issued the first user voice is different from the user who issued the second user voice, the processor 130 may store the second user voice in the memory, and when the user who issued the first user voice does not input a user voice for a predetermined time period or longer, provide a third response sound obtained by inputting the second user voice into the artificial intelligence model.
[0123] For example, when user B utters a second user voice within a predetermined time period from when user A utters a first user voice, the processor 130 may determine whether the users are the same, and when it is determined that the users are different, the processor 130 may store the second user voice of user B in the memory. That is, the processor 130 may delay providing a response sound to the second user voice of user B. When no additional user voice of user A is input within a predetermined time period from when user A utters the first user voice, the processor 130 may provide a response sound to the second user voice after a predetermined time period from when the user utters the first user voice. The response sound to the second user voice may be a response sound obtained by inputting the second user voice into an artificial intelligence model from which the speech history information of user A is deleted.
[0124] When a first user voice is input, the processor 130 may identify the first user who uttered the first user voice, and provide a first response sound obtained by inputting the first user voice into the artificial intelligence model through the speaker 120, and when a second user voice is input, the processor 130 may identify the second user who uttered the second user voice, and provide a third response sound obtained by inputting the second user voice into the artificial intelligence model and different from the first response sound through the speaker 120. That is, the processor 130 may process multiple user voices individually in real time, and set a state of providing processing results so that they can be distinguished from each other.
[0125] For example, the processor 130 may provide "The weather is good today" as a first response sound to the male voice "How's the weather today" of user A, and provide "No movies tonight" as a second response sound to the female voice "What movies are showing tonight?" of user B. The second response sound may be a response sound acquired based only on the user voice of user B without reflecting the speech history information of user A.
[0126] However, without limitation thereto, the processor 130 may provide the providing state of the response information to the user voice in any manner so as to be distinguishable from each other. For example, the electronic device 100 may further include a display electrically connected to the processor 130, and the processor 130 may display "The weather is good today" as a first response to the user A's "How is the weather today" through the display, and provide "No movies tonight" as a second response to the user B's "What movies are showing tonight?" through the speaker 120.
[0127] In addition, the processor 130 can display "The weather is good today" as a first response to user A's "How is the weather today", and display "There are no movies tonight" as a second response to user B's "What movies are showing tonight?", and can display the first response and the second response with different background screen colors so that the user can identify the response target.
[0128] When the first user inputs a first additional user voice, the processor 130 provides, through the speaker 120, a first additional response sound obtained by inputting the first additional user voice and first speech history information corresponding to the first user voice into the artificial intelligence model, and when the second user inputs a second additional user voice, the processor provides, through the speaker, a second additional response sound different from the first additional response sound obtained by inputting the second additional user voice and second speech history information corresponding to the second user voice into the artificial intelligence model.
[0129] The processor 130 may display a first UI corresponding to the first user through the display when the first additional response sound is provided, and display a second UI corresponding to the second user through the display when the second additional response sound is provided.
[0130] For example, the processor 130 may display an image of the first user through the display when the first additional response sound is provided, and display an image of the second user through the display when the second additional response sound is provided.
[0131] In the case of providing a response sound for each user by using the external server 200 storing an artificial intelligence algorithm, the processor 130 may transmit the user voice together with the recognized user information to the external server 200. The external server 200 may generate speech history information for each user based on the received user information, and transmit the response sound obtained by inputting the user voice and the corresponding speech history information into the artificial intelligence model to the electronic device 100. In addition to transmitting the response sound, the external server 200 may also transmit the user information of the target of the response sound to the electronic device 100.
[0132] The electronic device 100 may provide a response sound based on the received user information to be distinguished from response sounds of other users.
[0133] When the user who utters the first user voice is different from the user who utters the second user voice, the processor 130 can obtain a first domain corresponding to the first user voice and a second domain corresponding to the second user voice, and when the first domain is the same as the second domain, the processor 130 can provide through the speaker 120 a second response sound obtained by inputting the second user voice and speech history information into the artificial intelligence model.
[0134] For example, the processor 130 may provide "It will rain this afternoon" as a first response voice to the first user voice "What is the weather like today?", and when the second user voice of user B "Do I need to bring an umbrella?" is input, the processor 130 may determine whether the users are the same. When it is determined that the users are different, the processor 130 may obtain that the domain of the first user voice and the domain of the second user voice are both information request domains. When it is determined that the domain of the first user voice and the domain of the second user voice are the same, the processor 130 may provide a second response voice of "Yes, bring an umbrella today", which is obtained by inputting the second user voice and the speech history information into the artificial intelligence model.
[0135] In the above example, when user B issues a second user voice of "turn on the music", the processor 130 may determine whether the users are the same. When it is determined that the users are different, the processor 130 may obtain that the domain of the first user voice is the information request domain, and the domain of the second user voice is the device control domain. When it is determined that the domain of the first user voice and the domain of the second user voice are different, the processor 130 may delay the processing of the second user voice. In addition, the processor 130 may provide a second response sound "turn on the music" obtained by inputting only the second user voice into the artificial intelligence model, which is different from the first response sound.
[0136] In addition, the processor 130 may further consider the context in addition to the domain. For example, although the domain of the first user's voice is the same as the domain of the second user's voice, if the contexts of the two users are different from each other, the processor 130 may delay processing of the second user's voice. In addition, the processor 130 may provide a second response sound obtained by inputting only the second user's voice into the artificial intelligence model and different from the first response sound.
[0137] When a second user voice is input within a predetermined time period from when the first user voice is input, the user who uttered the first user voice is the same as the user who uttered the second user voice, and the first domain corresponding to the first user voice is different from the second domain corresponding to the second user voice, the processor 130 may store the first user voice in the memory without providing the first response sound, and provide a third response sound obtained by inputting the second user voice into the artificial intelligence model through the speaker. The first predetermined time period may be shorter than the time period for maintaining the storage of the above-mentioned speech history information.
[0138] For example, when the first user voice of user A "turn on the TV" is input, and then the second user voice of the same user A "Where is the appointment place today?" is input within 1 second, the domain of the second user voice is different from the domain of the first user voice, the processor 130 can store the first user voice in the memory and provide "In front of the town hall" as a third response sound to the second user voice.
[0139] When the user does not input the user voice corresponding to the second domain within the second predetermined time period or longer, the processor 130 may provide a first response sound obtained by inputting the first user voice stored in the memory into the artificial intelligence model through the speaker 120. The second predetermined time period may be the same as the time period for maintaining the storage of the above-mentioned speech history information and longer than the first predetermined time period. However, without limitation thereto, the second predetermined time period may be unrelated to the time period for maintaining the storage of the above-mentioned speech history information and longer than the first predetermined time period. In addition, in the above example, the processor 130 may determine whether the context of the second user voice is the same as the context of the first user voice. When the context is different, the processor 130 may store the first user voice in the memory without providing the first response sound, and may provide a third response sound obtained by inputting the second user voice into the artificial intelligence model through the speaker.
[0140] The artificial intelligence algorithm stored in the electronic device 100 or the external server 200 may include at least one of a first artificial intelligence algorithm for acquiring the domain of the user's voice, or a second artificial intelligence algorithm for determining whether the context between the user's voices is the same. In this case, it may be determined whether the domain and the context are the same before acquiring the response information.
[0141] In addition, the artificial intelligence algorithm stored in the electronic device 100 or the external server 200 may not include a separate artificial intelligence algorithm for acquiring the domain of the user voice or determining whether the context between the user voices is the same. In this case, the artificial intelligence algorithm may provide a response sound acquired by reflecting at least one domain or context.
[0142] Figure 3b 1 is a block diagram showing a specific configuration of an electronic device according to an embodiment. The electronic device 100 may include a microphone 110, a speaker 120, and a processor 130. Figure 3b , the electronic device 100 may further include a communicator 140 , a memory 145 , a display 150 , a user interface 155 , a camera 160 , an audio processor 170 , a video processor 180 , and a button 190 . Figure 3b As shown in Figure 3a Detailed description of repeated components shown in FIG. 1 will be omitted.
[0143] The processor 130 generally controls the operation of the electronic device 100 using various programs stored in the memory 145 .
[0144] Specifically, the processor 130 includes a RAM 131 , a ROM 132 , a main CPU 133 , a graphic processor 134 , first to nth interfaces 135 - 1 to 135 - n , and a bus 136 .
[0145] The RAM 131 , the ROM 132 , the main CPU 133 , the graphic processor 134 , and the first to nth interfaces 135 - 1 to 135 - n may be connected to one another through a bus 136 .
[0146] The first to nth interfaces 135 - 1 to 135 - n are connected to the above-mentioned components, and one of the interfaces may be a network interface connected to an external device through a network.
[0147] The main CPU 133 may perform booting by accessing the memory using the O / S stored in the memory 145. The main CPU 133 may perform various operations by using various programs stored in the memory 145, etc.
[0148] ROM 132 may store a set of instructions for system startup. If a power-on instruction is input to supply power, main CPU 133 copies the O / S stored in memory 145 to RAM 131, and executes the O / S to start the system according to the instructions stored in ROM 132. If the startup is completed, main CPU 133 copies various application programs stored in memory 145 to RAM 131, and performs various operations by executing the application programs copied to RAM 131.
[0149] The graphic processor 134 generates a screen including various objects such as icons, images, texts, etc. by using an operation unit (not shown) and a rendering unit (not shown). The operation unit (not shown) can calculate attribute values such as coordinate values, shapes, sizes, colors, etc. of each object to be displayed according to the layout of the screen using the received control command. The rendering unit (not shown) can generate screens including various layouts of objects based on the attribute values calculated by the operation unit (not shown). The screen generated in the rendering unit (not shown) can be displayed in the display area of the display 150.
[0150] The operations of the processor 130 described above may be performed by a program stored in the memory 145 .
[0151] The memory 145 can store various data, such as an operating system (O / S) software module for operating the electronic device 100, an artificial intelligence module, an artificial intelligence dedicated program module, a speech history module, a user identification module, a domain identification module, and a context identification module, etc.
[0152] The communicator 140 is a component that performs communication with various types of external devices according to various types of communication systems. The communicator 140 includes a Wi-Fi chip 141, a Bluetooth chip 142, a wireless communication chip 143, and an NFC chip 144. The processor 130 performs communication with various external devices using the communicator 140.
[0153] The Wi-Fi chip 141 and the Bluetooth chip 142 perform communications in the Wi-Fi system and the Bluetooth system, respectively. When using the Wi-Fi chip 141 or the Bluetooth chip 142, various connection information (such as SSID or session key) can be transmitted or received first, and the communication connection can be permitted using this information, and then various information can be transmitted and received. The wireless communication chip 143 refers to a chip that communicates based on multiple communication standards such as IEEE, Zigbee, third generation (3G), third generation partnership project (3GPP), long term evolution (LTE), etc. NFC chip 144 refers to a chip that uses a 13.56MHz band in a near field communication (NFC) system in a frequency band of 135kHz, 13.56MHz, 433MHz, 860 to 960MHz, 2.45GHz, etc.
[0154] In addition, the communicator 140 may further include a wired communication interface such as HDMI, MHL, USB, DP, Thunderbolt, RGB, D-SUB, DVI, etc. The processor 130 may be connected to the external server 200 through the wired communication interface of the communicator 140 .
[0155] The display 150 may be implemented by various types of displays, such as a liquid crystal display (LCD), an organic light emitting diode (OLED) display, a plasma display panel (PDP), etc. The display 150 may further include a driving circuit or a backlight unit, which may be implemented in the form of an a-si TFT, a low temperature polycrystalline silicon (LTPS) TFT, or an organic TFT (OTFT). The display 150 may be implemented as a touch screen by combining with a touch detector.
[0156] The user interface 155 receives various user interactions. The user interface 155 can be implemented in various forms according to the implementation examples of the electronic device 100. For example, the user interface 155 can be a button 100 provided on the electronic device, a microphone for receiving a user's voice, or a camera for detecting a user's motion. In addition, when the electronic device 100 is implemented as a touch-based terminal device, the user interface 155 can be implemented in the form of a touch screen that forms a layer structure with a touch pad. In this case, the user interface 155 can be used as the above-mentioned display 150.
[0157] The audio processor 170 is a component that performs audio data processing. The audio processor 170 may perform various processes on the audio data, such as decoding, amplification, or noise filtering.
[0158] The video processor 180 is a component that performs processing on video data. The video processor 180 may perform various processing on video data, such as decoding, scaling, noise filtering, frame rate conversion, or resolution conversion.
[0159] The button 190 may be various types of buttons such as a mechanical button, a touch pad, or a wheel formed in any area of the front part, the side part, or the rear part of the appearance of the main body of the electronic device 100 .
[0160] Through the above method, even if the user changes, the processor 130 can provide response information with the maintained context.
[0161] Hereinafter, the operation of the electronic device 100 will be described in detail with reference to the accompanying drawings.
[0162] Figure 4a and Figure 4b is a schematic diagram for explaining speech delay processing of a user among a plurality of users according to an embodiment.
[0163] Reference Figure 4a When the first user voice of user A "add a college party in Jiangnan to the calendar" is input, the processor 130 can recognize user A and provide a first response sound "What date / time?" to the first user voice.
[0164] When the second user voice of user B "order Korean beef pizza" is input, the processor 130 may recognize user B and store the second user voice in the memory 145 because the recognized user B is different from user A. The processor 130 may store not only the second user voice in the memory 145 but also information about user B who issued the second user voice in the memory 145.
[0165] When a third user voice of user A "July 7" is input, the processor 130 can recognize user A and provide a second response sound "Added on July 17" to the third user voice because the user is the same as user A who uttered the first user voice.
[0166] Reference Figure 4b When it is determined that the interaction with user A has ended, the processor 130 may provide a third response sound to the second user's voice, "Sorry, I failed to respond because I had a conversation task with my father yesterday. I put the pizza you wanted on the shopping list, how much do you want to order?" At this time, the processor 130 may provide the third response sound after detecting that the second user is nearby.
[0167] If user A is not detected or user A does not input a user voice within a predetermined time period, the processor 130 may determine that the interaction with user A has ended.
[0168] Later, when the fourth user voice of user B "I see, it's okay, order three copies" is input, the processor 130 can recognize user B and provide a fourth response sound "Yes, it's ordered" to the fourth user voice because the user is the same as user B who made the second user voice.
[0169] Figure 5a to Figure 5c is a schematic diagram for explaining a method for synchronously processing multiple user voices in real time according to an embodiment.
[0170] Reference Figure 5a , when the first user voice of user A "When is the wedding?" is input, the processor 130 can recognize user A and provide a first response sound "July 7" to the first user voice.
[0171] Then, when the second user voice of user B "How's the weather today?" is input, the processor 130 can identify user B and provide a second response sound "Today's weather is cloudy". Because the identified user B is different from user A, only the second user voice is considered, and the first speech history information including the first user voice and the first response sound is not considered.
[0172] At this time, the processor 130 may provide the second response sound in a manner different from the first response sound. For example, the processor 130 may provide the first response sound in a male voice and provide the second response sound in a female voice.
[0173] In addition, when the identified user is a user pre-stored in the memory 145, the processor 130 may provide a response sound including the user name, ID, etc. For example, if user A is pre-stored in the memory 145 with an ID of "Park" and user B is pre-stored in the memory 145 with an ID of "Kim", the processor 130 may provide a first response sound of "Park, July 7" and a second response sound of "Kim, it's cloudy today".
[0174] In addition, refer to Figure 5b and 5c , the processor 130 may control the display 150 to display different colors according to the provided target of the response sound. In addition, the electronic device 100 may include an LED, and control the LED to emit light of different colors according to the provided target of the response sound. In addition, the electronic device 100 may include a plurality of LEDs, and the processor 130 may control the LEDs so that one of the plurality of LEDs turns on according to the provided target of the response sound.
[0175] When a third user voice of user A "changed to July 14" is input, the processor 130 can identify user A based on the first speech history information, and provide a third response sound "changed" to the third user voice because the user is the same as user A who made the first user voice.
[0176] In the above text, Figure 4a and 4b An embodiment is shown in which only one user's voice is processed despite multiple user's voices. Figures 5a to 5c An embodiment in which each input of multiple user voices is processed separately is shown. The electronic device 100 may provide Figure 4a and 4b The individual modes shown and Figures 5a to 5c As shown in the public mode, the processor 130 can operate in the personal mode or the public mode according to the user's mode selection.
[0177] Figure 6 is a schematic diagram for explaining collective interaction of multiple users according to an embodiment.
[0178] Reference Figure 6 When the first user voice of user A "add a college party in Jiangnan to the calendar" is input, the processor 130 can recognize user A and provide a first response sound "What date / time?" to the first user voice.
[0179] When the second user voice of user B "The college reunion is held on Monday, July 7" is input, the processor 130 can identify user B because although the identified user B is different from user A, the context of the first user voice is the same as the context of the second user voice, so the processor 130 can provide a second response voice "Add to July 7" by considering the second user voice and the first speech history information containing the first user voice and the first response voice.
[0180] If it is unclear whether the context of the first user's voice is the same as the context of the second user's voice, the processor 130 may provide a response sound to inquire the user. For example, if it is unclear whether the context of the first user's voice is the same as the context of the second user's voice, the processor 130 may provide a third response sound of "Is the college party on Monday, July 7 the college party in Gangnam?"
[0181] In executing Figure 6 During the collective interaction shown, when the context of multiple user voices changes, the processor 130 can operate in the public mode. In addition, during the operation in the public mode, when the contexts between the user voices of multiple users coincide with each other, the processor 130 can perform collective interaction.
[0182] Figure 71 is a schematic diagram for explaining an operation when a plurality of user voices of the same user respectively corresponding to a plurality of domains are input according to an embodiment.
[0183] Reference Figure 7 , when the first user voice of user A "when watching TV in the big room, turn off the lights in other rooms and cool and dim this room" is input, and then the second user voice of "add a wedding schedule next weekend" is immediately input, the processor 130 can identify the user A who issued the first user voice and the second user voice, and can provide a first response sound "what day of the week, what time?" to the second user voice input later. At this time, the processor 130 can store the first user voice in the memory 145. In addition, the processor 130 can not only store the first user voice in the memory 145, but also store the information of the user A who issued the first user voice in the memory 145.
[0184] When the third user voice of user A "Saturday, 12 o'clock" is input, the processor 130 can recognize user A and provide a second response voice "OK, add the wedding schedule" to the third user voice based on the first speech history information containing the second user voice and the first response voice because the user is the same as user A who spoke for the first time.
[0185] The processor 130 can determine that the interaction with the user has ended when the specific operation according to the user voice is completed. In the above example, the processor 130 can determine that the first interaction with user A has ended when the wedding schedule is added. However, it is not limited to this. If no user is detected within a predetermined time period or longer or the user voice is not input from the same user, the processor 130 can also determine that the interaction with the user has ended. In addition, the processor 130 can also determine that the interaction with the user has ended according to the user's end command.
[0186] When it is determined that the interaction with the user has ended, the processor 130 can obtain the user voice stored in the memory 145 and start a new interaction. In the above example, the processor 130 can obtain the first user voice stored in the memory 145 and provide a third response voice to the first user voice "Do you want to turn off the lights in the living room and corridor as previously requested?"
[0187] At this time, if the user who issued the user voice stored in the memory 145 is detected, the processor 130 may start a new interaction. In the above example, although the first user voice stored in the memory 145 is obtained, if the user A who issued the first user voice is not detected, the processor 130 may not start a new interaction.
[0188] When a fourth user voice of user A “turn off the light in the living room and turn on the light in the corridor” is input, the processor 130 may provide a fourth response sound “OK” to the fourth user voice.
[0189] Figure 8a and 8b is a schematic diagram for explaining a method of identifying a user who utters a user voice according to an embodiment.
[0190] Reference Figure 8a When the user voice is input, the processor 130 can recognize the user from the image 810 captured by the camera 160. In addition, when the user voice is input, the processor 130 can recognize the user who is changing the mouth shape from the image 810 captured by the camera 160 as the user who issued the user voice.
[0191] In addition, refer to Figure 8b , the speaker 110 may include a plurality of sub-speakers 110-1, 110-2, 110-3, and 110-4 installed to be spaced apart from each other, and the processor 130 may estimate a first position where a user voice is emitted through the plurality of sub-speakers 110-1, 110-2, 110-3, and 110-4. When an additional user voice is input, the processor 130 may estimate a second position where the additional user voice is emitted, and if the second position is within a predetermined distance of the first position, the user is identified as the same user.
[0192] Figure 9a and 9b is a schematic diagram for explaining additional training of an artificial intelligence model according to an embodiment.
[0193] As described above, the artificial intelligence model stored in the external server 200 or the electronic device 100 can be trained in advance by using a sample conversation pattern, etc. Hereinafter, the artificial intelligence model is retrained based on the interaction with the user. Retraining refers to updating the artificial intelligence model trained with the sample conversation pattern by additionally training the artificial intelligence model based on the interaction with the user.
[0194] refer to Figure 9a When the first user voice of user A "What's on TV now?" is input, the processor 130 may provide a first response sound "9 o'clock news" to the first user voice.
[0195] When the second user voice of user A "No movies?" is input, the processor 130 can perform retraining on the artificial intelligence model based on the first user voice, the first response sound, and the second user voice.
[0196] For example, the retrained AI model may be an AI model that is obtained by reflecting the user's preference for movies.
[0197] Figure 9b The assumptions in Figure 9a Same as in. Figure 9a is a schematic diagram showing the use of an artificial intelligence model before retraining, Figure 9b A schematic diagram showing the use of a retrained artificial intelligence model.
[0198] Reference Figure 9b When the retrained artificial intelligence model is used and the first user voice of user A "What's playing on TV now?" is input, the processor 130 can provide a second response sound to the first user voice "There are no movies, but a TV series is playing."
[0199] exist Figure 9a and Figure 9b Here, for the convenience of description, the artificial intelligence model stored in the electronic device 100 is described, but the above-mentioned retraining method can also be applied to the case where the artificial intelligence model is stored in the external server 200.
[0200] Fig.10 is a flowchart for explaining the operation of an electronic device storing an artificial intelligence model according to an embodiment.
[0201] The processor 130 receives the user's voice (S1010). The processor 130 detects the user (S1020). The processor 130 determines whether the user is the same as the previous user (S1030), and if the user is the same user, processes the user's voice based on the speech history information (S1050).
[0202] If the user is not the same user, the processor determines whether the domain is the same as the previous domain (S1040), and if the domain is the same, the processor 130 processes the user's voice according to the speech history information (S1050). If the domain is not the same (S1060), the processor 130 processes the user's voice without considering the speech history information.
[0203] The processor 130 provides the response sound to the voice processing (S1070).
[0204] Fig.11 is a timing diagram for explaining operations of an electronic device and an external server storing an artificial intelligence model according to an embodiment.
[0205] The electronic device 100 receives the user's voice (S1110) and detects the user (S1120). The electronic device 100 transmits the user information and the user's voice to the external server 200 (S1130).
[0206] The external server 200 generates response information corresponding to the user's voice based on the user information (S1140) and transmits the response information to the electronic device 100 (S1150).
[0207] The electronic device 100 provides a response sound (S1160).
[0208] Fig.12 13 is a block diagram for explaining a configuration of an external server 1300 according to an embodiment, which is used to train and use an artificial intelligence model to respond to a user's request.
[0209] Reference Fig.12 , the external server 1300 may include at least one of a learning unit 1310 or a response unit 1320 . Fig.12 The external server 1300 may correspond to Figure 2 The external server 200.
[0210] The learning unit 1310 may generate or train an artificial intelligence model having a criterion for providing a response to the user's voice by using the learning data. The learning unit 1310 may generate a determination model having a determination criterion using the collected learning data.
[0211] For example, the learning unit 1310 can perform training by using the user's voice as learning data to obtain information about the voice and image containing a response to the user's voice. In addition, the learning unit 1310 can use the user's voice and the state information of the electronic device as learning data to generate, train or update an artificial intelligence model to provide information about the voice and image containing a response to the user's voice.
[0212] The response unit 1320 may use predetermined data as input data of a trained artificial intelligence model to acquire information of voice and image including a response to a predetermined user voice.
[0213] For example, the response unit 1320 can obtain (or predict or infer) information of speech and images including a response to the user's voice by using the user's voice and the state information of the electronic device as input data of the trained artificial intelligence model.
[0214] In an embodiment of the present disclosure, the learning unit 1310 and the response unit 1320 may be included in the external server 1300, but this is only one embodiment, and these units may also be installed in the electronic device 100. Specifically, at least a portion of the learning unit 1310 and at least a portion of the response unit 1320 may be implemented as a software module or manufactured in the form of at least one hardware chip and installed on the electronic device 100. For example, at least one of the learning unit 1310 or the response unit 1320 may be manufactured in the form of a dedicated hardware chip for artificial intelligence (AI), and may be manufactured as part of a conventional general-purpose processor (such as a CPU or an application processor) or a graphics-specific processor (such as a GPU), and installed on the above-mentioned various electronic devices. The dedicated hardware chip for artificial intelligence is a dedicated processor that specializes in probability calculations, which can quickly process computing operations in the field of artificial intelligence, such as machine learning, and has higher parallel processing performance than conventional general-purpose processors. If the learning unit 1310 and the response unit 1320 are implemented as software modules (or program modules containing instructions), the software modules may be stored in a non-transitory computer-readable medium. In this case, the software module may be provided by an operating system (O / S) or by a predetermined application. Furthermore, a part of the software module may be provided by an operating system, and the other part may be provided by a predetermined application.
[0215] In this case, the learning unit 1310 and the response unit 1320 may be installed on one electronic device or may be installed on separate electronic devices respectively. For example, one of the learning unit 1310 and the response unit 1320 may be included in the electronic device 100, and the other may be included in an external server. In addition, the learning unit 1310 and the response unit 1320 may be connected in a wired or wireless manner so that the learning unit 1310 can provide the constructed model information to the response unit 1320, and the data input to the response unit 1320 can be provided to the learning unit 1310 as additional learning data.
[0216] Fig.13 is a block diagram showing the learning unit 1300 according to an embodiment.
[0217] Reference Fig.13 According to the embodiment, the learning unit 1310 may include a learning data acquisition unit 1310-1 and a model learning unit 1310-4. In addition, the learning unit 1310 may further selectively include at least one of a learning data preprocessing unit 1310-2, a learning data selection unit 1310-3, or a model evaluation unit 1310-5.
[0218] The learning data acquisition unit 1310-1 can acquire the learning data required for the artificial intelligence model to obtain the response to the user's voice. In an embodiment of the present disclosure, the learning data acquisition unit 1310-1 can obtain the user's voice as learning data. In addition, the learning data acquisition unit 1310-1 can obtain the information required to obtain a specific response to the user's voice (for example, the status information of the electronic device) as learning data. The learning data can be data collected or tested by the learning unit 1310 or the manufacturer of the learning unit 1310.
[0219] The model learning unit 1310-4 can use the learning data to train the artificial intelligence model so that it has a criterion for obtaining a response to the user's voice. For example, the model learning unit 1310-4 can use at least a portion of the learning data as a criterion for obtaining a response to the user's voice to train the artificial intelligence model through supervised learning. In addition, the model learning unit 1310-4 can, for example, train the artificial intelligence model through unsupervised learning, using the learning data for self-training without special supervision to find out the criteria for providing a response. In addition, the model learning unit 1310-4 can, for example, train the artificial intelligence model through reinforcement learning using feedback on whether the response result provided according to the training is accurate. In addition, the model learning unit 1310-4 can, for example, use a learning algorithm including error back propagation or gradient descent to train the artificial intelligence model.
[0220] The model learning unit 1310-4 can train selection criteria using input data, the selection criteria being information about which learning data is used to provide speech and images containing responses to user speech.
[0221] If there are more than one pre-built artificial intelligence models, then the model learning unit 1310-4 can determine the artificial intelligence model with basic learning data that is highly correlated with the input learning data as the artificial intelligence model to be trained. In this case, for each type of data, the basic learning data can be classified in advance, and for each type of data, an artificial intelligence model can be built in advance. For example, the basic learning data can be classified in advance based on different criteria (such as the learning data generation area, the learning data generation time, the learning data size, the learning data type, the creator of the learning data, the type of object in the learning data, etc.).
[0222] When training the artificial intelligence model, the model learning unit 1310-4 can store the trained artificial intelligence model. In this case, the model learning unit 1310-4 can store the trained artificial intelligence model in the memory of the external server 1300. In addition, the model learning unit 1310-4 can store the trained artificial intelligence model in the memory of a server or electronic device connected to the external server 1300 via a wired or wireless network.
[0223] The learning unit 1310 may further include a learning data preprocessing unit 1310-2 and a learning data selection unit 1310-3 to improve the response result of the artificial intelligence model or save resources or time required to provide the artificial intelligence model.
[0224] The learning data preprocessing unit 1310-2 may preprocess the acquired data so that the acquired data is used for learning to obtain information including a response to the user's voice. The learning data preprocessing unit 1310-2 may process the acquired data in a predetermined format so that the acquired data is used for learning to obtain information including a response to the user's voice. For example, when the artificial intelligence model provides a response, the learning data preprocessing unit 1310-2 may delete unnecessary text (e.g., adverbs, exclamation marks, etc.) from the input user's voice.
[0225] The learning data selection unit 1310-3 can select the data required for learning from the data acquired by the learning data acquisition unit 1310-1 or from the data preprocessed by the learning data preprocessing unit 1310-2. The selected learning data can be provided to the model learning unit 1310-4. The learning data selection unit 1310-3 can select the learning data required for learning from the acquired or preprocessed data according to a predetermined selection criterion. In addition, the learning data selection unit 1310-3 selects the learning data according to the predetermined selection criterion based on the learning performed by the model learning unit 1310-4.
[0226] The learning unit 1310 may also include a model evaluation unit 1310-5 to improve the response results of the artificial intelligence model.
[0227] The model evaluation unit 1310-5 may input the evaluation data into the artificial intelligence model, and if the response result output by the evaluation data does not meet the predetermined criteria, the model learning unit 1310-4 may be retrained. In this case, the evaluation data may be predefined data for evaluating the artificial intelligence model.
[0228] For example, if the number or ratio of inaccurate evaluation data in the response results of the trained artificial intelligence model to the evaluation data exceeds a predetermined threshold, the model evaluation unit 1310-5 can be evaluated as not meeting the predetermined criteria.
[0229] If the number of trained artificial intelligence models is greater than one, the model evaluation unit 1310-5 can evaluate whether each trained artificial intelligence model meets the predetermined criteria, and determine the model that meets the predetermined criteria as the final artificial intelligence model. In this case, if the number of models that meet the predetermined criteria exceeds one, the model evaluation unit 1310-5 can pre-set one or a predetermined number of models as the final artificial intelligence model in order of high evaluation level.
[0230] Fig.14 is a block diagram illustrating a response unit 1320 according to an embodiment.
[0231] Reference Fig.14 , the responding unit 1320 according to the embodiment may include an input data acquiring unit 1320 - 1 and a response result providing unit 1320 - 4 .
[0232] In addition, the response unit 1320 may further selectively include at least one of an input data preprocessing unit 1320 - 2 , an input data selecting unit 1320 - 3 , or a model updating unit 1320 - 5 .
[0233] The input data acquisition unit 1320-1 can acquire learning data required for acquiring a response to the user's voice. The response result providing unit 1320-4 can acquire information including voice and image of the response to the user's voice by applying the input data acquired by the input data acquisition unit 1320-1 to the artificial intelligence model trained by the input value.
[0234] The response result providing unit 1320-4 can obtain the response result by applying the data selected by the input data preprocessing unit 1320-2 or the input data selecting unit 1320-3 to the artificial intelligence model trained by the input value. The response result can be determined by the artificial intelligence model.
[0235] In an embodiment, the response result providing unit 1320-4 may obtain information including voice and image of a response to the user voice by applying the user voice obtained by the input data obtaining unit 1320-1 and the electronic device to a trained artificial intelligence model.
[0236] The response unit 1320 may further include an input data preprocessing unit 1320-2 and an input data selection unit 1320-3 to improve the response result of the artificial intelligence model or save resources or time required to provide the response result.
[0237] The input data preprocessing unit 1320-2 can preprocess the acquired data so that the acquired data can be used to obtain a response to the user's voice. The input data preprocessing unit 1320-2 can process the acquired data in a predetermined format so that the response result providing unit 1320-4 can use the acquired data to obtain a response to the user's voice.
[0238] The input data selection unit 1320-3 can select data required for providing a response from the data acquired by the input data acquisition unit 1320-1 or from the data preprocessed by the input data preprocessing unit 1320-2. The selected data can be provided to the response result providing unit 1320-4. The input data selection unit 1320-3 can select part or all of the acquired or preprocessed data according to a predetermined selection criterion for providing a response. In addition, the input data selection unit 1320-3 can select data according to a predetermined selection criterion through training of the model learning unit 1310-4.
[0239] The model updating unit 1320-5 may control updating of the artificial intelligence model based on the evaluation of the response result provided by the response result providing unit 1320-4. For example, the model updating unit 1320-5 may request the model learning unit 1310-4 to perform additional training or update on the artificial intelligence model by providing the response result provided by the response result providing unit 1320-4 to the model learning unit 1310-4.
[0240] Fig.15 is a schematic diagram showing an example in which the electronic device 100 and the external server S are connected to each other for training and recognition data according to an embodiment.
[0241] Reference Fig.15 , the external server S can train the criteria for acquiring information including a response to the user's voice, and the electronic device 100 can provide a response to the user's voice with voice and image based on the learning result of the server S.
[0242] In this case, the model learning unit 1310-4 of server S can execute Fig.13 The function of the learning unit 1310 shown in FIG. 1 is that the model learning unit 1310-4 of the server S can train the criteria for which text information or state information of the electronic device will be used to obtain a response to the user's voice, or how to obtain a response to the user's voice by using the above information.
[0243] In addition, the response result providing unit 1320-4 of the electronic device 100 can obtain a response to the user's voice by applying the data selected by the input data selecting unit 1320-3 to the artificial intelligence model generated by the server S. In addition, the response result providing unit 1320-4 of the electronic device 100 can receive the artificial intelligence model generated by the server S from the server S, and obtain a response to the user's voice by using the received artificial intelligence model.
[0244] Fig.16 is a flowchart for explaining a control method of an electronic device according to an embodiment.
[0245] When a first user voice is input, the user who issued the first user voice is identified (S1610). A first response sound obtained by inputting the first user voice into an artificial intelligence model trained using an artificial intelligence algorithm is provided (S1620). When a second user voice is input, the user who issued the second user voice is identified (S1630). When the user who issued the first user voice is the same as the user who issued the second user voice, a second response sound obtained by inputting the second user voice and speech history information into the artificial intelligence model is provided (S1640).
[0246] The control method may further include storing the second user voice based on that the user who uttered the first user voice is different from the user who uttered the second user voice, and providing a third response sound obtained by inputting the second user voice into the artificial intelligence model based on that the user who uttered the first user voice has not input a user voice for a predetermined time period or longer.
[0247] The step S1610 of identifying the user who uttered the first user voice may include, based on the input first user voice, identifying the first user who uttered the first user voice. The step S1620 of providing a first response sound may include providing a first response sound obtained by inputting the first user voice into the artificial intelligence model. The step S1630 of identifying the user who uttered the second user voice may include identifying the second user who uttered the second user voice. And the control method may further include providing a third response sound obtained by inputting the second user voice into the artificial intelligence model, which is different from the first response sound.
[0248] The control method may further include: based on the first user inputting a first additional user voice, providing a first additional response sound obtained by inputting the first additional user voice and first speech history information corresponding to the first user voice into an artificial intelligence model; and based on the second user inputting a second additional user voice, providing a second additional response sound different from the first additional response sound obtained by inputting the second additional user voice and second speech history information corresponding to the second user voice into the artificial intelligence model.
[0249] Providing the first additional response sound may include, when providing the first additional response sound, displaying a first UI corresponding to the first user. Providing a second additional response sound different from the first additional response sound may include, when providing the second additional response sound, displaying a second UI corresponding to the second user.
[0250] The method may further include obtaining a first domain corresponding to the first user voice and a second domain corresponding to the second user voice based on that the user who utters the first user voice is different from the user who utters the second user voice, and providing a second response sound obtained by inputting the second user voice and speech history information into an artificial intelligence model based on that the first domain is the same as the second domain.
[0251] In this control method, when a second user voice is input within a first predetermined time period from the time when the first user voice is input, the user who uttered the first user voice is the same as the user who uttered the second user voice, and the first domain corresponding to the first user voice is different from the second domain corresponding to the second user voice, the first user voice can be stored in the memory without providing a first response sound, and a third response sound obtained by inputting the second user voice into the artificial intelligence model can be provided.
[0252] The method may further include, when the user does not input a user voice corresponding to the second domain within a second predetermined time period or longer, providing a first response sound obtained by inputting the first user voice into the artificial intelligence model.
[0253] Steps S1610 and S1630 of recognizing the user may include recognizing the user based on at least one of a captured image or an input user voice.
[0254] The step S1610 of identifying the user who uttered the first user voice may include identifying the user who uttered the first user voice based on the user's mouth shape contained in the image during the time period when the first user voice was input. The step S1630 of identifying the user who uttered the second user voice may include identifying that the user who uttered the second user voice is the same as the user who uttered the first user voice based on the recognized user's mouth shape contained in the image during the time period when the second user voice was input.
[0255] According to the above-mentioned embodiments of the present disclosure, when user voices are input by multiple users respectively, the electronic device can provide a response while maintaining the context based on the existing user voices by processing, delaying or processing the multiple user voices separately.
[0256] The above describes the generation of a speech history information for one user, but is not limited thereto. For example, when the first user voice of user A is input in a state where the first speech history information of user A and the second voice history information of user B are stored, the processor can provide a first response sound obtained by inputting the first user voice and the first speech history information into the artificial intelligence model, and a second response sound obtained by inputting the first user voice and the second speech history information into the artificial intelligence model. Through the above operation, the processor can provide the user with the feeling of having a conversation with multiple speakers.
[0257] The processor may obtain information such as the title, progress completion information, progress information, time information, user information, final interaction information, keywords, content summary, etc. of the speech history information of the completed interaction, and store the information in the memory. Then, if the user makes a user voice to search for past speech history information, the processor may obtain speech history information corresponding to the user voice based on the information stored in the memory. When an additional user voice is input, the processor may provide a response sound to the additional user voice based on the acquired speech history information. That is, the user may continue to perform the interaction from the past speech.
[0258] According to an embodiment of the present disclosure, various embodiments of the present disclosure may be implemented by software including instructions stored in a machine (such as a computer) readable storage medium. According to the disclosed embodiment, the machine is a device that calls instructions stored in a storage medium and operates according to the called instructions, and may include an electronic device (e.g., electronic device A). In the case where the instruction is executed by a processor, the processor may directly execute the function corresponding to the instruction, or use other elements under the control of the processor to execute the function corresponding to the instruction. The instruction may include code generated by a compiler or executed by an interpreter. The machine-readable storage medium may be provided in the form of a non-transitory storage medium. Here, the term "non-transitory" refers only to the fact that the storage medium is tangible and does not include signals, without distinguishing whether the data is semi-permanently stored or temporarily stored in the storage medium.
[0259] According to an embodiment of the present disclosure, the method according to the above-mentioned various embodiments may be provided as included in a computer program product. The computer program product may be exchanged between a seller and a buyer as a commercial product. The computer program product may be distributed in the form of a machine-readable storage medium (e.g., a CD-ROM) or may be downloaded through an application store (e.g., PlayStore). TM ) Online distribution. In the case of online distribution, at least parts of the computer program product may be at least temporarily stored or temporarily generated in a storage medium, such as a memory of a manufacturer's server, a server of an application store or a relay server.
[0260] According to an embodiment of the present disclosure, the above-mentioned embodiments can be implemented in a recording medium readable by a computer or a similar device using software, hardware or a combination thereof. In some cases, the embodiments described in this specification can be implemented as a processor itself. Regarding the implementation of software aspects, the embodiments such as the programs and functions described in this specification can be implemented as separate software modules. Each software module can perform one or more functions and operations described in this specification.
[0261] Computer instructions for performing processing operations according to the above embodiments may be stored in a non-transitory computer-readable medium. When the computer instructions stored in such a non-transitory computer-readable medium are executed by a processor, the computer instructions may cause a specific machine to perform processing operations according to the above embodiments.
[0262] A non-transitory computer-readable medium is not a medium that stores data for a short period of time (such as a register, cache, or memory), but refers to a medium that stores data semi-permanently and can be read by a computer. Specific examples of non-transitory computer-readable media may include CDs, DVDs, hard disks, Blu-ray discs, USBs, memory cards, and ROMs.
[0263] In addition, each element (e.g., module or program) according to the various embodiments described above may be composed of a single entity or multiple entities, and some of the sub-elements of the sub-elements described above may be omitted, or other sub-elements may be further included in various embodiments. Alternatively or additionally, some elements (e.g., modules or programs) may be integrated into one entity to perform the same or similar functions that the various elements performed before integration. The operations performed by modules, programs, or other elements according to various embodiments may be performed sequentially, in parallel, repeatedly, or heuristically, or at least some operations may be performed in a different order, omitted, or different operations may be added.
[0264] The preferred embodiments of the present disclosure have been shown and described above, but the present disclosure is not limited to the above-mentioned specific embodiments, and those skilled in the art may make various modifications without departing from the disclosure points required in the claims, and such modifications should not be understood separately from the technical spirit or prospects of the present disclosure.
Claims
1. A server, include: A learning unit that trains an artificial intelligence model responsive to user voice by using learning data; as well as A response unit obtains information corresponding to the user's voice, Wherein, the response unit is configured as follows: Based on receiving a first user voice, identifying a user who issued the first user voice, and generating first response information obtained by inputting the first user voice into the artificial intelligence model, Based on receiving a second user voice, identifying the user who issued the second user voice, and based on the user who issued the first user voice being different from the user who issued the second user voice, generating second response information for the second user voice, Based on the fact that the user who issues the first user voice is different from the user who issues the second user voice, obtaining a first domain corresponding to the first user voice and a second domain corresponding to the second user voice, and Based on the fact that the first domain is the same as the second domain, the second response information obtained by inputting the second user voice and speech history information into the artificial intelligence model is generated.
2. The server according to claim 1, further comprising: include: Memory, including circuits, Wherein, the learning unit is configured as follows: storing the second user voice in the memory based on the user who uttered the second user voice being different from the user who uttered the first user voice, Wherein, the response unit is configured as follows: The second response information obtained by inputting the second user voice to the artificial intelligence model is generated based on the fact that a user voice is not received from the user who uttered the first user voice within a predetermined period of time or longer.
3. The server according to claim 1, in, The response unit is further configured as: Based on receiving the first user voice, identifying the first user who issued the first user voice, and generating the first response information obtained by inputting the first user voice into the artificial intelligence model, and Based on receiving the second user voice, a second user who utters the second user voice is identified, and the second response information obtained by inputting the second user voice into the artificial intelligence model and distinguished from the first response information is generated.
4. The server according to claim 3, in, The response unit is further configured as: generating, based on the first user inputting a first additional user voice, first additional response information obtained by inputting the first additional user voice and first utterance history information corresponding to the first user voice into the artificial intelligence model, and Based on the second user inputting a second additional user voice, second additional response information distinguished from the first additional response information is generated by inputting the second additional user voice and second utterance history information corresponding to the second user voice into the artificial intelligence model.
5. The server according to claim 1, further comprising: include: Memory, Among them, the response unit is also configured to: based on receiving the second user voice within a first predetermined time period from the moment the first user voice is received, and the first domain corresponding to the first user voice is different from the second domain corresponding to the second user voice, store the first user voice in the memory without generating the first response information, and generate the second response information obtained by inputting the second user voice into the artificial intelligence model.
6. The server according to claim 5, in, The response unit is also configured to generate the first response information obtained by inputting the first user voice stored in the memory into the artificial intelligence model based on not receiving the user voice corresponding to the second domain within a second predetermined time period or longer.
7. The server according to claim 1, in, The response unit is further configured to recognize the user based on at least one of a received image and a user voice received from the electronic device.
8. The server according to claim 7, in, The response unit is further configured to: identify the user who utters the first user voice based on the mouth shape of the user included in the image during the time period of receiving the first user voice, Based on the recognized mouth shape of the user included in the image changing within a time period of receiving the second user voice, the user uttering the second user voice is recognized as being the same as the user uttering the first user voice.
9. A method for controlling a server, the method include: Based on receiving a first user voice, identifying a user who issued the first user voice; generating first response information obtained by inputting the first user voice into an artificial intelligence model, the artificial intelligence model being trained by an artificial intelligence algorithm; Based on receiving a second user voice, identifying a user who issued the second user voice, and based on the user who issued the first user voice being different from the user who issued the second user voice, generating second response information to the second user voice; Based on the fact that the user who issues the first user voice is different from the user who issues the second user voice, obtaining a first domain corresponding to the first user voice and a second domain corresponding to the second user voice; as well as Based on the fact that the first domain is the same as the second domain, the second response information obtained by inputting the second user voice and speech history information into the artificial intelligence model is generated.
10. The method according to claim 9, further comprising: include: storing the second user voice based on that the user who issued the second user voice is different from the user who issued the first user voice; as well as The second response information obtained by inputting the second user voice to the artificial intelligence model is generated based on the fact that a user voice is not input from the user who uttered the first user voice for a predetermined period of time or longer.
11. The method according to claim 9, in, Identifying the user who issued the first user voice includes: based on inputting the first user voice, identifying the first user who issued the first user voice, Identifying the user who issued the second user voice includes: identifying the second user who issued the second user voice, and The method also includes generating the second response information obtained by inputting the second user voice into the artificial intelligence model and distinguished from the first response information.
12. The method according to claim 11, further comprising: include: Based on a first additional user voice input by the first user, generating first additional response information obtained by inputting the first additional user voice and first utterance history information corresponding to the first user voice into the artificial intelligence model; as well as Based on a second additional user voice input by the second user, second additional response information distinguished from the first additional response information is generated by inputting the second additional user voice and second utterance history information corresponding to the second user voice into the artificial intelligence model.
