Electronic device for controlling plurality of assistant modules and control method thereof

The electronic device optimizes voice assistant system efficiency by loading only the necessary module based on user input, addressing resource consumption and delay issues in conventional systems by dynamically managing module loading according to available resources and input patterns.

WO2024205056A1PCT designated stage expired Publication Date: 2024-10-03SAMSUNG ELECTRONICS CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/KR2024/002823
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-30
Filing Date
2024-03-05
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Conventional voice assistant systems face inefficiencies due to the need to maintain multiple modules loaded in memory, leading to resource consumption and delays in loading when user input is recognized.

Method used

An electronic device and method that load only the necessary voice assistant module corresponding to a user's wake-up word, optimizing resource usage by unloading unnecessary modules and controlling loading based on available system resources and user input patterns.

Benefits of technology

This approach reduces resource consumption and minimizes delays by ensuring only the required module is loaded, enhancing the responsiveness and efficiency of voice recognition and response processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure KR2024002823_03102024_PF_FP_ABST
    Figure KR2024002823_03102024_PF_FP_ABST
Patent Text Reader

Abstract

An electronic device is disclosed. This electronic device comprises: a memory for storing at least one instruction; and a processor connected to the memory so as to control the electronic device. The processor, by executing the at least one instruction,: acquires a user speech input containing a wake-up word; loads a first assistant module corresponding to the wake-up word, among a plurality of assistant modules, while text corresponding to the user speech input is being acquired through a speech recognition module; and when a first voice assistant module is loaded, inputs the text into the first voice assistant module and thus carries out a function corresponding to the user speech input.
Need to check novelty before this filing date? Find Prior Art

Description

Electronic device for controlling multiple assistant modules and method for controlling the same

[0001] The present disclosure relates to an electronic device and a method for controlling the same, and more particularly, to an electronic device for controlling a plurality of assistant modules and a method for controlling the same.

[0002] Recently, artificial intelligence systems are being utilized in a variety of fields. Unlike existing rule-based smart systems, AI systems are machines that learn, make decisions, and become intelligent on their own. As AI systems become more used, their recognition rates improve and their ability to understand user preferences more accurately is increasing. As a result, existing rule-based smart systems are gradually being replaced by deep learning-based AI systems.

[0003] In particular, voice assistant modules (or voice assistant systems, artificial intelligence secretary modules, artificial intelligence secretary systems) that can provide responses to user voice or control electronic devices based on user voice are being developed recently using artificial intelligence systems.

[0004] These voice assistant modules include various models, such as a voice recognition module for recognizing the user's voice, a natural language understanding module for understanding the user's voice, and a TTS (Text to Speech) module for outputting the generated response in the form of voice data. At this time, the multiple models included in the voice assistant module may be implemented as neural network models, but are not limited thereto.

[0005] Previously, utilizing multiple voice assistant modules required keeping them loaded in the processor's internal memory or buffers. This resulted in unnecessary consumption of system resources.

[0006] In addition, if multiple voice assistant modules are kept in an unloaded state, there is a problem that a delay occurs when a user's voice is input, a corresponding voice assistant is loaded, and the user's voice is recognized using the loaded voice assistant module.

[0007] An electronic device according to one embodiment of the present disclosure includes a memory storing at least one command; and a processor connected to the memory and controlling the electronic device, wherein the processor obtains a user voice input including a wake-up word by executing the at least one command, and while a text corresponding to the user voice input is obtained through a voice recognition module, loads a first assistant module corresponding to the wake-up word among a plurality of voice assistant modules, and when the first assistant module is loaded, inputs the text to the first assistant module to perform a function corresponding to the user voice input.

[0008] A method for controlling an electronic device according to an embodiment of the present disclosure includes the steps of: obtaining a user voice input including a wake-up word; loading a first assistant module corresponding to the wake-up word among a plurality of voice assistant modules while a text corresponding to the user voice input is obtained through a voice recognition module; and, when the first assistant module is loaded, inputting the text into the first assistant module to perform a function corresponding to the user voice input.

[0009] A non-transitory computer-readable recording medium including a program for executing a control method of an electronic device according to an embodiment of the present disclosure, the control method comprises: a step of obtaining a user voice input including a wake-up word; a step of loading a first assistant module corresponding to the wake-up word among a plurality of voice assistant modules while a text corresponding to the user voice input is obtained through a voice recognition module; and a step of inputting the text into the first assistant module when the first assistant module is loaded to perform a function corresponding to the user voice input.

[0010] FIG. 1A and FIG. 1B are drawings for explaining the operation of an electronic device according to one embodiment of the present disclosure.

[0011] FIG. 2 is a block diagram illustrating the configuration of an electronic device according to one embodiment of the present disclosure.

[0012] FIG. 3 is a block diagram illustrating a configuration of a memory according to one embodiment of the present disclosure.

[0013] FIG. 4 is a diagram for explaining the operation of a plurality of modules according to one embodiment of the present disclosure.

[0014] FIG. 5 is a flowchart illustrating a method for controlling the loading of each of a plurality of assistant modules according to available system resources by an electronic device according to one embodiment of the present disclosure.

[0015] FIG. 6 is a flowchart illustrating a method for an electronic device according to one embodiment of the present disclosure to control loading of an assistant module depending on whether additional user voice input is obtained.

[0016] FIG. 7 is a flowchart illustrating a method for controlling the loading of each of a plurality of assistant modules according to the loading degree of each of the plurality of assistant modules by an electronic device (100) according to one embodiment of the present disclosure.

[0017] FIG. 8 is a diagram illustrating the operation of an electronic device when at least a portion of a voice recognition module and an assistant module according to an embodiment of the present disclosure are stored in an external server.

[0018] FIG. 9 is a flowchart for explaining a control method of an electronic device according to one embodiment of the present disclosure.

[0019] The present embodiments may be modified and have various embodiments. Therefore, specific embodiments are illustrated in the drawings and described in detail in the detailed description. However, this is not intended to limit the scope to specific embodiments, but should be understood to encompass various modifications, equivalents, and / or alternatives of the embodiments of the present disclosure. In connection with the description of the drawings, similar reference numerals may be used for similar components.

[0020] In describing the present disclosure, if it is determined that a specific description of a related known function or configuration may unnecessarily obscure the gist of the present disclosure, a detailed description thereof will be omitted.

[0021] Additionally, the following embodiments may be modified in various other forms, and the scope of the technical concepts of the present disclosure is not limited to the following embodiments. Rather, these embodiments are provided to further faithfully and completely convey the technical concepts of the present disclosure to those skilled in the art.

[0022] The terminology used in this disclosure is for the purpose of describing specific embodiments only and is not intended to limit the scope of the rights. Singular expressions include plural expressions unless the context clearly dictates otherwise.

[0023] In this disclosure, expressions such as “has,” “can have,” “includes,” or “may include” indicate the presence of a corresponding feature (e.g., a component such as a number, function, operation, or part), and do not exclude the presence of additional features.

[0024] In this disclosure, expressions such as “A or B,” “at least one of A and / or B,” or “one or more of A or / and B” can include all possible combinations of the listed items. For example, “A or B,” “at least one of A and B,” or “at least one of A or B” can all refer to (1) including at least one A, (2) including at least one B, or (3) including both at least one A and at least one B.

[0025] The expressions “first,” “second,” “first,” or “second,” etc., used in this disclosure can describe various components, regardless of order and / or importance, and are only used to distinguish one component from another, but do not limit the components.

[0026] When it is said that a component (e.g., a first component) is “(operatively or communicatively) coupled with / to” or “connected to” another component (e.g., a second component), it should be understood that said component may be directly coupled to said other component, or may be coupled via another component (e.g., a third component).

[0027] On the other hand, when it is said that a component (e.g., a first component) is "directly connected" or "directly connected" to another component (e.g., a second component), it can be understood that no other component (e.g., a third component) exists between said component and said other component.

[0028] The expression "configured to" as used in the present disclosure may be used interchangeably with, for example, "suitable for," "having the capacity to," "designed to," "adapted to," "made to," or "capable of." The term "configured to" may not necessarily mean only "specifically designed to" in terms of hardware.

[0029] Instead, in some contexts, the phrase "a device configured to" may mean that the device, in conjunction with other devices or components, is "capable of" performing A, B, and C. For example, the phrase "a processor configured (or set) to perform A, B, and C" may refer to a dedicated processor (e.g., an embedded processor) for performing those operations, or a general-purpose processor (e.g., a CPU or application processor) that can perform those operations by executing one or more software programs stored in a memory device.

[0030] In the embodiments, a 'module' or 'part' performs at least one function or operation, and may be implemented as hardware or software, or as a combination of hardware and software. Furthermore, a plurality of 'modules' or 'parts' may be integrated into at least one module and implemented as at least one processor, except for a 'module' or 'part' that needs to be implemented as a specific hardware.

[0031] Meanwhile, the various elements and areas in the drawings are schematically drawn. Therefore, the technical concept of the present invention is not limited by the relative sizes or spacing depicted in the attached drawings.

[0032] Hereinafter, with reference to the attached drawings, embodiments according to the present disclosure will be described in detail so that a person having ordinary knowledge in the technical field to which the present disclosure pertains can easily implement the present disclosure.

[0033] FIG. 1A and FIG. 1B are drawings for explaining the operation of an electronic device according to one embodiment of the present disclosure.

[0034] Referring to FIG. 1A, an electronic device (100) can obtain a user voice input (10) including a first wake-up word (A).

[0035] And, the electronic device (100) can load the first assistant module corresponding to the first wake-up word (A) and output a response voice (20) to the user voice input (10) through the first assistant module.

[0036] Meanwhile, in the present disclosure, the assistant module may mean a voice assistant module (or voice assistant system) that provides a response to a user input based on the user's voice input or controls an electronic device (100) or an external device, but is not limited thereto.

[0037] Referring to FIG. 1B, the electronic device (100) can obtain a user voice input (30) including a second wake-up word (B).

[0038] And, the electronic device (100) can load a second assistant module corresponding to the second wake-up word (B) and output a response voice (40) to the user voice input (30) through the second assistant module.

[0039] As described above, the electronic device (100) can load different assistant modules depending on the wake-up word included in the user voice input, and depending on the loaded assistant module, the electronic device (100) can perform different functions for the same user voice input.

[0040] FIG. 2 is a block diagram illustrating the configuration of an electronic device according to one embodiment of the present disclosure.

[0041] The electronic device (100) may include a memory (110), a communication interface (120), a display (130), a user interface (140), an input / output interface (150), a speaker (160), a microphone (170), and a processor (180). The electronic device (100) may omit some of the above components and may further include other components.

[0042] And, the electronic device (100) may be implemented as a server, but this is only one embodiment, and the electronic device (100) may be implemented in various forms such as a smartphone, a TV, a smart TV, a set-top box, a mobile phone, a PDA (personal digital assistant), a laptop, a media player, an e-book reader, a digital broadcasting terminal, a navigation device, a kiosk, an MP3 player, a wearable device, a home appliance, and other mobile or non-mobile computing devices.

[0043] The memory (110) can store at least one instruction regarding the electronic device (100). The memory (110) can store an operating system (O / S) for driving the electronic device (100). In addition, the memory (110) can store various software programs or applications for operating the electronic device (100) according to various embodiments of the present disclosure. In addition, the memory (110) can include a semiconductor memory such as a flash memory or a magnetic storage medium such as a hard disk.

[0044] Specifically, the memory (110) can store various software modules for operating the electronic device (100) according to various embodiments of the present disclosure, and the processor (180) can control the operation of the electronic device (100) by executing various software modules stored in the memory (110). That is, the memory (110) is accessed by the processor (180), and data reading / recording / modifying / deleting / updating, etc. can be performed by the processor (180).

[0045] Meanwhile, in the present disclosure, the term memory (110) may be used to mean a memory (110), a ROM (not shown), a RAM (not shown) in a processor (180), or a memory card (not shown) (e.g., a micro SD card, a memory stick) mounted on an electronic device (100).

[0046] And, the communication interface (120) includes a circuitry and is a configuration capable of communicating with external devices and servers. The communication interface (120) can communicate with external devices or servers based on a wired or wireless communication method. The communication interface (120) may include a Bluetooth module (not shown), a Wi-Fi module (not shown), an IR (infrared) module, a LAN (Local Area Network) module, an Ethernet module, etc. Here, each communication module may be implemented in the form of at least one hardware chip. In addition to the above-described communication method, the wireless communication module may include at least one communication chip that performs communication according to various wireless communication standards such as Zigbee, USB (Universal Serial Bus), MIPI CSI (Mobile Industry Processor Interface Camera Serial Interface), 3G (3rd Generation), 3GPP (3rd Generation Partnership Project), LTE (Long Term Evolution), LTE-A (LTE Advanced), 4G (4th Generation), 5G (5th Generation), etc. However, this is only one embodiment, and the communication interface (120) can utilize at least one communication module among various communication modules.

[0047] The display (130) may be implemented as a display in various forms, such as a liquid crystal display (LCD), an organic light emitting diode (OLED) display, a plasma display panel (PDP), etc. The display (130) may also include a driving circuit, a backlight unit, etc., which may be implemented in forms such as an a-si TFT (amorphous silicon thin film transistor), an LTPS (low temperature poly silicon) TFT, an OTFT (organic TFT), etc. Meanwhile, the display (130) may be implemented as a touch screen combined with a touch sensor, a flexible display, a three-dimensional display (3D display, three-dimensional dispaly), etc. In addition, according to an embodiment of the present disclosure, the display (130) may include not only a display panel that outputs an image, but also a bezel that houses the display panel. In particular, according to an embodiment of the present disclosure, the bezel may include a touch sensor (not shown) for detecting user interaction.

[0048] According to various embodiments, the electronic device (100) may include a display (130). Specifically, the electronic device (100) may directly display an acquired image or content on the display (130).

[0049] According to various embodiments, the electronic device (100) may not include a display (130). The electronic device (100) may be connected to an external display device and may transmit images or content stored in the electronic device (100) to the external display device. Specifically, the electronic device (100) may transmit images or content to the external display device together with a control signal for controlling the display of the images or content on the external display device. Here, the external display device may be connected to the electronic device (100) through a communication interface (120) or an input / output interface (150). For example, the electronic device (100) may not include a display, such as a set-top box (STB). In addition, the electronic device (100) may include only a small display capable of displaying simple information such as text information. Here, the electronic device (100) may transmit images or content to the external display device through the communication interface (120) wired or wirelessly, or through the input / output interface (150).

[0050] The user interface (140) may be implemented as a device such as a button, a touch pad, a mouse, and a keyboard, or as a touch screen capable of performing the above-described display function and operation input function. Here, the button may be a mechanical button, a touch pad, a wheel, or any other type of button formed in any area of ​​the front, side, or back of the main body of the electronic device (100).

[0051] The input / output interface (150) may be any one of HDMI (High Definition Multimedia Interface), MHL (Mobile High-Definition Link), USB (Universal Serial Bus), DP (Display Port), Thunderbolt, VGA (Video Graphics Array) port, RGB port, D-SUB (D-subminiature), and DVI (Digital Visual Interface). The input / output interface (150) may input / output at least one of audio and video signals. Depending on the implementation example, the input / output interface (150) may include a port that inputs / outputs only audio signals and a port that inputs / outputs only video signals as separate ports, or may be implemented as a single port that inputs / outputs both audio signals and video signals. Meanwhile, the electronic device (100) may transmit at least one of the audio and video signals to an external device (e.g., an external display device or an external speaker) through the input / output interface (150). Specifically, an output port included in the input / output interface (150) can be connected to an external device, and the electronic device (100) can transmit at least one of an audio and video signal to the external device through the output port.

[0052] Here, the input / output interface (150) can be connected to the communication interface (120). The input / output interface (150) can transmit information received from an external device to the communication interface (120) or transmit information received through the communication interface (120) to the external device.

[0053] The speaker (160) is a component that outputs an audio signal. In particular, the speaker (160) may include an audio output mixer, an audio signal processor, and an audio output module. The audio output mixer may synthesize a plurality of audio signals to be output into at least one audio signal. For example, the audio output mixer may synthesize an analog audio signal and another analog audio signal (e.g., an analog audio signal received from the outside) into at least one analog audio signal. The audio output module may include a speaker or an output terminal. According to various embodiments, the audio output module may include a plurality of speakers, and in this case, the audio output module may be arranged inside the main body, and sound emitted by covering at least a portion of the diaphragm of the audio output module may pass through a waveguide and be transmitted to the outside of the main body. The audio output module may include a plurality of audio output units, and the plurality of audio output units may be arranged symmetrically on the exterior of the main body, thereby radiating sound in all directions, that is, in a 360-degree omnidirectional manner. In addition, the speaker (160) may be a component that outputs various audio data as well as various notification sounds or voice messages.

[0054] The microphone (170) is a component for receiving a user's voice or other sounds and converting them into audio data. The microphone (170) can receive the user's voice in an activated state. For example, the microphone (170) can be formed integrally on the upper side, the front side, the side side, etc. of the electronic device (100). The microphone (170) can include various components such as a microphone for collecting the user's voice in analog form, an amplifier circuit for amplifying the collected user's voice, an A / D conversion circuit for sampling the amplified user's voice and converting it into a digital signal, and a filter circuit for removing noise components from the converted digital signal.

[0055] And, the electronic device (100) can obtain the user's voice through the microphone (170) included in the electronic device (100). Alternatively, the electronic device (100) can obtain the user's voice from an external device equipped with a microphone. Specifically, the microphone can be provided in a separate external device, such as a remote control, a smartphone, a speaker, etc., that transmits a signal to the electronic device (100). Here, the microphone provided in the external device can digitize an analog voice signal, and the electronic device (100) can perform a communication connection with the external device through a communication interface (120) to receive the digitized voice signal.

[0056] At this time, a remote control application may be installed on the external device. The external device may control the electronic device (100) and perform user voice recognition functions through the remote control application. At this time, the external device may communicate with the electronic device (100) and the server through multiple communication interfaces.

[0057] And, the external device on which the remote control application is installed may be a smartphone, but this is only one example, and the application may be implemented through various devices on which the application can be installed, such as an AI speaker.

[0058] In addition, the electronic device (100) can be connected to an external device via a communication interface (120) or an input / output interface (150) wired or wirelessly, and the electronic device (100) can receive an audio signal for a user's voice from the external device.

[0059] The processor (180) can control the overall operation and function of the electronic device (100). Specifically, the processor (180) is connected to the configuration of the electronic device (100) including the memory (110), and can control the overall operation of the electronic device (100) by executing at least one command stored in the memory (110) as described above.

[0060] The processor (180) may be implemented in various ways. For example, the processor (180) may be implemented as at least one of an application-specific integrated circuit (ASIC), a logic integrated circuit (Logic Integrated Circuit), an embedded processor, a microprocessor, hardware control logic, a hardware finite state machine (FSM), and a digital signal processor (DSP). Meanwhile, the term "processor (180" in the present disclosure may be used to mean a central processing unit (CPU), a graphic processing unit (GPU), and a main processing unit (MPU).

[0061] In particular, the processor (180) may include one or more processors. Specifically, the one or more processors may include one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), an Accelerated Processing Unit (APU), a Many Integrated Core (MIC), a Digital Signal Processor (DSP), a Neural Processing Unit (NPU), a hardware accelerator, or a machine learning accelerator. The one or more processors may control one or any combination of other components of the electronic device and perform operations related to communication or data processing. The one or more processors may execute one or more programs or instructions stored in a memory. For example, the one or more processors may perform a method according to an embodiment of the present disclosure by executing one or more instructions stored in a memory.

[0062] When a method according to an embodiment of the present disclosure includes multiple operations, the multiple operations may be performed by one processor or by multiple processors. That is, when a first operation, a second operation, and a third operation are performed by a method according to an embodiment, the first operation, the second operation, and the third operation may all be performed by the first processor, or the first operation and the second operation may be performed by the first processor (e.g., a general-purpose processor) and the third operation may be performed by the second processor (e.g., an artificial intelligence-specific processor).

[0063] One or more processors may be implemented as a single core processor including one core, or may be implemented as one or more multicore processors including multiple cores (e.g., homogeneous multicores or heterogeneous multicores). When one or more processors are implemented as a multicore processor, each of the multiple cores included in the multicore processor may include internal processor memory, such as cache memory or on-chip memory, and a common cache shared by the multiple cores may be included in the multicore processor. In addition, each of the multiple cores (or some of the multiple cores) included in the multicore processor may independently read and execute a program instruction for implementing a method according to an embodiment of the present disclosure, or all (or some) of the multiple cores may be linked to read and execute a program instruction for implementing a method according to an embodiment of the present disclosure.

[0064] When a method according to an embodiment of the present disclosure includes a plurality of operations, the plurality of operations may be performed by one core among a plurality of cores included in a multi-core processor, or may be performed by a plurality of cores. For example, when a first operation, a second operation, and a third operation are performed by a method according to an embodiment, the first operation, the second operation, and the third operation may all be performed by a first core included in the multi-core processor, or the first operation and the second operation may be performed by a first core included in the multi-core processor, and the third operation may be performed by a second core included in the multi-core processor.

[0065] In embodiments of the present disclosure, the processor (180) may mean a system on a chip (SoC) in which one or more processors and other electronic components are integrated, a single-core processor, a multi-core processor, or a core included in a single-core processor or a multi-core processor, wherein the core may be implemented as a CPU, a GPU, an APU, a MIC, a DSP, an NPU, a hardware accelerator, or a machine learning accelerator, but embodiments of the present disclosure are not limited thereto.

[0066] The operation of the processor (180) for implementing various embodiments of the present disclosure may be implemented through a plurality of modules.

[0067] Specifically, data for a plurality of modules according to the present disclosure can be stored in a memory (110), and the processor (180) can access the memory (110) to load the data for the plurality of modules into a memory or buffer within the processor (180), and then implement various embodiments according to the present disclosure using the plurality of modules.

[0068] However, at least one of the plurality of modules according to the present disclosure may be implemented in hardware and included in the processor (180) in the form of a system on chip.

[0069] Alternatively, at least one of the plurality of modules according to the present disclosure may be implemented as a separate external device, and the electronic device (100) and each module may communicate and perform operations according to the present disclosure.

[0070] Referring to FIG. 3, the memory (110) may include a user voice input acquisition module (111), a wake-up word recognition module (112), a voice recognition module (113), a loading control module (114), a plurality of assistant modules (115), and an output module (116).

[0071] The user voice input acquisition module (111) can acquire user voice input (101) through a microphone (170) or acquire user voice input from an external device equipped with a microphone.

[0072] The wake-up word recognition module (112) may include a plurality of wake-up engines (112a) for identifying a wake-up word (or trigger word, wake word) included in a user voice input. Here, the wake-up word may be a word for loading or executing an assistant module for performing a function corresponding to the user voice input in the electronic device (100). For example, the wake-up word may be, but is not limited to, “Hi, Bixby.”

[0073] Additionally, each of the plurality of wake-up engines (112a) may be a neural network model capable of identifying a wake-up word included in a user voice input. For example, the first wake-up engine may be a model trained to identify a first wake-up word. Furthermore, the second wake-up engine may be a model trained to identify a second wake-up word.

[0074] The voice recognition module (113) can obtain text corresponding to the user's voice input. That is, the voice recognition module (113) may be a TTS (Text to Speech) module that converts the user's voice input into text.

[0075] The loading control module (114) can control the loading of each of the plurality of assistant modules (115). Specifically, the loading control module (114) can load at least a portion of the assistant modules into a memory or buffer within the processor (180), or unload at least a portion of the assistant modules (115) loaded into a memory or buffer within the processor (180).

[0076] At this time, the loading control module (114) can load an assistant module corresponding to the wake-up word included in the user voice input into a memory or buffer within the processor (180).

[0077] At this time, the loading control module (114) can control the loading of the assistant module according to a preset loading level. At this time, the loading level can include a first level, a second level, a third level, and a fourth level.

[0078] The first level may be a state where all assistant modules are loaded. The second level may be a state where only a portion of the assistant modules are loaded, and loading to the first level may be possible within a preset time. The third level may be a state where the assistant module can receive events other than user voice input, and may require more loading time than the second level. The fourth level may be a state where all assistant modules are unloaded.

[0079] At this time, each of the plurality of assistant modules (115) may have a preset standard load level. For example, the standard load level of the first assistant module may be the second level, and the standard load level of the second assistant module may be the third level.

[0080] At this time, the standard load level of each of the plurality of assistant modules when the user voice input is not acquired and the standard load level of each of the plurality of assistant modules when a specific assistant module is performing an operation may be different.

[0081] And, depending on the standard load level of each of the plurality of assistant modules (115), the loading control module (114) can control the loading of each of the plurality of assistant modules (115).

[0082] In addition, the loading control module (114) can control the output module (116) to load the resources necessary to perform the output of a specific assistant module. Specifically, the loading control module (114) can control the output module (116) to load the resources necessary to perform a function corresponding to a specific assistant module among a plurality of assistant modules.

[0083] The assistant module (115) may be a module that provides a response to a user's voice input or controls an electronic device based on the user's voice input. In this case, the assistant module may refer to an artificial intelligence secretary system, an artificial intelligence voice secretary, or an artificial intelligence secretary module.

[0084] Additionally, each of the plurality of assistant modules (115) may include a natural language understanding module (115a), a conversation manager module (115b), and a natural language generation module (115c).

[0085] Here, the natural language understanding module (115a) can perform syntactic analysis or semantic analysis based on text data regarding the user's voice acquired through speech recognition to identify the domain and user intent of the user's voice. At this time, syntactic analysis can divide the user input into grammatical units (e.g., words, phrases, morphemes, etc.) and identify the grammatical elements of the divided units. Semantic analysis can be performed using semantic matching, rule matching, formula matching, etc.

[0086] At this time, the natural language understanding module (115a) can obtain a natural language understanding result, a category of the user voice, an intention of the user voice, and a slot (or entity, parameter, etc.) for performing the intention of the user voice.

[0087] The conversation manager module (115b) can obtain response information for the user's voice based on the user's intent and slot obtained by the natural language understanding module (115a). At this time, the conversation manager module (115b) can provide a response to the user's voice based on a knowledge DB. At this time, the knowledge DB may be included in the electronic device (100), but this is only one embodiment, and may be included in an external server. In addition, the conversation manager module (115b) may include multiple knowledge DBs according to user characteristics, and may obtain response information for the user's voice using a knowledge DB corresponding to the user information among the multiple knowledge DBs. For example, if the user is determined to be a child based on the user information, the conversation manager module (115b) can obtain response information for the user's voice using a knowledge DB corresponding to the child.

[0088] Additionally, the conversation manager module (115b) can determine whether the user's intent, as identified by the natural language understanding module (115a), is clear. For example, the conversation manager module (115b) can determine whether the user's intent is clear based on whether information about the slot is sufficient. Furthermore, the conversation manager module (115b) can determine whether the slot identified by the natural language understanding module (115a) is sufficient to perform the task. According to one embodiment, if the user's intent is unclear, the conversation manager module (115b) can provide feedback to the user, requesting necessary information.

[0089] The natural language generation module (115c) can convert response information or designated information acquired through the dialogue manager module (115b) into text. The information converted into text may be in the form of natural language speech. The designated information may be, for example, information regarding additional input, information guiding the completion of an action corresponding to a user input, or information guiding the user's additional input (e.g., feedback information regarding a user input). The information converted into text may be displayed on the display of the electronic device (100) or converted into voice by the TTS module (336).

[0090] The output module (116) can output response information corresponding to the user's voice input. Specifically, the output module (116) can control the display (130) or speaker (160) to output a response corresponding to the user's voice input.

[0091] FIG. 4 is a diagram for explaining the operation of a plurality of modules according to one embodiment of the present disclosure.

[0092] Referring to FIG. 4, the user voice input acquisition module (111) can acquire user voice input (101).

[0093] When a user voice input (101) is acquired, the wake-up word recognition module (112) can identify whether the user voice input (101) includes a wake-up word.

[0094] Specifically, the memory (110) can store a plurality of wake-up engines corresponding to each of a plurality of assistant modules (115). At this time, each of the plurality of wake-up engines can identify whether a wake-up word corresponding to each of the plurality of wake-up engines is included in the user voice input (101).

[0095] When a user voice input (101) is acquired, a wake-up word recognition module (112) inputs the user voice input (101) to each of a plurality of wake-up engines to identify a first assistant module corresponding to the wake-up word among a plurality of assistant modules (115).

[0096] And, the voice recognition module (113) can obtain text corresponding to the user voice input (101).

[0097] At this time, the voice recognition module (113) may be stored in the memory (110), but this is only one embodiment, and at least a portion of the voice recognition module (113) may be stored in an external server. A detailed description of this will be provided later with reference to FIG. 8.

[0098] While text corresponding to user voice input (101) is acquired through the voice recognition module (113), the output module (116) can output information that the user voice input (101) is being voice recognized.

[0099] At this time, the output module (116) can control the speaker (160) to output a voice indicating that the user voice input (101) is being recognized, or control the display (130) to display a screen indicating that the user voice input (101) is being recognized.

[0100] And, while text corresponding to user voice input is acquired through the voice recognition module (113), the loading control module (114) can load the first assistant module corresponding to the wake-up word among the plurality of assistant modules (115).

[0101] Specifically, when a user voice input is acquired, at least some of the first assistant modules may not be loaded. In this case, the degree to which each of the plurality of assistant modules (115) is loaded may be determined based on the system resources required to operate each of the plurality of assistant modules (115).

[0102] And, when a wake-up word corresponding to the first assistant module is identified, the loading control module (114) can load the first assistant module into a memory or buffer within the processor (180).

[0103] At this time, the loading control module (114) can control the output module (116) to load a resource corresponding to the first assistant module. Accordingly, the output module (116) can control the speaker (160) or the display (130) to output a response corresponding to the first assistant module.

[0104] For example, when the first assistant module is loaded, the output module (116) can control the display (130) to display a response through the first UI. And, when the second assistant module is loaded, the output module (116) can control the display (130) to display a response through the second UI.

[0105] Alternatively, when the first assistant module is loaded, the output module (116) can output a response in the first voice. And, when the second assistant module is loaded, the output module (116) can output a response in the second voice.

[0106] Meanwhile, since the voice recognition function is performed by the voice recognition module (113), each of the plurality of assistant modules (115) including the first assistant module may exclude the voice recognition function. That is, the memory (110) may store the voice recognition module (113) and the plurality of assistant modules (115) excluding the voice recognition function. In addition, each of the plurality of assistant modules (115) may perform a function corresponding to the user's voice input using the text acquired by the voice recognition module (113).

[0107] Accordingly, the consumption of system resources required to load the assistant module including the voice recognition function can be prevented.

[0108] In addition, when the memory (110) does not store a voice recognition module (113) and each of the plurality of assistant modules includes a voice recognition function, it is possible to prevent a problem in which a delay time occurs in loading each of the plurality of assistant modules and performing the voice recognition function through the loaded assistant module.

[0109] And, when the first assistant module is loaded, the output module (116) can input text corresponding to the user voice input (101) into the first assistant module to perform a function corresponding to the user voice input (101).

[0110] Specifically, the processor (180) can obtain response information corresponding to user voice input (101) or obtain control information corresponding to user voice input (101).

[0111] For example, the output module (116) can control the speaker (160) to output a response voice corresponding to the user voice input (101). Alternatively, the output module (116) can control the display (130) to display a response screen corresponding to the user voice input (101). Alternatively, the output module (116) can transmit a control command corresponding to the user voice input (101) to an external device.

[0112] Meanwhile, the electronic device (100) according to the present disclosure can control the loading of each of the plurality of assistant modules according to the available system resources of the electronic device (100).

[0113] FIG. 5 is a flowchart illustrating a method for controlling the loading of each of a plurality of assistant modules according to available system resources by an electronic device (100) according to one embodiment of the present disclosure.

[0114] Referring to FIG. 5, the processor (180) can obtain a user voice input including a wake-up word (S510).

[0115] And, the processor (180) can identify the first assistant module corresponding to the wake-up word (S520).

[0116] In addition, the processor (180) can identify whether the available system resources of the electronic device (100) are below a threshold value (S530). Here, the threshold value may be a preset value or the amount of system resources of the electronic device (100) required to load the first assistant module.

[0117] If the available system resources of the electronic device (100) exceed a preset value (S530-N), the processor (180) can load the first assistant module corresponding to the wake-up word (S550).

[0118] If the available system resources of the electronic device (100) are below a preset value (S530-Y), the processor (180) can unload at least a part of the second assistant module (S540).

[0119] That is, if the first assistant module is not loaded after acquiring user voice input and the available system resources are below a preset value, the processor (180) can unload at least a part of the second assistant module among the assistant modules.

[0120] Specifically, before the first assistant module is loaded, at least one of the plurality of assistant modules may be loaded.

[0121] At this time, the second assistant module may be an assistant module having the highest loading degree (or loading level) among at least one assistant module.

[0122] Meanwhile, in the present disclosure, the loading degree of the assistant module may mean the ratio of the memory capacity of the assistant module loaded into the memory (110) among the memory capacity required for the operation of the assistant module.

[0123] For example, the memory capacity required for the operation of a specific assistant module may be 50 MB, and the memory capacity of the specific assistant module loaded into the memory (110) may be 25 MB. In other words, 25 MB of the 50 MB of data required to operate the specific assistant module may be loaded into the memory (110). In this case, the loading level of the specific assistant module may be 50%.

[0124] That is, at least a portion of each of the plurality of assistant modules may be loaded into the memory (110). At this time, the second assistant module may be a module in which, among the plurality of assistant modules, the capacity of the second assistant module loaded into the memory (110) occupies the highest proportion of the memory capacity required for the operation of the second assistant module. Then, when the second assistant module is unloaded, the processor (180) may load the first assistant module (S550).

[0125] FIG. 6 is a flowchart illustrating a method for an electronic device according to one embodiment of the present disclosure to control loading of an assistant module depending on whether additional user voice input is obtained.

[0126] Referring to FIG. 6, the processor (180) can perform a function corresponding to user voice input through the loaded first assistant module (S610).

[0127] In addition, the processor (180) can identify whether additional user voice input is obtained within a preset time (S620).

[0128] Specifically, the processor (180) may perform a function corresponding to a user voice input and determine whether additional user voice input is obtained within a preset time period. Alternatively, the processor (180) may determine whether the first assistant module is loaded and additional user voice input is obtained within a preset time period.

[0129] At this time, the preset time may be determined by the system resources of the electronic device (100) required to load or operate the first assistant module. That is, the preset time may be changed depending on the system resources required for the operation of the first assistant module.

[0130] When additional user voice input is obtained within a preset time (S620-Y), the processor (180) maintains the loading state of the first assistant module (S650) and can perform a function corresponding to the additional user voice input through the first assistant module.

[0131] If no additional user voice input is obtained within a preset time (S620-N), the processor (180) can identify whether the available system resources of the electronic device (100) are below a threshold value (S630).

[0132] If the available system resources of the electronic device (100) exceed the threshold value (S630-N), the processor (180) can maintain the loading state of the first assistant module (S650).

[0133] And, if the available system resources of the electronic device (100) are below the threshold value (S630-Y), the processor (180) can unload at least a part of the first assistant module (S640).

[0134] That is, if no additional user voice input is obtained for a preset period of time after a function corresponding to the user voice input is performed and available system resources are below a preset value, the processor (180) may unload at least a portion of the first assistant module.

[0135] Meanwhile, the electronic device (100) can control the loading of each of the plurality of assistant modules according to the loading degree of each of the plurality of assistant modules.

[0136] FIG. 7 is a flowchart illustrating a method for controlling the loading of each of a plurality of assistant modules according to the loading degree of each of the plurality of assistant modules by an electronic device (100) according to one embodiment of the present disclosure.

[0137] The processor (180) can load a first assistant module corresponding to a wake-up word included in the user voice input and perform a function corresponding to the user voice input (S710).

[0138] Additionally, the processor (180) can monitor the available system resources of the electronic device (100) (S720).

[0139] And, while monitoring available system resources, the processor (180) can identify whether the available system resources are below a critical range (S730).

[0140] At this time, if the available system resources fall within a critical range, the processor (180) can continuously monitor the available system resources.

[0141] And, if the available system resources are below the critical range (S720-Y), the processor (180) can identify whether there is at least one assistant module loaded among the plurality of assistant modules, excluding the first assistant module (S740). At this time, at least one assistant module may be an assistant module that is at least partially loaded into the memory or buffer of the processor (180).

[0142] And, if there is at least one loaded assistant module (S740-Y), the processor (180) can unload the assistant module with the highest loading degree among the at least one assistant module (S760).

[0143] And, if at least one loaded assistant module does not exist (S740-N), the processor (180) can continuously monitor available system resources (S720).

[0144] When available system resources exceed a critical range (S720-N), the processor (180) can identify whether there is at least one assistant module among a plurality of assistant modules whose load level is below a preset level (S760).

[0145] At this time, the preset level may refer to the reference level of each assistant module. That is, among multiple assistant modules, a module whose load level is lower than the preset level may refer to a module whose load level is lower than the reference level of each of the multiple assistant modules.

[0146] If there is at least one assistant module whose load level is lower than a preset level (S760-Y), the processor (180) can load the assistant module with the lowest load level among the at least one assistant module (S770).

[0147] And, if there is not at least one assistant module whose load level is below a preset level (S760-N), the processor (180) can continuously monitor available system resources (S720).

[0148] Meanwhile, the voice recognition module (113) according to the present disclosure may be stored in the memory (110), but this is only one embodiment, and at least a part of the voice recognition module (113) may be stored in an external server.

[0149] Additionally, the assistant module according to the present disclosure may be stored in the memory (110), but this is only one embodiment, and at least a portion of the assistant module may be stored in an external server.

[0150] Referring to FIG. 8, when a user voice input is acquired by a user voice input acquisition module (111), a voice recognition module (113) can communicate with a voice recognition server (200) through a communication interface (120) and transmit the user voice input to the voice recognition server (200). At this time, the voice recognition server may be an STT (Speech-to-Text) server that converts an audio signal into text. In addition, the voice recognition module (113) can receive information about text corresponding to the user voice input from the voice recognition server (200).

[0151] And, when text corresponding to the user voice input is obtained, the assistant module (115) can transmit information about the text corresponding to the user voice input to the assistant server (300) and receive response information corresponding to the user voice input from the assistant server (300). At this time, the assistant server (300) can be implemented as a plurality of servers corresponding to each of a plurality of assistant modules.

[0152] As described above, at least a portion of the voice recognition module (113) and the assistant module (115) may be stored in an external server or stored in the memory (110).

[0153] When the voice recognition module (113) and the assistant module (115) are stored in the memory (110), there is an effect that the delay time required to perform operations through the voice recognition function and the assistant module can be reduced.

[0154] In addition, if at least a portion of the voice recognition module (113) and the assistant module (115) are stored in an external server, there is an effect of reducing the system resources required to perform the voice recognition function and assistant operation. In addition, if at least a portion of the voice recognition module (113) and the assistant module (115) are stored in an external server, it is possible to perform a precise voice recognition function and a precise assistant operation.

[0155] FIG. 9 is a drawing for explaining a control method of an electronic device according to one embodiment of the present disclosure.

[0156] The electronic device (100) can obtain a user voice input including a wake-up word (S910).

[0157] And, while a text corresponding to a user's voice input is acquired through a voice recognition module, the electronic device (100) can load a first assistant module corresponding to the wake-up word among a plurality of assistant modules (S920). Here, each of the plurality of assistant modules may be an assistant module excluding a voice recognition function.

[0158] Specifically, when a user voice input is acquired, the electronic device (100) can identify whether the first assistant module is loaded. If the first assistant module is not loaded, the electronic device (100) can identify whether the available system resources of the electronic device are below a preset value, and if the available system resources are below the preset value, the electronic device (100) can unload at least a portion of the second voice assistant module among the plurality of assistant modules. If at least a portion of the second assistant module is unloaded, the electronic device (100) can load the first assistant module. At this time, the second assistant module is the assistant module with the highest loading degree among the plurality of assistant modules.

[0159] That is, among the plurality of voice assistant modules, the second voice assistant module may be a module in which the memory capacity of the second assistant module loaded into the memory (110) occupies the highest proportion of the memory capacity required for the operation of the second assistant module.

[0160] And, if the available system resources exceed a preset value, the electronic device (100) can load the first assistant module.

[0161] And, when the first assistant module is loaded, the electronic device (100) can input text into the first assistant module to perform a function corresponding to the user's voice input (S930).

[0162] At this time, the electronic device (100) can control the output module to load resources for performing a function corresponding to the first assistant module. In addition, the electronic device (100) can perform a function corresponding to the user's voice input through the output module.

[0163] And, if a function corresponding to a user voice input is performed and no additional user voice input is obtained for a preset period of time, the electronic device (100) can identify whether available system resources are below a preset value. If the available system resources are below the preset value, the electronic device (100) can unload at least a portion of the first assistant module.

[0164] At this time, the preset time may be changed depending on the system resources required to operate the first assistant module.

[0165] Meanwhile, while the first assistant module is loaded, the electronic device (100) can identify the available system resources of the electronic device. If the available system resources are below a preset value, the electronic device (100) can unload at least a portion of the second assistant module with the highest loading level among the multiple assistant modules.

[0166] That is, while the first assistant module is loaded, if the available system resources are below a preset value, the electronic device (100) can unload at least a portion of the second assistant module having the highest loading degree among the plurality of assistant modules.

[0167] And, when the available system resources exceed a preset value, the electronic device (100) can load at least a portion of the second assistant module having the lowest loading level among the plurality of assistant modules.

[0168] Meanwhile, the degree to which each of the multiple assistant modules is loaded may be based on the system resources required to operate each of the multiple assistant modules.

[0169] Meanwhile, the terms "part" or "module" used in the present disclosure include units composed of hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic block, component, or circuit. A "part" or "module" may be an integrally composed component, a minimum unit performing one or more functions, or a portion thereof. For example, a module may be composed of an application-specific integrated circuit (ASIC).

[0170] Various embodiments of the present disclosure may be implemented as software including instructions stored in a machine-readable storage medium that can be read by a machine (e.g., a computer). The device, which is a device capable of calling instructions stored in the storage medium and operating according to the called instructions, may include an electronic device (100) according to the disclosed embodiments. When the instructions are executed by a processor, the processor may directly or under the control of the processor perform a function corresponding to the instructions using other components. The instructions may include code generated or executed by a compiler or interpreter. The machine-readable storage medium may be provided in the form of a non-transitory storage medium. Here, "non-transitory" means that the storage medium does not contain signals and is tangible, but does not distinguish between data being stored semi-permanently or temporarily in the storage medium.

[0171] According to one embodiment, the method according to various embodiments disclosed in this document may be provided as a computer program product. The computer program product may be traded as a commodity between a seller and a buyer. The computer program product may be distributed in the form of a machine-readable storage medium (e.g., compact disc read-only memory (CD-ROM)) or online through an application store (e.g., Play Store™). In the case of online distribution, at least a portion of the computer program product may be temporarily stored or temporarily generated in a storage medium, such as the memory of a manufacturer's server, an application store's server, or a relay server.

[0172] Each component (e.g., a module or a program) according to various embodiments may be composed of one or more entities, and some of the aforementioned sub-components may be omitted, or other sub-components may be further included in various embodiments. Alternatively or additionally, some components (e.g., a module or a program) may be integrated into a single entity, which may perform the same or similar functions as those performed by each of the respective components prior to integration. Operations performed by a module, program, or other component according to various embodiments may be executed sequentially, in parallel, iteratively, or heuristically, or at least some operations may be executed in a different order, omitted, or other operations may be added.

Claims

1. In electronic devices, a memory storing at least one instruction; and A processor connected to said memory and controlling said electronic device, The processor, by executing at least one instruction, Obtain user voice input containing the wake-up word, While the text corresponding to the user voice input is acquired through the voice recognition module, the first assistant module corresponding to the wake-up word among the plurality of assistant modules is loaded, An electronic device that, when the first assistant module is loaded, inputs the text into the first assistant module to perform a function corresponding to the user voice input.

2. In paragraph 1, The above processor, After obtaining the user voice input, if the first assistant module is not loaded and the available system resources are below a preset value, at least a part of the second assistant module among the plurality of assistant modules is unloaded, An electronic device for loading the first assistant module when at least a portion of the second assistant module is unloaded.

3. In paragraph 2, The above processor, An electronic device that loads the first assistant module when the available system resources exceed a preset value.

4. In paragraph 2, The above second voice assistant module, An electronic device wherein, among the plurality of voice assistant modules, the memory capacity required for the operation of the second assistant module is occupied by the second assistant module loaded into the memory at the highest ratio.

5. In paragraph 1, The above processor, An electronic device that unloads at least a portion of the first assistant module if no additional user voice input is obtained for a preset period of time after a function corresponding to the user voice input is performed and the available system resources are below the preset value.

6. In paragraph 5, An electronic device in which the above preset time changes according to the system resources required for the operation of the first assistant module.

7. In paragraph 1, The above processor, An electronic device that unloads at least a portion of a second assistant module having a highest loading degree among the plurality of assistant modules when the available system resources are below a preset value while the first assistant module is being loaded.

8. In paragraph 7, The above processor, An electronic device that loads at least a portion of a second assistant module having a lowest loading level among the plurality of assistant modules when the available system resources exceed a preset value.

9. In paragraph 1, An electronic device wherein the degree to which each of the plurality of assistant modules is loaded is based on the system resources required to operate each of the plurality of assistant modules.

10. In paragraph 1, The above processor, Controls the output module to load resources for performing a function corresponding to the first assistant module; An electronic device that performs a function corresponding to the user voice input through the output module.

11. In paragraph 1, An electronic device wherein each of the above plurality of assistant modules is an assistant module excluding a voice recognition function.

12. In a method for controlling an electronic device, A step of obtaining a user voice input including a wake-up word; A step of loading a first assistant module corresponding to the wake-up word among a plurality of assistant modules while obtaining text corresponding to the user voice input through a voice recognition module; and A control method comprising: when the first assistant module is loaded, a step of inputting the text into the first assistant module to perform a function corresponding to the user voice input; 13. In paragraph 12, The step of loading the above first assistant module is: If the first assistant module is not loaded after the acquisition of the user voice input and the available system resources are below a preset value, at least a part of the second assistant module among the plurality of assistant modules is unloaded, A control method for loading the first assistant module when at least a portion of the second assistant module is unloaded.

14. In paragraph 13, The step of loading the above first assistant module is: A control method for loading the first assistant module when the available system resources exceed a preset value.

15. A non-transitory computer-readable recording medium including a program for executing a method of controlling an electronic device, The above control method is, A step of obtaining a user voice input including a wake-up word; A step of loading a first assistant module corresponding to the wake-up word among a plurality of assistant modules while obtaining text corresponding to the user voice input through a voice recognition module; and A non-transitory computer-readable recording medium comprising: a step of, when the first assistant module is loaded, inputting the text into the first assistant module to perform a function corresponding to the user voice input;

Citation Information

Patent Citations

  • Display control method and display device

    CN110225386A

  • Voice recognition device and pickup equipment

    CN113611296A

  • Speech recognition device

    KR1020040102224A

  • Method and apparatus for reporting channel state information in wireless communication system

    KR1020240000963A

  • Garlic bread manufacturing method and garlic bread using the same

    KR102300693B1