Keyword detection for speech recognition

SA114350692B1Undetermined Publication Date: 2015-12-13TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
SA114350692
Authority / Receiving Office
SA · SA
Patent Type
Patents
Current Assignee / Owner
Filing Date
2014-08-13
Publication Date
2015-12-13
Estimated Expiration
2034-08-13

AI Technical Summary

Technical Problem

Current keyword detection systems struggle with accurately identifying keywords in speech data containing multiple languages, especially when keywords from different languages are mixed, and require lengthy speech durations for language recognition, leading to inaccurate results.

Method used

A method using a predefined decoder network that pairs keywords and filler words from multiple languages, updating confidence scores with penalty coefficients based on language types, and employing a multilingual encoder-decoder network to enhance keyword recognition efficiency and accuracy.

Benefits of technology

The method improves the efficiency and accuracy of keyword detection in multi-lingual speech by reducing the need for lengthy language recognition and handling mixed-language scenarios effectively.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

This application discloses a method implemented of recognizing a keyword in a speech that includes a sequence of audio frames further including a current frame and a subsequent frame. A candidate keyword is determined for the current frame using a decoding network that includes keywords and filler words of multiple languages, and used to determine a confidence score for the audio frame sequence. A word option is also determined for the subsequent frame based on the decoding network, and when the candidate keyword and the word option are associated with two distinct types of languages, the confidence score of the audio frame sequence is updated at least based on a penalty factor associated with the two distinct types of languages. The audio frame sequence is then determined to include both the candidate keyword and the word option by evaluating the updated confidence score according to a keyword determination criterion.
Need to check novelty before this filing date? Find Prior Art

Description

<h2 style=";text-align:left;direction:ltr">Full description<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Background of the invention<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The disclosed applications generally relate to speech recognition, and in particular, to the detection of keywords in speech data in more than one language.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In automatic speech recognition (ASR), a keyword is a word associated with a specific objective meaning and is typically represented by a noun or phrase. In contrast, a filler word naturally follows a keyword and does not assume any significant, meaningful role. A keyword is detected by identifying the start and end points of the keyword in speech data received by an electronic medium. As a result of keyword detection, the speech data is determined by the keyword detection system to contain multiple keywords and filler words. Current keyword detection systems are mainly implemented based on two models: the garbage data model and the speech / syllable recognition model.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In a keyword detection system based on the non-acceptable data model, a decoding network is used to identify keywords in the received speech data. The words used in the decoding network include keywords and filler words associated according to a pre-defined network structure. According to the decoding network, the keyword detection system recognizes each segment (e.g., a frame) of the speech data as being associated with the keyword or filler word. Each recognized segment of speech data is also associated with a confidence score, and the keyword detection system uses the associated confidence score to determine whether the word has been correctly detected. The keywords identified to be correctly detected are then generated, along with information about their position within the speech data.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">On the other hand, a keyword detection system based on a speech / syllable recognition model detects keywords in the received speech data based on the full context of the speech data. Specifically, a phoneme or syllable network is output from the received speech data, and the keywords of the speech data are detected from the phoneme or syllable network using context search technology.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> When more than one language is involved in speech recognition, current word detection systems typically require two independent phases: a language recognition phase and a keyword detection phase. During the language recognition phase, a specific language is identified for the received speech data, and during the subsequent keyword detection phase, these keywords are identified by the keyword detection engine associated with that particular language. The detected keywords are then combined and output as a recognition result from the keyword detection system.<h2 style=";text-align:left;direction:ltr"> However, the performance of the current keyword detection system that includes two or more languages is often disabled by the language recognition pattern. The accuracy of language recognition in the language recognition pattern directly affects the results of keyword detection in the keyword detection pattern. Specifically, accurate language recognition generally requires speech data that lasts for a long duration (for example, from 3 to 5 seconds), and this condition inevitably causes some obstacles to the flow of the keyword to subsequent keyword detection. In addition, the existing main keyword detection system is considered inactive, especially when keywords from multiple languages are mixed together in a single sentence (for example, in the speech data related to "Was the concert last night exciting?"), thus resulting in inaccurate language and keyword recognition. Therefore, there is a need to accurately detect keywords in text that contains two or more languages. General description of the invention <h2 style=";text-align:left;direction:ltr">The above-mentioned shortcomings and other problems associated with traditional network connection methods are reduced or eliminated by the implementation disclosed below. In some embodiments, the implementation is implemented in an electronic medium containing one or more processors, memory, and one or more modules, programs, or sets of instructions stored in memory to perform various functions. Instructions for performing these functions may be included in a computer program product designed to be executed by one or more processors.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">One aspect of the application is a method implemented on an electronic medium for recognizing a speech seed word. The method comprises receiving a sequence of audio frames comprising a current frame and a subsequent frame following the current frame, and identifying a candidate seed word for the current frame using a predefined decoder network comprising seed words and filler words from multiple languages. The method further comprises associating the audio frame sequence with a confidence score determined in part by the candidate seed word, and identifying a word option for the subsequent frame using the candidate seed word and a predefined decoder network. When the candidate seed word and word option are associated with two distinct language types, the confidence score for the audio frame sequence is updated based on a predefined penalty coefficient according to the two distinct language types, the word option, and an auditory model of the subsequent frame. The method further comprises determining that the audio frame sequence comprises both the candidate seed word and the word option by evaluating the updated confidence score according to a seed word identification criterion.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Another aspect of the application is an electronic device comprising one or more processors and a memory with at least one program (including instructions) stored therein, which, when executed by one or more processors, causes the processors to perform operations to identify the keyword in the speech. The at least one program stored in the memory includes instructions that cause the electronic device to perform operations in the manner described above.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Another aspect of the application is a storage medium readable by a non-transitory computer that stores at least one program designed to be executed by at least one processor of an electronic medium. The at least one program includes instructions that cause the electronic medium to perform operations in the manner described above.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Other examples and features of these skilled artisans may be seen in the light of the descriptions and drawings contained in this specification.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Brief explanation of the drawings<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The previously mentioned application of the invention, as well as other applications, are clearly understood as a result of the following detailed description of various aspects of the invention when considered in relation to the drawings. Similar reference numbers indicate corresponding parts through multiple projections of the drawings.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 1 shows data for an exemplary speech containing a set of phonetic frames according to some demand patterns.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 2 shows an ideal decoder network containing base words and filler words from multiple languages ​​according to some request patterns.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 3 shows a flowchart representing a method for identifying a keyword in an i-letter according to some request patterns.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 4 shows another ideal decoder network according to some demand patterns.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 5 shows a flowchart representing a method for detecting a keyword according to some request patterns.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 6 shows an ideal decoder network containing base words and filler words from multiple languages ​​according to some request patterns.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Figure 7a shows a block diagram of an electronic tool that detects keywords in a speech according to some request patterns.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 7b shows a block diagram of a module for recognizing a letter from an electronic medium shown in Figure 7a according to some application patterns.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Similar reference numbers indicate opposite parts across multiple drawing views.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Detailed description:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Reference is now made to the models, examples of which are illustrated in the accompanying drawings. In the following detailed description, several specific details are given to provide a complete understanding of the subject matter presented in this document. However, it will be evident to one skilled in the art that the subject matter can be implemented without these specific details. In other cases, well-known methods, procedures, components, and circuits are not described in detail to avoid ambiguity in aspects of the models.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> To make the objectives, solution and technical features of the present application much clearer, this application is also described below in detail with reference to the attached drawings.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 1 illustrates exemplary speech data 10, which comprises a set of audio frames (F1, F2,..., Fn) according to some application model. In some implementations, when an electronic device receives a direct stream of audio signals, it digitizes the audio signal, converting it to digital audio data (e.g., digital speech data of received human speech). This speech data 10 is then segmented into a set of audio frames. In one example, each audio frame lasts 10–20 milliseconds, and the speech data 10 comprises 50–100 frames per second. The speech data 10 originally received by the electronic device comprises keywords from one or more languages, and each utterance of the keyword optionally comprises a sequence of frames. These segmented audio frames from the speech data 10 are then analyzed to identify these keywords in the speech data 10.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In various application models, a set of audio frames is processed sequentially according to a predefined decoder network, such that one or more keywords of the speech data are identified. In the predefined decoder network, each keyword is predefined, followed by a limited number of keywords or filler words. Therefore, when the current audio frame is identified to be associated with a specific keyword, the subsequent audio frame should be one of a limited number of keywords or filler words associated with the selected word. A subset of this limited number of keywords or filler words is selected as word options for the subsequent audio frame based on their similarity to the subsequent audio frame.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In a specific example, the current sound frame associated with the seed word, "love," is preselected to be followed by "you," "food," "running," "sports," "nothing," and a host of other word options. In some exemplary decoding networks, the number of words following "love" is greater than 100. However, upon receiving the subsequent sound frame, a sound model is derived from this received subsequent sound frame and helps narrow down the word options to a subset of preselected word options following the word "love," according to the decoding network. In some embodiments, the number of option words is reduced from more than 100 to fewer than 5.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">During keyword recognition of discourse data 10, the confidence score is updated as a set of sound frames is successively associated with the corresponding base words or filler words. This confidence score represents the similarity level of the recognized base words and discourse data 10. For example, when the current sound frame (e.g., F5) is associated with the base word and the subsequent sound frame (e.g., F6) has not yet been processed, the confidence score is updated to indicate the similarity of the sound frames before the subsequent sound frame (e.g., F1-F5) and the corresponding recognized words based on the predefined decoder network. Similarly, when more than one word option is associated with the subsequent sound frame F6, each word option is then associated with the corresponding calculated confidence score based on the relevant sound model. In some embodiments, one of the more than one word option has a preferred confidence score and is therefore associated with the subsequent sound frame F6. In some embodiments, a subset of the more than one word option is identified with the subsequent sound frame F6 when the relevant confidence scores meet the predefined keyword identification criterion.<h2 style=";text-align:left;direction:ltr">This subset of word choices is also reduced, as subsequent audio frames are recognized based on the decoder network. Further details on the confidence score processing are explained below, referring to Figures 2-6.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some application models, the audio frames of the received speech data contain words from two or more languages, and the keywords are identified using a specific keyword recognition method that accommodates the need to recognize two or more languages ​​quickly, efficiently, and accurately. Unlike many previous technical solutions, various versions of this application do not require lengthy work to identify a single language type of speech before identifying the keywords in the speech. Instead, the keyword recognition method in this application uses a pre-defined decoder network that pairs words (e.g., keywords and filler words) from different languages ​​together, taking into account the language type changes of the recognized words. A confidence score is then calculated and updated to identify the keywords associated with the speech data. Accordingly, the keyword recognition method improves the efficiency and accuracy of recognizing words from multiple languages ​​in a speech.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 2 illustrates an exemplary decoder network 20 containing base words and filler words from multiple languages ​​(e.g., Languages ​​1 through K) according to some embodied order. The decoder network 20 further includes a set of base words (e.g., KW11-KW18) and a set of filler words (e.g., FW11-FW14) for each language (e.g., Language 1). The number of base words and filler words varies for each language. In some embodiments, a base word is a word that is associated with a specific objective meaning, while a filler word is a passing sound or a word said in conversation to indicate that a person has paused to think but has not yet finished speaking. Examples of filler words include, but are not limited to, "um" and "ah."<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some implementations, the current audio frame (e.g., frame F5) is selected to be associated with a base word (e.g., KW13) from a particular language (e.g., language 1). According to the decoder network 20, the word KW13 from language 1 is optionally associated with the word KW16 from language 1, the filler word FW12 from language 1, or the word KW22 from language 2. Thus, a subsequent word for frame F5 (e.g., a word associated with frame F6) is selected from the base word KW16, the filler word FW12, and the base word KW22. In some embodiments, both frames F5 and F6 are associated with the same base word, and frame F6 may also be associated with the base word KW13.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In the specification of this application, the keyword associated with the current audio frame is sometimes shortened to "candidate word".<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Each subsequent word frame option is associated with a pitch. In some embodiments, the pitch is calculated based on a comparison between the subsequent word frame's acoustic models and the corresponding word option. A higher pitch is associated with a higher level of similarity between the subsequent word frame's acoustic models and the corresponding word option. In some embodiments, the pitch from this is used to update the confidence score associated with this baseline word recognition process. In one example, the confidence score is an aggregated score of the pitches of the recognized acoustic frames (e.g., frames F1-F6).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some implementations, when a word option (e.g., KW22) is associated with a subsequent sound frame in a language type distinct from the current sound frame, the confidence score is adjusted by the penalty parameter before being updated with the corresponding sound score of the word option. Therefore, the confidence score for word options associated with a subsequent sound frame is represented as follows:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> (1)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> or (2)<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">where CS(FC) and CS(Fs) are the confidence scores associated with the current and subsequent sound frames, respectively; AS(WO) is the sound score associated with the corresponding word option; and δ(Lc, Ls) is the penalty coefficient associated with two distinct language variants for the base word paired with the current sound frame and the corresponding word option. Equation (1) applies when the base word paired with the current sound frame and the corresponding word option of the subsequent sound frame are in the same language, while Equation (2) applies when they are paired with two different languages.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some embodiments, the penalty factor is predetermined according to a predetermined penalty factor table. Table 1 represents a typical penalty factor table according to some embodiments. The penalty factor table includes a set of penalty factors, each of which is associated with two different languages. The penalty factor used to update the confidence score for the sound frame sequence is determined by searching the penalty factor table based on two distinct language variants of the headword associated with the current sound frame and the corresponding word choice. In some embodiments, the magnitude of the penalty factors indicates the relative probability of using words from the two distinct languages ​​together. For example, a Chinese base word is most likely to be associated with another Chinese word, and thus, a penalty factor of 1 (i.e., no penalty) is associated with a situation where the Chinese word choice of the subsequent sound frame is followed by the Chinese base word associated with the current sound frame. On the other hand, a Chinese base word is least likely to be followed by an English, Japanese, or Russian word, and thus, a penalty factor of 0.9, 0.7, or 0 is associated.<h2 style=";text-align:left;direction:ltr">5 Positioned so that the English, Japanese, or Russian word choice follows the Chinese word, respectively.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Chinese English Japanese Russian<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Tray 1 0.9 0.7 0.5<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> English 0.9 1 0.8 0.7<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Japanese 0.7 0.7 1 0.5<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Russian 0.6 0.7 0.6 1<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Table No. 1. Penalty coefficient table<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The description above merely illustrates several examples of the present disclosure to provide the principle and implementation of the present application and is not intended in any way to limit the scope of the present application. Any modifications, equivalents, improvements, and the like that fall within the spirit and principle of the present application should be included within the scope of the present application.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">After updating the confidence score with penalty coefficients and sound scores for the word options, one or more word options are selected for the subsequent sound frame according to a predetermined keyword selection criterion. In some embodiments, according to the keyword selection criterion, the word option associated with the highest confidence score is selected as the keyword associated with the subsequent sound frame. The keyword recognition process then continues to process the next sound frame, e.g., frame F7, following the subsequent sound frame, until the last sound frame in the speech data, e.g., Fn, has been processed and associated with a keyword.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some applications, according to the keyword identification criterion, the confidence score should be greater than the threshold value. However, in some cases, more than one word option meets this keyword identification criterion and is therefore associated with audio frame F6. The keyword recognition process continues to process the next audio frame, for example, frame F7, based on more than one word option for frame F6. Some of the more than one word option for frame F6 may be removed when the corresponding word options for frame F7 cause the confidence score to fall below the threshold value.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Therefore, in some applications, the distance between the current audio frame and the previous audio frame determines the recognition certainty of that previous audio frame. A larger distance is associated with a higher degree of keyword identification certainty for the corresponding previous audio frame, while a smaller distance, on the other hand, may be associated with multiple word choices that are unable to narrow down to a previous audio frame that closely precedes the current audio frame.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 3 illustrates a flowchart illustrating a method 30 for recognizing a keyword in speech according to some embodiments of the application. The method 30 is optionally controlled by instructions stored on non-transient computer-readable storage media and executed by one or more host system processors. Each of the operations shown in Figure 3 may correspond to instructions stored in computer memory or non-transient computer-readable storage media. The computer-readable storage media may include storage media in the form of a magnetic or optical disk, solid-state storage media such as flash memory, a non-volatile memory medium, or other means. The instructions stored on the computer-readable storage media may include one or more of: source code, assembly language code, object code, or another instruction format interpreted by one or more processors. Some of the operations in method 30 may be coupled and / or the order of some of the operations may be interchangeable.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The keyword recognition method 30 is implemented on an electronic device that receives (32) sequences of audio frames. The audio frame sequence includes a current frame and a subsequent frame following the current frame. A candidate keyword (34) for the current frame is identified using a predefined decoder network comprising keywords and filler words from multiple languages.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some embodiments, the predefined decoder network is associated with two or more languages, English, Chinese, Japanese, Russian, French, German, etc., and includes a subset of keywords and a subset of filler words for each of the two or more languages. Furthermore, in some embodiments, each predefined decoder network keyword includes one or more three-way speakers.<h2 style=";text-align:left;direction:ltr"> In some examples, according to a specific decryption network structure, each basic word in the previously defined decryption network is associated with at least one word that is used with a relevant basic word in an actual message and is incorporated into the decryption network. In some cases, according to the decryption structure, each basic word generates a subset of basic words and at least one relevant word that is used with the relevant basic word from two different languages. For example, the first word is "說" in Chinese, followed by the second word "no" in English according to a specific decryption structure. <h2 style=";text-align:left;direction:ltr">After a candidate word is identified, the frame sequence (36) is associated with a confidence score that is partly determined by the candidate word. The electronic method (38) then selects a word option for the subsequent frame using the candidate word and a pre-defined decoder network. When the candidate word and the word option are associated with two distinct language types, the confidence score for the frame sequence (40) is updated based on pre-defined penalty coefficients according to two distinct language types, the word option and the acoustic model of the subsequent frame.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">As illustrated above, referring to Figure 2, in some embodiments, a penalty coefficient table is constructed to include a set of penalty coefficients, each of which is associated with two different languages. The penalty coefficient used to update the confidence score for the frame sequence is identified by searching the penalty coefficient table based on two distinct language variants for the candidate base word and the word choice. In some implementations, the confidence score for the frame sequence is set by a corresponding penalty coefficient that is predetermined according to the two distinct language variants. In some embodiments, the confidence score is a cumulative score based on the pitches of the current frame and all frames prior to the current frame, and the updated confidence score also includes the pitch of the subsequent frame determined based on the word choice.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">After updating the confidence score for the frame sequence, the electronic method (42) determines that the frame sequence contains both the candidate keyword and the word option by evaluating the updated confidence score according to the keyword identification criterion. In a specific example, according to the keyword identification criterion, the confidence score for the frame sequence is greater than the threshold value for the keywords.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some embodiments, a set of candidate keywords is selected for the current frame of the audio frame sequence, and the aforementioned candidate keyword is one of the set of candidate keywords. Each candidate keyword is associated with at least one word option according to a predefined decoding network. A first subset of candidate keywords is excluded from the recognized keywords of the audio frame sequence, specifically because at least one of the relevant word options fails to meet the keyword recognition criterion.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">On the other hand, a second subset of candidate keywords is selected for inclusion in the phonetic frame sequence, along with each of its at least one relevant word option, based on the keyword selection criterion. Specifically, the corresponding confidence score for the phonetic frame sequence satisfies the keyword selection criterion for each candidate keyword in the first subset of candidate keywords and at least one relevant word option. In one example, the second subset of candidate keywords is selected for inclusion in the phonetic frame sequence, along with at least one relevant word option, and the corresponding confidence score is updated and selected to exceed the threshold value for keywords according to the keyword selection criterion. One skilled in the art recognizes that this selection of the second subset of candidate keywords is rather provisional, because when other word options are selected in the decoder network for subsequent frames of the next frame, the confidence score needs to be updated and could fail to satisfy the keyword selection criterion.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Furthermore, in some embodiments, the subsequent frame is the method of recognizing the above-mentioned keyword 30 in the last frame of the audio frame sequence, according to the keyword identification criterion, and the candidate keyword associated with the preferred confidence score, e.g., the highest confidence score, is selected from the set of candidate keywords as the keyword associated with the current frame of the audio frame sequence.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some embodiments, according to the keyword identification criterion, each set of candidate keywords is associated with a relevant confidence score from the audio frame sequence, and the relevant confidence score is greater than the threshold value of the keywords.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some current applications, a predefined decoder network is designed based on a specific decoder structure, and base words and filler words from multiple languages ​​are grouped according to their language types. The decoder structure includes a start node, an end node, language nodes, filler word nodes, and a triad node for each base word node. Therefore, to construct a predefined decoder network, the electronic medium creates a start node, an end node, and a set of language nodes whose functions each represent a language type, and connects each language node to a start node. Each language node is also connected to a subset of related base words and a subset of related filler words, both from the corresponding language.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">For each base word, the related base word is transformed into a ternary phoneme sequence, and a related ternary phoneme node is generated for each ternary phoneme sequence of the related base word. Then, the ternary phoneme nodes of the ternary phoneme sequence are connected together to form a ternary phoneme sequence including a main phoneme node and a tail phoneme node. The related main phoneme node is connected to the corresponding language node, and the related tail phoneme node is connected to an end node. On the other hand, for each filler word, a related filler word node is generated and also paired between the corresponding language node and an end node. Each filler word is connected between a start node and an end node.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some embodiments, the candidate base word and the word option are determined to be associated with two distinct types of languages, when one of a set of language nodes is associated between the candidate base word and the word option on a pre-specified encoder-decoder network.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some embodiments, according to the structure of the predefined decoder network, each keyword in the decoder network is mapped onto the predefined decoder network to at least one word that is used with the relevant keyword in real speech.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> It should be understood that the particular order in which the operations are described in Figure 3 is only exemplary and is not intended to imply that the order described is the only order in which the operations may be performed. One of ordinary skill in the art will recognize various methods for generating the auto-reply messages described in this document. In addition, it should be noted that the details of other operations described in this document with respect to Method 200 (e.g., Figure 5) are also applicable in a manner similar to Method 30 described above with respect to Figure 3. For brevity, these details will not be repeated in this document.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 4 illustrates another exemplary decoder network 100 according to certain embodiments of the application. As shown in Figure 4, when the decoder network 100 is used by a keyword recognition system based on the prior art rejected word network, it is also necessary to perform phonetic context expansion on the keywords and filler syllables, and the final decoder space uses an HMM as a node of the graph. The keywords are described using fine-grained phonetic models, generally using a context-dependent tri-sound HMM model. These models are referred to as forward models. Filler syllables, on the other hand, represent the non-keyword portion of the speech passage, and coarser phonetic models, e.g., post-clustering phonetic language models, are generally used. These models are referred to as backward models.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">However, in existing multilingual word recognition technologies, language recognition generally requires an audio signal of at least a certain length (e.g., 3-5 seconds), which can present some obstacles to the flow of keyword recognition in practical applications. Furthermore, prior art keyword recognition technologies cannot handle situations where multiple languages ​​are mixed.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some current application models, a new keyword recognition solution is proposed based on a framework also constructed from the rejected word network. When a decoding space is created for the proposed keyword recognition solution, the language information is directly included in the decoding space to avoid effectively disrupting the detection flow during the language recognition stage. In the decoding process of current application models, the code-passing strategy can be modified using the language information, and the multilingual keyword recognition task can be completed using a single detection engine.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Compared with the existing keyword recognition system based on the non-acceptable word network, the proposed technical solution in the present application mainly involves two improvements: (1) designing a multilingual encoder-decoder network that includes language information; and (2) applying a multilingual keyword recognition algorithm to the multilingual encoder-decoder network. In the decoding process, the token score is adjusted by judging the language information, and a penalty coefficient is introduced for language conversion.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> As used in the description of the application and the attached safeguards, the term "token score" is equivalent to the term "confidence score," and these terms are used interchangeably.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 5 illustrates a flowchart illustrating the keyword recognition method 200 according to some embodiments of the application. The method 200 is optionally controlled by instructions stored in computer-readable storage media and executed by one or more processors of the host system. Each of the operations shown in Figure 5 may correspond to instructions stored in computer memory or in computer-readable storage media. The computer-readable storage media may include a magnetic or optical disk storage device, solid-state storage devices such as flash memory, or non-volatile memory media or devices. The instructions stored on the computer-readable storage media may include one or more of: source code, assembly language code, object code, or other instruction formats interpreted by one or more processors. Some of the operations in the method 200 may be coupled and / or the order of some of the operations may be changed.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In step 201, a decoder network is constructed, including language information. Keywords in the decoder network are grouped according to the language information. In the process of generating the decoder network, a start node and an end node can be created in this document, and the following steps are performed for each language information Li, where i is the language number:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • Create a language node NLI, and create a side node to NLi.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • Upload a list of keywords and a list of filler segments that match the language information Li.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • Perform the following actions for each keyword Kj in the keyword list, where j is the keyword number:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • Convert the Kj keyword into a ternary headphone sequence, and create a node for each ternary headphone to form a node sequence. Then design the sides between the node sequences; design the side of the NLi language node to the first node in the node sequence and the side of the terminal node in the node sequence to the end node;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • Perform the following actions for each padding segment Fk in the padding segment list, where k is the padding segment number:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">• Create a node NFK corresponding to the padding segment Fk.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • Create a side from the language node NLi to NFK and a side from NFK to an end node;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • Create a side from an end node to a start node; and<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • Create a decryption network.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In step 202, the keywords in the input speech are detected using the encoder-decoder network. In some embodiments, when the language information of the detected keywords is inconsistent, a penalty coefficient is set for the detected keywords. In some embodiments comprising a token propagation process for the keyword detection, upon checking the language state node, it is determined by comparison whether the language information on the language state node agrees with the language information on the token. If the two pieces of information do not match, a penalty coefficient is set for the token score.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Preferably, the penalty coefficient table is pre-adjusted to accommodate language class differences. In some embodiments, when the language information for the detected keywords is inconsistent, the penalty coefficient table is retrieved from the penalty coefficient table to determine a penalty coefficient adjusted for the detected keywords.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In step 203, the detected keywords are evaluated based on the penalty coefficient.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some embodiments, a keyword threshold value can be preset in this document, and the confidence of detected keywords is calculated according to the confidence algorithm and penalty coefficient. Keywords are removed when the calculated confidence falls below the keyword threshold value.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some embodiments, a penalty factor is added to filler segments to make the keywords more easily recognized, thus improving the detection recall rate. Furthermore, if some keywords are more important to the detection task, a higher weight can be assigned to the keywords, while other keywords are given a lower weight. The threshold value of the symbol score can be adjusted during the symbol pass process, thus increasing the decoding speed.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> It should be understood that the particular order in which the operations are described in Figure 5 is exemplary only and is not intended to imply that the order described is the only order in which the operations may be performed. One of ordinary skill in the art will recognize various methods for generating the auto-reply messages described in this document. In addition, it should be noted that the details of other operations described in this document in relation to Method 30 (e.g., Figure 3) also apply in a similar manner to Method 200 mentioned above in relation to Figure 5. For brevity, these details will not be repeated in this document.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 6 illustrates another typical decoder network 300 containing keywords and filler words from multiple languages ​​according to some request pattern. It can be seen from Figure 6 that the keywords and filler words are grouped according to language information in the decoder network.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Language state nodes corresponding to the base words and filler syllables are added before each base word and each filler syllable. For example, language node 1 corresponds to base words 11 to 1n from language 1, and filler syllables 11 to 1m from language 1. Similarly, language node k corresponds to base words k1 to kn from language k, and filler syllables k1 to km from language k.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some ideal code deployments, once a language state node is verified, it should be determined whether the language information on the node agrees with the language information on the code by comparison, and if two pieces of information do not agree, the code's degree size should be adjusted to some extent.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some implementations, a multilingual decoder network 300 is created from the following steps:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In step one, a start node NStart and an end node NEnd are started;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In the second step, the multilingual list is checked according to the following substeps, [2-1] - [2-4]. These substeps are performed sequentially for each language Li, and substeps [2-3] and [2-4] also include substeps [2-3-1] - [2-3-4] and substeps [2-4-1] - [2-4-2], respectively. Specifically, substeps [2-1] - [2-4] include: • [2-1] Create a language node NLi, and create a start node NStart to NLi. • [2-2] Load the keyword list and filler list corresponding to the language Li.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • [2-3] Perform the following actions for each keyword Kj in the keyword list, which optionally includes:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ○ [2-3-1] Convert the word Kj to the triple speaker sequences T1, T2,..., TP.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ○ [2-3-2] Create a node for each triplet, where node sequences are recorded as N1, N2,..., NP;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ○ [2- 3- 3] Sequentially create sides from N1 to N2, from N2 to N3,..., and from Np-1 to Np.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ○ [2-3-4] Create a side from the language node NLi to N1 and a side from Np to the end node NEnd;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">• [2-4] Perform the following actions on each filler segment Fj in the filler segment list, which optionally includes:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ○ [2-4-1] Create a node NFj corresponding to the padding segment Fj.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ○ [2-4-2] Create a side from the language node NLi to NFj and a side from NFj to the end node NEnd;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In the third step, after examining the multilingual list, a side of the end node NEnd is mapped to a start node NStart.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In the fourth step, a multilingual designed decoder network is created.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some embodiments, during multi-lap keyword detection, the following steps may be performed sequentially, where [1] represents step 1; [3] represents step 3; [4] represents step 4; [5] represents step 5; and [6] represents step 6. Furthermore, [2] may include a substep [2-1]; a substep [2-1] includes [2-1-1], [2-1-2], [2-1-3], [2-1-4]. Steps [1]-[6] are listed as follows:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • [1] Give a node an initial active token, where the degree starts to be 1.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">• [2] Read the following frame letter data, and perform the following steps, until all the letter data is processed:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • [2-1] Perform the following steps for each active symbol Tk, until all active symbols are processed:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ○ [2.1.1] Move Tk from the current state node Si forward along the side of the word network, where a new node is set as Sj, and the new symbol is represented by Tp;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ○[2-1-2] If Sj is a language node, update the score (Tp) of the token TP according to Score(Tp)=δ(Lang(Tp),Lang(Si))×Score(Tk), where score (Tk) is the accumulation of the phonetic pattern score over all the node paths through which the token passes in a transfer from node Start to node Si, and then continues to [2-1-1] to continue transferring the token forward; otherwise, do [2-1-3]; where Lang(·) is a function to obtain the node or language information of the token, and δ(·) is a penalty function, used to determine the penalty for the score when transferring from one language to another, and takes the value 1 when the language information is consistent.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">○ [2.1.3] Update the TP code score using acoustic models according to the speech data of the current frame.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> ○ [2.1.4] Determine whether the new TP token is active according to the audit strategy.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • [3] Register an active symbol to register the highest level of all active symbols to reach an end node such as Tfinal.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • [4] Return to get path information for Tfinal, and return all keywords on the path.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • [5] Evaluate each detected keyword using a confidence algorithm; and<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • [6] Produce the final list of detected keywords.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some embodiments, the penalty function δ(•) is denoted using a two-dimensional table (e.g., Table 1). Specifically, in this example, the penalty function specifies the penalty coefficients associated with four languages, namely, Chinese, English, Japanese, and Russian.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some models, there are 3 active codes (T1, T2, T3) in a certain decoding period, and the corresponding information is as follows:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Language degree<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> T1 Chinese 50<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> T2 Japanese 30<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> T3 Chinese 20<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Table No. 2<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> During the network search, there are 5 nodes (S1, S2, S3, S4, S5) to which the token can be forwarded along the network path, and the corresponding information is as follows (the final column score is the phonetic model score of the next frame's speech data on the node).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Type Language Grade<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> S1 English Node 0<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> S2 Chinese normal knot 6<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> S3 Russian language node 0<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> S4 Japanese regular knot 9<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> S5 Chinese normal knot 5<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Table No. 3<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> A corresponding relationship between tokens and states is as follows: T1 can be forwarded to S1 and S3, T2 can be forwarded to S4, T3 can be forwarded to S2 and S5, and when the forwarding is complete, the tokens on the corresponding nodes are as follows (it should be realized that, after being forwarded to a language node, the token needs to be forwarded continuously, to complete the processing on the discourse data).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> S1 S2 S3 S4 S5<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> T1 T4 T5<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> T2 T6<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> T3 T7 T8<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Table No. 4<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Information for each symbol can be updated in the following way:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Language degree<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> T4 Chinese => English δ(Chinese, English) × Score(T1) = 45<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> T5 Chinese => Russian δ(Chinese, Russian) × Score(T1) = 25<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> T6 Japanese Score(T2) + Score(S4) = 39<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> T7 Chinese Score(T3) + Score(S2) = 26<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> T8 Chinese Score(T3) + Score(S5) = 25<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Table No. 5<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The definition of the penalty function δ(•) can be formulated by referring to the historical paths of the symbol, e.g., the number of times the language type in the paths changes.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Although the above describes a specific example of a penalty function in detail, those skilled in the art may realize that this description is only idealized, but is not intended to limit current demand models.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Based on the detailed analysis above, the current application form also provides a keyword detection system.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 7A illustrates a block diagram of an electronic device 70 that detects keywords in speech according to some application embodiments. In some implementations, the server system 14 includes at least one or more processors 710 (e.g., a central processing unit) and memory 720 for storing data, programs, and instructions for execution by the one or more processors 710. In some implementations, the server system 14 also includes one or more communication interfaces 730, an input / output (I / O) interface 740, and one or more communication buses 750 that communicate with these components.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some embodiments, the I / O interface 740 includes an input module 742 and a display module 744. Examples of the input module 742 include a keyboard, mouse, touchpad, game controller, function switch, ball, joystick, microphone, camera, and the like. Additionally, the display module 744 displays information entered by the user or presented to the user for review. Examples of the display module 744 include, but are not limited to, a liquid crystal display (LCD) and an organic light-emitting diode (OLED) display. In some implementations, the input module 742 and the display module 744 are combined into a touch-sensitive screen that displays a graphical user interface (GUI).<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some embodiments, communication buses 530 include circuits (sometimes called chips) that connect and control communications between system components. In some embodiments, communication interfaces 730 also include a receiver 732 and a transmitter 734.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some embodiments, the memory 720 includes high-speed random-access memory, such as DRAM, SRAM, DDR RAM, or other solid-state random-access memory devices; and optionally includes non-volatile memory, such as one or more magnetic disk storage devices, optical disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. In some embodiments, the memory 720 includes one or more storage devices that are remotely located from one or more processors 710. In some embodiments, the memory 720, or alternatively a non-volatile memory device(s) within the memory 720, includes storage media that can be read by a non-transitional computer.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some embodiments, the memory 720 or alternatively a storage media readable on a non-transitional computer from the memory 720 stores the following programs, modules and data structures, instructions, or a subset thereof:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • The 701 operating system includes procedures for handling various basic system services and performing hardware-dependent tasks.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">• I / O interface module 702 comprising procedures for handling various basic input and output devices through one or more input / output devices, wherein I / O interface module 702 further comprises a display interface module that controls the display of a graphical user interface.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • A communication module 703 is used to connect the server system 14 to other computing devices (such as servers and client devices), via one or more network interfaces 750 (wired or wireless) and one or more communication networks, such as the Internet, other wide area networks, local area networks, metropolitan area networks, and so on.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • Speech recognition module 400 recognizes speech based on a predefined decoding network 704 including keywords and filler words from multiple languages ​​and stores it in memory 720; and<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • 704 decoding network.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Further details of the above 400 speech recognition unit are also illustrated by reference to Figures 1-6.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Figure 7b illustrates a block diagram of a speech recognition unit 400 of an electronic device shown in Figure 7a according to some embodiments of the application. As shown in Figure 5, the apparatus includes an encoder-decoder network generation unit 501, a keyword detection unit 502, and a word evaluation unit 503. The encoder-decoder network generation unit 501 is used to generate a decoder network comprising language information and to assemble keywords into the decoder network based on the language information. The keyword detection unit 502 is used to detect keywords in an input speech using the decoder network. When the language information of the detected keywords is inconsistent, a penalty coefficient is set for the detected keywords. The evaluation unit is used to evaluate the keywords 503 based on the penalty coefficient and the detected keywords.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some embodiments, the keyword evaluation module 503 is used to preset the threshold value of the keyword, and calculates confidence for the detected keywords according to the confidence algorithm and weighting factor, whereby the keywords are removed when the calculated confidence is less than the threshold value of the keyword.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some embodiments, the decoding network generation unit 501 is used to launch a start node and an end node, and perform the following steps for each language information Li, where i represents the language number:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • Create a language node NLi, and create a side node starting to NLi.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • Upload a list of keywords and a list of filler segments that match the language information Li.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • Perform the following actions for each keyword Kj in the keyword list, where j is the keyword number:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">• Convert the Kj keyword into ternary speaker sequences, and create a node for each ternary speaker to form a node sequence; then design aspects between the node sequences; design an aspect of the NLi language node to the first node in the node sequence and an aspect of the terminal node in the node sequence to an end node;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • Perform the following actions for each padding segment Fk in the padding segment list, where k is the padding segment number:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • Create a node NFK corresponding to the padding segment Fk;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • Create a side from the language node NLi to NFK and a side from NFK to an end node;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • Create a side from an end node to a start node; and<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> • Decoder network output.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In some embodiments, the keyword detection module 502, in the process of propagating a signal to detect the keyword, upon accessing a language state node, determines, by comparison, whether language information on the language state node matches language information on the signal, and if the two information do not match, sets a penalty coefficient for the degree of the symbol.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In some embodiments, the keyword detection module 502 uses a preset penalty coefficient table corresponding to differences in language classes; when the language information for the detected keywords is inconsistent, it retrieves the penalty coefficient table to determine the penalty coefficient set for the detected keywords.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> A user may perform keyword detection processing on multiple parties, which may include, but are not limited to: earphones, smart phones, handheld computers, personal computers (PCs), tablet PCs, personal digital assistants (PDAs), and the like.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Although the above provides a detailed list of specific examples, those skilled in the art will understand that the list is for illustrative purposes only and is not intended to limit the scope of the protection provided for this request. Browser software specifically includes Microsoft Internet Explorer, Mozilla's Firefox, Apple's Safari, Opera, Google Chrome, GreenBrowser, and other browsers.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Although the above mentioned some browsers in detail, people skilled in the art can realize that, the present application models are not limited to browsers, but can be applied to any program applied to any application (App) that can be used to display a web page to a server or a file in a file system and allows a user to interact with the file. The programs can be a combination of currently popular browsers, or they can be any other programs that have the functionality of browsing a web page.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> It is noted that the proposed keyword detection method and device in the current application forms are not limited to the current application forms and can also be used in any other form.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">For example, following a standard software interface, the keyword detection method can be written as a plugin that is installed on PCs, handhelds, and the like, or it can be packaged as a program that the user downloads and uses. When written as a plugin, it can be implemented in multiple plugin forms such as .ocx, .dll, and .cab. The keyword detection method proposed in the current application forms can also be implemented using proprietary technologies such as Flash plugins, RealPlayer plugins, MMS plugins, MIDI staff plugins, and ActiveX plugins.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The proposed keyword detection method in the embodiments of the present application may be stored on multiple storage media in a manner that stores instructions or stores a set of information. The storage media include, but are not limited to: floppy disk, CD, DVD, hard disk, flash memory, U disk, CF card, SD card, MMC card, SM card, memory card, xD card, and the like.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">In addition, the proposed keyword detection method can also be applied to the present application embodiments of NAND flash-based storage media such as U disk, CF card, SD card, SDHC card, MMC card, SM card, memory card, xD card and the like.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In short, in the current application model, a coding network containing language information is generated, and keywords are grouped according to the language information in the coding network. Keywords in the input speech material are detected using the network. In some embodiments, when the language information of the detected keywords is inconsistent, a penalty coefficient is set for the detected keywords, and the detected keywords are evaluated based on the penalty coefficient. In multiple embodiments of the current application model, language information is directly generated in the coding network, and keywords in different languages ​​are grouped according to their language information. This arrangement effectively avoids the influence of language recognition on keyword detection, making keyword detection in sentences with different languages ​​more efficient and accurate.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In addition, in the encoding process of current demand models, the degree of a token is adjusted by judging the language information, and a penalty function is introduced for language conversion, so that the task of multilingual keyword detection can be completed by only a single detection engine.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The foregoing descriptions are merely preferred examples of the current application and are not intended to limit the current application. Any modification, equivalent replacement, or improvement implemented without deviating from the spirit and principle of the current application shall fall within the scope of the current application.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Notwithstanding the embodiments described above, it is understood that the application is not intended to be limited to these specific embodiments. Rather, the application includes alternatives, modifications, and equivalents within the spirit and scope of the appended claims. Certain details are included here to provide a detailed understanding of the subject matter discussed herein. However, it would be obvious to a person of ordinary skill in the art that the subject matter of the patent could be practiced without the specific details mentioned. In other cases, known methods, procedures, components, and circuits are not described in detail so as not to contribute to making certain aspects of the invention unnecessarily obscure.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The terms used in the application description contained herein are used only for the purpose of describing certain embodiments and are not intended to limit the application. As used in the application description and the appended claims, expressions denoting the singular also include the plural, unless the context clearly indicates otherwise. It is further understood that the term "and / or" as used herein refers to and includes any and all possible combinations of one or more of the terms mentioned. It is further understood that the terms "include," "include," and / or "include," when used in the present description, specify the presence of said features, processes, elements, and / or components, but this does not preclude the presence or addition of one or more other features, processes, elements, components, and / or combinations thereof.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">As used herein, the term "if" may be interpreted to mean "when," "upon," "in response to determining," "in accordance with a determination," or "in response to detecting," that the foregoing state of affairs is true, depending on the context. Similarly, the phrase "if [a foregoing state of affairs is true]" or "when [a foregoing state of affairs is true]" may be interpreted to mean "upon determining," "in response to determining," "in accordance with a determination," "upon detecting," or "in response to detecting," that the foregoing state of affairs is true, depending on the context.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Although some of the various diagrams illustrate a number of logical stages in a specific order, stages that do not depend on the order can be reordered, and others can be combined or removed. While the reordering or combination of some other stages has been specifically mentioned, others would be obvious to those with ordinary skill in the art, so we have not bothered to provide a cumbersome list of alternatives.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Furthermore, it should be realized that the stages can be implemented in the form of hardware, software, or any combination thereof.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The foregoing description has been described, for the purpose of illustration, with reference to specific examples. However, the illustrative discussions above are not intended to be lengthy or to limit the application to the particular images disclosed. Numerous modifications and variations may be implemented in light of the above instructions. The examples have been selected and described to illustrate the principles of the application and its practical applications, to enable other persons skilled in the art to use the application in the best possible manner and to use several examples with various modifications as appropriate for the particular intended use.

Claims

Claims 1. A method for recognizing a keyword in a speech, comprising: receiving a sequence of audio frames comprising a current frame and a subsequent frame; determining a candidate keyword for the current frame using a predetermined decoding network comprising keywords and filler words from multiple languages; associating the audio frame sequence with a confidence score determined in part according to the candidate keyword; determining a word option for the subsequent frame using the candidate keyword and the predetermined decoding network; and when the candidate keyword and word option are associated with two distinct language varieties; updating the confidence score of the audio frame sequence based on a penalty factor predetermined according to the two distinct language varieties; the word option and the acoustic model of the subsequent frame; and determining the audio frame sequence comprising both the candidate keyword and the word option byEvaluating the updated confidence score according to a keyword identification criterion.

2. The method according to claim 1, wherein a set of candidate keywords, comprising the candidate keyword, is identified for the current frame of the audio frame sequence, and each of the candidate keywords is associated with at least one word option, and wherein a subset of the candidate keywords is identified to be inserted into the audio frame sequence with at least one of its related word options based on a keyword identification criterion.

3. The method according to claim 2, wherein the subsequent frame is the last frame of the audio frame sequence, and according to a keyword identification criterion, the candidate keyword associated with the preferred confidence score is selected from the set of candidate keywords such that it is a keyword associated with the current frame of the audio frame sequence.

4. The method according to claim 2, wherein according to a keyword identification criterion, each of thea set of candidate keywords with a relevant confidence score for the audio frame sequence, the relevant confidence score being greater than a threshold value for the keyword.

5. The method according to claim 2, wherein, after determining the subset of candidate keywords to be included in the audio frame sequence with at least one relevant word option, the corresponding confidence score is updated and determined to exceed a threshold value for the keyword according to a keyword selection criterion.

6. The method according to claim 1, wherein, according to a keyword selection criterion, the confidence score for the audio frame sequence is greater than a threshold value for the keyword.

7. The method according to claim 1, wherein the predetermined decoding network is associated with two or more of the languages ​​English, Chinese, Japanese, Russian, French, German, and the like, comprising a seta subset of base words and a subset of filler words for each of the two or more languages.

8. The method according to claim 1, wherein each base word of the predetermined decoding network includes one or more triples.

9. The method according to claim 1, wherein, in accordance with the decoding structure of the predetermined decoding network, each base word in the predetermined decoding network is associated with at least one word that is used with the relevant base word in real speech and inserted into the decoding network.

10. The method according to claim 9, wherein, in accordance with the decoding structure of the predetermined decoding network, each base word is produced in a subset of base words and at least one related word that is used with the relevant base word from the two different languages.

11. The method according to claim 1, further comprising: establishing a penalty coefficient table to include a set ofpenalty factors are each associated with two different languages, wherein the penalty factor used to update the confidence score for the audio frame sequence is determined by extracting a penalty factor table based on two distinct language types for the candidate keyword and the word option.

12. The method according to claim 1, further comprising: creating a predefined decoding network, wherein the keywords and filler words from multiple languages ​​are grouped according to their language types, further comprising: creating a start node and an end node; creating a set of language nodes each representing a language type, associating each language node with a start node; associating each language node with a subset of related keywords and a subset of related filler words both from the corresponding language; for each keyword, converting the related keyword to a triphone sequence; creating a related triphone node for each triphonetriphone sequences of the relevant base word, linking the triphone nodes of the triphone sequences together to form a triphone sequence including a main triphone node and a tail triphone node, linking the relevant main triphone node to the corresponding language node and the relevant tail triphone node to an end node; for each filler word, creating a relevant filler node and pairing the relevant filler node between the corresponding language node and an end node; and linking the start node and the end node.

13. The method according to claim 12, wherein the candidate base word and the word option are determined to be linked to two distinct types of languages, wherein one of the plurality of language nodes is linked between the candidate base word and the word option on the predefined decoding network. 14- The method according to protection element No. 12, whereby according to the decoding structure of the decoding network previously determined, each word is linked15. An electronic means, comprising: one or more processors; and a memory having instructions stored thereon, which, when executed by the one or more processors, causes the processors to perform operations comprising: receiving a sequence of audio frames comprising a current frame and a subsequent frame following the current frame; determining a candidate audio frame for the current frame using a predefined decoding network comprising the keywords and filler words from multiple languages; associating the audio frame sequence with a confidence score determined in part by the candidate audio word; determining a word option for the subsequent frame using the candidate audio word and a predefined decoding network; upon associating the candidate audio word and the word option with two distinct language varieties, the confidence score of the audio frame sequence is updatedbased on a predetermined penalty factor according to two distinct language types, a word choice and an auditory model of the subsequent frame; and determining that the audio frame sequence includes both the candidate base word and the word choice by evaluating a confidence score updated according to a threshold word identification criterion.

16. The electronic method according to claim 15, wherein according to the threshold word identification criterion, the confidence score of the audio frame sequence is greater than the threshold value of the base word.

17. The electronic method according to claim 15, wherein the operations performed by the processors further comprise: creating a penalty factor table to include a set of penalty factors, each associated with two distinct languages, wherein the penalty factor used to update the confidence score of the audio frame sequence is determined by extracting a penalty factor table based on two distinct language types for the candidate base word and the word choice.

18. The electronic means according to claim 15, wherein the predetermined decoding network is associated with two or more languages ​​of English, Chinese, Japanese, Russian, French, German, and the like, and includes a subset of keywords and a subset of filler words for each of the two or more languages.

19. A non-transitory computer-readable medium, having instructions stored thereon which, when executed by one or more processors, cause the processors to perform operations comprising: receiving a sequence of audio frames comprising a current frame and a subsequent frame following the current frame; determining a candidate keyword for the current frame using a predetermined decoding network comprising keywords and filler words from multiple languages; associating the audio frame sequence with a degree of confidence determined in part by the candidate keyword; determining an optiona word for the subsequent frame using the candidate keyword and a predefined decoding network; when the candidate keyword and the word option are mapped to two distinct language types, the confidence score for the audio frame sequence is updated based on a penalty factor predefined according to the two distinct language types, the word option and an auditory model for the subsequent frame; and determining that the audio frame sequence includes both the candidate keyword and the word option by evaluating the updated confidence score according to the keyword identification criterion.

20. A non-transitory computer-readable medium according to claim 19, wherein the operations performed by the processors further comprise: creating a penalty factor table to include a plurality of penalty factors each mapped to two distinct languages, wherein the penalty factor used to update the confidence score for the audio frame sequence is determined by extracting the penalty factor table based onTwo distinct types of different languages ​​for the candidate keyword and the word option.