Method executed by electronic device, electronic device and storage medium
By receiving voice input, performing voice recognition and selecting a suitable application output response based on metadata, the accuracy and speed problems of voice input response in the existing technology are solved, and more efficient response processing is achieved.
Patent Information
- Application Number
- CN202411189527.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2019-05-09
- Filing Date
- 2019-05-22
- Publication Date
- 2024-10-08
AI Technical Summary
Existing technologies struggle to provide responses to voice input due to differences in accuracy, success rate and processing speed, and lack a method to select the most suitable application to provide an appropriate response.
By receiving voice input, performing speech recognition to obtain text, selecting an appropriate application from multiple applications based on metadata, and outputting a response through the application.
It improves the accuracy and success rate of voice input response, optimizes the processing speed, and meets the needs of different application characteristics.
Smart Images

Figure CN118748013A_ABST
Abstract
Description
[0001] This application is a divisional application of an invention patent application with an application date of May 22, 2019, application number 201980034468.3, and invention name “Electronic device for outputting a response to voice input by using an application and its operating method”. Technical Field
[0002] The present disclosure relates to an electronic device for outputting a response to a voice input by using an application and an operating method thereof. The present disclosure also relates to an artificial intelligence (AI) system using a machine learning algorithm such as deep learning and an application of the AI system. Background Art
[0003] An AI system is a computer system with human-level intelligence. Unlike existing rule-based intelligent systems, an AI system is a system that autonomously trains itself, makes decisions, and becomes increasingly intelligent. The more an AI system is used, the more the AI system's recognition rate can be improved, and the AI system can more accurately understand the user's preferences. Therefore, existing rule-based intelligent systems are gradually being replaced by deep learning-based AI systems.
[0004] AI technology refers to machine learning (deep learning) and elemental technologies that utilize machine learning.
[0005] Machine learning is an algorithmic technology that autonomously classifies / learns the features of input data. Element technology is a technology that simulates human brain functions (such as recognition and judgment) by utilizing machine learning algorithms (such as deep learning), and consists of technical fields such as language understanding, visual understanding, reasoning / prediction, knowledge representation, and motion control.
[0006] AI technology is applied to various fields as follows. Language understanding is the technology of recognizing and applying / processing human language / characters, and includes natural language processing, machine translation, dialogue systems, query response, speech recognition / synthesis, etc. Visual understanding is the technology of recognizing and processing objects like human vision, and includes object recognition, object tracking, image search, human recognition, scene understanding, spatial understanding, image enhancement, etc. Reasoning prediction is the technology of acquiring and logically inferring and predicting information, and includes knowledge / probability-based reasoning, optimization prediction, preference-based planning, recommendation, etc. Knowledge representation is the technology of automating human experience information into knowledge data, including knowledge construction (data generation / classification), knowledge management (data utilization), etc. Motion control is the technology of controlling the autonomous driving of vehicles and the movement of robots, and includes motion control (navigation, collision avoidance and driving), operation control (behavior control), etc.
[0007] The electronic device may use various types of applications to provide a response to the user's voice input. For example, when the voice input includes a voice command or a voice query, the electronic device may perform an operation corresponding to the voice command or voice query by using various types of applications utilizing the above-mentioned AI technology, and provide a response to the user indicating the result of the operation being performed.
[0008] However, depending on the characteristics of each application, the accuracy, success rate, processing speed, etc. of the response provided to the user may be different.
[0009] Therefore, there is a need for a method of providing an appropriate response to a user's voice input by using an application best suited for providing a response to the voice input.
[0010] The above information is presented as background information only to assist with an understanding of the present disclosure. No determination has been made, and no assertion is made, as to whether any of the above may be applicable as prior art with respect to the present disclosure. Summary of the invention
[0011] Technical Solution Various aspects of the present disclosure are intended to at least solve the above-mentioned problems and / or disadvantages and to provide at least the advantages described below. Therefore, one aspect of the present disclosure is to provide an electronic device and an operating method thereof, wherein the electronic device selects an application for outputting a response to a voice input according to a voice input and outputs a response to the voice input by using the selected application.
[0012] Another aspect of the present disclosure is to provide a computer-readable storage medium configured to store one or more computer programs including instructions, wherein the instructions, when executed by at least one processor, cause the at least one processor to control to perform the method. The technical solution to be solved is not limited to the technical problems described above, and there may be other technical problems.
[0013] Additional aspects will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the presented embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The above and other aspects, features and advantages of certain embodiments of the present disclosure will become more apparent from the following description in conjunction with the accompanying drawings, in which: Figure 1 is a block diagram illustrating a system for providing a response to a voice input by using an application according to an embodiment of the present disclosure; Figure 2 is a block diagram for explaining an internal configuration of an electronic device according to an embodiment of the present disclosure; Figure 3is a block diagram for explaining an internal configuration of an electronic device according to an embodiment of the present disclosure; Figure 4 is a diagram for explaining an internal configuration of an electronic device according to an embodiment of the present disclosure; Figure 5 is a block diagram including an internal configuration of an instruction processing engine according to an embodiment of the present disclosure; Figure 6 is a flowchart illustrating a method of outputting a response to a voice input by using an application, performed by an electronic device according to an embodiment of the present disclosure; Figure 7 is a flowchart illustrating a method of outputting a response to a voice input by using an application, performed by an electronic device according to an embodiment of the present disclosure; Figure 8 is a flowchart illustrating a method of learning preference information according to an embodiment of the present disclosure; Fig. 9 is a diagram for explaining an example of outputting a response to a voice input according to an embodiment of the present disclosure; Fig.10 is a diagram showing an example of learning preference information according to an embodiment of the present disclosure; Fig.11 is a diagram illustrating an example of performing an operation corresponding to each response according to a priority of each response to each of a plurality of voice inputs according to an embodiment of the present disclosure; Fig.12 is a diagram illustrating an example of updating preference information based on a response corresponding to a voice input according to an embodiment of the present disclosure; Fig.13 is a diagram illustrating an example of updating preference information based on a response corresponding to a voice input according to an embodiment of the present disclosure; Fig.14 is a diagram illustrating an example of processing a voice input based on preference information according to an embodiment of the present disclosure; Fig.15 is a diagram illustrating an example of updating preference information based on a response corresponding to a voice input according to an embodiment of the present disclosure; Fig.16 is a diagram illustrating an example of updating preference information based on a response corresponding to a voice input according to an embodiment of the present disclosure; Fig.17 is a diagram illustrating an example of processing a voice input based on preference information according to an embodiment of the present disclosure; Fig.18 is a diagram illustrating an example of updating preference information based on a response corresponding to a voice input according to an embodiment of the present disclosure; Fig.19is a diagram illustrating an example of updating preference information based on a response corresponding to a voice input according to an embodiment of the present disclosure; Fig. 20 is a diagram showing an example of processing a voice input 2001 based on preference information according to an embodiment of the present disclosure; Fig.21 is a diagram illustrating an example of outputting a plurality of responses based on priorities according to an embodiment of the present disclosure; Fig. 22 is a diagram illustrating an example of outputting a plurality of responses based on priorities according to an embodiment of the present disclosure; Fig.23 is a diagram illustrating an example of outputting a response to a voice input through another electronic device according to an embodiment of the present disclosure; Fig.24 is a diagram illustrating an example of controlling an external device according to a response to a voice input by another electronic device according to an embodiment of the present disclosure; Fig.25 is a diagram showing an example of an electronic device processing a voice input according to an embodiment of the present disclosure; Fig.26 is a diagram showing an example of multiple electronic devices processing voice input according to an embodiment of the present disclosure; Fig. 27 is a diagram showing an example of multiple electronic devices processing voice input according to an embodiment of the present disclosure; Fig.28 is a diagram showing an example of multiple electronic devices processing voice input according to an embodiment of the present disclosure; Fig.29 is a diagram showing an example of multiple electronic devices processing voice input according to an embodiment of the present disclosure; Fig.30 is a block diagram of a processor according to an embodiment of the present disclosure; Fig.31 is a block diagram of a data learner according to an embodiment of the present disclosure; Fig.32 is a block diagram of a data determiner according to an embodiment of the present disclosure; and Fig.33 is a diagram illustrating an example in which an electronic device and a server learn and determine data by interacting with each other according to an embodiment of the present disclosure.
[0015] Throughout the drawings, like reference numerals will be understood to refer to like parts, components and structures. DETAILED DESCRIPTION
[0016] According to one aspect of the present disclosure, a method for outputting a response to a voice input by using an application, which is performed by an electronic device, is provided. The method includes: receiving a voice input; obtaining a text corresponding to the voice input by performing voice recognition on the voice input; obtaining metadata for the voice input based on the obtained text; selecting at least one application from a plurality of applications for outputting a response to the voice input based on the metadata; and outputting a response to the voice input by using the selected at least one application.
[0017] According to another aspect of the present disclosure, an electronic device for performing authentication on a user is provided. The electronic device includes: a user inputter configured to receive a voice input; at least one processor configured to obtain text corresponding to the voice input by performing voice recognition on the voice input, obtain metadata for the voice input based on the obtained text, and select at least one application from multiple applications for outputting a response to the voice input based on the metadata; and an outputter configured to output a response to the voice input by using the selected at least one application.
[0018] According to another aspect of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium is configured to store one or more computer programs including instructions, wherein when the instructions are executed by at least one processor, the at least one processor is controlled to perform the method.
[0019] Other aspects, advantages, and salient features of the disclosure will become apparent to those skilled in the art from the following detailed description, which, taken in conjunction with the annexed drawings, discloses various embodiments of the disclosure.
[0020] The following description with reference to the accompanying drawings is provided to assist in a comprehensive understanding of the various embodiments of the present disclosure as defined by the claims and their equivalents. The following description includes various specific details to assist in this understanding, but these are to be considered as merely exemplary. Therefore, it will be appreciated by those of ordinary skill in the art that various changes and modifications may be made to the various embodiments described herein without departing from the scope and spirit of the present disclosure. In addition, descriptions of well-known functions and configurations may be omitted for clarity and brevity.
[0021] The terms and words used in the following description and claims are not limited to the bibliographic meanings, but are merely used by the inventor to enable a clear and consistent understanding of the present disclosure. Therefore, it should be apparent to those skilled in the art that the following description of various embodiments of the present disclosure is provided for illustrative purposes only and not for the purpose of limiting the present disclosure as defined by the appended claims and their equivalents.
[0022] It will be understood that singular forms include plural referents unless the context clearly dictates otherwise. Thus, for example, reference to "a component surface" includes reference to one or more of such surfaces.
[0023] The embodiments of the present disclosure will be described in detail to fully convey the scope of the present disclosure and enable those of ordinary skill in the art to embody and practice the present disclosure. However, the present disclosure can be implemented in many different forms and should not be construed as being limited to the embodiments set forth herein. In addition, parts that are not related to the detailed description are omitted in the accompanying drawings to ensure clarity of the present disclosure. The same reference numerals in the accompanying drawings represent the same elements.
[0024] Throughout the specification, it will be understood that when an element is referred to as being "connected" to another element, the element may be "directly connected" to the other element or "electrically connected" to the other element with an intervening element therebetween. It should also be understood that when a component "includes" or "comprising" an element, unless otherwise defined, the component may also include other elements without excluding other elements.
[0025] Throughout this disclosure, the expression “at least one of a, b, or c” indicates variations of only a, only b, only c, both a and b, both a and c, both b and c, and all of a, b and c, or only a, only b, only c, both a and b, both a and c, both b and c, and all of a, b and c.
[0026] Hereinafter, the present disclosure will be described in detail by explaining embodiments of the present disclosure with reference to the attached drawings.
[0027] Figure 1 is a block diagram illustrating a system for providing a response to a voice input by using an application according to an embodiment of the present disclosure.
[0028] Reference Figure 1 , a system for providing a response to a voice input 100 by using an application according to an embodiment of the present disclosure may include an electronic device 1000. The electronic device 1000 may receive a voice input 100 from a user and output a response to the received voice input 100.
[0029] The electronic device 1000 according to an embodiment of the present disclosure may be implemented in various forms, such as a device capable of receiving a voice input 100 and outputting a response to the received voice input 100. For example, the electronic device 1000 described herein may be a digital camera, a smart phone, a laptop computer, a tablet personal computer (PC), an e-book terminal, a digital broadcast terminal, a personal digital assistant (PDA), a portable multimedia player (PMP), a navigation device, an MP3 player, an artificial intelligence speaker, etc., but is not limited thereto.
[0030] The electronic device 1000 described herein may be a wearable device that can be worn by a user. The wearable device may include at least one of an accessory device (e.g., a watch, a ring, a cuff, an ankle band, a necklace, glasses, and contact lenses), a head mounted device (HMD), a textile or clothing integrated device (e.g., electronic clothing), a body attached device (e.g., a skin pad), or a bio-implantable device (e.g., an implantable circuit), but is not limited thereto. In the following, for ease of explanation, the case where the electronic device 1000 is a smartphone is described as an example.
[0031] According to an embodiment of the present disclosure, an application for providing a response to a voice input 100 by an electronic device 1000 may provide an interactive interface for receiving a voice input 100 from a user and outputting a response to the user's voice input 100. The application may include, but is not limited to, a virtual assistant, an artificial intelligence (AI) assistant, etc. A virtual assistant or an AI assistant may be a software agent that processes tasks required by a user and provides services dedicated to the user.
[0032] According to an embodiment of the present disclosure, the electronic device 1000 may perform voice recognition on a user's voice input 100 to obtain text corresponding to the voice input 100 , and based on the text, select an application for providing a response corresponding to the voice input 100 from a plurality of applications.
[0033] According to an embodiment of the present disclosure, the electronic device 1000 may select an application suitable for processing the voice input 100 on the basis of metadata obtained based on the voice input 100 , and output a response to the voice input 100 by using the selected application.
[0034] A plurality of applications according to an embodiment of the present disclosure may have different characteristics and process the voice input 100 .
[0035] For example, any one of the applications may have a function of controlling a home appliance pre-specified according to the voice input 100. In addition, any one of the applications may have a control function related to navigation. In addition, any one of the applications may have a function of processing a voice input related to multimedia playback.
[0036] Therefore, taking into account the differences in each application's ability to process voice input 100, processing speed and accuracy, data used to process voice input 100, and operations that can be performed based on voice input 100, the electronic device 1000 can select an application for processing voice input 100.
[0037] For example, the electronic device 1000 may select at least one application suitable for processing the voice input 100 distinguished as metadata from a plurality of applications for outputting responses to the voice input 100 received by the electronic device 100 based on at least one of the following information: at least one of user feedback information regarding the responses output by the plurality of applications, information about the results of processing the voice input by the plurality of applications, information about the time taken for the plurality of applications to output responses, information about operations that can be performed by the plurality of applications, or information about the capabilities of the plurality of applications.
[0038] The electronic device is not limited to the above-described example, and may select an application to be used to output a response to the voice input 100 based on various information about the plurality of applications.
[0039] The selected application may perform an operation corresponding to the voice input 100, generate a response based on a result of the operation being performed, and provide the generated response to the user.
[0040] For example, when the text obtained as a result of performing voice recognition on the user's voice input 100 is "turn on the light", the electronic device 1000 may obtain "light" as a keyword of the text as metadata of the voice input 100. The electronic device 1000 according to an embodiment of the present disclosure may select at least one application suitable for processing the voice input 100 based on the metadata including "light".
[0041] In addition, the electronic device 1000 can output a response based on the result of the performed operation by performing an operation corresponding to the voice input 100 through the selected application. For example, the selected application can perform an operation of controlling the lights around the user in response to the voice input 100 "turn on the light", and based on the result of the performed operation, output a response "the light 1 in the living room is turned on".
[0042] The metadata may also include various information related to the voice input 100 and keywords extracted from a text corresponding to the voice input 100 .
[0043] For example, metadata may include various information obtainable from text, such as keywords extracted from text in response to the voice input 100, information about the user's intention obtained based on the text, and the like.
[0044] The metadata is not limited to the above examples and may include information about sound characteristics of the voice input 100 , information about a user of the electronic device 1000 receiving the voice input 100 , etc. as information related to the voice input 100 in addition to text.
[0045] According to an embodiment of the present disclosure, the metadata may include at least one of keywords extracted from the text corresponding to the voice input 100, information about the user's intention obtained based on the text, information about the sound characteristics of the voice input 100, or information about the user of the electronic device 1000 receiving the above-mentioned voice input 100.
[0046] The text may include text corresponding to the voice input 100 obtained by performing voice recognition on the voice input 100. For example, when the voice input 100 includes a voice signal of "turn on the light" uttered by the user, "turn on the light" may be obtained as the text corresponding to the voice input 100.
[0047] The keyword extracted from the text may include at least one word included in the text. For example, the keyword may be determined as a word indicating the core content of the text of the voice input 100. The keyword may be extracted according to various methods of extracting core words from the text.
[0048] The information about the user's intention may include the intention of the user who performs the voice input 100, wherein the information about the user's intention may be interpreted by text analysis. Not only the text analysis may be further considered, but also various information related to the user (such as the user's schedule information, information about the user's voice command history, information about the user's interests, information about the user's life pattern, etc.) may be considered to determine the information about the user's intention. For example, the user's intention may be determined as content related to the service that the user desires to receive using the electronic device 1000.
[0049] For example, for the text "Turn on the light", the information about the user's intention may include "external device control". The external device may include a device other than the electronic device 1000 that can be controlled according to a request of the electronic device 1000. As another example, in addition to "external device control", the information about the user's intention may also include one of "emergency rescue service request", "information provision", "settings for the electronic device", "navigation function provision", and "multimedia file playback". The information about the user's intention (but not limited to the above examples) may include various information related to the operation of the electronic device 1000 that the user desires through the voice input 100.
[0050] According to an embodiment of the present disclosure, at least one keyword may be extracted from the text. For example, when multiple keywords are extracted, the priority of each keyword may be determined based on various information related to the user (such as information about the user's voice command history, information about the user's interests, feedback information about the user's voice command). For another example, the priority of each keyword may be determined based on the degree of relevance to the user's intention. According to an embodiment of the present disclosure, the weight of each keyword may be determined based on the determined priority, and based on the determined weight, the application that will output a response may be determined based on at least one keyword.
[0051] When multiple keywords are extracted from the text, based on the various information about the user described above, at least one keyword for determining the application that will output a response may be selected. For example, based on the weight determined for each keyword described above, at least one of the multiple keywords may be selected. According to an embodiment of the present disclosure, at least one of the multiple keywords that is not selected may be a keyword that includes information that does not contradict each other.
[0052] For example, when the voice recognized text is "Tell me how to drive to Place A...Place B", the keywords "Place A", "Place B", and "driving" may be extracted. According to an embodiment of the present disclosure, considering that the user said "Place A" as Place B, the electronic device 1000 may determine in the text that there is a high possibility that "Place A" is a word mistakenly said by the user. Furthermore, based on the user's schedule information, the electronic device 1000 may determine that there is a high possibility that the user will currently move to "Place B". Therefore, the electronic device 1000 may determine that "Place B" of "Place A" and "Place B" is a keyword corresponding to the user's intention. According to an embodiment of the present disclosure, the electronic device 1000 may determine the application that will output a response by excluding "Place A" from the keywords, or by setting a low weight for "Place A".
[0053] The information about the sound characteristics of the voice input 100 according to an embodiment of the present disclosure may include information about the characteristics of the voice signal of the voice input 100. For example, the information about the sound characteristics may include the time when the voice signal is received, the length of the voice signal, type information of the voice signal (e.g., male, female, and noise), etc. The information about the sound characteristics may include various types of information as the information about the voice signal of the voice input 100.
[0054] The information about the user may include information about the user of the electronic device 1000 receiving the voice input 100 , for example, various information such as the user's age, life pattern, preferred device, field of interest, etc.
[0055] According to an embodiment of the present disclosure, the electronic device 1000 may use an AI model to select at least one application from a plurality of applications based on the voice input 100 received from the user. For example, the electronic device 1000 may use a previously learned AI model when generating metadata or selecting an application based on metadata.
[0056] According to an embodiment of the present disclosure, the electronic device 1000 may receive a plurality of voice inputs 100 within a predetermined period of time. For example, the electronic device 1000 may receive a plurality of voice inputs 100 received from at least one speaker within a period of about 5 seconds.
[0057] The electronic device 1000 may determine the priority of responses corresponding to a plurality of voice inputs 100, and output the responses according to the determined priority. For example, when a plurality of voice inputs 100 are received, metadata may be obtained for each of the voice inputs 100, and based on the metadata, the priority of responses corresponding to the plurality of voice inputs 100 may be determined. For example, the priority may be determined based on information about user intent included in the metadata. In addition, based on the priority, the responses to the respective voice inputs 100 may be output sequentially.
[0058] Furthermore, the priority regarding the response may be determined based on at least one of information regarding the size of the response, whether the response includes a characteristic preferred by the user, or a time taken to output the response after obtaining the response.
[0059] Priorities regarding a plurality of responses may be determined based on various information regarding each response, but are not limited to the above examples.
[0060] According to an embodiment of the present disclosure, according to the AI technology on the device, the user's voice command can be processed on the electronic device 1000 without sending data to and receiving data from the cloud server, and the processing result can be output through the application. For example, the electronic device 1000 can perform operations according to an embodiment of the present disclosure based on various information about the user collected by the electronic device 1000 in real time without using big data stored in the cloud server.
[0061] According to the on-device AI technology, the electronic device 1000 can autonomously learn based on the data collected by itself and make decisions based on the learned AI model. According to the on-device AI technology, because the electronic device 1000 does not send the collected data to the outside but operates the data by itself, there are advantages in terms of user's personal information protection and data processing speed.
[0062] For example, depending on whether the network environment of the electronic device 1000 is unstable, or without using big data, it is sufficient to perform operations according to an embodiment of the present disclosure based on an AI model learned in the electronic device 1000 based only on information collected in the electronic device 1000, and the electronic device 1000 can operate using on-device AI technology without connecting to a cloud server.
[0063] However, the electronic device 1000 is not limited to operating according to the on-device AI technology, and can perform operations according to the embodiments of the present disclosure by sending / receiving data with a cloud server or an external device. In addition, the electronic device 1000 can perform operations according to the embodiments of the present disclosure by combining the on-device AI technology and the method of sending / receiving data with the above-mentioned cloud server.
[0064] For example, depending on the network environment and computing power of the electronic device 1000, when the method through the cloud server is more advantageous than the AI technology on the device, such as, the operation through the cloud server is more advantageous in terms of data processing speed or data that does not include the user's personal information is transmitted to the cloud server, etc., the operations according to the embodiments of the present disclosure can be performed according to the method through the cloud server.
[0065] Figure 2 is a block diagram for explaining an internal configuration of an electronic device according to an embodiment of the present disclosure.
[0066] Figure 3 is a block diagram for explaining an internal configuration of an electronic device according to an embodiment of the present disclosure.
[0067] Reference Figure 2 , the electronic device 1000 may include a user input device 1100, a processor 1300 and an output device 1200. However, not in Figure 2 All components shown in FIG. 1 are indispensable components of the electronic device 1000. The electronic device 1000 may be composed of Figure 2 , and the electronic device 1000 may be implemented by more components than those shown in FIG. Figure 2 The illustrated components may be implemented with fewer components.
[0068] For example, refer to Figure 3 , the electronic device 1000 may further include a sensing unit 1400 , a communicator 1500 , an audio / video (A / V) inputter 1600 , and a memory 1700 in addition to the user inputter 1100 , the processor 1300 , and the outputter 1200 .
[0069] The user input device 1100 is a device for a user to input data for controlling the electronic device 1000. For example, the user input device 1100 may include a keyboard, a dome switch, a touch pad (contact capacitance type, pressure resistance type, infrared detection type, surface ultrasonic wave conduction type, overall tension measurement type, piezoelectric effect type, etc.), a scroll wheel, a scroll wheel switch, etc., but is not limited thereto.
[0070] The user inputter 1100 may receive a user's voice input 100. For example, the user inputter 1100 may receive a user's voice input 100 through a microphone provided in the electronic device 1000.
[0071] The outputter 1200 may output an audio signal or a video signal or a vibration signal, and may include a display 1210 , a sound outputter 1220 , and a vibration motor 1230 .
[0072] The outputter 1200 may output a response including a result of performing an operation according to the user's voice input 100. For example, the outputter 1200 may output a response including a result of performing an operation corresponding to the user's voice input 100 by at least one application. At least one application that performs an operation corresponding to the voice input 100 may be determined based on text obtained as a result of performing voice recognition on the voice input 100.
[0073] The display 1210 may display and output information processed by the electronic device 1000. According to an embodiment of the present disclosure, the display 1210 may display a result of performing an operation according to the user's voice input 100.
[0074] The display 1210 and the touch panel may be configured as a touch screen in a layer structure. In this case, the display 1210 may be used as an input device in addition to being used as an output device. The display 1210 may include at least one of a liquid crystal display, a thin film transistor liquid crystal display, an organic light emitting diode display, a flexible display, a three-dimensional (3D) display, or an electrophoretic display. Depending on the implementation type of the electronic device 1000, the electronic device 1000 may include two or more displays 1210.
[0075] The sound outputter 1220 may output audio data received from the communicator 1500 or stored in the memory 1700. The sound outputter 1220 may output audio data indicating a result of performing an operation according to the voice input 100 of the user.
[0076] The vibration motor 1230 may output a vibration signal. When a touch is input to the touch screen, the vibration motor 1230 may output a vibration signal. The vibration motor 1230 according to an embodiment of the present disclosure may output a vibration signal indicating a result of performing an operation according to the user's voice input 100.
[0077] The processor 1300 may generally control the overall operation of the electronic device 1000. For example, the processor 1300 may generally control the user input 1100, the output 1200, the sensing unit 1400, the communicator 1500, and the A / V input 1600 by executing a program stored in the memory 1700. The electronic device 1000 may include at least one processor 1300.
[0078] The processor 1300 may be configured to process commands of a computer program by performing basic arithmetic, logic, and input / output operations. The commands may be provided to the processor 1300 from the memory 1700, or may be received and provided to the processor 1300 through the communicator 1500. For example, the processor 1300 may be configured to execute commands according to a program code stored in a recording device such as a memory.
[0079] The at least one processor 1300 may obtain text corresponding to the voice input 100 by performing voice recognition on the user's voice input 100 , and may select an application for providing a response corresponding to the voice input 100 from a plurality of applications.
[0080] For example, at least one processor 1300 may select an application suitable for processing the voice input 100 based on metadata obtained on the basis of the voice input 100, and may provide a response to the voice input 100 to the user through the selected application.
[0081] The at least one processor 1300 may determine a priority regarding at least one response to the voice input 100, and control output of the at least one response according to the determined priority.
[0082] The sensing unit 1400 may sense a state of the electronic device 1000 or a state around the electronic device 1000 , and may transmit the sensed information to the processor 1300 .
[0083] The information sensed by the sensing unit 1400 may be used as metadata related to the voice input 100. For example, the metadata may include various types of sensing information related to the voice input 100 and about the user and the surrounding environment sensed by the sensing unit 1400. Therefore, the electronic device 1000 may select an application suitable for processing the voice input 100 based on the metadata including various information related to the voice input 100.
[0084] The sensing unit 1400 may include at least one of a magnetic sensor 1410, an acceleration sensor 1420, a temperature / humidity sensor 1430, an infrared sensor 1440, a gyro sensor 1450, a position sensor (e.g., a global positioning system (GPS)) 1460, an air pressure sensor 1470, a proximity sensor 1480, or a red, green, and blue (RGB) sensor (illuminance sensor) 1490, but is not limited thereto.
[0085] The communicator 1500 may include one or more components that allow the electronic device 1000 to communicate with a server (not shown) or an external device (not shown). For example, the communicator 1500 may include a short-range wireless communicator 1510, a mobile communicator 1520, and a broadcast receiver 1530.
[0086] According to an embodiment of the present disclosure, the communicator 1500 may send information about the voice input 100 received by the electronic device 1000 to a cloud (not shown), wherein the cloud processes an operation about the selected application. The cloud (not shown) may receive the information about the voice input 100, and according to an embodiment of the present disclosure, perform an operation corresponding to the voice input 100 and send a result of the performed operation to the electronic device 1000. According to an embodiment of the present disclosure, the electronic device 1000 may output a response based on the information received from the cloud (not shown) through the selected application.
[0087] The communicator 1500 may transmit a signal for controlling an external device (not shown) according to a result of an operation corresponding to the voice input 100 performed by the electronic device 1000. For example, when the voice input 100 includes a command for controlling the external device (not shown), according to an embodiment of the present disclosure, the electronic device 1000 may generate a control signal for controlling the external device (not shown) by using the selected application, and transmit the generated control signal to the external device (not shown). According to an embodiment of the present disclosure, the electronic device 1000 may output a result of controlling the external device (not shown) in response to the voice input 100 through the selected application.
[0088] The short-range wireless communicator 1510 may include a Bluetooth communicator, a Bluetooth low energy (BLE) communicator, a near field communicator, a wireless local area network (WLAN) communicator, a WLAN (Wi-Fi) communicator, a Zigbee communicator, an infrared data association (IrDA) communicator, a Wi-Fi Direct (WFD) communicator, an ultra-wideband (UWB) communicator, an Ant+ communicator, etc., but is not limited thereto.
[0089] The mobile communicator 1520 may transmit and receive radio signals to and from at least one of a base station, an external terminal or a server on a mobile communication network. The radio signals may include various types of data transmitted / received according to a voice call signal, a video call signal or a text / multimedia message.
[0090] The broadcast receiver 1530 may receive a broadcast signal and / or broadcast-related information from the outside through a broadcast channel. The broadcast channel may include a satellite channel and a terrestrial channel. According to an implementation example, the electronic device 1000 may not include the broadcast receiver 1530.
[0091] The A / V input device 1600 is used to input an audio signal or a video signal, and may include a camera 1610, a microphone 1620, etc. The camera 1610 may obtain an image frame such as a still image or a moving image through an image sensor in a video communication mode or a shooting mode. The image captured by the image sensor may be processed by the processor 1300 or a separate image processor (not shown). The microphone 1620 may receive an external sound signal and process the received signal into electrical voice data.
[0092] The A / V inputter 1600 may perform a function of receiving a user's voice input 100 .
[0093] The memory 1700 may store a program for processing and controlling the processor 1300 , and may store data input to or output from the electronic device 1000 .
[0094] The memory 1700 may store one or more instructions, and the at least one processor 1300 of the electronic device 1000 may perform operations according to an embodiment of the present disclosure by executing one or more instructions stored in the memory 1700 .
[0095] The memory 1700 according to an embodiment of the present disclosure may store information necessary for selecting an application that will process the voice input 100. For example, the memory 1700 may store previously learned information as information necessary for selecting an application that will process the voice input 100.
[0096] The memory 1700 may include at least one type of storage medium among a flash memory type, a hard disk type, a multimedia card micro, a card type memory (e.g., a secure digital (SD) or an extreme digital (xD) memory), a random access memory (RAM), a static RAM (SRAM), a read-only memory (ROM), an electrically erasable programmable ROM (EEPROM), a programmable ROM (PROM), a magnetic memory, a magnetic disk, or an optical disk.
[0097] Programs stored in the memory 1700 may be classified into a plurality of modules according to their functions, and may include, for example, a user interface (UI) module 1710 , a touch screen module 1720 , a notification module 1730 , and the like.
[0098] The UI module 1710 may provide a dedicated UI, a graphical user interface (GUI), etc. for each application to interact with the electronic device 1000. The touch screen module 1720 may sense a touch gesture of a user on the touch screen, and may send information about the touch gesture to the processor 1300. The touch screen module 1720 according to some embodiments of the present disclosure may recognize and analyze a touch code. The touch screen module 1720 may be configured as separate hardware including a controller.
[0099] In order to sense a touch or a near touch on the touch screen, various sensors may be arranged inside or near the touch screen. A tactile sensor is an example of a sensor for sensing a touch on the touch screen. A tactile sensor refers to a sensor for sensing the touch of a specific object at a level of human feeling or at a level higher than human feeling. The tactile sensor can sense various information, such as the roughness of the contact surface, the hardness of the contact material, and the temperature of the contact point.
[0100] The user's touch gesture may include tapping, touch and hold, double-clicking, dragging, fanning, flicking, dragging and dropping, sliding, and the like.
[0101] The notification module 1730 may generate a signal for notifying the electronic device 1000 of the occurrence of an event.
[0102] Figure 4 is a diagram for explaining an internal configuration of an electronic device according to an embodiment of the present disclosure.
[0103] Reference Figure 4 , the electronic device 1000 may include an instruction processing engine 110, a memory 130, a processor 140, a communicator 150, and a virtual assistant engine 120 as a configuration for performing an operation corresponding to the voice input 100. The memory 130, the processor 140, and the communicator 150 may correspond to Figure 3 The memory 1700, the processor 1300 and the communicator 1500 shown in FIG.
[0104] exist Figure 4 The example shown in is only an embodiment of the present disclosure, and the electronic device 1000 may utilize a Figure 4 The components shown in the figure may be implemented with more or fewer components.
[0105] The instruction processing engine 110 may obtain the voice input 100 received by the electronic device 1000, and may select at least one application for processing the voice input 100. The voice input 100 may include input for requesting emergency services (e.g., emergency calls and rescue calls), external device (e.g., home appliances, office devices, factory devices, etc.) control, navigation services, information (e.g., weather, news, time, people, devices, events (e.g., game scores / status, parties / meetings, and appointments)) services, etc. The instruction processing engine 110 may process a plurality of voice inputs 100 received from a plurality of users within a predetermined time. The instruction processing engine 110 according to an embodiment of the present disclosure may store the received voice input 100 in the memory 130.
[0106] The instruction processing engine 110 may select at least one application for processing the voice input 100 from among a plurality of applications 121 a to 121 n capable of processing the voice input 100 in the electronic device 1000 .
[0107] In an embodiment of the present disclosure, the instruction processing engine 110 may detect an event related to the application A 121a. The application A 121a may be, for example, an application previously set as an application for processing the voice input 100. For example, since the voice input 100 includes information indicating the application A 121a, the application A 121a may be previously set as an application for processing the voice input 100.
[0108] According to an embodiment of the present disclosure, when the instruction processing engine 110 detects an event related to the application A 121a, the instruction processing engine 110 may detect at least one of a plurality of applications capable of processing the voice input 100. When the instruction processing engine 110 does not detect the above event before the voice input 100 is processed by the application A 121a, without selecting an operation of an application according to an embodiment of the present disclosure, the voice input 100 may be processed by the application A 121a, and a result thereof may be output in response to the voice input 100.
[0109] The above-mentioned event related to application A 121a may include a state that is not suitable for processing voice input 100 by application A 121a. For example, the event may include a state that application A 121a has difficulty using data for processing voice input 100, a state that application A 121a cannot provide a response to voice input 100.
[0110] The case where the application A 121a has difficulty using the data for processing the voice input 100 may include, for example, a state where the connection between the backhaul device and the cloud is not stable, a state where the connection between the application A 121a and the backhaul device is not stable, a state where the network quality for processing the voice input 100 is deteriorated, etc. The backhaul device may refer to an intermediate device to which the electronic device 1000 is connected to connect to an external network. The cloud may be a server device to which the application A 121a is connected to process the voice input 100. For example, the application A 121a may send information about the voice input 100 to the cloud and receive a result of processing the voice input 100 from the cloud. The application A 121a may provide a response to the voice input 100 based on the information received from the cloud.
[0111] According to an embodiment of the present disclosure, the state in which the application A 121a cannot provide a response to the voice input 100 may include, for example, a state in which the application A 121a cannot provide a response because the application A 121a cannot perform an operation corresponding to the voice input 100 due to functional limitations of the application A 121a.
[0112] According to an embodiment of the present disclosure, the instruction processing engine 110 may periodically acquire various types of information that can be used to process the voice input 100, and store the information in the memory 130. For example, the information may include identification information and an IP (Internet Protocol) address of an external device connected to the electronic device 1000 to exchange data, information about an application that can be used to process the voice input 100 in the external device, information about a function (e.g., music reproduction, light control, text display, etc.) that can be used to process the voice input 100 in the external device, information about the network quality of the external device, information about an application that can be used to process the voice input 100 in the electronic device 1000, information about the function of the application that can be used to process the voice input 100 in the electronic device 1000, the IP address of the electronic device 1000, information about the network quality that can be used to process the voice input 100 in the electronic device 1000, etc. The information may include various information that can be used to process the voice input 100.
[0113] The external device may include various types of devices that may be controlled according to the voice input 100 , and may include, for example, a Bluetooth speaker, a Wi-Fi display, various types of home appliances, and the like.
[0114] According to an embodiment of the present disclosure, the instruction processing engine 110 may extract metadata from the text corresponding to the voice input 100. For example, when an event related to the application A 121a is detected, the instruction processing engine 110 may extract metadata from the text corresponding to the voice input 100. For example, "light" may be obtained as metadata for the voice input 100 of "turn on the light". In addition, "driving" may be obtained as metadata for the voice input 100 of "show me driving directions to Chennai".
[0115] In an embodiment of the present disclosure, the metadata may include information about the time when the voice input 100 is started and the time when the voice input 100 is terminated, the time period for performing the voice input 100, etc. The metadata may also include information about the sound characteristics of the voice signal of the voice input 100, such as male voice, female voice, child voice, noise, etc. In addition, the metadata may include information about the owner of the electronic device 1000.
[0116] The metadata may also include information about the user's intention regarding the voice input 100. The information about the user's intention may include, for example, setting information search regarding the electronic device 1000, external device control, search for multiple users, predetermined operation request for the electronic device 1000, emergency service request, etc.
[0117] According to an embodiment of the present disclosure, the instruction processing engine 110 may select the application B 121 b for outputting a response to the voice input 100 from among the plurality of applications based on metadata including various types of information.
[0118] In addition, the instruction processing engine 110 may select an application B 121b suitable for processing the voice input 100 from the plurality of applications by using preference information for each application based on the metadata. The preference information may include, for example, information about an application suitable for processing the voice input 100 according to the characteristics of the voice input 100 distinguished by the metadata. The electronic device 1000 may select an application most suitable for processing the voice input 100 using the preference information.
[0119] The preference information for each application may be learned based on various information related to the processing of the voice input 100 of each application. For example, the preference information may be learned based on at least one of user feedback information about a response output by each application, information about a result of processing the voice input 100 by each application, information about a time taken for each application to output a response, information about an operation that can be performed by each application, or information about the capabilities of each application. The preference information may be learned based on various information that can be used to select an application suitable for processing the voice input 100 according to metadata of the voice input 100.
[0120] Preference information for each application may be stored in the database 131 of the memory 130 .
[0121] According to an embodiment of the present disclosure, when providing a response corresponding to the voice input 100, the user's feedback may be determined based on the evaluation information input by the user. For example, the user's feedback may be positive feedback, negative feedback, etc.
[0122] The result of processing the voice input 100 by each application may be determined based on the content of the response to the voice input 100 and may include, for example, a detailed result, a brief result, an accurate result, an inaccurate result, a semi-accurate result, etc.
[0123] Operations that may be performed by each application according to the voice input 100 may include, for example, navigation for a user, controlling an external device (eg, a home appliance), providing information, and the like.
[0124] The information about the time taken by each application to process the voice input 100 may include the time taken to complete an operation corresponding to the voice input 100 or to output a response after the operation is performed and may include, for example, 10 seconds, 1 minute, etc.
[0125] The information about the capabilities of each application may include, for example, the type of each application (e.g., on-device based, hub based, cloud based), latency and throughput regarding processing voice input 100, success rate and accuracy regarding processing voice input 100, maximum utterance duration supported by each application, functions supported by each application (e.g., IoT function, home automation function, emergency service provision function), communication carriers used by each application (e.g., Wi-Fi, cellular radio, Bluetooth, etc.), application protocols used by each application (e.g., Hypertext Transfer Protocol (HTTP), Remote Procedure Call (gRPC)), security regarding voice input 100 processed by each application, etc. The information about the capabilities of each application may include, but is not limited to, the various information indicating the processing capabilities of each application as the above examples.
[0126] In an embodiment of the present disclosure, the instruction processing engine 110 may evaluate the processing capability of each application executed for each voice input received by the electronic device 1000, thereby obtaining the above-mentioned information about the capabilities of the application. The instruction processing engine 110 may update the preference information about each application based on the evaluation result.
[0127] When a plurality of voice inputs 100 are received within a predetermined period of time, the instruction processing engine 110 may select a voice input 100 to be processed with priority, and output the selected voice input 100 first, so that a response to the selected voice input 100 can be quickly output. For example, the instruction processing engine 110 may prioritize the voice input 100 of the owner of the electronic device 1000 determined based on metadata of each voice input 100, the voice input 100 of a female, the voice input 100 requesting emergency services, etc., over other voice inputs.
[0128] The instruction processing engine 110 may use a plurality of applications in a loop to process the voice input 100. The loop method is a method of performing several processes step by step in sequence, and the processing of the voice input 100 according to the loop method may be performed by a plurality of applications. For example, the instruction processing engine 110 may process the voice input 100 in a loop using a plurality of applications selected based on metadata of the voice input 100.
[0129] According to an embodiment of the present disclosure, an application selected based on metadata may send a voice input 100 to be processed to a cloud corresponding to the selected application. Each application may be connected to a cloud for processing the voice input 100 input into each application.
[0130] The selected application may receive at least one type of response from the cloud, including an automatic speech recognition (ASR) response, a natural language understanding (NLU) response, or a text-to-speech (TTS) response, when providing the cloud with the voice input 100. The electronic device 1000 may perform operations based on the various types of responses received from the cloud, and output a response corresponding to the voice input 100 based on the result of performing the operation.
[0131] The ASR response may include text obtained as a result of performing voice recognition on the voice input 100 in the cloud. The electronic device 1000 may obtain the text obtained as a result of performing voice recognition on the voice input 100 from the cloud, perform an operation based on the text, and provide the result to the user as a response to the voice input 100. For example, when the voice input 100 is "turn on the light", the electronic device 1000 may receive the text "turn on the light" from the cloud, control the lights around the user based on the text, and output the result of controlling the lights.
[0132] The NLU response may include information about the result of performing NLU in the cloud on the voice input 100. The electronic device 1000 may obtain information indicating the meaning of the voice input 100 as a result of performing NLU on the voice input 100 from the cloud, perform an operation based on the obtained information, and provide the result to the user as a response to the voice input (100).
[0133] The TTS response may include information that the text output in the cloud in response to the voice input 100 is converted into a voice signal according to the TTS technology. The electronic device 1000 may provide the user with a TTS response as a response to the voice input 100 when receiving the TTS response in response to the voice input 100 from the cloud. For example, when the voice input 100 is "What are the headlines today?", the electronic device 1000 may receive information about the voice signal into which the text indicating today's news information is converted by TTS from the cloud in response to the voice input 100. The electronic device 1000 may output a response to the voice input 100 based on the received information.
[0134] The electronic device 1000 may receive various types of information regarding a result of processing the voice input 100 from a cloud corresponding to the selected application, and output a response to the voice input 100 based on the received information.
[0135] According to an embodiment of the present disclosure, the instruction processing engine 110 may select multiple applications based on metadata. Therefore, the instruction processing engine 110 may receive multiple responses from the selected multiple applications. The instruction processing engine 110 may determine the priority of the multiple responses and output at least one response based on the determined priority.
[0136] The priority may be determined based on whether each response is an appropriate response corresponding to the user's intention. For example, the priority of the response may be determined based on data previously learned based on responses corresponding to various voice inputs 100. The instruction processing engine 110 may output the responses in descending order of priority.
[0137] According to an embodiment of the present disclosure, the instruction processing engine 110 may perform an operation corresponding to the voice input 100 through an application framework for controlling applications installed in the electronic device 1000. In addition, the instruction processing engine 110 may generate a text response as a response corresponding to the voice input 100 based on a result of performing the operation. The instruction processing engine 110 may convert the generated text into a voice signal using a TTS technology, and output the voice signal through at least one speaker.
[0138] According to an embodiment of the present disclosure, when the operation according to the response corresponding to the voice input 100 is successfully performed, the instruction processing engine 110 may delete the data stored in association with the voice input 100 from the memory 130. For example, the case where the operation according to the response is successfully performed may include the case where the operation of outputting the response corresponding to the voice input 100 as a voice message or a text message is successfully performed, the operation of completing the operation according to the response corresponding to the voice input 100, and the like.
[0139] The memory 130 may store a database 131 including preference information and information necessary to perform an operation for processing the voice input 100 according to an embodiment of the present disclosure.
[0140] The processor 140 may be configured to perform various operations including an operation for processing the voice input 100 according to an embodiment of the present disclosure.
[0141] The communicator 150 may be configured to allow the electronic device 1000 to communicate with an external device or a cloud through a wired / wireless connection.
[0142] The virtual assistant engine 120 may include a plurality of applications for processing the voice input 100 received by the electronic device 1000 and outputting a response, such as application A 121a, application B 121b, application C 121c, application n 121n, etc.
[0143] Figure 5 is a block diagram including an internal configuration of an instruction processing engine according to an embodiment of the present disclosure.
[0144] Reference Figure 5 , the instruction processing engine 110 may include an event detector 111, a metadata generator 112, an application selector 113, a voice input provider 114, a response priority determination engine 115 and a preference analysis engine 116.
[0145] exist Figure 5 The example shown in is only an embodiment of the present disclosure, and the electronic device 1000 may utilize Figure 4 The components shown in the figure may be implemented with more or fewer components.
[0146] The event detector 111 may receive a voice input 100 from a user and detect an event related to a first application. The first application may be a predetermined application, for example, an application that outputs a response to the voice input 100. However, when an event including a state in which the first application cannot output a response to the voice input 100 is detected, an operation of selecting an application that will process the voice input 100 may be performed.
[0147] The metadata generator 112 may generate metadata based on the voice input 100 according to the event detected by the event detector 111. The metadata may be generated based on a text obtained by performing voice recognition on the voice input 100.
[0148] The application selector 113 may select at least one of a plurality of applications available in the electronic device 1000 based on the metadata and the preference information.
[0149] The voice input provider 114 may send the voice input 100 to at least one application selected by the application selector 113. For example, the voice input provider 114 may preferentially send the voice input 100 to an application selected according to an embodiment of the present disclosure among multiple applications that is capable of processing the voice input 100. In addition, the voice input provider 114 may send the voice input 100 to an application selected according to an embodiment of the present disclosure among multiple applications that is in a state where the voice input 100 can be processed after the operation by another voice query is terminated.
[0150] When there are multiple voice inputs 100, the voice input provider 114 according to an embodiment of the present disclosure may preferentially send voice input 100 with a short voice signal, voice input 100 made by the owner of the electronic device 1000, voice input 100 made by a female, voice input 100 requesting emergency services, etc. to an application selected by an embodiment of the present disclosure.
[0151] The voice input provider 114 can transmit the voice input 100 to the multiple applications so that the voice input 100 can be processed in a round-robin manner by the multiple applications selected according to the embodiment of the present disclosure. The multiple applications receiving the voice input 100 can send responses to the voice input 100 to the instruction processing engine 110.
[0152] The response priority determination engine 115 may determine the priority of at least one response received from at least one application. The response may be output from the electronic device 1000 according to the priority determined by the response priority determination engine 115. For example, the responses may be output sequentially in order of priority, or only responses within a predetermined priority range may be output.
[0153] According to an embodiment of the present disclosure, when priorities determined for some responses are the same, responses having the same priority may be sequentially output in the order in which the responses are received from applications in the electronic device 1000 .
[0154] The preference analysis engine 116 may learn preference information for each application based on various information related to the processing of the voice input 100 by each application. For example, according to the characteristics of the voice input 100 distinguished by the metadata, the preference information may include information about an application suitable for processing the voice input 100. According to an embodiment of the present disclosure, the preference information learned by the preference analysis engine 116 may be used to select an application for outputting a response corresponding to the voice input 100.
[0155] Figure 6 is a flowchart illustrating a method of outputting a response to a voice input by using an application, performed by the electronic device 1000 according to an embodiment of the present disclosure.
[0156] Reference Figure 6 , the electronic device 1000 may receive a voice input at operation 610. The voice input may include, for example, a voice command for requesting an operation desired by a user.
[0157] In operation 620, the electronic device 1000 may perform voice recognition on the voice input received in operation 610 to obtain text corresponding to the voice input. For example, when the voice input includes a voice signal "turn on the light" uttered by the user, "turn on the light" may be obtained as text corresponding to the voice input.
[0158] In operation 630, the electronic device 1000 may obtain metadata for the voice input based on the text obtained in operation 620. For example, the metadata may include various information that may be obtained based on the text, such as keywords extracted from the text, the user's intention determined from the text, etc. The metadata may also include various information related to the voice input and information obtained based on the text corresponding to the voice input, but is not limited to the above examples.
[0159] In operation 640, the electronic device 1000 may select at least one application from a plurality of applications available in the electronic device 1000 based on the metadata obtained in operation 630. The plurality of applications available in the electronic device 1000 may include an application that may be used to output a response to a voice input.
[0160] According to an embodiment of the present disclosure, in addition to metadata, the electronic device 1000 may also use preference information for each application to select an application to be used to output a response to a voice input. The preference information may include information about an application suitable for processing a voice input, for example, according to the characteristics of the voice input distinguished by metadata.
[0161] At operation 650, the electronic device 1000 may output a response to the voice input by using the selected application. For example, the electronic device 1000 may send the voice input to the selected application and perform an operation corresponding to the voice input through the application. In addition, a response indicating a result of performing the operation may be output by the electronic device 1000.
[0162] According to an embodiment of the present disclosure, based on a result of outputting a response to a voice input, according to an embodiment of the present disclosure, preference information that can be used to select an application may be updated.
[0163] Figure 7 is a flowchart illustrating a method of outputting a response to a voice input by using an application, performed by an electronic device according to an embodiment of the present disclosure.
[0164] Reference Figure 7 , the electronic device 1000 may receive a voice input at operation 710. For example, the electronic device 1000 may receive at least one voice input from at least one user.
[0165] At operation 720, the electronic device 1000 may detect an event related to the application A 121a. The event related to the application A 121a may include, for example, a state in which a response to the voice input cannot be output by the application A 121a that was previously determined as an application that outputs a response to the voice input. Therefore, the electronic device 1000 may perform an operation for selecting an application for processing the voice input according to the detection of the event.
[0166] At operation 730, the electronic device 1000 may obtain metadata for the voice input. The metadata for the voice input may include various information that can be obtained based on text obtained by performing voice recognition on the voice input. For example, the metadata may include information that can be obtained based on the text, such as keywords extracted from the text corresponding to the voice input, the user's intention, etc.
[0167] At operation 740, the electronic device 1000 may select at least one application B 121b for processing the voice input from the plurality of applications based on the metadata. The electronic device 1000 according to an embodiment of the present disclosure may select at least one application B 121b suitable for processing the voice input according to the metadata based on previously learned data. In addition, the electronic device 1000 may select at least one application B 121b by using preference information for each application in addition to the metadata.
[0168] At operation 750, the electronic device 1000 may transmit the voice input to the application B 121b selected at operation 740. The application B 121b may perform an operation corresponding to the voice input and obtain a response based on a result of performing the operation.
[0169] In operation 760, the electronic device 1000 may determine whether a plurality of responses are obtained from at least one application B 121b within a previously specified period of time after transmitting the voice input to at least one application B 121b. For example, when a plurality of applications B 121b are selected in operation 740, a plurality of responses may be obtained.
[0170] In operation 750, when a previously designated period of time has elapsed after sending a voice input to at least one application B 121b, the electronic device 1000 may determine that it is too late in time to provide a response received from application B 121b to the user and may not output a response to the voice input.
[0171] When only one response is obtained from at least one application B 121b within the previously specified time period, the electronic device 1000 may output the obtained one response as a response to the voice input at operation 762.
[0172] On the other hand, when a plurality of responses are obtained from at least one application B 121b within a previously specified time period, the electronic device 1000 may determine the priority of each response at operation 770. For example, the priority may be determined based on previously learned data for determining whether each response is an appropriate response corresponding to the user's intention.
[0173] In operation 780 , the electronic device 1000 may determine whether the priorities determined in operation 770 are the same.
[0174] When the priorities regarding the respective responses are all the same, the electronic device 1000 may output the plurality of responses regardless of the priorities at operation 790. For example, the electronic device 1000 may output the plurality of responses regardless of the priorities according to the order in which the responses are first received from the respective applications B 121b.
[0175] On the other hand, when the priorities of the respective responses are different, the electronic device 1000 may classify the responses based on the priorities at operation 782, and output the classified responses at operation 784. For example, the electronic device 1000 may output the plurality of responses sequentially according to the priorities, or output a predetermined number of responses in the order of the highest priority. When there are three predetermined number of responses, only two responses with the highest priority may be sequentially output.
[0176] In addition, when there are some responses having the same priority, the electronic device 1000 may prioritize responses first received from the respective applications B 121 b to determine the priority again.
[0177] When a plurality of responses to the voice input are obtained, the electronic device 100 may output the plurality of responses by using various methods, but is not limited to the above examples.
[0178] Figure 8 is a flowchart illustrating a method of learning preference information according to an embodiment of the present disclosure.
[0179] Reference Figure 8 , at operation 810, the electronic device 1000 may analyze various information related to each application processing a voice input as information for learning preference information.
[0180] The step of learning the preference information according to an embodiment of the present disclosure may be performed based on an application for outputting the response and various information for outputting the response after outputting a response to a voice input according to an embodiment of the present disclosure.
[0181] For example, in operation 810, the electronic device 1000 may analyze information about user feedback on a response to a voice input by each application, a result of processing the voice input by each application, the time taken by each application to process the voice input, the types of operations that can be performed by each application based on the voice input, the capabilities of each application, etc., and learn preference information based on the results of the analysis.
[0182] Various types of information for learning preference information may be analyzed in operation 810 , but are not limited to the above examples.
[0183] In operation 820 , the electronic device 1000 may learn preference information for each application based on the information analyzed in operation 810 .
[0184] Fig. 9 is a diagram for explaining an example of outputting a response to a voice input according to an embodiment of the present disclosure.
[0185] Reference Fig. 9 , the electronic device 1000 may be a configuration for outputting a response to the voice input 100, and may include a voice inputter 910, an instruction processing engine 920, a database 930, a first application 940, a second application 960, and an application controller 990. However, not in Fig. 9 All components shown in FIG. 1 are indispensable components of the electronic device 1000. The electronic device 1000 may be composed of Fig. 9 , and the electronic device 1000 may be implemented by more components than those shown in Fig. 9 The illustrated components may be implemented with fewer components.
[0186] Reference Fig. 9 , the voice input 100 “turn on the light” may be received through the voice inputter 910 . The voice inputter 910 may send the voice input 100 to the instruction processing engine 920 .
[0187] The instruction processing engine 920 may extract metadata from the voice input 100. The instruction processing engine 920 may perform voice recognition on the voice input 100 to obtain a text corresponding to the voice input 100 and obtain metadata based on the text.
[0188] For example, for the voice input 100 "turn on the light", "light" can be obtained as metadata. In addition, the instruction processing engine 920 can determine that the user's intention is "external device control" by analyzing the text corresponding to the voice input 100, and obtain "external device control" as metadata.
[0189] The database 930 may include preference information, wherein the preference information is information about an application suitable for processing the voice input 100 according to the characteristics of the voice input 100 that can be recognized as metadata. The instruction processing engine 920 may obtain corresponding preference information from the database 930 based on the metadata, and may select at least one application suitable for processing the voice input 100 based on the preference information.
[0190] According to an embodiment of the present disclosure, preference information may be learned based on at least one of user feedback on responses output by a plurality of applications available in the electronic device 1000, information on voice outputs of responses successfully output by the plurality of applications, time taken by the plurality of applications to output responses, or information on operations executable by the plurality of applications. Preference information may be learned based on various information for selecting at least one application suitable for processing the voice input 100 according to metadata of the voice input 100.
[0191] The instruction processing engine 920 may identify a first application 940 and a second application 960 that may be used to process the voice input 100 by the electronic device 1000. The first application 940 may be connected to the first cloud 950 to process the voice input 100 through the first cloud 950 and provide a response corresponding to the voice input 100. The second application 960 may also be connected to the second cloud 970 to process the voice input 100 through the second cloud 970 and provide a response corresponding to the voice input 100.
[0192] The instruction processing engine 920 may select the second application 960 as an application suitable for processing the voice input 100 from the first application 940 and the second application 960 available for processing the voice input 100 by the electronic device 1000. The instruction processing engine 920 may transmit the voice input 100 to the selected second application 960.
[0193] The second application 960 may process the voice input 100 through the second cloud 970, and may perform an operation corresponding to the voice input 100. For example, when the user is in the living room, the second application 960 may send a control operation of turning on "light 1 in the living room" as an operation corresponding to the voice input 100 to the application controller 990 through the instruction processing engine 920, and perform the control operation. The application controller 990 may control another application available in the electronic device 1000 to perform the above control operation.
[0194] For example, when a third application capable of controlling a light is available in the electronic device 1000, the application controller 990 may receive information about a control operation for turning on "light 1 in the living room" from the second application 960 through the instruction processing engine 920. In addition, the application controller 990 may perform a control operation for turning on "light 1 in the living room" by controlling the third application using the received information about the control operation. In addition, the application controller 990 may obtain a result of performing the control operation and send the result to the second application 960.
[0195] The second application 960 may generate and output a response message to the voice input 100 based on the result of performing the control operation. For example, when the control operation of turning on "the light 1 in the living room" is successfully performed, the second application 960 may output "the light 1 in the living room is turned on" as a response message to the voice input 100.
[0196] In addition, when the control operation of turning on “Light 1 in the living room” fails, the second application 960 may output “Failed to turn on Light 1 in the living room” as a response message to the voice input 100 .
[0197] In addition, when the control operation fails as a result of performing the control operation, the second application 960 may perform another control operation corresponding to the voice input 100. For example, the second application 960 may retry performing the control operation for turning on "Lights 2 and 3 located in the living room".
[0198] Fig.10 is a diagram illustrating an example of learning preference information according to an embodiment of the present disclosure.
[0199] Reference Fig.10 , preference information for each application may be learned based on the results of processing the same voice input by the first application 940 and the second application 960 .
[0200] The first application 940 and the second application 960 may be selected by the electronic device 1000 according to an embodiment of the present disclosure based on metadata of the voice input, and the voice input may be processed by the first application 940 and the second application 960 .
[0201] According to an embodiment of the present disclosure, metadata for a voice input of “turn on the light” may include “light” as keyword information and “home appliance control” as information about the user's intention.
[0202] The first application 940 fails to process the voice input, and the time taken to receive the voice input from the electronic device 1000 to output a response indicating the failure result may be measured as 1500 ms.
[0203] On the other hand, the second application 960 successfully processes the voice input, and the time taken for receiving the voice input from the electronic device 1000 to output a response indicating a successful result may be measured as 800 ms.
[0204] In an embodiment of the present disclosure, it is assumed that the user does not give feedback to responses output by the first application 940 and the second application 960 .
[0205] The preference analysis engine 116 may learn preference information based on at least one of user feedback on responses to each application, information about voice outputs of responses that each application successfully outputs, the time taken for each application to output responses, or information about operations that each application can perform based on voice input. The preference analysis engine 116 may analyze and learn various information related to the operations of each application processing voice input, but is not limited to the above examples. Preference information according to an embodiment of the present disclosure may be learned so that an appropriate application may be selected based on voice input distinguished by metadata.
[0206] According to Fig.10 In the embodiment of the present disclosure shown in , the preference analysis engine 116 may learn preference information for each application based on information about voice outputs of responses successfully output by each application and the time taken for each application to output a response to the voice input. The preference information learned by the preference analysis engine 116 may be stored in the database 131, or the preference information for each application previously stored in the database 131 may be updated based on the learned preference information.
[0207] The application selector 113 may then select an application for processing another voice input received by the electronic device 1000. The application selector 113 may select an application based on the preference information learned by the preference analysis engine 116.
[0208] When metadata for other voice input includes "light" as keyword information and "home appliance control" as information about the user's intention, the application selector 113 may select the second application 960 as an optimal application for the voice input.
[0209] Fig.11 is a diagram illustrating an example of performing an operation corresponding to each response according to a priority of each response to each of a plurality of voice inputs according to an embodiment of the present disclosure.
[0210] Reference Fig.11, the electronic device 1000 may receive a first voice input, a second voice input, and a third voice input as a plurality of voice inputs, and select a first application 940, a second application 960, and a third application 980 that will process the plurality of voice inputs, respectively. The electronic device 1000 may receive a plurality of voice inputs within a predetermined time period, and process and output a response corresponding to each voice input according to a priority. For example, the electronic device 1000 may select a first application 940, a second application 960, and a third application 980 according to metadata based on text corresponding to each of the plurality of voice inputs.
[0211] The first application 940, the second application 960, and the third application 980 may respectively output a response R1, a response R2, and a response R3 as a response to the voice input received by the electronic device 1000. The response R1, the response R2, and the response R3 output from each application according to an embodiment of the present disclosure may include information for controlling other applications according to an operation corresponding to the voice input. For example, when the voice input is "turn on the light", the response to the voice input may include information for controlling the light 1 in the living room through another application.
[0212] The response priority determination engine 115 may determine the priority of each of the responses R1, R2, and R3 output from the respective applications based on the information about the priority determination criteria 117. According to an embodiment of the present disclosure, the priority may be determined based on at least one of the user's intention related to the response, the size of the response, whether the response includes a characteristic preferred by the user, or information about the time taken for the electronic device 1000 to output the response after obtaining the response. The priority may be determined according to various criteria, but is not limited to the above examples.
[0213] For example, according to the priority determination criteria 117 , a response including information about emergency services may be determined as the highest priority with respect to the user's intention, and a response including information about music playback control may be determined as the lowest priority.
[0214] According to an embodiment of the present disclosure, response R1 may include control information related to music playback, response R2 may include control information related to emergency services, and response R3 may include control information related to home appliance control. According to the priority determination standard 117, the response priority determination engine 115 may determine the priority of each response in the order of response R2 related to emergency services, response R3 related to home appliance control, and response R1 related to music playback.
[0215] Reference Fig.11 , action A1, action A2 and action A3 represent operations corresponding to response R1, response R2 and response R3 respectively.
[0216] According to an embodiment of the present disclosure, the response priority determination engine 115 may cause the application controller 170 to operate in the order of action A2, action A3, and action A1, so that operations corresponding to the responses may be performed in the order of response R2, response R3, and response R1.
[0217] For example, the response priority determination engine 115 may request the application controller 990 to first perform an operation related to the emergency service, so that an operation corresponding to the response R1 may be first performed.
[0218] In addition, the first application 940, the second application 960, and the third application 980 may obtain a result of performing an operation corresponding to each response, and output a response indicating the result of performing the operation to the user.
[0219] According to an embodiment of the present disclosure, when the operation for each response is completed, the electronic device 1000 may output the responses generated by the first application 940, the second application 960, and the third application 980 in the order in which the responses are first generated. Alternatively, the electronic device 1000 may output the responses sequentially through the first application 940, the second application 960, and the third application 980 according to the priority determined by the response priority determination engine 115.
[0220] The electronic device 1000 may provide a plurality of responses to the plurality of voice inputs by using the first application 940 , the second application 960 , and the third application 980 according to various orders and methods.
[0221] Fig.12 is a diagram illustrating an example of updating preference information based on a response corresponding to a voice input according to an embodiment of the present disclosure.
[0222] Reference Fig.12 , when the first application 940 is executed, a guide message 1203 “What can I do?” may be output on the screen 1202 displaying the interface of the first application 940 .
[0223] According to an embodiment of the present disclosure, the first application 940 may be previously determined as an application that outputs a response to the voice input 1201. However, when an event including a state in which the first application 940 cannot output a response to the voice input 1201 is detected, an operation of selecting an application that will process the voice input 1201 according to an embodiment of the present disclosure may be performed.
[0224] After the guide message 1203 is output, a voice input 1201 “Show me driving directions to Chennai” may be received from the user. According to an embodiment of the present disclosure, when the first application 940 is executed by a user input calling the first application 940 , the voice input 1201 may be processed by the first application 940 .
[0225] As a result of performing voice recognition on the voice input 1201, a text 1204 corresponding to the voice input 1201 may be displayed. Fig.12 As shown in FIG. 1 , as responses 1205 and 1206 corresponding to voice input 1201 , a navigation function showing driving directions to Chennai may be provided.
[0226] The electronic device 1000 may update preference information of the first application 940 based on the voice input 1201 processed in the first application 940 and the responses 1205 and 1206 to the voice input 1201 .
[0227] For example, the electronic device 1000 may update the preference information of the first application 940 based on metadata including “driving” as metadata for the voice input 1201 and information indicating that the response to the voice input 1201 is successful.
[0228] Fig.13 is a diagram illustrating an example of updating preference information based on a response corresponding to a voice input according to an embodiment of the present disclosure.
[0229] Reference Fig.13 , while the second application 960 is being executed, a voice input 1301 “Show me driving directions to Chennai” may be received from the user.
[0230] According to an embodiment of the present disclosure, when the second application 960 is executed by a user input calling the second application 960 , the voice input 1301 may be processed by the second application 960 .
[0231] According to an embodiment of the present disclosure, the second application 960 may be previously determined as an application that outputs a response to the voice input 1301. However, when an event including a state in which the second application 960 cannot output a response to the voice input 1301 is detected, an operation of selecting an application that will process the voice input 1301 according to an embodiment of the present disclosure may be performed.
[0232] As a result of performing voice recognition on the voice input 1301, text 1303 corresponding to the voice input 1301 may be displayed on the screen 1302 displaying the interface of the second application 960. In addition, the second application 960 may display a response 1304 indicating a failure in processing the voice input 1301. For example, unlike the first application 940, the second application 960 may be unable to process the voice input 1301 because it cannot understand the voice input 1301 or cannot perform an operation corresponding to the voice input 1301.
[0233] The electronic device 1000 may update preference information of the second application 960 based on the voice input 1301 received in the second application 960 and the response 1304 to the voice input 1301 .
[0234] For example, the electronic device 1000 may update the preference information of the second application 960 based on metadata including “driving” as metadata for the voice input 1301 and information indicating that the response 1304 to the voice input 1301 has failed.
[0235] Fig.14 14 is a diagram illustrating an example of processing a voice input 1401 based on preference information according to an embodiment of the present disclosure.
[0236] Reference Fig.14 , the electronic device 1000 may include a first application 940 , a second application 960 , and an instruction processing engine 110 as components for processing a voice input 1401 .
[0237] According to an embodiment of the present disclosure, the electronic device 1000 may receive a voice input 1401 "Show me driving directions to Chennai". According to an embodiment of the present disclosure, in a state where neither the first application 940 nor the second application 960 is executed, when the voice input 1401 is received, an operation of selecting an application for processing the voice input 1401 according to an embodiment of the present disclosure may be performed. In addition, since the application for processing the voice input 1401 is not selected by the user, an operation of selecting an application for processing the voice input 1401 according to an embodiment of the present disclosure may be performed. In addition, when an event is detected in which an application previously determined to output a response to the voice input 1401 cannot output a response to the voice input 1401, an operation of selecting an application for processing the voice input 1401 according to an embodiment of the present disclosure may be performed.
[0238] The instruction processing engine 110 may be based on Fig.12 and Fig.13 In an embodiment of the present disclosure, the preference information of the first application 940 and the second application 960 is updated to select an application for processing the voice input 1401.
[0239] The instruction processing engine 110 may obtain metadata from the voice input 1401 for selecting an application for processing the voice input 1401. The metadata may be obtained based on text corresponding to the voice input 1401. Since the metadata obtained from the voice input 1401 includes "driving", the instruction processing engine 110 may select the first application 940 as an application suitable for processing the voice input 1401 including "driving" based on the preference information previously stored in the instruction processing engine 110.
[0240] For example, the instruction processing engine 110 may select the first application 940 that succeeds in the result of processing the voice input 1401 corresponding to the metadata “driving” from among the first application 940 and the second application 960 .
[0241] The first application 940 may process the voice input 1401 according to the selection of the instruction processing engine 110 , and output a response corresponding to the voice input 1401 as a result of the selection.
[0242] Fig.15 is a diagram illustrating an example of updating preference information based on a response corresponding to a voice input according to an embodiment of the present disclosure.
[0243] Reference Fig.15 , when a wake-up word that calls the first application 940 is input to the electronic device 1000 , the first application 940 may be executed and the voice input 1501 may be processed by the first application 940 .
[0244] Reference Fig.15 , when the first application 940 is executed, a guide message 1503 “What can I do?” may be output on the screen 1502 displaying the interface of the first application 940 .
[0245] According to an embodiment of the present disclosure, the first application 940 may be previously determined as an application that outputs a response to the voice input 1501. However, when an event including a state in which the first application 940 cannot output a response to the voice input 1501 is detected, an operation of selecting an application that will process the voice input 1501 according to an embodiment of the present disclosure may be performed.
[0246] After the guide message 1503 is output, a voice input 1501 “Is it raining in Bangalore?” may be received from the user. According to an embodiment of the present disclosure, when the first application 940 is executed by a user input calling the first application 940 , the voice input 1501 may be processed by the first application 940 .
[0247] As a result of performing voice recognition on the voice input 1501, a text 1504 corresponding to the voice input 1501 may be displayed. Fig.15 As shown in , weather information for Bangalore may be displayed as responses 1505 and 1506 corresponding to voice input 1501 .
[0248] The electronic device 1000 may update preference information of the first application 940 based on the voice input 1501 processed in the first application 940 and the responses 1505 and 1506 to the voice input 1501 .
[0249] For example, the electronic device 1000 updates the preference information of the first application 940 based on metadata including “rain” as metadata for the voice input 1501 and information indicating that the response to the voice input 1501 is successful.
[0250] In addition, the electronic device 1000 may receive negative feedback as user feedback for responses 1505 and 1506 to the voice input 1501. According to an embodiment of the present disclosure, since the responses 1505 and 1506 provided by the first application 940 include incorrect content, negative feedback may be received from the user. The electronic device 1000 may update the preference information of the first application 940 based on the negative feedback.
[0251] Fig.16 is a diagram illustrating an example of updating preference information based on a response corresponding to a voice input according to an embodiment of the present disclosure.
[0252] Reference Fig.16 , when a wake-up word that calls the second application 960 is input to the electronic device 1000 , the second application 960 may be executed and the voice input 1601 may be processed by the second application 960 .
[0253] Reference Fig.16 , while the second application 960 is being executed, a voice input 1601 “Is it raining in Bangalore?” may be received from the user.
[0254] According to an embodiment of the present disclosure, the second application 960 may be previously determined as an application that outputs a response to the voice input 1601. However, when an event including a state in which the second application 960 cannot output a response to the voice input 1601 is detected, an operation of selecting an application that will process the voice input 1601 according to an embodiment of the present disclosure may be performed.
[0255] As a result of performing voice recognition on the voice input 1601, text 1603 corresponding to the voice input 1601 may be displayed on the screen 1602 displaying the interface of the second application 960. Fig.16 As shown in , weather information of Bangalore may be displayed as responses 1604 and 1605 corresponding to voice input 1601 .
[0256] The electronic device 1000 according to an embodiment of the present disclosure may update preference information of the second application 960 based on the voice input 1601 received in the second application 960 and the responses 1604 and 1605 to the voice input 1601 .
[0257] For example, the electronic device 1000 may update the preference information of the second application 960 based on metadata including “rain” as metadata for the voice input 1601 and information indicating that the response to the voice input 1601 is successful.
[0258] In addition, the electronic device 1000 may receive positive feedback as user feedback for the response 1604 and the response 1605 to the voice input 1601. According to an embodiment of the present disclosure, when the response 1604 and the response 1605 provided by the second application 960 include accurate and detailed content, positive feedback may be received from the user. The electronic device 1000 may update the preference information of the second application 960 based on the positive feedback.
[0259] Fig.17 is a diagram illustrating an example of processing a voice input based on preference information according to an embodiment of the present disclosure.
[0260] Reference Fig.17 , the electronic device 1000 may include a first application 940 , a second application 960 , and an instruction processing engine 110 as components for processing a voice input 1701 .
[0261] According to an embodiment of the present disclosure, the electronic device 1000 may receive a voice input 1701 "Is it raining in Bangalore?". According to an embodiment of the present disclosure, in a state where both the first application 940 and the second application 960 are not executed, when the voice input 1701 is received, an operation of selecting an application for processing the voice input 1701 according to an embodiment of the present disclosure may be performed. In addition, since the application for processing the voice input 1701 is not selected by the user, an operation of selecting an application for processing the voice input 1701 according to an embodiment of the present disclosure may be performed. In addition, when an event is detected in which an application including an application previously determined to output a response to the voice input 1701 cannot output a response to the voice input 1701, an operation of selecting an application that will process the voice input 1701 according to an embodiment of the present disclosure may be performed.
[0262] For example, when the voice input 1701 does not include information indicating an application that will process the voice input 1701, an operation of selecting an application for processing the voice input 1701 according to an embodiment of the present disclosure may be performed.
[0263] The instruction processing engine 110 may be based on Fig.15 and Fig.16 In an embodiment of the present disclosure, the preference information of the first application 940 and the second application 960 is updated to select an application for processing the voice input 1701.
[0264] The instruction processing engine 110 may obtain metadata from the voice input 1701 for selecting an application for processing the voice input 1701. The metadata may be obtained based on text corresponding to the voice input 1701. Since the metadata obtained from the voice input 1701 includes "rain", the instruction processing engine 110 may select the second application 960 as an application suitable for processing the voice input 1701 including "rain" based on preference information previously stored in the instruction processing engine 110.
[0265] For example, the instruction processing engine 110 may select the second application 960 between the first application 940 and the second application 960, wherein the second application 960 is successful in processing the result of the voice input 1701 of the metadata "rain" included in the previously stored preference information, and the second application 960 is positive in user feedback.
[0266] The second application 960 may process the voice input 1701 according to the selection of the instruction processing engine 110 , and output a response corresponding to the voice input 1701 as a result of the selection.
[0267] Fig.18 is a diagram illustrating an example of updating preference information based on a response corresponding to a voice input according to an embodiment of the present disclosure.
[0268] Reference Fig.18 , when a wake-up word that calls the first application 940 is input to the electronic device 1000 , the first application 940 may be executed and the voice input 1801 may be processed by the first application 940 .
[0269] Reference Fig.18 , when the first application 940 is executed, a guide message 1803 “What can I do?” may be output on the screen displaying the interface 1802 of the first application 940 .
[0270] According to an embodiment of the present disclosure, the first application 940 may be previously determined as an application that outputs a response to the voice input 1801. However, when an event including a state in which the first application 940 cannot output a response to the voice input 1801 is detected, an operation of selecting an application that will process the voice input 1801 according to an embodiment of the present disclosure may be performed.
[0271] After the guide message 1803 is output, a voice input 1801 “Where is the headquarters of the European Union?” may be received from the user. According to an embodiment of the present disclosure, when the first application 940 is executed by a user input that calls the first application 940 , the voice input 1801 may be processed by the first application 940 .
[0272] As a result of performing voice recognition on the voice input 1801, a text 1804 corresponding to the voice input 1801 may be displayed. Fig.18 As shown in , information about Brussels, the headquarters of the European Union, may be displayed as responses 1805 and 1806 corresponding to voice input 1801 .
[0273] The electronic device 1000 may update the preference information of the first application 940 based on the voice input 1801 processed in the first application 940 and the responses 1805 and 1806 to the voice input 1801 .
[0274] For example, the electronic device 1000 may update the preference information of the first application 940 based on metadata including “Headquarters” as metadata for the voice input 1801 and information indicating that the response to the voice input 1801 is successful.
[0275] In addition, the electronic device 1000 may measure the time it takes for responses 1805 and 1806 to voice input 1801 to be displayed on interface 1802 after voice input 1801 is received, and may update the preference information of the first application 940 based on the time information "1.3 seconds" as the measured time.
[0276] Fig.19 is a diagram illustrating an example of updating preference information based on a response corresponding to a voice input according to an embodiment of the present disclosure.
[0277] Reference Fig.19 , when a wake-up word that calls the second application 960 is input to the electronic device 1000 , the second application 960 may be executed and the voice input 1901 may be processed by the second application 960 .
[0278] Reference Fig.19 , while the second application 960 is being executed, a voice input 1901 “Where is the headquarters of the European Union?” may be received from the user.
[0279] According to an embodiment of the present disclosure, when the second application 960 is executed by a user input calling the second application 960 , the voice input 1901 may be processed by the second application 960 .
[0280] According to an embodiment of the present disclosure, the second application 960 may be previously determined as an application that outputs a response to the voice input 1901. However, when an event including a state in which the second application 960 cannot output a response to the voice input 1901 is detected, an operation of selecting an application that will process the voice input 1901 according to an embodiment of the present disclosure may be performed.
[0281] As a result of performing voice recognition on the voice input 1901, text 1903 corresponding to the voice input 1901 may be displayed on the screen displaying the interface 1902 of the second application 960. Fig.19As shown in , information about Brussels, the headquarters of the European Union, may be displayed as responses 1904 and 1905 corresponding to the voice input 1601 .
[0282] The electronic device 1000 may update preference information of the second application 960 based on the voice input 1901 received in the second application 960 and the responses 1904 and 1905 to the voice input 1901 .
[0283] For example, the electronic device 1000 may update the preference information of the second application 960 based on metadata including “Headquarters” as metadata for the voice input 1901 and information indicating that the response to the voice input 1901 is successful.
[0284] In addition, the electronic device 1000 may measure the time it takes for responses 1905 and 1906 to voice input 1901 to be displayed on interface 1902 after voice input 1901 is received, and may update the preference information of the first application 940 based on the time information "2 seconds" as the measured time.
[0285] Fig. 20 2001 is a diagram illustrating an example of processing a voice input based on preference information according to an embodiment of the present disclosure.
[0286] Reference Fig. 20 , the electronic device 1000 may include a first application 940 , a second application 960 , and a command processing engine 110 as components for processing a voice input 2001 .
[0287] According to an embodiment of the present disclosure, the electronic device 1000 may receive a voice input 2001 "Where is the headquarters of the European Union?". According to an embodiment of the present disclosure, in a state where neither the first application 940 nor the second application 960 is executed, when the voice input 2001 is received, an operation of selecting an application for processing the voice input 2001 according to an embodiment of the present disclosure may be performed. In addition, according to an embodiment of the present disclosure, since the application for processing the voice input 2001 is not selected by the user, an operation of selecting an application for processing the voice input 2001 may be performed. In addition, when an event is detected in which an application including an application previously determined to output a response to the voice input 2001 cannot output a response to the voice input 2001, an operation of selecting an application for processing the voice input 2001 according to an embodiment of the present disclosure may be performed.
[0288] The instruction processing engine 110 may be based on Fig.18 and Fig.19 In an embodiment of the present disclosure, the preference information of the first application 940 and the second application 960 is updated to select an application for processing the voice input 2001.
[0289] The instruction processing engine 110 may obtain metadata from the voice input 2001 to select an application for processing the voice input 2001. The metadata may be obtained based on text corresponding to the voice input 2001. Since the metadata obtained from the voice input 2001 includes "Headquarters", the instruction processing engine 110 may select the second application 960 as an application suitable for processing the voice input 2001 including "Headquarters" based on the preference information previously stored in the instruction processing engine 110.
[0290] For example, the instruction processing engine 110 may select the second application 960 from the first application 940 and the second application 960, wherein the second application 960 is successful in processing the result of the voice input 2001 of the metadata "Headquarters" included in the previously stored preference information, and the time taken for the second application 960 to output a response to the voice input 2001 is short.
[0291] The second application 960 may process the voice input 2001 according to the selection of the instruction processing engine 110 , and output a response corresponding to the voice input 2001 as a result of the selection.
[0292] Fig.21 is a diagram illustrating an example of outputting a plurality of responses based on priorities according to an embodiment of the present disclosure.
[0293] Reference Fig.21 , the electronic device 1000 may receive a plurality of voice inputs 2101 and 2102 and output responses based on a plurality of response information 2103 and 2104 for the received voice inputs 2101 and 2102. Fig.21 The electronic device 1000 according to an embodiment of the present disclosure shown in FIG. 1 may receive a plurality of voice inputs 2101 and 2102 from a first speaker and a second speaker.
[0294] The electronic device 1000 may include an instruction processing engine 110 for processing a plurality of voice inputs 2101 and 2102 , and a first application 940 and a second application 960 that may be used to output responses to the plurality of voice inputs 2101 and 2102 .
[0295] The instruction processing engine 110 may select an application for processing the multiple voice inputs 2101 and 2102 based on metadata obtained on the basis of the text of the multiple voice inputs 2101 and 2102. For example, the first application 940 and the second application 960 may be selected as applications for processing the multiple voice inputs 2101 and 2102, respectively.
[0296] The first application 940 and the second application 960 may be connected to the first cloud 950 and the second cloud 970, respectively, and output responses to the voice input 2101 and the voice input 2102 sent to the respective applications. According to an embodiment of the present disclosure, the first application 940 and the second application 960 may output responses to the voice input 2101 and the voice input 2102 based on data received from the cloud connected to each application.
[0297] According to an embodiment of the present disclosure, a voice input 2101 “What time is it now?” may be sent to the first application 940 through the instruction processing engine 110. The first application 940 may use the first cloud 950 to obtain a response message 2103 “The current time is 6pm” of 1MB in size. In addition, a voice input 2102 “What’s the weather like now?” may be sent to the second application 960 through the instruction processing engine 110. The second application 960 may use the second cloud 970 to obtain a response message 2104 “The current weather at location A is good. It is raining at location B, and it is foggy at location C.” of 15MB in size.
[0298] The response information 2103 and the response information 2104 obtained in the first application 940 and the second application 960 may be sent to the instruction processing engine 110. The instruction processing engine 110 may determine the priority of the plurality of response information 2103 and 2104 and output a plurality of responses based on the plurality of response information 2103 and 2104 according to the priority.
[0299] According to an embodiment of the present disclosure, the faster the priority of the multiple response information 2103 and 2104 can be output, the smaller the response size is, and the faster the priority is processed by the electronic device 1000, so the priority can be determined to have a high priority. For example, because the size of the response information 2103 obtained from the first application 940 is smaller than the size of the response information 2104 obtained from the second application 960, the response information 2103 can be determined to have a higher priority than the response information 2104.
[0300] The electronic device 1000 may determine the priorities of multiple response information 2103 and 2104 based on whether the response has characteristics preferred by the user, the time taken for the electronic device 1000 to output the response, and various other criteria, and may output the responses sequentially based on the multiple response information 2103 and 2104 according to the determined priorities.
[0301] Therefore, even when the electronic device 1000 receives multiple voice inputs, multiple voice inputs can be processed simultaneously and multiple responses can be output. In addition, according to an embodiment of the present disclosure, when multiple responses are output sequentially according to priorities determined based on previously determined criteria, user experience can be improved.
[0302] Fig. 22 is a diagram illustrating an example of outputting a plurality of responses based on priorities according to an embodiment of the present disclosure.
[0303] Reference Fig. 22 , the electronic device 1000 may receive a plurality of voice inputs 2201 and 2202, and output a plurality of responses to the received voice inputs 2201 and 2202. The electronic device 1000 may receive a plurality of voice inputs 2201 and 2202 from a first speaker and a second speaker.
[0304] The electronic device 1000 may include an instruction processing engine 110 for processing a plurality of voice inputs 2201 and 2202 , and a first application 940 and a second application 960 that may be used to output responses to the plurality of voice inputs 2201 and 2202 .
[0305] The instruction processing engine 110 according to an embodiment of the present disclosure may select an application for processing the multiple voice inputs 2201 and 2202 based on metadata obtained on the basis of the texts of the multiple voice inputs 2201 and 2202. For example, the first application 940 and the second application 960 may be selected as applications for processing the multiple voice inputs 2201 and 2202, respectively.
[0306] The first application 940 and the second application 960 may be connected to the first cloud 950 and the second cloud 970, respectively, and output responses to the voice input 2201 and the voice input 2202 in the respective applications. According to an embodiment of the present disclosure, the first application 940 and the second application 960 may output responses to the voice input 2201 and the voice input 2202 based on data received from the cloud connected to each application.
[0307] According to an embodiment of the present disclosure, the voice input 2201 "turn on the light" may be sent to the first application 940 through the instruction processing engine 110. The first application 940 may use the first cloud 950 to obtain response information 2203, wherein the response information 2203 includes "home appliance control" as information related to the user's intention and includes "turn on the light 1 in the living room" as operation information corresponding to the voice input 2201.
[0308] In addition, the voice input 2202 “What is the headline news today?” may be sent to the second application 960 through the instruction processing engine 110. The second application 960 may use the second cloud 970 to obtain response information 2204, wherein the response information 2204 includes “news information provision” as information related to the user's intention and includes “the price of crude oil today has fallen” as text information that may be output in response to the voice input 2201.
[0309] The response information 2203 and the response information 2204 obtained in the first application 940 and the second application 960 may be sent to the instruction processing engine 110. The instruction processing engine 110 may determine the priority of the plurality of response information 2203 and 2204 and output a response based on the plurality of response information 2203 and 2204 according to the priority.
[0310] According to an embodiment of the present disclosure, the priorities of the plurality of response information 2203 and 2204 may be determined to have higher priorities according to responses having characteristics further preferred by the user of the electronic device 1000. At least one of the first speaker or the second speaker may be the user of the electronic device 1000.
[0311] For example, when the user of the electronic device 1000 prefers responses related to "home appliance control" rather than responses related to "news information provision", response information 2203 related to "home appliance control" may be determined to have a higher priority than response information 2204 related to "news information provision".
[0312] According to an embodiment of the present disclosure, the electronic device 1000 may control the lamp 1 in the living room based on the operation information of the response information 2203 related to "home appliance control" and output the control result. After the control result according to the response information 2203 is output as a response to the voice input 2201, the electronic device 1000 may output text as a response to the voice input 2201 based on the response information 2204 related to "news information provision".
[0313] The electronic device 1000 may determine the priority of multiple response information 2203 and 2204 based on whether the response is preferred by the user, whether the response can be output faster by the electronic device 1000, or other various criteria, and may output the responses sequentially based on the multiple response information 2203 and 2204 according to the determined priority.
[0314] Therefore, even when the electronic device 1000 receives multiple voice inputs, the multiple voice inputs can be processed simultaneously and multiple responses can be output. In addition, when multiple responses are output sequentially according to the priority determined based on the previously determined criteria, the user experience can be improved.
[0315] Fig.23 is a diagram illustrating an example of outputting a response to a voice input through another electronic device according to an embodiment of the present disclosure.
[0316] Reference Fig.23 , the first electronic device 2302 may receive a voice input from the user. Fig.23 The first electronic device 2302 shown in FIG. Figures 1 to 3 The electronic device 1000 corresponds.
[0317] The second electronic device 2304 may be Figures 1 to 3 The electronic device 1000 corresponds to and is different from a device that can be coupled to the first electronic device 2302 .
[0318] The first electronic device 2302 and the second electronic device 2304 can be connected to the first cloud 950 through the network device 2301 to output a response to the voice input through the first application 2303 and the second application 2305 selected according to an embodiment of the present disclosure. For example, the network device 2301 can be a backhaul device that supports network connection of devices connected to the network device 2301.
[0319] According to an embodiment of the present disclosure, the first electronic device 2302 may process the received voice input, and when it is in a state where the first electronic device 2302 cannot output a response to the voice input, it may search for a second electronic device 2304 capable of processing the voice input. The first electronic device 2302 may send the voice input to the second electronic device 2304 according to the search result.
[0320] For example, because the connection status of the network device 2301 is not good or connection is impossible, the first electronic device 2302 may be in a state where the first electronic device 2302 cannot use the network device 2301 for processing voice input. The first electronic device 2302 may use the network device 2301 to send the voice input to the second electronic device 2304 in a state where the voice input can be processed.
[0321] The second electronic device 2304 receiving the voice input from the first electronic device 2302 may process the voice input instead of the first electronic device 2302. The second electronic device 2304 may output a response obtained by processing the voice input or may send the response to the first electronic device 2302. When the first electronic device 2302 receives a response from the second electronic device 2304, the first electronic device 2302 may output the received response as a response to the voice input.
[0322] Therefore, even when the first electronic device 2302 is in a state where the first electronic device 2302 cannot output a response to a voice input, the second electronic device 2304 may process the voice input instead of the first electronic device 2302, and thus a response to the voice input may be output.
[0323] Fig.24 is a diagram illustrating an example of controlling an external device according to a response to a voice input by another electronic device according to an embodiment of the present disclosure.
[0324] refer to Fig.24, the first electronic device 2402 may receive a voice input from the user. Fig.24 The first electronic device 2402 shown in FIG. Figures 1 to 3 The electronic device 1000 corresponds.
[0325] The second electronic device 2404 may be an electronic device other than the first electronic device 2402 that is located adjacent to the first electronic device 2402. The second electronic device 2404 may also be an electronic device that is connected to the external device 2405 in order to control the external device 2405. Figures 1 to 3 The electronic device 1000 corresponds to an electronic device.
[0326] The first electronic device 2302 may select the first application 2403 to process the received voice input and obtain operation information corresponding to the voice input through the first application 2403. For example, the first application 2403 may process the voice input through the first cloud 950 and obtain operation information about an operation to be performed according to the voice input.
[0327] The first application 2403 may perform an operation according to the operation information and output a response based on the result of the operation. According to an embodiment of the present disclosure, the operation information according to the voice input may include an operation of controlling the external device 2405. The external device 2405 may include, for example, a home appliance device that can be controlled by the second electronic device 2404.
[0328] When the first electronic device 2402 is a device that cannot control the external device 2405, the first electronic device 2402 may search for the second electronic device 2404 that can control the external device 2405. The first electronic device 2402 may request the second electronic device 2404 to control the external device 2405 based on operation information according to voice input.
[0329] The second electronic device 2404 may control the external device 2405 in response to the request received from the first electronic device 2402. In addition, the second electronic device 2404 may transmit the result of controlling the external device 2405 to the first electronic device 2402.
[0330] The first electronic device 2402 may output a response corresponding to the voice input based on the result of controlling the external device 2405 received from the second electronic device 2404. For example, when successfully controlling the external device 2405, the first electronic device 2402 may output a response indicating that the external device 2405 is controlled according to the voice input.
[0331] Therefore, according to an embodiment of the present disclosure, even when the first electronic device 2402 cannot control the external device 2405 according to voice input, the first electronic device 2402 can control the external device 2405 according to voice input through the second electronic device 2404 connected to the first electronic device 2402.
[0332] Fig.25 is a diagram illustrating an example in which the electronic device 1000 processes a voice input according to an embodiment of the present disclosure.
[0333] Reference Fig.25 , the electronic device 1000 may receive a voice input and output a response corresponding to the received voice input. The electronic device 1000 may store the received voice input in the memory 1700 in order to process the voice input according to an embodiment of the present disclosure.
[0334] According to an embodiment of the present disclosure, the electronic device 1000 may select the first application 940 for outputting a response corresponding to the voice input based on the text corresponding to the voice input. The first application 940 may obtain and output a response corresponding to the voice input through data transmission / reception with the first cloud 950.
[0335] When the electronic device 1000 successfully processes the voice input and outputs a response, the electronic device 1000 according to an embodiment of the present disclosure may delete the voice input stored in the memory 1700 .
[0336] Fig.26 is a diagram illustrating an example in which a plurality of electronic devices process voice input according to an embodiment of the present disclosure.
[0337] Reference Fig.26 , the first electronic device 2602 and the second electronic device 2604 may be Figures 1 to 3 The second electronic device 2604 may be an electronic device that is connectable to the first electronic device 2602 and is different from the first electronic device 2602.
[0338] In addition, the first application 2603 and the first application 2605 included in the first electronic device 2602 and the second electronic device 2604 according to an embodiment of the present disclosure may obtain a response to a voice input through the first cloud 950 .
[0339] According to an embodiment of the present disclosure, the first electronic device 2602 may receive a voice input and process the voice input to output a response corresponding to the voice input. According to an embodiment of the present disclosure, when the first electronic device 2602 receives a voice input, the first electronic device 2602 may store the voice input in a storage device (e.g., memory) inside the first electronic device 2602.
[0340] In addition, when the first electronic device 2602 fails to process the voice input and output a response, the first electronic device 2602 may search for a second electronic device 2604 that can be connected to the first electronic device 2602. The second electronic device 2604 may be a device that can process the voice input through the first application 2605 and the first cloud 950 to output a response.
[0341] The first electronic device 2602 may send the voice input to the second electronic device 2604, and the voice input may be processed by the second electronic device 2604. The first electronic device 2602 may send the voice input to the second electronic device 2604 and then delete the voice input stored in the storage device. In addition, the first electronic device 2602 may send the voice input to the second electronic device 2604, receive and output a response to the voice input from the second electronic device 2604, and then delete the voice input stored in the storage device.
[0342] Fig. 27 is a diagram illustrating an example in which a plurality of electronic devices process voice input according to an embodiment of the present disclosure.
[0343] Reference Fig. 27 , the first electronic device 2702 and the second electronic device 2704 may be Figures 1 to 3 The second electronic device 2704 may be an electronic device that is connectable to the first electronic device 2702 and is different from the first electronic device 2702.
[0344] In addition, the first application 2703 and the first application 2705 included in the first electronic device 2702 and the second electronic device 2704 according to an embodiment of the present disclosure may obtain a response to a voice input through the first cloud 950 .
[0345] When the power of the second electronic device 2704 is activated, the first electronic device 2702 may detect the presence of the second electronic device 2704 that may be connected to the first electronic device 2702 through the network device 2701. For example, when the power of the second electronic device 2704 is activated, the second electronic device 2704 may indicate the presence of the second electronic device 2704 to the first electronic device 2702 through the network device 2701.
[0346] When the first electronic device 2702 receives an indication indicating the presence of the second electronic device 2704, the first electronic device 2702 may store information about the second electronic device 2704 in a storage device (e.g., memory) inside the first electronic device 2702 based on the received indication. The information about the second electronic device 2704 may include various information about the second electronic device 2704, for example, identification information of the second electronic device 2704, information about an application that can process voice input in the second electronic device 2704, an IP address of the second electronic device 2704, information about the quality of a network connected to the second electronic device 2704, and the like.
[0347] According to an embodiment of the present disclosure, the first electronic device 2702 may send a request to output a response to a voice input to the second electronic device 2704 using information about the second electronic device 2704 .
[0348] Fig.28 is a diagram illustrating an example in which a plurality of electronic devices process voice input according to an embodiment of the present disclosure.
[0349] Reference Fig.28 , the first electronic device 2802, the second electronic device 2804 and the third electronic device 2806 may be Figures 1 to 3 The first electronic device 2802 , the second electronic device 2804 , and the third electronic device 2806 may be different devices that can be connected through the network device 2801 .
[0350] According to an embodiment of the present disclosure, when the power of the second electronic device 2804 and the third electronic device 2806 is activated, the first electronic device 2802 may receive an indication indicating the presence of each of the second electronic device 2804 and the third electronic device 2806 from the second electronic device 2804 and the third electronic device 2806. When the first electronic device 2802 receives the indication indicating the presence of each device, the first electronic device 2802 may detect the presence of each device.
[0351] According to an embodiment of the present disclosure, when the first electronic device 2802 detects the presence of the second electronic device 2804 and the third electronic device 2806, the first electronic device 2802 may store information about the second electronic device 2804 and the third electronic device 2806 in a storage device (e.g., memory) inside the first electronic device 2802. The information about the second electronic device 2804 and the third electronic device 2806 may include various information about the second electronic device 2804 and the third electronic device 2806, for example, identification information of the second electronic device 2804 and the third electronic device 2806, information about applications that can process voice input in the second electronic device 2804 and the third electronic device 2806, IP addresses of the second electronic device 2804 and the third electronic device 2806, information about the quality of networks connected to the second electronic device 2804 and the third electronic device 2806, and the like.
[0352] In addition, when the power of the second electronic device 2804 is deactivated, the first electronic device 2802 may detect the absence of the second electronic device 2804. According to an embodiment of the present disclosure, when the first electronic device 2802 detects the absence of the second electronic device 2804, the first electronic device 2802 may delete the information about the second electronic device 2804 stored in the first electronic device 2802.
[0353] Fig.29 is a diagram illustrating an example in which a plurality of electronic devices process voice input according to an embodiment of the present disclosure.
[0354] Reference Fig.29 , the first electronic device 2902, the second electronic device 2904 and the third electronic device 2906 may be Figures 1 to 3 The first electronic device 2902, the second electronic device 2904, and the third electronic device 2906 may be different devices that can be connected through the network device 2901. In addition, each of the first electronic device 2902, the second electronic device 2904, and the third electronic device 2906 may process the voice input to output a response corresponding to the voice input.
[0355] According to an embodiment of the present disclosure, when the first electronic device 2902 detects the presence of the second electronic device 2904 and the third electronic device 2906 , the first electronic device 2902 may store information about the second electronic device 2904 and the third electronic device 2906 in a storage device (eg, memory) inside the first electronic device 2902 .
[0356] Unlike the first electronic device 2902 and the second electronic device 2904 , the third electronic device 2806 may be connected to an external device 2907 to perform an operation of controlling the external device 2907 according to a voice input.
[0357] According to an embodiment of the present disclosure, the first electronic device 2902 may receive a voice input from a user. For example, when the first electronic device 2902 receives a voice input including a wake-up word, the first electronic device 2902 may change from an inactive state to an active state, in which the first electronic device 2902 may process the voice input. When the voice input received by the first electronic device 2902 includes a user request to control the external device 2907, the first electronic device 2902 may determine a state in which the first electronic device 2902 cannot process the voice input.
[0358] The first electronic device 2902 may send a wake-up request to the second electronic device 2904 and the third electronic device 2906 through the network device 2901 to process the voice input. When the wake-up request is sent, the second electronic device 2904 and the third electronic device 2906 may be in an activated state, wherein in the activated state, the second electronic device 2904 and the third electronic device 2906 may process the voice input within a predetermined time period.
[0359] The first electronic device 2902 may obtain information about operations that can be performed in each device from the second electronic device 2904 and the third electronic device 2906 in the activated state. When the third electronic device 2906 remains in the activated state, the first electronic device 2902 may send a voice input to the third electronic device 2906 that may perform an operation according to the voice input based on the obtained information.
[0360] The third electronic device 2906 may process the voice input received from the first electronic device 2902 to perform an operation of controlling the external device 2907 and send the result of performing the operation to the first electronic device 2902, or the third electronic device 2906 may output the result as a response to the voice input.
[0361] Fig.30 is a block diagram of a processor according to an embodiment of the present disclosure.
[0362] Reference Fig.30 , the processor 1300 may include a data learner 1310 and a data determiner 1320.
[0363] The data learner 1310 may learn a reference for determining a situation. The data learner 1310 may learn a reference related to what data is used to determine a predetermined situation or how to use data to determine a situation. The data learner 1310 may obtain data to be used for learning and apply the obtained data to a data determination model to be described later, thereby learning a reference for determining a situation.
[0364] The data learner 1310 may learn a reference for selecting an application for outputting a response corresponding to a voice input.
[0365] The data determiner 1320 may determine a situation based on the data. The data determiner 1320 may determine a situation from predetermined data by using a learned data determination model. The data determiner 1320 may obtain predetermined data according to a previously determined reference by learning, and use a data determination model having the obtained data as an input value, thereby determining a predetermined situation based on the predetermined data. In addition, the data determination model may be refined using a result value output by the data determination model having the obtained data as an input value.
[0366] The data determiner 1320 according to an embodiment of the present disclosure may select an application for outputting a response corresponding to a voice input by using a learned data determination model.
[0367] At least one of the data learner 1310 or the data determiner 1320 may be manufactured in the form of at least one hardware chip and installed on the electronic device. For example, at least one of the data learner 1310 or the data determiner 1320 may be manufactured in the form of a dedicated hardware chip for AI, or may be manufactured as part of an existing general-purpose processor (e.g., a central processing unit (CPU) or an application processor) or only a graphics processor (e.g., a graphics processing unit (GPU)) and installed on the electronic device.
[0368] In this case, the data learner 1310 and the data determiner 1320 may be installed on one electronic device or may be installed on separate electronic devices. For example, one of the data learner 1310 and the data determiner 1320 may be included in the electronic device, and the other may be included in the server. The data learner 1310 may also provide the model information constructed by the data learner 1310 to the data determiner 1320 by wire or wireless, and the data determiner 1320 may provide the data input to the data determiner 1320 as additional training data to the data learner 1310.
[0369] In addition, at least one of the data learner 1310 or the data determiner 1320 may be implemented as a software module. When at least one of the data learner 1310 or the data determiner 1320 is implemented as a software module (or a program module including instructions), the software module may be stored in a non-transitory computer-readable medium. In addition, in this case, at least one software module may be provided by an operating system (OS) or by a predetermined application. Alternatively, one of the at least one software module may be provided by the OS, and the other may be provided by a predetermined application.
[0370] Fig.31is a block diagram of a data learner 1310 according to an embodiment of the present disclosure.
[0371] Reference Fig.31 , the data learner 1310 according to an embodiment of the present disclosure may include a data obtainer 1310 - 1 , a preprocessor 1310 - 2 , a training data selector 1310 - 3 , a model learner 1310 - 4 , and a model evaluator 1310 - 5 .
[0372] The data obtainer 1310-1 may obtain data necessary for situation determination. The data obtainer 1310-1 may obtain data necessary for learning of situation determination.
[0373] According to an embodiment of the present disclosure, the data obtainer 1310-1 can obtain data that can be used to select an application for processing voice input. The data that can be obtained by the data obtainer 1310-1 includes, for example, metadata obtained based on text corresponding to the voice input, information about the response to the voice input output by each application, etc.
[0374] The preprocessor 1310-2 may preprocess the obtained data so that the obtained data may be used for learning of situation determination. The preprocessor 1310-2 may process the obtained data in a predetermined format so that the model learner 1310-4 to be described later may use the obtained data for learning of situation determination.
[0375] The training data selector 1310-3 may select data necessary for learning from the preprocessed data. The selected data may be provided to the model learner 1310-4. The training data selector 1310-3 may select data necessary for learning from the preprocessed data according to a predetermined reference for situation determination. The training data selector 1310-3 may also select data according to a predetermined reference learned by the model learner 1310-4 to be described later.
[0376] The model learner 1310-4 may learn a reference on how to determine a situation based on training data. In addition, the model learner 1310-4 may learn a reference on which training data to use for situation determination.
[0377] According to an embodiment of the present disclosure, the model learner 1310-4 may learn a reference for selecting an application for outputting a response preferred by the user, such as outputting a response of more specific content or outputting a response at a high speed corresponding to a voice input.
[0378] In addition, the model learner 1310-4 can use the training data to learn the data determination model for situation determination. In this case, the data determination model can be a previously constructed model. For example, by receiving basic training data (e.g., sample images, etc.), the data determination model can be a previously constructed model.
[0379] The data determination model may be constructed in consideration of the application field of the determination model, the purpose of learning, or the computer performance of the device, etc. For example, the data determination model may be a model based on a neural network. For example, models such as a deep neural network (DNN), a recurrent neural network (RNN), and a bidirectional recurrent DNN (BRDNN) may be used as the data determination model, but are not limited thereto.
[0380] According to various embodiments of the present disclosure, when there are a plurality of previously constructed data determination models, the model learner 1310-4 may determine a data determination model having a high correlation between the input training data and the basic training data as the data determination model. In this case, the basic training data may be classified in advance according to the data type, and a data determination model may be constructed in advance for each data type. For example, the basic training data may be classified in advance according to various references such as the region where the training data is generated, the time when the training data is generated, the size of the training data, the type of the training data, the creator of the training data, the type of the object in the training data, etc.
[0381] In addition, the model learner 1310-4 may use a learning algorithm including, for example, an error back propagation method or a gradient descent method to train the data to determine the model.
[0382] The model learner 1310-4 may train the data determination model through supervised learning, for example, using the training data as an input value. In addition, the model learner 1310-4 may train the data determination model through unsupervised learning to find a reference for situation determination by autonomously learning the data type necessary for situation determination without any guidance. In addition, the model learner 1310-4 may train the data determination model through reinforcement learning, for example, using feedback on whether the result of the learned situation determination is correct.
[0383] In addition, when the data determination model is trained, the model learner 1310-4 may store the learned data determination model. In this case, the model learner 1310-4 may store the trained data determination model in the memory of the electronic device including the data determiner 1320. Alternatively, the model learner 1310-4 may store the trained data determination model in the memory of the electronic device including the data determiner 1320 to be described later. Alternatively, the model learner 1310-4 may store the trained data determination model in the memory of a server connected to the electronic device via a wired or wireless network.
[0384] In this case, the memory storing the trained data determination model may also store, for example, commands or data related to at least one other component of the electronic device. The memory may also store software and / or programs. The program may include, for example, a kernel, middleware, an application programming interface (API), and / or an application program (or "application").
[0385] The model evaluator 1310-5 may input the evaluation data to the data determination model, and when the recognition result output from the evaluation data does not meet the predetermined reference, the model evaluator 1310-5 may allow the model learner 1310-4 to be trained again. In this case, the evaluation data may be predetermined data for the evaluation data determination model.
[0386] For example, when the number or ratio of evaluation data having incorrect recognition results among the recognition results of the trained data determination model for the evaluation data exceeds a predetermined threshold, the model evaluator 1310-5 may evaluate that the data determination model does not meet the predetermined reference. For example, when the predetermined threshold is defined as a ratio of 2%, and when the trained data determination model outputs incorrect recognition results with respect to more than 20 evaluation data out of a total of 1000 evaluation data, the model evaluator 1310-5 may evaluate that the trained data determination model is inappropriate.
[0387] On the other hand, when there are multiple trained data determination models, the model evaluator 1310-5 may evaluate whether each of the trained motion determination models satisfies a predetermined reference, and determine the model satisfying the predetermined reference as the final data determination model. In this case, when multiple models satisfy the predetermined reference, the model evaluator 1310-5 may determine any one or a predetermined number of models among the models previously set in descending order of evaluation scores as the final data determination model.
[0388] In addition, at least one of the data acquirer 1310-1, the preprocessor 1310-2, the training data selector 1310-3, the model learner 1310-4, or the model evaluator 1310-5 in the data learner 1310 may be manufactured in the form of at least one hardware chip and installed on the electronic device. For example, at least one of the data acquirer 1310-1, the preprocessor 1310-2, the training data selector 1310-3, the model learner 1310-4, or the model evaluator 1310-5 may be manufactured in the form of a dedicated hardware chip for AI or may be manufactured as part of an existing general-purpose processor (e.g., a CPU or an application processor) or only a graphics processor (e.g., a GPU) and installed on the electronic device.
[0389] In addition, the data obtainer 1310-1, the preprocessor 1310-2, the training data selector 1310-3, the model learner 1310-4, and the model evaluator 1310-5 may be installed on one electronic device or may be installed on separate electronic devices. For example, some of the data obtainer 1310-1, the preprocessor 1310-2, the training data selector 1310-3, the model learner 1310-4, and the model evaluator 1310-5 may be included in the electronic device, and the others may be included in the server.
[0390] In addition, at least one of the data obtainer 1310-1, the preprocessor 1310-2, the training data selector 1310-3, the model learner 1310-4, or the model evaluator 1310-5 may be implemented as a software module. When at least one of the data obtainer 1310-1, the preprocessor 1310-2, the training data selector 1310-3, the model learner 1310-4, or the model evaluator 1310-5 is implemented as a software module (or a program module including instructions), the software module may be stored in a non-transitory computer-readable medium. In addition, in this case, at least one software module may be provided by the OS or by a predetermined application. Alternatively, one of the at least one software module may be provided by the OS, and the other may be provided by a predetermined application.
[0391] Fig.32 is a block diagram of a data determiner 1320 according to an embodiment of the present disclosure.
[0392] Reference Fig.32 , the data determiner 1320 according to an embodiment of the present disclosure may include a data obtainer 1320 - 1 , a preprocessor 1320 - 2 , a recognition data selector 1320 - 3 , a recognition result provider 1320 - 4 , and a model refiner 1320 - 5 .
[0393] The data obtainer 1320-1 may obtain data necessary for situation determination, and the preprocessor 1320-2 may preprocess the obtained data so that the obtained data can be used for situation determination. The preprocessor 1320-2 may process the obtained data into a predetermined format so that the recognition result provider 1320-4 to be described later can use the obtained data for situation determination.
[0394] According to an embodiment of the present disclosure, the electronic device 1000 may obtain text corresponding to a voice input by performing voice recognition on the voice input, and may generate metadata based on the obtained text. The electronic device 1000 may obtain the generated metadata as data necessary for situation determination.
[0395] The identification data selector 1320-3 may select data necessary for situation determination from the preprocessed data. The selected data may be provided to the recognition result provider 1320-4. The identification data selector 1320-3 may select some or all of the preprocessed data according to a predetermined reference for situation determination. The identification data selector 1320-3 may also select data according to a predetermined reference learned by a model learner 1310-4 to be described later.
[0396] The recognition result provider 1320-4 can determine the situation by applying the selected data to the data determination model. The recognition result provider 1320-4 can provide the recognition result according to the data recognition purpose. The recognition result provider 1320-4 can apply the selected data to the data determination model by using the data selected by the recognition data selector 1320-3 as an input value. In addition, the recognition result can be determined by the data determination model.
[0397] According to an embodiment of the present disclosure, a result of selecting an application for processing a voice input by a data determination model may be provided.
[0398] The model refiner 1320-5 may modify the data determination model based on the evaluation of the recognition result provided by the recognition result provider 1320-4. For example, the model refiner 1320-5 may provide the recognition result provided by the recognition result provider 1320-4 to the model learner 1310-4 so that the model learner 1310-4 may modify the data determination model.
[0399] In addition, at least one of the data obtainer 1320-1, the preprocessor 1320-2, the recognition data selector 1320-3, the recognition result provider 1320-4, or the model refiner 1320-5 in the data determiner 1320 may be manufactured in the form of at least one hardware chip and installed on the electronic device. For example, at least one of the data obtainer 1320-1, the preprocessor 1320-2, the recognition data selector 1320-3, the recognition result provider 1320-4, or the model refiner 1320-5 may be manufactured in the form of a dedicated hardware chip for AI or may be manufactured as part of an existing general-purpose processor (e.g., a CPU or an application processor) or only a graphics processor (e.g., a GPU) and installed on the electronic device.
[0400] In addition, the data obtainer 1320-1, the preprocessor 1320-2, the recognition data selector 1320-3, the recognition result provider 1320-4, and the model refiner 1320-5 may be installed on one electronic device or may be installed on separate electronic devices. For example, some of the data obtainer 1320-1, the preprocessor 1320-2, the recognition data selector 1320-3, the recognition result provider 1320-4, and the model refiner 1320-5 may be included in the electronic device, and the others may be included in the server.
[0401] In addition, at least one of the data obtainer 1320-1, the preprocessor 1320-2, the recognition data selector 1320-3, the recognition result provider 1320-4, or the model refiner 1320-5 may be implemented as a software module. When at least one of the data obtainer 1320-1, the preprocessor 1320-2, the recognition data selector 1320-3, the recognition result provider 1320-4, or the model refiner 1320-5 is implemented as a software module (or a program module including instructions), the software module may be stored in a non-transitory computer-readable medium. In addition, in this case, at least one software module may be provided by the OS or by a predetermined application. Alternatively, one of the at least one software module may be provided by the OS, and the other may be provided by a predetermined application.
[0402] Fig.33 is a diagram illustrating an example in which an electronic device and a server learn and determine data by interacting with each other according to an embodiment of the present disclosure.
[0403] Reference Fig.33 , the server 2000 may be implemented using at least one computer device. The server 2000 may be distributed in the form of a cloud and may provide commands, codes, files, content, etc. The server 2000 may include a data determiner 2300, wherein the data determiner 2300 may include a data obtainer 2310, a preprocessor 2320, a training data selector 2330, a model learner 2340, and a model evaluator 2350.
[0404] Reference Fig.33 , the server 2000 may learn a reference for situation determination, and the electronic device 1000 may determine the situation based on the learning result of the server 2000 .
[0405] In this case, the model learner 2340 of the server 2000 may execute Fig.31The model learner 2340 of the server 2000 may learn a reference about what data to use to determine a predetermined situation or how to use data to determine a situation. The model learner 2340 may obtain data to be used for learning and apply the obtained data to a data determination model to be described later, thereby learning a reference for determining a situation.
[0406] According to an embodiment of the present disclosure, the server 2000 may learn a reference for selecting an application for outputting a response preferred by a user, such as outputting a response of more specific content or outputting a response at a high speed corresponding to a voice input.
[0407] In addition, the recognition result provider 1320-4 of the electronic device 1000 may determine the situation by applying the data selected by the recognition data selector 1320-3 to the data determination model generated by the server 2000. For example, the recognition result provider 1320-4 may send the data selected by the recognition data selector 1320-3 to the server 2000, and request the server 2000 to apply the data selected by the recognition data selector 1320-3 to the data determination model and determine the situation. In addition, the recognition result provider 1320-4 may receive information about the situation determined by the server 2000 from the server 2000.
[0408] Alternatively, the recognition result provider 1320-4 of the electronic device 1000 may receive a data determination model generated by the server 2000 from the server 2000 to determine the situation using the received data determination model. In this case, the recognition result provider 1320-4 of the electronic device 1000 may apply the data selected by the recognition data selector 1320-3 to the data determination model received from the server 2000 to determine the situation.
[0409] According to an embodiment of the present disclosure, the electronic device 1000 may output a response to the voice input using an application selected by the server 2000 .
[0410] In addition, the server 2000 can perform some operations that the electronic device 1000 can perform, and the function of learning the above data. For example, the server 2000 can obtain metadata based on the user's voice input 100 received from the electronic device 1000, and can send information about at least one application selected based on the metadata to the electronic device 1000. The server 2000 can also obtain metadata based on the user's voice input 100 received from the electronic device 1000, and use at least one application selected based on the metadata to perform an operation corresponding to the voice input 100. The server 2000 can generate a result of performing the operation and provide the result to the electronic device 1000.
[0411] The server 2000 may perform various operations for providing a response to the voice input 100 to the electronic device 1000 according to an embodiment of the present disclosure, and transmit a result of performing the operation to the electronic device 1000 .
[0412] According to an embodiment of the present disclosure, an application suitable for processing a voice input may be selected based on metadata about the voice input, and the voice input may be processed by the selected application, and thus a highly accurate response to the voice input may be provided to the user.
[0413] According to an embodiment of the present disclosure, an application for providing a response to a voice input may be selected based on metadata about the voice input, and thus a response to the voice input may be provided by an application suitable for providing a response to the voice input.
[0414] Embodiments of the present disclosure may be implemented as a recording medium including computer-readable instructions such as computer-executable program modules. Computer-readable media may be any available media that can be accessed by a computer, and examples thereof include all volatile and non-volatile media and separable and inseparable media. In addition, examples of computer-readable media may include computer storage media and communication media. Examples of computer storage media include all volatile and non-volatile media and separable and inseparable media for storing information (such as computer-readable instructions, data structures, program modules, or other data) implemented by any method or technology. Communication media typically include computer-readable instructions, data structures, program modules, other data or other transmission mechanisms for modulated data signals, and examples thereof include any information transmission media.
[0415] Furthermore, in this specification, the term “unit” may be a hardware component such as a processor or a circuit and / or a software component executed by a hardware component such as a processor.
[0416] It will be understood by those skilled in the art that the foregoing description of the present disclosure is for exemplary purposes only, and it will be readily understood by those skilled in the art that various changes and modifications may be made without departing from the spirit or essential features of the present disclosure. Therefore, it should be understood that the above embodiments of the present disclosure are exemplary and non-restrictive in all respects. For example, each component described as a single entity may be distributed and implemented, and components described as being distributed may also be implemented in a combined form.
[0417] While the present disclosure has been shown and described with reference to various embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present disclosure as defined by the claims and their equivalents.
Claims
1. A method for outputting a response to a voice input by using an application performed by an electronic device, the method include: receiving the voice input; Obtaining text corresponding to the voice input by performing voice recognition on the voice input; Obtaining metadata of the voice input based on the obtained text; selecting at least one application from a plurality of applications for outputting a response to the voice input based on the metadata; as well as outputting a response to the voice input by using the selected at least one application, Wherein, the at least one application is selected based on at least one of the following information: information about user feedback information regarding a response output by the multiple applications, information about results of processing the voice input by the multiple applications, information about the time taken for the multiple applications to output a response, information about operations that can be performed by the multiple applications, or information about capabilities of the multiple applications.
2. The method according to claim 1, in, The metadata includes at least one of keywords extracted from the text corresponding to the voice input, information about a user's intention obtained based on the text, information about a sound characteristic of the voice input, or information about a user of the electronic device.
3. The method according to claim 1, in, The steps of outputting a response to a speech input include: obtaining at least one response to the speech input from the selected at least one application; prioritizing the at least one response; and Output responses based on the determined priorities.
4. The method according to claim 3, in, The priority is determined based on at least one of the following: the user's intention related to the at least one response, the size of the at least one response, whether the at least one response includes characteristics preferred by the user, or information about the time taken to output the at least one response after obtaining the at least one response.
5. The method according to claim 3, in, When the electronic device receives a plurality of voice inputs, the priority is determined based on metadata of each of the plurality of voice inputs.
6. The method according to claim 1, in, When an event including a state in which an application previously determined to output a response to the voice input cannot output a response to the voice input is detected, at least one of a plurality of applications for outputting a response to the voice input is selected.
7. An electronic device for performing authentication on a user, the electronic device include: A user input device configured to receive voice input; At least one processor configured to: obtaining text corresponding to the voice input by performing voice recognition on the voice input, obtaining metadata of the speech input based on the obtained text, and selecting at least one application from a plurality of applications for outputting a response to the speech input based on the metadata; as well as an outputter configured to output a response to the voice input by using the selected at least one application, Wherein, the at least one application is selected based on at least one of the following information: information about user feedback information regarding a response output by the multiple applications, information about results of processing the voice input by the multiple applications, information about the time taken for the multiple applications to output a response, information about operations that can be performed by the multiple applications, or information about capabilities of the multiple applications.
8. The electronic device according to claim 7, in, The metadata includes at least one of keywords extracted from the text corresponding to the voice input, information about a user's intention obtained based on the text, information about a sound characteristic of the voice input, or information about a user of the electronic device.
9. The electronic device according to claim 7, in, The at least one processor is further configured to: controlling the outputter to obtain at least one response to the voice input from the selected at least one application, determining a priority of the at least one response, and The at least one response is output according to the determined priority.
10. The electronic device according to claim 9, in, The priority is determined based on at least one of the following: the user's intention related to the at least one response, the size of the at least one response, whether the at least one response includes characteristics preferred by the user, or information about the time taken to output the at least one response after obtaining the at least one response.
11. The electronic device according to claim 9, in, When the electronic device receives a plurality of voice inputs, the priority is determined based on metadata of each of the plurality of voice inputs.
12. The electronic device according to claim 7, in, When an event including a state in which an application previously determined to output a response to the voice input cannot output a response to the voice input is detected, at least one of a plurality of applications for outputting a response to the voice input is selected.
13. A computer-readable storage medium configured to store one or more computer programs comprising instructions, in, When the instructions are executed by at least one processor, the at least one processor is controlled to perform the method according to any one of claims 1 to 6.
