Method for controlling device on basis of command extracted from user utterance and computing apparatus for performing same

The method employs a language model to extract and execute commands from natural language inputs, addressing the challenge of recognizing commands within everyday conversations, enhancing device control through natural language interaction.

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

Patent Information

Application Number
PCT/KR2024/002449
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-01-08
Filing Date
2024-02-26
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

Current voice recognition systems require a wake-up word or specific commands, making it difficult to recognize commands within natural conversations, limiting their usability in everyday life.

Method used

A method using a language model to distinguish between target text commands and unnecessary text in user utterances, allowing devices to extract and execute relevant commands from natural language inputs without pre-defined triggers.

Benefits of technology

Enables seamless control of devices based on natural language inputs, improving user interaction by allowing command recognition within conversational contexts without the need for specific wake-up words or pre-defined commands.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure KR2024002449_24102024_PF_FP_ABST
    Figure KR2024002449_24102024_PF_FP_ABST
Patent Text Reader

Abstract

A method according to the present disclosure may comprise the steps of: acquiring a user utterance; determining whether target text requesting the performance of a function of a device is included in the utterance by using a language model; and controlling the device on the basis of the target text when it is determined that the target text is included, wherein the language model may be a model trained to extract text related to a request from continuous sentences.
Need to check novelty before this filing date? Find Prior Art

Description

Method for controlling a device based on a command extracted from a user's speech and a computing device for performing the same

[0001] The present disclosure relates to a method for controlling a device based on commands extracted from a user's speech. Specifically, the present disclosure relates to a method for distinguishing commands for controlling a device from unnecessary text from a user's speech, and further to a method for controlling a device based on the commands.

[0002] With the advancement of multimedia and network technologies, users can now access a variety of services using their devices. In particular, with the advancement of voice recognition technology, users can input voice (e.g., speaking) into their devices and receive response messages based on their voice input through a service provider agent.

[0003] However, devices require a preparatory signal (e.g., a wake-up word) before receiving voice input to facilitate voice recognition, or only input the commands necessary for voice recognition. This means that it is difficult to recognize commands for devices in naturally occurring conversations in everyday life.

[0004] In order to determine whether a user's voice input contains a valid command, artificial intelligence (AI) technology can be utilized, and rule-based natural language understanding (NLU) technology can also be utilized.

[0005] A method according to one embodiment of the present disclosure may include the step of acquiring a user's utterance. The method may include the step of using a language model to determine whether the utterance includes target text requesting the performance of a device function. If the target text is determined to be included, the method may include the step of controlling the device based on the target text. The language model may be a model trained to extract text related to the request from a series of sentences.

[0006] A computing device according to an embodiment of the present disclosure may include an input / output interface, a memory, and at least one processor. The input / output interface may receive user input. The memory may store instructions for processing language. The at least one processor may acquire user speech by executing the instructions. The at least one processor may use a language model to determine whether the speech includes target text requesting the performance of a device function. If the at least one processor determines that the target text is included, the at least one processor may control the device based on the target text. The language model may be a model trained to extract text related to a request from a series of sentences.

[0007] According to one embodiment of the present disclosure, a non-transitory computer-readable recording medium may have stored thereon a program for executing at least one of the embodiments of the disclosed method on a computer.

[0008] According to one embodiment of the present disclosure, a computer program may be stored on a medium for performing at least one of the embodiments of the disclosed method on a computer.

[0009] FIG. 1 is a diagram illustrating a method for controlling a device based on target text extracted from a user's speech according to one embodiment of the present disclosure.

[0010] FIG. 2 is a conceptual diagram illustrating an operation of controlling a device based on target text extracted from a user's speech according to one embodiment of the present disclosure.

[0011] FIG. 3 is a flowchart illustrating a method for controlling a device based on target text extracted from a user's speech according to one embodiment of the present disclosure.

[0012] FIG. 4 is a flowchart illustrating an operation of converting utterance into text according to one embodiment of the present disclosure.

[0013] FIG. 5 is a flowchart illustrating a method of utilizing a wake-up word according to one embodiment of the present disclosure.

[0014] FIG. 6 is a conceptual diagram illustrating an operation of extracting target text from a user's speech according to one embodiment of the present disclosure.

[0015] FIG. 7 is a flowchart illustrating a method for extracting target text using tokenized utterances according to one embodiment of the present disclosure.

[0016] FIGS. 8A to 8C are drawings for explaining a method for extracting target text from a user's speech according to one embodiment of the present disclosure.

[0017] FIG. 9 is a flowchart specifically explaining a method for extracting target text according to one embodiment of the present disclosure.

[0018] FIG. 10 is a flowchart illustrating a method for controlling a device based on target text extracted from a user's speech according to one embodiment of the present disclosure.

[0019] FIG. 11 is a conceptual diagram illustrating an operation of removing noise from target text according to one embodiment of the present disclosure.

[0020] FIG. 12 is a flowchart illustrating a method for removing noise from target text according to an embodiment of the present disclosure.

[0021] FIG. 13 is a diagram illustrating a method for controlling another device based on target text extracted from a user's speech according to one embodiment of the present disclosure.

[0022] FIG. 14 is a diagram illustrating a method for controlling a device based on target text extracted from utterances of multiple users according to one embodiment of the present disclosure.

[0023] FIG. 15 is a diagram illustrating a configuration of a computing device for controlling a device based on target text extracted from a user's speech, according to one embodiment of the present disclosure.

[0024] In describing this disclosure, descriptions of technical details that are well-known in the technical field to which this disclosure pertains and are not directly related to this disclosure will be omitted. This is to avoid obscuring the gist of this disclosure by omitting unnecessary explanations and to convey it more clearly. Furthermore, the terms described below are defined based on their functions in this disclosure and may vary depending on the intent or custom of the user or operator. Therefore, their definitions should be based on the contents of this specification as a whole.

[0025] For the same reason, some components in the attached drawings are exaggerated, omitted, or schematically depicted. Furthermore, the dimensions of each component do not entirely reflect its actual size. Identical or corresponding components in each drawing are assigned the same reference numbers.

[0026] The advantages and features of the present disclosure, and methods for achieving them, will become clearer with reference to the embodiments described below in detail with the accompanying drawings. However, the present disclosure is not limited to the embodiments disclosed below and may be implemented in various different forms. The disclosed embodiments are provided to ensure that the disclosure of the present disclosure is complete and to fully inform those skilled in the art of the present disclosure of the scope of the disclosure. An embodiment of the present disclosure may be defined according to the claims. Like reference numerals denote like elements throughout the specification. In addition, when describing an embodiment of the present disclosure, if a detailed description of a related function or configuration is determined to unnecessarily obscure the gist of the present disclosure, the detailed description thereof will be omitted. In addition, the terms described below are terms defined in consideration of the functions of the present disclosure and may vary depending on the intention or custom of the user or operator. Therefore, the definitions should be made based on the contents throughout this specification.

[0027] In one embodiment, each block of the flowchart diagrams and combinations of the flowchart diagrams can be performed by computer program instructions. The computer program instructions can be installed on a processor of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, and the instructions, when executed by the processor of the computer or other programmable data processing apparatus, can create means for performing the functions described in the flowchart block(s). The computer program instructions can also be stored in a computer-available or computer-readable memory that can direct a computer or other programmable data processing apparatus to implement the functions in a particular manner, and the instructions stored in the computer-available or computer-readable memory can also produce an article of manufacture that includes instruction means for performing the functions described in the flowchart block(s). The computer program instructions can also be installed on a computer or other programmable data processing apparatus.

[0028] Additionally, each block in the flowchart diagram may represent a module, segment, or portion of code that includes one or more executable instructions for performing a specified logical function(s). In one embodiment, the functions described in the blocks may occur out of order. For example, two blocks depicted in succession may be executed substantially simultaneously or, depending on the function, may be executed in reverse order.

[0029] The term '~ unit' used in one embodiment of the present disclosure may represent software or a hardware component such as a Field Programmable Gate Array (FPGA) or an Application Specific Integrated Circuit (ASIC), and the '~ unit' may perform a specific role. Meanwhile, the '~ unit' is not limited to software or hardware. The '~ unit' may be configured to be on an addressable storage medium and may be configured to play one or more processors. In one embodiment, the '~ unit' may include components such as software components, object-oriented software components, class components, and task components, processes, functions, properties, procedures, subroutines, segments of program code, drivers, firmware, microcode, circuits, data, databases, data structures, tables, arrays, and variables. The functionality provided through a specific component or a specific '~ unit' may be combined to reduce the number of components or separated into additional components. In addition, in one embodiment, the '~ unit' may include one or more processors.

[0030] Embodiments of the present disclosure relate to a method for controlling a device based on commands extracted from a user's speech. Before describing specific embodiments, the meanings of terms frequently used in this specification are defined.

[0031] In this disclosure, the term "language model" may refer to an artificial intelligence model that obtains the most natural word sequence by assigning probabilities to word sequences. For example, a language model may acquire text as input data and extract a target word sequence from the acquired text. The word sequence extracted may vary depending on the purpose of the language model. For example, a language model may extract a word sequence related to a command for controlling a device from text.

[0032] Although the term "language model" is used in this disclosure, this does not limit the technical idea of ​​the present disclosure, and a language model may be expressed as a generative model, an AI model, a language generation model, a natural language processing model, a text generation model, a conversation simulator, a conversational artificial intelligence, and a natural language understanding and generation system, depending on the intention. Among language models, a large language model may be a language model composed of an artificial neural network with a larger number of parameters.

[0033] Hereinafter, with reference to the drawings, a method for controlling a device based on a command extracted from a user's speech according to embodiments of the present disclosure and a computing device for performing the same are described.

[0034] The processes described in this disclosure are assumed to be performed by a computing device supporting natural language processing capabilities. Therefore, in describing FIGS. 1 through 14, the computing device is described as performing the processes. Detailed components included in a computing device according to one embodiment are illustrated in FIG. 14, and these components will be described in detail below.

[0035] FIG. 1 is a diagram illustrating a method for controlling a device based on target text extracted from a user's speech according to one embodiment of the present disclosure.

[0036] Referring to FIG. 1, a computing device can control a device (300) based on target text (20) extracted from a user's utterance (10).

[0037] In FIG. 1, the computing device is not shown, but may be built into the device (300) or may be a separate device that receives a user's speech (10) and transmits a command according to the target text (20) to the device (300). The implementation method of the computing device does not limit the technical idea of ​​the present disclosure.

[0038] In FIG. 1, the device (300) is depicted as an arbitrary device, and the type of the device (300) does not limit the technical concept of the present disclosure. For example, the device (300) may include electronic devices such as a mobile phone, audio device, television, or computer.

[0039] In one embodiment, the computing device can obtain an utterance (10) spoken by a user (150). The computing device can obtain the utterance (10) by recognizing the voice of the user (150). The computing device can obtain the utterance (10) through an input interface, and for example, the input interface can include a microphone for voice input.

[0040] In one embodiment, the computing device can determine whether the user's utterance (10) includes target text (20). The computing device can use a language model to determine whether the utterance (10) includes target text (20).

[0041] In one embodiment, the language model can extract word sequences of target text related to commands requesting the device to perform a function from input data by learning the patterns and structures of the training data. For example, the language model can determine whether a user's utterance (10) contains target text (20) and extract the target text (20).

[0042] For example, a language model may refer to an artificial intelligence model that obtains the most natural word sequence by assigning probabilities to word sequences. In the present disclosure, the language model may be a model retrained to extract word sequences of target text from a user's utterance. The language model may be a model fine-tuned to extract target text from a user's utterance. The method for fine-tuning does not limit the technical concept of the present disclosure.

[0043] For example, a user (150) may utter, "It's quiet at home. Play some music. I'll play some music and then clean." The utterance (10) may include target text (20) and non-target text.

[0044] In one embodiment, the target text (20) may be a text requesting the device (300) to perform a function. The target text (20) may be a command for the device (300). The target text (20) may be a text that the device (300) can recognize as input data, and the device (300) may perform a predetermined function based on the target text (20).

[0045] For example, for a device (300) capable of playing a song, the text data 'Play a song' may be a target text (20) requesting the device (300) to perform a function.

[0046] In one embodiment, the non-target text may be a text other than the target text (20) among the utterances (10). For example, for a device (300) capable of playing a song, the text data 'The house is quiet' does not request the device (300) to perform a function and may be a non-target text. As another example, for a device (300) capable of playing a song, the text data 'I should turn on the song and clean up' does not request the device (300) to perform a function and may be a non-target text.

[0047] However, in one embodiment, the target text (20) and non-target text may be distinguished differently depending on the provided function of the device (300). For example, for a device (300) capable of playing a song, the text data 'Play a song' may be the target text (20), but for a device (300) not related to playing a song, the text data 'Play a song' may be the non-target text.

[0048] In one embodiment, the language model can be trained to determine whether target text (20) is included in an utterance (10) by considering the provided function of the device (300). The language model can determine whether target text (20) is included in an utterance (10) by considering the provided function of the device (300). For example, the language model can determine whether target text (20) requesting performance of a first function is included in an utterance (10) for a first device performing a first function, and can determine whether target text (20) requesting performance of a second function is included in an utterance (10) for a second device performing a second function.

[0049] In one embodiment, the computing device can extract the target text (20) if the target text (20) is included in the user's utterance (10). The computing device can classify the text data of the user's utterance (10) into target text (20) and non-target text, and extract the target text (20).

[0050] In one embodiment, the computing device can control the device (300) based on target text (20).

[0051] For example, the computing device may control the device (300) to play a song based on the target text (20) such as "Play a song." However, the function of the device (300) is merely an example and does not limit the technical idea of ​​the present disclosure. As another example, the computing device may obtain the target text "Turn on the lights," and control the device (300) to turn on the lights based on the target text.

[0052] In FIG. 1, the device (300) is shown as one, but the number of devices (300) does not limit the technical concept of the present disclosure. For example, the device (300) may include a first device and a second device.

[0053] In one embodiment, the computing device can obtain a first target text requesting the performance of a function of the first device from the user's speech (10). The computing device can control the first device based on the obtained first target text.

[0054] In one embodiment, the computing device can obtain a first target text requesting the performance of a function of a first device and a second target text requesting the performance of a function of a second device from the user's speech (10). The computing device can control the first device and the second device based on the obtained first target text and second target text.

[0055] FIG. 2 is a conceptual diagram illustrating an operation of controlling a device based on target text extracted from a user's speech according to one embodiment of the present disclosure.

[0056] For convenience of explanation, parts that overlap with those described using Figure 1 are simplified or omitted.

[0057] Referring to FIG. 2, a computing device (100) can obtain a user's speech (10). For reference, the computing device (100) may refer to a processor of the computing device, and the operation of the computing device (100) may be performed by the processor of the computing device.

[0058] In one embodiment, the user's utterance (10) may be a voice input uttered by the user and processed by a language model (200). The user's utterance (10) may include a first utterance (11), a second utterance (12), and a third utterance (13). However, the first to third utterances (11, 12, 13) are distinguished only for convenience of explanation, and the number, length, location, etc. of the distinguished texts do not limit the technical concept of the present disclosure.

[0059] In one embodiment, the computing device (100) can use a language model (200) to determine whether the utterance (10) includes target text (20) requesting the device (300) to perform a function. The computing device (100) can use the language model (200) to extract the target text (20) from the utterance (10).

[0060] For example, the computing device (100) can determine the second utterance (12) included in the utterance (10) as the target text (20) using the language model (200). The computing device (100) can determine the first utterance (11) and the third utterance (13) included in the utterance (10) as non-target texts using the language model (200). The computing device (100) can extract the second utterance (12) as the target text (20) using the language model (200).

[0061] The operation of the language model (200) to extract target text (20) is described in more detail using Fig. 6.

[0062] In one embodiment, the computing device (100) can control the device (300) based on the extracted target text (20).

[0063] FIG. 3 is a flowchart illustrating a method for controlling a device based on target text extracted from a user's speech according to one embodiment of the present disclosure.

[0064] For convenience of explanation, parts that overlap with those described using Figures 1 and 2 are simplified or omitted.

[0065] Referring to FIG. 3, in step S310, the computing device can obtain the user's speech.

[0066] In one embodiment, a computing device can acquire utterances based on user input. The computing device can acquire utterances input by the user using an input interface. For example, the utterances may be voice input, and the computing device can acquire the user's voice as utterances.

[0067] In one embodiment, the computing device can receive speech from an external device. The computing device can receive a user voice input by the external device from the external device.

[0068] In step S320, the computing device can use a language model to determine whether the utterance includes target text requesting the device to perform a function.

[0069] In one embodiment, the language model can extract word sequences of target text related to commands requesting the device to perform a function from input data by learning the patterns and structures of the training data. For example, the language model can determine whether a user's utterance contains target text and extract the target text.

[0070] In one embodiment, a computing device may input a user's utterance into a language model and use the language model to determine whether the utterance contains target text. The computing device may use the language model to classify word sequences within the utterance into target text and non-target text. The computing device may use the language model to determine whether target text is present among the word sequences within the utterance.

[0071] In step S330, if the computing device determines that the target text is included, the computing device can control the device based on the target text.

[0072] In one embodiment, the computing device may acquire the target text if it determines that the target text is included in the user's utterance. The computing device may extract the target text from the user's utterance.

[0073] In one embodiment, a computing device can control the device based on extracted target text. The extracted target text may be text pertaining to a command requesting the device to perform a function. The computing device can control the device based on the request for the device to perform the function intended by the target text.

[0074] In one embodiment, the computing device can use a language model to determine whether target text requesting the performance of a function of a device to be controlled is included, and control the device based on the target text.

[0075] In one embodiment, a computing device can use a language model to determine whether a target text requesting the performance of a device function is included. If the target text is included in the target user's utterance, the computing device can determine whether the target text request can be processed by the controlled device. If the target text request can be processed by the controlled device, the computing device can control the device based on the target text. If the target text request cannot be processed by the controlled device, the computing device can re-evaluate the extracted target text as non-target text.

[0076] FIG. 4 is a flowchart illustrating an operation of converting utterance into text according to one embodiment of the present disclosure.

[0077] For convenience of explanation, parts that overlap with those described using Figure 3 are simplified or omitted.

[0078] Referring to FIG. 4, in step S410, the computing device can acquire ignition. The description of step S410 is the same as that described using step S310 of FIG. 3, and thus is omitted.

[0079] In step S420, the computing device can convert the utterance into text.

[0080] In one embodiment, the utterance obtained in step S410 may be voice data uttered by the user.

[0081] In one embodiment, a computing device can convert utterances acquired as voice data into text data. The computing device can convert the utterances, which are voice data, into text using speech recognition technology (Speech-to-Text). For example, the computing device can convert the utterances into text using a seq2seq (Sequence-to-Sequence) model, an attention mechanism, etc., and the technical concept of the present disclosure is not limited to the method of converting voice into text using speech recognition technology (Speech-to-Text).

[0082] In step S430, the computing device can use a language model to determine whether the utterance converted into text includes a target text requesting the device to perform a function.

[0083] The description of step S430 overlaps with that described using step S320 of FIG. 3, so it is brief.

[0084] In one embodiment, the language model can extract word sequences of target text related to commands requesting the device to perform a function from input data by learning the patterns and structures of the training data. The computing device can input user utterances converted into text into the language model and use the language model to determine whether the utterance contains the target text.

[0085] In step S440, if the computing device determines that the target text is included, the device can be controlled based on the target text. The description of step S440 is the same as that described using step S330 of FIG. 3, and thus is omitted.

[0086] FIG. 5 is a flowchart illustrating a method of utilizing a wake-up word according to one embodiment of the present disclosure.

[0087] For convenience of explanation, parts that overlap with those described using Figure 3 are simplified or omitted.

[0088] Referring to FIG. 5, step S310 of FIG. 3 may include steps S510 and S520.

[0089] In step S510, the computing device can acquire a wake-up word. After recognizing the wake-up word in the user's speech, the computing device can switch to a mode for acquiring the user's speech uttered after the wake-up word. For example, the computing device can operate in a mode that detects only the utterance of the wake-up word without acquiring the user's speech before recognizing the wake-up word. After recognizing the wake-up word, the computing device can enter a mode for acquiring the user's entire speech.

[0090] In step S520, after the active phrase is recognized, the computing device can acquire the utterance after acquiring the active phrase.

[0091] In one embodiment, a computing device can acquire an active phrase based on user input. The computing device can acquire the active phrase input by the user using an input interface. For example, the active phrase may be a voice input, and the computing device can acquire the voice spoken by the user as the active phrase.

[0092] In one embodiment, the active phrase may be a signal for the computing device to prepare to receive the user's speech input. For example, the computing device may recognize the active phrase based on the user's speech and then capture the user's speech generated thereafter as the user's speech. The computing device may extract target text based on the captured user speech and control the device based on the extracted target text.

[0093] In one embodiment, the active phrase may include a designated keyword, and may of course be newly designated by the user. For example, if the user's spoken words include the word "hi," the computing device may recognize the word "hi" as the active phrase. The computing device may acquire the user's spoken words that occur after the active phrase as utterances, and control the device based on the utterances.

[0094] FIG. 6 is a conceptual diagram illustrating an operation of extracting target text from a user's speech according to one embodiment of the present disclosure.

[0095] For convenience of explanation, parts that overlap with those described using Figure 2 are simplified or omitted.

[0096] Referring to FIG. 6, the computing device (100) can obtain a target text (10d) by preprocessing the user's utterance (10a) and control the device (300) based on the target text (10d). For reference, the computing device (100) may refer to a processor of the computing device, and the operation of the computing device (100) may be performed by the processor of the computing device.

[0097] Additionally, the operation of the computing device (100) may refer to an operation performed by the computing device using a language model. Furthermore, the operations according to steps S610 to S630 of FIG. 6 are performed by the language model, and the computing device may obtain the results performed by the language model to control the device (300).

[0098] In one embodiment, the computing device (100) can acquire a user's speech (10a). The user's speech (10a) may be acquired as voice, but may also be data that has been acquired as voice and then converted into text using speech-to-text technology.

[0099] In step S610, the computing device (100) can tokenize the acquired user's utterance (10b).

[0100] In this disclosure, tokenization is a process of text data preprocessing, which involves dividing given text data into smaller units. These smaller units may include tokens. A token refers to a unit for dividing text data and can be configured in various ways depending on the purpose of the task the user wishes to perform. For example, a token may be configured as a unit such as a word (phrase) or character, but the technical concept of this disclosure is not limited thereto.

[0101] For example, tokens may be divided into predetermined units that are easy to process, depending on the type of language, the type of program that processes data, etc., and the technical idea of ​​the present disclosure is not limited thereto.

[0102] In addition, tokenization can be used in various ways as a term for dividing language data into small unit elements, such as word segmentation, vocabulary decomposition, and sentence separation, and this does not limit the technical idea of ​​the present disclosure.

[0103] In one embodiment, the computing device (100) can obtain a plurality of tokens (11b) by tokenizing the user's utterance (10b). Each of the plurality of tokens (11b) can include text data divided into predetermined units.

[0104] In step S620, the computing device can classify a plurality of tokens (11b). The computing device can classify a start token (12c) and an end token (13c) among the plurality of tokens (11b).

[0105] In one embodiment, a user's utterance (10c) may include multiple tokens. The multiple tokens may include a start token (12c), an end token (13c), and a general token (11c).

[0106] The start token (12c) may be a token that indicates the beginning of a target text requesting the performance of a function of the device (300) among a plurality of tokens. The end token (13c) may be a token that indicates the end of a target text requesting the performance of a function of the device (300) among a plurality of tokens. The general token (11c) may indicate the remaining tokens, excluding the start token (12c) and the end token (13c), among a plurality of tokens.

[0107] In one embodiment, the language model can determine a start token (12c) and an end token (13c) corresponding to the beginning and end of a target text, respectively, for a command requesting the device to perform a function from input data by learning the patterns and structures of the training data. The language model can extract a word sequence of the target text from a user's utterance (10c) based on the start token (12c) and the end token (13c). The computing device can extract a word sequence of the target text from the user's utterance (10c) using the language model.

[0108] In step S630, the computing device can obtain the target text (10d) based on the start token (12d) and the end token (13d).

[0109] In one embodiment, the start token (12d) and the end token (13d) may be arranged sequentially. That is, the start token (12d) may be arranged before the end token (13d). When the start token (12d) and the end token (13d) are arranged sequentially, the computing device can determine the text data from the start token (12d) to the end token (13d) as the target text (10d). The computing device can obtain the target text (10d).

[0110] The target text (10d) may include a start token (12d), a general token (11d) positioned between the start token (12d) and the end token (13d), and an end token (13d). The target text (10d) may not include a general token (11c) positioned before the start token (12c) or a general token (11c) positioned after the end token (13c) in the user's utterance (10c) after step S620 is performed.

[0111] In one embodiment, the computing device (100) can control the device (300) based on the extracted target text (10d).

[0112] FIG. 7 is a flowchart illustrating a method for extracting target text using tokenized utterances according to one embodiment of the present disclosure.

[0113] For convenience of explanation, parts that overlap with those described using Figure 3 are simplified or omitted.

[0114] Referring to FIG. 7, step S320 of FIG. 3 may include steps S710 and S720.

[0115] In step S710, the computing device can obtain multiple tokens by tokenizing the utterance. The computing device can separate the utterance into multiple tokens by tokenizing the utterance.

[0116] In one embodiment, a computing device can tokenize an utterance using a language model and obtain multiple tokens. Tokenization is a process of text data preprocessing, which involves dividing given text data into smaller units. The computing device can obtain utterance segments divided into smaller units as tokens.

[0117] In one embodiment, the plurality of tokens may include a start token and an end token. The computing device may set the start token and the end token as criteria for determining the target text, and may obtain the plurality of tokens including the start token and the end token from the user's utterance.

[0118] In step S720, the computing device can determine whether target text is included in the utterance based on a plurality of tokens.

[0119] In one embodiment, a computing device can use a language model to determine whether a target text is included in an utterance. The plurality of tokens may include a start token indicating the beginning of the target text and an end token indicating the end of the target text. The computing device can determine whether the target text is included in the utterance by considering the positions of the start token and the end token.

[0120] For example, the computing device can set text data from a start token to an end token as a target text, and determine whether the target text exists by considering the positions of the start token and the end token among a plurality of tokens divided from the utterance.

[0121] In one embodiment, the computing device may extract target text from the user's utterance if it determines that the target text is included. The computing device may then control the device based on the target text.

[0122] The operation of determining whether a target text is included in an utterance based on multiple tokens is specifically explained using examples shown in FIGS. 8a to 8c.

[0123] FIGS. 8A to 8C are drawings for explaining a method for extracting target text from a user's speech according to one embodiment of the present disclosure.

[0124] For reference, Figure 8a is a diagram illustrating an example in which a target text is determined to be included in a user's utterance. Figures 8b and 8c are diagrams illustrating examples in which a target text is determined to be included in a user's utterance.

[0125] For convenience of explanation, parts that overlap with those described using FIGS. 6 and 7 are simplified or omitted.

[0126] Referring to FIG. 8A, a computing device can acquire a user's speech (810a). The acquired user's speech (810a) is depicted as text data, but may also be voice data or converted into text data using speech-to-text technology.

[0127] For example, a user's utterance (810a) may be linguistic data such as, "It's quiet in the house. Play some music. I should play some music and clean." Linguistic data may include either voice data or text data, and may refer to data that can be expressed in language.

[0128] In one embodiment, a computing device can obtain multiple tokens by tokenizing a user's utterance (810a). In FIGS. 8A to 8C , tokenization of the user's utterance (810a) is illustrated as an example of a task in which the user's utterance (810a) is divided into syllable units, so that each syllable corresponds to a token. That is, each syllable in the user's utterance (810a) corresponds to a respective token. Of course, the unit for tokenizing the user's utterance (810a) does not limit the technical concept of the present disclosure, and the user's utterance (810a) is divided into syllable units for convenience of explanation.

[0129] In one embodiment, the plurality of tokens in the user's utterance (810a) may include a first token (811a), a second token (812a), a third token (813a), a fourth token (814a), and a fifth token (815a).

[0130] In one embodiment, the computing device may use a language model to classify start and end tokens from a plurality of tokens within a user's utterance (810a). By learning the patterns and structures of the training data, the language model may classify start and end tokens corresponding to the beginning and end of the target text, respectively, of a command requesting the device to perform a function from the user's utterance (810a).

[0131] In one embodiment, the language model may compute a confidence score for each token as to whether it corresponds to a start token or an end token.

[0132] A language model can determine a token as a start token if the confidence level exceeds a threshold regarding whether it corresponds to a start token. For convenience of explanation, Figure 8a displays a value of '1' for tokens determined to be start tokens, and a value of '0' for tokens not determined to be start tokens.

[0133] Additionally, the language model can determine that a token is a terminal token if the confidence level exceeds a threshold regarding whether it corresponds to a terminal token. For convenience of explanation, Figure 8a displays a value of '1' for tokens determined to be terminal tokens, and a value of '0' for tokens not determined to be terminal tokens.

[0134] In one embodiment, the start token may be a token that represents the beginning of a target text requesting the device to perform a function among multiple tokens. As illustrated in FIG. 8A, the computing device may determine the second token (812a) as the start token. The computing device may use a language model to determine the start token corresponding to the beginning of the target text regarding the command requesting the device to perform a function.

[0135] In one embodiment, the end token may be a token that indicates the end of a target text requesting the device to perform a function among multiple tokens. As illustrated in FIG. 8A, the computing device may determine the fourth token (814a) as the end token. The computing device may use a language model to determine the end token corresponding to the end of the target text regarding the command requesting the device to perform a function.

[0136] Specifically, referring to the example of FIG. 8A, in one embodiment, the language model can calculate the confidence level of a first token (811a) in a user's utterance (810a). The language model can calculate a first confidence level regarding whether the first token (811a) corresponds to a start token, and a second confidence level regarding whether the first token (811a) corresponds to a stop token. If the language model determines that the calculated first confidence level does not exceed a threshold, the language model can determine that the first token (811a) is not a start token. If the language model determines that the calculated second confidence level does not exceed a threshold, the language model can determine that the first token (811a) is not a stop token.

[0137] As a result, Fig. 8a indicates a value of '0' as to whether the first token (811a) is a start token, and indicates a value of '0' as to whether the first token (811a) is an end token.

[0138] For convenience of explanation, the method by which the language model determines whether the third token (813a) and the fifth token (815a) of the user's utterance (810a) are start tokens or end tokens is the same as that described using the first token (811a), so it is omitted.

[0139] In one embodiment, the language model may calculate the confidence level of a second token (812a) in a user's utterance (810a). The language model may calculate a first confidence level regarding whether the second token (812a) corresponds to a start token, and a second confidence level regarding whether the second token (812a) corresponds to a stop token. If the language model determines that the calculated first confidence level exceeds a threshold, the language model may determine that the second token (812a) is a start token. If the language model determines that the calculated second confidence level does not exceed the threshold, the language model may determine that the second token (812a) is not a stop token.

[0140] As a result, Fig. 8a indicates a value of '1' in relation to whether the second token (812a) is a start token, and indicates a value of '0' in relation to whether the second token (812a) is an end token.

[0141] In one embodiment, the language model may calculate the confidence level of the fourth token (814a) in the user's utterance (810a). The language model may calculate a first confidence level regarding whether the fourth token (814a) corresponds to a start token and a second confidence level regarding whether the fourth token (814a) corresponds to a stop token. If the language model determines that the calculated first confidence level does not exceed a threshold, the language model may determine that the fourth token (814a) is not a start token. If the language model determines that the calculated second confidence level exceeds the threshold, the language model may determine that the fourth token (814a) is a stop token.

[0142] As a result, Fig. 8a indicates a value of '0' as to whether the fourth token (814a) is a start token, and indicates a value of '1' as to whether the fourth token (814a) is an end token.

[0143] Of course, for the convenience of explanation, the first to fifth tokens (810a to 810e) among the multiple tokens in the user utterance (810a) have been described as examples, but the operation of determining whether each of the multiple tokens is a start token or an end token can be performed in the same manner.

[0144] In one embodiment, the computing device can distinguish the target text based on a start token and an end token. The computing device can extract the target text based on the start token and the end token. The computing device can extract the target text based on a second token (812a) determined to be a start token and a fourth token (814a) determined to be an end token. If the start token and the end token are arranged in order, the computing device can determine the text data from the start token to the end token as the target text.

[0145] For example, the computing device may use a language model to determine the second token (812a) of the user's utterance (810a) as the start token. The computing device may use the language model to determine the fourth token (814a) of the user's utterance (810a) as the end token. The computing device may determine a token sequence from "No" to "Give" as the target text. Accordingly, the computing device may extract the target text "Play a song" from the user's utterance (810a).

[0146] Referring to FIG. 8b, a computing device can acquire a user's speech (810b). The acquired user's speech (810b) is depicted as text data, but may also be voice data or converted into text data through speech-to-text technology.

[0147] For example, a user's utterance (810b) may be linguistic data such as, "It's been raining since yesterday. I don't feel like going out. Should I exercise at home?" Linguistic data may include either voice data or text data, and may refer to data that can be expressed in language.

[0148] In one embodiment, a computing device can obtain multiple tokens (811b to 815b) by tokenizing a user's utterance (810b). While each syllable in the user's utterance (810b) is illustrated as corresponding to a respective token, the unit of tokenizing the user's utterance (810b) does not limit the technical concept of the present disclosure.

[0149] In one embodiment, the plurality of tokens may include a first token (811b), a second token (812b), a third token (813b), a fourth token (814b), and a fifth token (815b). In FIG. 8b, the first to fifth tokens (811b to 815b) are merely tokens selected from among the plurality of tokens for convenience of explanation.

[0150] In one embodiment, a computing device may use a language model to classify start and end tokens from a user's utterance (810b). The language model may determine that a token is a start token if the confidence level of whether it corresponds to a start token exceeds a threshold. The language model may determine that a token is a end token if the confidence level of whether it corresponds to a end token exceeds a threshold.

[0151] Specifically, referring to the example of FIG. 8b, the language model can calculate the confidence level of the first token (811b) in the user's utterance (810b). The language model can calculate a first confidence level regarding whether the first token (811b) corresponds to a start token, and a second confidence level regarding whether the first token (811b) corresponds to a end token. If the language model determines that the calculated first confidence level does not exceed a threshold, the language model can determine that the first token (811b) is not a start token. If the language model determines that the calculated second confidence level does not exceed a threshold, the language model can determine that the first token (811b) is not a end token.

[0152] As a result, Fig. 8b indicates a value of '0' as to whether the first token (811b) is a start token, and indicates a value of '0' as to whether the first token (811b) is an end token.

[0153] Similarly, the language model can calculate the confidence of the second to fifth tokens (812b to 815b) of the user's utterance (810b). Since the language model determines that the first confidences calculated for the second to fifth tokens (812b to 815b) do not exceed a threshold, the language model can determine that the second to fifth tokens (812b to 815b) are not start tokens, respectively. Since the language model determines that the second confidences calculated for the second to fifth tokens (812b to 815b) do not exceed a threshold, the language model can determine that the second to fifth tokens (812b to 815b) are not end tokens, respectively.

[0154] As a result, FIG. 8b indicates a value of '0' as to whether the second to fifth tokens (812b to 815b) are start tokens, and indicates a value of '0' as to whether the second to fifth tokens (812b to 815b) are end tokens.

[0155] Of course, for the convenience of explanation, the explanation is centered on the first to fifth tokens (811b to 815b) among the multiple tokens in the user utterance (810b), but the operation of determining whether each of the multiple tokens is a start token or an end token can be performed in the same manner.

[0156] In one embodiment, the computing device can extract target text based on whether it detects a start token or an end token. If no start token or an end token is detected, the computing device can determine that there is no target text in the user's utterance (810b). The computing device can determine that there is no target text in the user's utterance (810b) and determine all text data in the user's utterance (810b) as non-target text.

[0157] Referring to FIG. 8c, a computing device can acquire a user's speech (810c). The acquired user's speech (810c) is depicted as text data, but may also be voice data or converted into text data using speech-to-text technology.

[0158] For example, a user's utterance (810c) may be linguistic data such as, "It's been raining since yesterday. I don't feel like going out. Should I exercise at home?" Linguistic data may include either voice data or text data, and may refer to data that can be expressed in language.

[0159] In one embodiment, a computing device can obtain multiple tokens by tokenizing a user's utterance (810c). While each syllable in the user's utterance (810c) is illustrated as corresponding to a token, the unit of tokenizing the user's utterance (810c) does not limit the technical concept of the present disclosure.

[0160] In one embodiment, the plurality of tokens in the user's utterance (810c) may include a first token (811c), a second token (812c), a third token (813c), a fourth token (814c), and a fifth token (815c).

[0161] In one embodiment, a computing device may use a language model to classify a start token and an end token from a plurality of tokens (811c to 815c) within a user's utterance (810c). The language model may determine that a token is a start token if the confidence level of whether it corresponds to a start token exceeds a threshold. The language model may determine that a token is a end token if the confidence level of whether it corresponds to a end token exceeds a threshold.

[0162] Specifically, referring to the example of FIG. 8c, the language model can calculate the confidence level of the first token (811c) in the user's utterance (810c). The language model can calculate a first confidence level regarding whether the first token (811c) corresponds to a start token, and a second confidence level regarding whether the first token (811c) corresponds to a stop token. If the language model determines that the calculated first confidence level does not exceed a threshold, the language model can determine that the first token (811c) is not a start token. If the language model determines that the calculated second confidence level does not exceed a threshold, the language model can determine that the first token (811c) is not a stop token.

[0163] As a result, Fig. 8b indicates a value of '0' as to whether the first token (811c) is a start token, and indicates a value of '0' as to whether the first token (811c) is an end token.

[0164] For convenience of explanation, the method by which the language model determines whether the third token (813c) and the fifth token (815c) of the user's utterance (810c) are start tokens or end tokens is the same as that described using the first token (811c), so it is omitted.

[0165] In one embodiment, the language model may calculate the confidence level of a second token (812c) in a user's utterance (810c). The language model may calculate a first confidence level regarding whether the second token (812c) corresponds to a start token, and a second confidence level regarding whether the second token (812c) corresponds to a stop token. If the language model determines that the calculated first confidence level does not exceed a threshold, the language model may determine that the second token (812c) is not a start token. If the language model determines that the calculated second confidence level exceeds the threshold, the language model may determine that the second token (812c) is a stop token.

[0166] As a result, Fig. 8c indicates a value of '0' as to whether the second token (812c) is a start token, and indicates a value of '1' as to whether the second token (812c) is an end token.

[0167] In one embodiment, the language model may calculate the confidence level of the fourth token (814c) in the user's utterance (810c). The language model may calculate a first confidence level regarding whether the fourth token (814c) corresponds to a start token, and a second confidence level regarding whether the fourth token (814c) corresponds to a stop token. If the language model determines that the calculated first confidence level exceeds a threshold, the language model may determine that the fourth token (814c) is a start token. If the language model determines that the calculated second confidence level does not exceed the threshold, the language model may determine that the fourth token (814c) is not a stop token.

[0168] As a result, Fig. 8c indicates a value of '1' as to whether the fourth token (814c) is a start token, and indicates a value of '0' as to whether the fourth token (814c) is an end token.

[0169] In one embodiment, a computing device may extract target text based on a start token and an end token. If the start token and the end token are arranged in reverse order, the computing device may not determine text data from the end token to the start token as target text. If the start token and the end token are arranged in reverse order within an utterance, the computing device may determine text data from the end token to the start token as non-target text.

[0170] In one embodiment, the computing device may determine that there is no target text within the user utterance (810c) and determine all text data within the user utterance (810c) as non-target text.

[0171] In one embodiment of the present disclosure, a computing device can classify start tokens and end tokens using a language model, and determine that a target text exists if a start token corresponding to the beginning of the target text and an end token corresponding to the end of the target text are accurately detected in sequence. Accordingly, even if a start token or an end token is incorrectly detected, whether the target text is included in a user utterance (810c) can be accurately determined by considering whether the start token and the end token are arranged in sequence.

[0172] Although not illustrated in Figures 8b and 8c, there may be further examples in which the computing device determines that the target text does not exist. For example, the computing device may use a language model to detect only a single starting token within a user utterance. Based on just one starting token, the computing device may determine that the target text does not exist within the user utterance.

[0173] As another example, a computing device may use a language model to detect only one end token within a user utterance. Based on this single end token, the computing device may determine that the target text does not exist within the user utterance.

[0174] As another example, a computing device can use a language model to detect only multiple start tokens within a user utterance. If only start tokens are detected within the user utterance, the computing device can determine that the target text does not exist within the user utterance. Similarly, if only multiple end tokens are detected within the user utterance, the computing device can determine that the target text does not exist within the user utterance.

[0175] FIG. 9 is a flowchart specifically illustrating a method for extracting target text according to one embodiment of the present disclosure. For reference, step S720 described in FIG. 7 is described in more detail using FIG. 9.

[0176] For convenience of explanation, parts that overlap with those explained using Fig. 7 are simplified or omitted.

[0177] Referring to FIG. 9, step S720 of FIG. 7 may include steps S910, S920, and S930. According to steps S910 to S930, the computing device may determine whether a target text is included in a conversation using a language model.

[0178] In step S910, the computing device can obtain, for each of a plurality of tokens, a probability value corresponding to a start token and a probability value corresponding to an end token.

[0179] In one embodiment, the plurality of tokens may include a first token, a second token, and a third token. The first through third tokens are defined for convenience of explanation.

[0180] The computing device can obtain a first probability value (1_1) that the first token corresponds to the start token. The computing device can obtain a first probability value (1_2) that the first token corresponds to the end token. The computing device can obtain a probability value (1_2) that the first token corresponds to the start token and a probability value (1_2) that the first token corresponds to the end token, respectively.

[0181] Similarly, the computing device can obtain a probability value that the second token corresponds to the start token and a probability value that the third token corresponds to the end token, respectively. The computing device can obtain a probability value that the third token corresponds to the start token and a probability value that the third token corresponds to the end token, respectively.

[0182] For convenience of explanation, the description is based on the first to third tokens, but the computing device can obtain a probability value corresponding to the start token and a probability value corresponding to the end token for each of the plurality of tokens obtained by tokenizing the conversation.

[0183] In step S920, the computing device may determine one of the plurality of tokens as a start token based on the probability value. The computing device may determine one of the plurality of tokens as an end token based on the probability value.

[0184] In one embodiment, the computing device may determine the highest probability value among the probability values ​​of each of the plurality of tokens corresponding to the starting token. The computing device may determine that the token corresponding to the highest probability value corresponds to the starting token.

[0185] Similarly, the computing device can determine the highest probability value among the probability values ​​for each of the multiple tokens corresponding to the end token. The computing device can determine that the token corresponding to the highest probability value corresponds to the end token.

[0186] In one embodiment, the computing device may extract a probability value exceeding a threshold from among the probability values ​​of each of a plurality of tokens corresponding to the starting token. The computing device may determine that the token corresponding to the probability value exceeding the threshold corresponds to the starting token.

[0187] Similarly, the computing device can extract a probability value exceeding a threshold among the probability values ​​of each of the multiple tokens corresponding to the end token. The computing device can determine that the token corresponding to the probability value exceeding the threshold corresponds to the end token.

[0188] In step S930, the computing device can determine whether a target text requesting the device to perform a function is included based on the positions of the start token and the end token.

[0189] In one embodiment, the computing device can obtain location information of the start token and the end token by determining the start token and the end token. The computing device can determine the target text based on the locations of the start token and the end token.

[0190] In one embodiment, the computing device can determine the text from the position of the start token to the position of the end token as the target text.

[0191] In one embodiment, the computing device can determine a start token and an end token within the user's utterance from among a plurality of tokens within the user's utterance. If the positions of the start token and the end token are arranged in order, the computing device can determine the text from the position of the start token to the position of the end token as the target text.

[0192] In one embodiment, if the positions of the start token and the end token are reversed, the computing device may determine that the target text is not included in the user's utterance. The computing device may determine the text before the end token, the text from the end token to the start token, and the text after the start token as non-target text.

[0193] In one embodiment, a computing device may determine a single token as both a start token and an end token. If a single token is determined to be both a start token and an end token, the computing device may determine that the target text is not included in the user's utterance. The computing device may determine the text preceding the start token (or end token) and the text following the start token (or end token) as non-target text.

[0194] FIG. 10 is a flowchart illustrating a method for controlling a device based on target text extracted from a user's speech according to one embodiment of the present disclosure.

[0195] For convenience of explanation, the following description will focus on differences from those described using FIG. 3. The description of step S1010 is omitted because it is the same as that described using step S310 of FIG. 3. The description of step S1020 is omitted because it is the same as that described using step S320 of FIG. 3. The description of step S1030 is omitted because it is the same as that described using step S330 of FIG. 3. Therefore, in FIG. 10, the description will focus on step S1040, which is different from that described using FIG. 3.

[0196] Referring to FIG. 10, in step S1030, the computing device may use a language model to determine whether the user's utterance includes target text requesting the device to perform a function. In step S1040, if the computing device determines that the target text is not included, the computing device may repeat the operation of acquiring the user's utterance.

[0197] In one embodiment, if the computing device determines that the target text is not included in the user utterance, it may acquire another user utterance. For example, if the computing device determines that the target text is not included in the first utterance, it may acquire a second utterance generated by the user after the first utterance.

[0198] The computing device can determine whether the second utterance includes a target text, extract the target text, and control the device based on the extracted target text.

[0199] Of course, the computing device may determine that the target text is not included in the second utterance. In this case, the computing device may obtain a third utterance generated by the user after the second utterance according to the operation of step S1040, and may repeatedly perform the operations according to steps S1020 and S1030. The computing device may repeatedly obtain the user utterance until it determines that the target text is included in the user utterance.

[0200] FIG. 11 is a conceptual diagram illustrating an operation of removing noise from target text according to one embodiment of the present disclosure.

[0201] For convenience of explanation, any part that overlaps with what was explained using Figure 6 is simplified or omitted.

[0202] Referring to FIG. 11, the computing device (100) can obtain target text by preprocessing the user's speech (10) and control the device based on the target text. For reference, the computing device (100) may refer to a processor of the computing device, and the operations of the computing device (100) may be performed by the processor of the computing device.

[0203] Additionally, the operation of the computing device (100) may refer to an operation performed by the computing device using a language model. Furthermore, the operations according to steps S1110 to S1130 of FIG. 11 are performed by a language model, and the computing device may obtain the results performed by the language model to control the device.

[0204] In one embodiment, the computing device (100) can acquire a user's utterance (10a). In step S1110, the computing device (100) can tokenize the acquired user's utterance (10a). In one embodiment, the computing device (100) can acquire multiple tokens by tokenizing the user's utterance (10a).

[0205] In step S1120, the computing device can classify a plurality of tokens. The computing device can determine a start token (12c) and an end token (13c) among the plurality of tokens. In step S1130, the computing device can obtain the target text (10d) based on the start token (12d) and the end token (13d).

[0206] In one embodiment, the acquired target text (10d) may include noise (15). The noise (15) may refer to noise generated while the user's speech (10) is being generated. The noise (15) may include noise generated unrelated to the user's speech (10), such as the voice of another user or the sound of the wind, or may include noise generated during the process of transmitting and amplifying an audio signal, and does not limit the technical idea of ​​the present disclosure.

[0207] In step S1140, the computing device can remove noise mixed between target texts (10d). The computing device can remove noise included between target texts (10d).

[0208] In one embodiment, a computing device can use a language model to distinguish noise (15) unrelated to a target text (10d). The computing device can then remove the identified noise (15). For example, the language model can classify unrelated noise (15) from a given text by learning the patterns and structures of training data.

[0209] In one embodiment, the computing device can remove noise through various noise removal methods such as blurring, low-pass filtering, moving average, etc., and the noise removal method does not limit the technical idea of ​​the present disclosure.

[0210] In one embodiment, the computing device (100) can control the device based on target text (10e) from which noise (15) has been removed.

[0211] FIG. 12 is a flowchart illustrating a method for removing noise from target text according to an embodiment of the present disclosure.

[0212] For convenience of explanation, parts that overlap with those described using Figure 3 are simplified or omitted.

[0213] Referring to FIG. 12, step S330 of FIG. 3 may include steps S1210, S1220, and S1230.

[0214] In step S1210, if it is determined that the target text is included in the user utterance, the computing device can extract the target text.

[0215] In one embodiment, the computing device may analyze a user utterance using a language model to classify the user utterance into at least one target text and at least one non-target text. The non-target text may refer to text other than the target text that relates to a command requesting the device to perform a function.

[0216] In one embodiment, if the computing device determines that the target text is included in the user utterance, the computing device can extract the target text from among the classified target text and non-target text.

[0217] In step S1220, the computing device can remove noise from the extracted target text.

[0218] In one embodiment, the extracted target text may contain noise. For example, the target text may be a text sequence with a single context, and the target text may contain text noise that does not fit the context of the target text. In another example, the target text may be a speech sequence with a predetermined frequency range, and the target text may contain speech noise that does not fit the frequency range of the target text.

[0219] In one embodiment, a computing device can remove noise from target text using a language model. By learning the patterns and structures of training data, the computing device can classify and remove noise unrelated to the given text from the given text.

[0220] In step S1230, the computing device can control the device based on the target text from which noise has been removed. The computing device can control the device based on a request for performing a function for the device intended by the target text.

[0221] FIG. 13 is a diagram illustrating a method for controlling another device based on target text extracted from a user's speech according to one embodiment of the present disclosure.

[0222] For convenience of explanation, parts that overlap with those described using Figure 1 are simplified or omitted.

[0223] Referring to FIG. 13, the computing device can control the device based on target text (20) extracted from the user's speech (10). The device can include a first device (300) and a second device (400).

[0224] In one embodiment, the first device (300) is depicted as any device, and the type of the first device (300) does not limit the technical concept of the present disclosure. For example, the first device (300) may include an electronic device such as a mobile phone, an audio device, a television, or a computer.

[0225] In one embodiment, the second device (400) is illustrated as an air conditioner, but the type of the second device (400) does not limit the technical concept of the present disclosure. For example, the second device (400) may include electronic devices such as a mobile phone, audio device, television, or computer.

[0226] In one embodiment, a computing device can obtain an utterance (10) generated by a user (150). The computing device can determine whether a target text (20) is included in the user's utterance (10). If the target text (20) is included in the user's utterance (10), the computing device can extract the target text (20). The computing device can control the first device (300) based on the target text (20).

[0227] In one embodiment, the target text (20) may be text data requesting the second device (400) to perform a function. The computing device may generate a request for the second device (400) to perform the function based on the target text (20). The computing device may control the first device (300) to transmit the generated request to the second device (400).

[0228] In one embodiment, the first device (300) may be a computing device. The first device (300) can obtain the user's (150) utterance (10). The first device (300) can determine whether the user's utterance (10) includes a target text (20). If the target text (20) is included in the user's utterance (10), the first device (300) can extract the target text (20). The first device (300) can control the second device (400) based on the target text (20).

[0229] For example, a user (150) may utter, "I'm going to sleep now. It's summer, so it's hot even when I sleep. If the temperature is above 26 degrees Celsius, turn on the air conditioner." The utterance (10) may include target text (20) and non-target text.

[0230] For a second device (400) targeting an air conditioner, the text data 'Turn on the air conditioner if the temperature is above 26 degrees Celsius' may be a target text (20) requesting the second device (400) to perform a function. For the second device (400), the text data 'I'm going to sleep now. It's hot even when I sleep because summer is coming' may be a non-target text.

[0231] In one embodiment, the computing device can control the first device (300) to transmit a request for performing a function of the second device (400) based on the target text (20) of 'Turn on the air conditioner if the temperature is above 26 degrees Celsius.'

[0232] FIG. 14 is a diagram illustrating a method for controlling a device based on target text extracted from utterances of multiple users according to one embodiment of the present disclosure.

[0233] For convenience of explanation, parts that overlap with those described using FIGS. 1 and 13 are simplified or omitted.

[0234] Referring to FIG. 14, a computing device can acquire speech between multiple users (151, 152). The computing device can control the device based on target text (20) extracted from the speech between multiple users (151, 152). In FIG. 14, the device is illustrated as including a first device (300) and a second device (400), but the technical idea of ​​the present disclosure is not limited thereto, and it is of course possible to include a single device as illustrated in FIG. 1.

[0235] For convenience of explanation, the utterances between multiple users (151, 152) include a first utterance (11), a second utterance (12), and a third utterance (13). The first utterance (12) may be an utterance of the first user (151). The second utterance (12) may be an utterance of the second user (152). The third utterance (13) may be an utterance of the second user (152). Of course, each utterance may be an utterance generated by any user, and the subject of the utterance is only specified for detailed explanation.

[0236] In one embodiment, a computing device can acquire utterances generated by multiple users (151, 152). The computing device can determine whether the utterances between the multiple users (151, 152) include a target text (20). The computing device can determine whether the first utterance (11), the second utterance (12), and the third utterance (13) each include the target text (20).

[0237] For example, a computing device may obtain a first utterance (11). The computing device may determine that the first utterance (11) does not contain the target text (20). As another example, the computing device may obtain a second utterance (12). The computing device may determine that the second utterance (12) does not contain the target text (20). As another example, the computing device may obtain a third utterance (13). The computing device may determine that the third utterance (13) contains the target text (20).

[0238] In one embodiment, the computing device can extract the target text (20) if the target text (20) is included in an utterance between multiple users (151, 152). The computing device can determine that the target text (20) is included in the utterance between multiple users (151, 152). Specifically, the computing device can determine that the target text (20) is included in a third utterance (13) and can extract the target text (20) from the third utterance (13). The computing device can control the first device (300) based on the target text (20).

[0239] In one embodiment, the target text (20) may be text data requesting the second device (400) to perform a function. The computing device may generate a request for the second device (400) to perform the function based on the target text (20). The computing device may control the first device (300) to transmit the generated request to the second device (400).

[0240] In one embodiment, the first device (300) may be a computing device. The first device (300) can acquire utterances generated by multiple users (151, 152). The first device (300) can determine whether the target text (20) is included in the utterances between the multiple users (151, 152). If the target text (20) is included in the utterances between the multiple users (151, 152), the first device (300) can extract the target text (20). The first device (300) can control the second device (400) based on the target text (20).

[0241] FIG. 15 is a diagram illustrating a configuration of a computing device for controlling a device based on target text extracted from a user's speech, according to one embodiment of the present disclosure.

[0242] Referring to FIG. 15, a computing device (1000) according to an embodiment may include an input / output interface (1100), a memory (1200), and a processor (1300). However, the components of the computing device (1000) are not limited to the above-described examples, and the computing device (1000) may include more or fewer components than the above-described components. In one embodiment, some or all of the input / output interface (1100), the memory (1200), and the processor (1300) may be implemented in the form of a single chip, and the processor (1300) may include one or more processors.

[0243] The input / output interface (1100) may include an input interface (e.g., touch screen, hard button, microphone, etc.) for receiving control commands or information from a user, and an output interface (e.g., display panel, speaker, etc.) for displaying the results of execution of an operation according to the user's control or the status of the computing device (1000).

[0244] The memory (1200) is a configuration for storing various programs or data, and may be configured as a storage medium such as a ROM, a RAM, a hard disk, a CD-ROM, and a DVD, or a combination of storage media. The memory (1200) may not exist separately and may be configured to be included in the processor (1300). The memory (1200) may be configured as a volatile memory, a non-volatile memory, or a combination of volatile memory and non-volatile memory. Programs or instructions for performing operations according to the embodiments described with reference to FIGS. 1 to 14 may be stored in the memory (1200). The memory (1200) may also provide stored data to the processor (1300) upon request of the processor (1300).

[0245] The processor (1300) controls a series of processes so that the computing device (1000) operates according to the embodiments described with reference to FIGS. 1 to 14, and may be composed of one or more processors. In this case, the one or more processors may be a general-purpose processor such as a CPU, an AP, a DSP (Digital Signal Processor), a graphics-only processor such as a GPU, a VPU (Vision Processing Unit), or an artificial intelligence-only processor such as an NPU. For example, if one or more processors are artificial intelligence-only processors, the artificial intelligence-only processor may be designed with a hardware structure specialized for processing a specific artificial intelligence model.

[0246] The processor (1300) can write data to the memory (1200) or read data stored in the memory (1200), and in particular, process data according to predefined operation rules or artificial intelligence models by executing programs or commands stored in the memory (1200). Accordingly, the processor (1300) can perform the operations described in the embodiments described above, and the operations described as being performed by the computing device (1000) in the embodiments described above can be viewed as being performed by the processor (1300) unless otherwise specified.

[0247] A method according to one embodiment may include the step of acquiring a user's utterance. The method may include the step of using a language model to determine whether the utterance includes target text requesting the device to perform a function. If the target text is determined to be included, the method may include the step of controlling the device based on the target text. The language model may be a model trained to extract text related to the request from a series of sentences.

[0248] In one embodiment, the utterance may be a voice input by a user. The method may further include a step of converting the utterance into text.

[0249] In one embodiment, the step of acquiring an utterance may include the step of acquiring a wake-up word. The step of acquiring an utterance may include the step of acquiring an utterance after acquiring the wake-up word.

[0250] In one embodiment, the step of determining whether the target text is included may include the step of tokenizing the utterance into a plurality of tokens. The step of determining whether the target text is included may include the step of determining whether the utterance includes the target text based on the plurality of tokens.

[0251] In one embodiment, the plurality of tokens may include a start token corresponding to the beginning of text related to the request and an end token corresponding to the end of text related to the request. The step of determining whether the utterance includes the target text based on the plurality of tokens may include the step of obtaining, for the plurality of tokens, a probability value corresponding to the start token and a probability value corresponding to the end token, respectively. The step of determining whether the utterance includes the target text based on the plurality of tokens may include the step of determining, based on the probability value, one of the plurality of tokens as the start token and one of the plurality of tokens as the end token. The step of determining whether the utterance includes the target text based on the plurality of tokens may include the step of determining, based on the positions of the start token and the end token, whether the utterance includes the target text requesting the performance of a function of the device.

[0252] In one embodiment, the step of determining whether the target text is included based on the positions of the start token and the end token may be to determine the text ranging from the start token to the end token as the target text when the start token and the end token are sequentially arranged within the utterance.

[0253] In one embodiment, the step of determining whether target text is included based on the positions of the start token and the end token may be such that if the start token and the end token are arranged in reverse order within the utterance, the text ranging from the end token to the start token is determined as non-target text.

[0254] In one embodiment, the method may re-perform the step of acquiring an utterance to acquire another utterance if it is determined that the utterance does not contain the target text.

[0255] In one embodiment, the step of controlling the device based on the target text may include the step of extracting the target text. The step of controlling the device based on the target text may include the step of removing noise from the extracted target text. The step of controlling the device based on the target text may include the step of controlling the device based on the target text from which the noise has been removed.

[0256] In one embodiment, the target text may be text requesting the performance of a function by the second device. The step of controlling the device based on the target text may include the step of generating a request for the performance of the function by the second device based on the target text. The step of controlling the device based on the target text may include the step of controlling the first device to transmit the request for the performance of the function by the second device to the second device.

[0257] A non-transitory computer-readable recording medium having recorded thereon a program for performing any one of the methods according to one embodiment of the present disclosure on a computer may be provided.

[0258] A computing device according to one embodiment may include an input / output interface, a memory, and at least one processor. The input / output interface may receive user input. The memory may store instructions for processing language. The at least one processor may acquire a user utterance by executing the instructions. The at least one processor may use a language model to determine whether the utterance includes target text requesting the performance of a device function. If the at least one processor determines that the target text is included, the at least one processor may control the device based on the target text. The language model may be a model trained to extract text related to a request from a series of sentences.

[0259] In one embodiment, the utterance may be a speech input by a user. At least one processor may convert the utterance into text.

[0260] In one embodiment, at least one processor may acquire a wake-up word when acquiring an utterance. At least one processor may acquire the utterance after acquiring the wake-up word when acquiring the utterance.

[0261] In one embodiment, at least one processor may tokenize the utterance to separate it into a plurality of tokens to determine whether the target text is included. At least one processor may determine whether the target text is included in the utterance based on the plurality of tokens.

[0262] In one embodiment, the plurality of tokens may include a start token corresponding to the beginning of text associated with the request and an end token corresponding to the end of text associated with the request. At least one processor may obtain, for each of the plurality of tokens, a probability value corresponding to the start token and a probability value corresponding to the end token when determining whether the utterance includes the target text based on the plurality of tokens. At least one processor may determine, based on the probability value, one of the plurality of tokens as the start token and one of the plurality of tokens as the end token when determining whether the utterance includes the target text based on the plurality of tokens. At least one processor may determine, based on the positions of the start token and the end token, whether the utterance includes the target text requesting the performance of a function of the device.

[0263] In one embodiment, at least one processor may determine whether target text is included based on the positions of the start token and the end token, and if the start token and the end token are sequentially arranged within the utterance, the text ranging from the start token to the end token may be determined as the target text.

[0264] In one embodiment, at least one processor may determine whether target text is included based on the positions of the start token and the end token, and if the start token and the end token are arranged in reverse order within the utterance, the text ranging from the end token to the start token may be determined as non-target text.

[0265] In one embodiment, at least one processor may re-perform the operation of acquiring an utterance to acquire another utterance if it is determined that the utterance does not contain the target text.

[0266] In one embodiment, at least one processor may extract the target text when controlling the device based on the target text. When controlling the device based on the target text, at least one processor may remove noise from the extracted target text. When controlling the device based on the target text, at least one processor may control the device based on the target text from which noise has been removed.

[0267] Various embodiments of the present disclosure may be implemented or supported by one or more computer programs, and the computer programs may be formed from computer-readable program code and embodied in a computer-readable medium. In the present disclosure, "application" and "program" may refer to one or more computer programs, software components, instruction sets, procedures, functions, objects, classes, instances, associated data, or portions thereof suitable for implementation in computer-readable program code. "Computer-readable program code" may include various types of computer code, including source code, object code, and executable code. "Computer-readable medium" may include various types of media that can be accessed by a computer, such as read-only memory (ROM), random access memory (RAM), a hard disk drive (HDD), a compact disc (CD), a digital video disc (DVD), or various types of memory.

[0268] Additionally, a device-readable storage medium may be provided in the form of a non-transitory storage medium. Here, a 'non-transitory storage medium' is a tangible device and may exclude wired, wireless, optical, or other communication links that transmit temporary electrical or other signals. Meanwhile, this 'non-transitory storage medium' does not distinguish between cases where data is permanently stored in the storage medium and cases where it is temporarily stored. For example, a 'non-transitory storage medium' may include a buffer where data is temporarily stored. A computer-readable medium may be any available medium that can be accessed by a computer, and may include both volatile and non-volatile media, and removable and non-removable media. A computer-readable medium includes a medium on which data can be permanently stored and a medium on which data can be stored and later overwritten, such as a rewritable optical disk or an erasable memory device.

[0269] According to one embodiment, the method according to various embodiments disclosed in the present document may be provided as included in a computer program product. The computer program product may be traded as a product between a seller and a buyer. The computer program product may be distributed in the form of a machine-readable storage medium (e.g., a compact disc read-only memory (CD-ROM)), or may be distributed online (e.g., downloaded or uploaded) through an application store or directly between two user devices (e.g., smartphones). In the case of online distribution, at least a portion of the computer program product (e.g., a downloadable app) may be temporarily stored or temporarily generated in a machine-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or an intermediary server.

[0270] The above description of the present disclosure is for illustrative purposes only, and those skilled in the art will appreciate that the present disclosure can be readily modified into other specific forms without altering the technical spirit or essential characteristics of the present disclosure. For example, suitable results can be achieved even if the described techniques are performed in a different order than the described method, and / or components of the systems, structures, devices, circuits, etc. described are combined or combined in a different form than the described method, or are replaced or substituted by other components or equivalents. Therefore, it should be understood that the embodiments described above are illustrative in all respects and not restrictive. For example, each component described as being single may be implemented in a distributed manner, and similarly, components described as being distributed may be implemented in a combined form.

[0271] The scope of the present disclosure is indicated by the claims described below rather than the detailed description above, and all changes or modifications derived from the meaning and scope of the claims and their equivalent concepts should be interpreted as being included in the scope of the present disclosure.

Claims

1. Step of acquiring user's utterance (10); A step of determining whether the utterance includes a target text (20) requesting the device (300) to perform a function using a language model (200); and If it is determined that the target text is included, a step of controlling the device (300) based on the target text is included. A method wherein the above language model is a model trained to extract text related to a request from consecutive sentences.

2. In paragraph 1, The above utterance is a voice input by the user, A method further comprising the step of converting said utterance into text.

3. In either of paragraphs 1 and 2, The steps for obtaining the above utterance are: Step of obtaining a wake-up word; and A method comprising the step of acquiring the utterance after acquiring the active phrase.

4. In any one of the clauses 1 to 3, The step of determining whether the above target text is included is: A step of separating the above utterance into multiple tokens by tokenizing it; and A method comprising the step of determining whether the target text is included in the utterance based on the plurality of tokens.

5. In paragraph 4, The above plurality of tokens include a start token corresponding to the beginning of the text related to the request and an end token corresponding to the end of the text related to the request, The step of determining whether the target text is included in the utterance based on the plurality of tokens is as follows: For the above plurality of tokens, a step of obtaining a probability value corresponding to the start token and a probability value corresponding to the end token, respectively; Based on the probability value, determining one of the plurality of tokens as a start token and determining one of the plurality of tokens as an end token; and A method comprising the step of determining whether a target text requesting performance of a function of the device is included based on the positions of the start token and the end token.

6. In paragraph 5, The step of determining whether the target text is included based on the positions of the start token and the end token is as follows: A method for determining a text ranging from the start token to the end token as the target text when the start token and the end token are sequentially arranged within the utterance.

7. In any one of paragraphs 5 and 6, The step of determining whether the target text is included based on the positions of the start token and the end token is as follows: A method for determining a text ranging from the end token to the start token as a non-target text when the start token and the end token are arranged in reverse order within the above utterance.

8. In any one of paragraphs 1 to 7, A method for re-performing the step of obtaining the utterance to obtain another utterance when it is determined that the target text is not included in the utterance.

9. In any one of paragraphs 1 to 8, The above target text is a text requesting the performance of a function of the second device, The step of controlling the device based on the target text is: A step of generating a request for performing a function of the second device based on the target text; and A method comprising the step of controlling a first device to transmit a request for performing a function of the second device to the second device.

10. A non-transitory computer-readable recording medium having recorded thereon a program for performing any one of the methods of clauses 1 to 9 on a computer.

11. Input / output interface for receiving user input; Memory where commands for processing language are stored; and Contains at least one processor, At least one processor executes the instructions, Obtain the user's utterance, Using a language model, determine whether the utterance contains a target text requesting the device to perform a function, If it is determined that the target text is included, the device is controlled based on the target text, A computing device, wherein the language model is a model trained to extract text related to a request from consecutive sentences.

12. In paragraph 11, In determining whether said at least one processor includes said target text, By tokenizing the above utterance, it is separated into multiple tokens, A computing device that determines whether the target text is included in the utterance based on the plurality of tokens.

13. In paragraph 12, The above plurality of tokens include a start token corresponding to the beginning of the text related to the request and an end token corresponding to the end of the text related to the request, The at least one processor determines whether the target text is included in the utterance based on the plurality of tokens, For the above multiple tokens, obtain the probability value corresponding to the start token and the probability value corresponding to the end token, respectively, Based on the above probability value, one of the plurality of tokens is determined as a start token, and one of the plurality of tokens is determined as an end token. A computing device that determines whether a target text requesting performance of a function of the device is included based on the positions of the start token and the end token.

14. In paragraph 13, The at least one processor determines whether the target text is included based on the positions of the start token and the end token, A computing device that determines a text ranging from the start token to the end token as the target text when the start token and the end token are sequentially arranged within the utterance.

15. In any one of paragraphs 13 and 14, The at least one processor determines whether the target text is included based on the positions of the start token and the end token, A computing device that determines text ranging from the end token to the start token as non-target text when the start token and the end token are arranged in reverse order within the utterance.

Citation Information

Patent Citations

  • Invocation of a digital personal assistant by means of a device in the vicinity

    KR1020170056586A

  • Home appliance and voice recognition server system using artificial intelligence and method for controlling thereof

    KR102025566B1

  • Method and system for controlling artificial intelligence device using plurality wake up word

    KR102209092B1

  • Speech recognition control method, apparatus, electronic device and readable storage medium

    KR102358831B1

  • KR20220117743A