Speech recognition method and device, terminal and storage medium

Through the combination of the strategy model and the semantic model, the speech instructions of unregistered words are recognized, which solves the problem of failure to recognize unlisted words in the existing technology and improves the accuracy of speech recognition and the convenience of terminal use.

CN118737137APending Publication Date: 2024-10-01BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites -1 Cited by

Patent Information

Application Number
CN202310326667.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-29
Publication Date
2024-10-01

Smart Images

  • Figure CN118737137A_ABST
    Figure CN118737137A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, in particular to a speech recognition method and device, a terminal and a storage medium. The voice recognition method comprises the following steps: acquiring a user voice instruction, and determining scene segmented words corresponding to the user voice instruction; if the target normalized word corresponding to the scene segmented word is not queried in the dictionary, carrying out candidate word matching on the scene segmented word by adopting a strategy model to obtain a matching result, and carrying out semantic recognition on the scene segmented word by adopting a semantic model to obtain a semantic recognition result; and determining a speech recognition result corresponding to the scene word segmentation according to the matching result and the semantic recognition result. According to the invention, the convenience when the terminal is used can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a speech recognition method, device, terminal and storage medium. Background Art

[0002] With the development of science and technology, terminals are becoming more and more popular, improving people's production and life. In a terminal with voice recognition function, the terminal needs to normalize the user's generalized voice expression to a standard execution instruction and execute the standard execution instruction. However, in the normalization process, it mainly relies on artificial enrichment of synonymous expressions of a certain vocabulary standard statement. If the vocabulary spoken by the user is not manually included, the terminal cannot accurately recognize the user's instructions and execute them, resulting in low convenience when using the terminal. Summary of the invention

[0003] The present disclosure provides a speech recognition method, device, terminal and storage medium, the main purpose of which is to improve the convenience of terminal use.

[0004] According to one aspect of the present disclosure, a speech recognition method is provided, the method being applied to a vehicle, comprising:

[0005] Obtaining a user voice command and determining a scene segmentation corresponding to the user voice command;

[0006] If the target normalization word corresponding to the scene segmentation word is not found in the dictionary, the strategy model is used to match the scene segmentation word with candidate words to obtain a matching result, and the semantic model is used to perform semantic recognition on the scene segmentation word to obtain a semantic recognition result; wherein the matching result includes the target normalization candidate word or no matching result, and the semantic recognition result includes the target predicted normalization word or no semantic recognition result, and the no matching result is used to indicate that the strategy model has not matched the target normalization candidate word, and the no semantic recognition result is used to indicate that the semantic model has not recognized the target predicted normalization word;

[0007] Determine the speech recognition result corresponding to the scene segmentation word according to the matching result and the semantic recognition result; wherein the speech recognition result includes the target normalized candidate word or the target predicted normalized word.

[0008] Optionally, after determining the scene segmentation corresponding to the user voice command, the method further includes:

[0009] Using a semantic understanding model to perform semantic understanding on the scene segmentation to obtain a generalized word corresponding to the scene segmentation;

[0010] The mapping relationship between the generalization word and the target word is searched in the dictionary for the target word corresponding to the generalization word.

[0011] Optionally, the adopting the strategy model to perform candidate word matching on the scene segmentation to obtain a matching result includes:

[0012] Using the strategy model to perform weight recognition on the scene segmentation to obtain a weight word set corresponding to the scene segmentation;

[0013] Using the strategy model to match any normalized word stored in the dictionary with the weighted word set, if the strategy model does not match the normalized candidate word corresponding to the weighted word set, a no match result is obtained;

[0014] If the strategy model is used to match at least one normalized candidate word corresponding to the weighted word set, controlling the strategy model to determine a matching candidate word from the at least one normalized candidate word;

[0015] If the matching candidate word meets the first confidence requirement, determining the target normalized candidate word as the matching candidate word;

[0016] If the target normalized candidate word does not meet the first confidence requirement, a no-match result is obtained.

[0017] Optionally, controlling the policy model to determine a matching candidate word from the at least one normalized candidate word includes:

[0018] Controlling the strategy model to determine the normalized candidate word length corresponding to any normalized candidate word among the at least one normalized candidate word, and at least one weight word corresponding to any normalized candidate word;

[0019] Controlling the strategy model to use the normalized candidate word length and the weighted word length set corresponding to the at least one weighted word, and performing word similarity calculation on any of the normalized candidate words and the at least one weighted word to obtain the word similarity corresponding to any of the normalized candidate words;

[0020] The strategy model is controlled to select a normalized candidate word with the highest word similarity from the at least one normalized candidate word as a matching candidate word.

[0021] Optionally, the controlling the strategy model uses the normalized candidate word length and the weighted word length set corresponding to the at least one weighted word to calculate the word similarity between any of the normalized candidate words and the at least one weighted word to obtain the word similarity corresponding to any of the normalized candidate words, including:

[0022] Controlling the strategy model to determine the sum of all weight word lengths in the weight word length set to obtain a total weight word length;

[0023] The strategy model is controlled to use the total weighted word length and the total weighted word length to calculate the word similarity between any normalized candidate word and the at least one weighted word, so as to obtain the word similarity corresponding to any normalized candidate word.

[0024] Optionally, the semantic model includes: a word semantic model and a sentence semantic model; the using the semantic model to perform semantic recognition on the scene segmentation to obtain a semantic recognition result includes:

[0025] Using the word semantic model to perform word semantic recognition on the scene segmentation to obtain at least one predicted attribute word corresponding to the scene segmentation;

[0026] Using the sentence semantic model to perform sentence semantic recognition on the at least one predicted word, respectively, to obtain at least one predicted scene word corresponding to the at least one predicted word;

[0027] respectively calculating the similarity between the at least one predicted scene word and the scene segmentation word, and selecting the predicted attribute word corresponding to the predicted scene word with the highest similarity as the semantic recognition attribute word corresponding to the scene segmentation word;

[0028] If the semantic recognition term satisfies the second confidence requirement, determining the target prediction term to be the semantic recognition term;

[0029] If the semantic recognition result does not meet the second confidence requirement, the non-semantic recognition result is obtained.

[0030] Optionally, after selecting the predicted attribute word corresponding to the predicted scene word with the highest similarity as the semantic recognition attribute word corresponding to the scene segmentation word, the method further includes:

[0031] Determine a first confidence level corresponding to the predicted scene word with the highest similarity and a second confidence level corresponding to the semantic recognition word;

[0032] If the sum of the first confidence and the second confidence is greater than the confidence threshold, it is determined that the semantic recognition term meets the second confidence requirement;

[0033] If the sum of the first confidence and the second confidence is less than or equal to the confidence threshold, it is determined that the target prediction normalization does not meet the second confidence requirement.

[0034] Optionally, determining the speech recognition result corresponding to the scene segmentation according to the matching result and the semantic recognition result includes:

[0035] If the matching result is the target normalized candidate word and the semantic recognition result is the non-semantic non-recognition result, determining that the target normalized candidate word is the speech recognition result corresponding to the scene segmentation word;

[0036] If the matching result is the no matching result and the semantic recognition result is the target predicted word, determining that the target predicted word is the speech recognition result corresponding to the scene segmentation word;

[0037] If the matching result is the target normalized candidate word and the semantic recognition result is the target predicted normalized word, the target normalized candidate word or the target predicted normalized word is selected as the speech recognition result corresponding to the scene segmentation according to the speech vertical domain.

[0038] According to another aspect of the present disclosure, there is provided a speech recognition device, comprising:

[0039] An instruction acquisition unit, used to acquire a user voice instruction and determine a scene segmentation corresponding to the user voice instruction;

[0040] A word segmentation recognition unit is used for, if a target normalization word corresponding to the scene segmentation word is not found in the dictionary, then using a strategy model to match the scene segmentation word with candidate words to obtain a matching result, and using a semantic model to perform semantic recognition on the scene segmentation word to obtain a semantic recognition result; wherein the matching result includes a target normalization candidate word or no matching result, and the semantic recognition result includes a target predicted normalization word or no semantic recognition result, the no matching result is used to indicate that the strategy model has not matched the target normalization candidate word, and the no semantic recognition result is used to indicate that the semantic model has not recognized the target predicted normalization word;

[0041] A result arbitration unit is used to determine the speech recognition result corresponding to the scene segmentation word according to the matching result and the semantic recognition result; wherein the speech recognition result includes the target normalized candidate word or the target predicted normalized word.

[0042] Optionally, the speech recognition device further includes a semantic understanding unit and a dictionary query unit, which are used, after determining the scene segmentation corresponding to the user speech instruction:

[0043] The semantic understanding unit is used to perform semantic understanding on the scene segmentation using a semantic understanding model to obtain a generalized word corresponding to the scene segmentation;

[0044] The dictionary query unit is used to use the mapping relationship between the generalization word and the generalization word to query the dictionary for the target generalization word corresponding to the generalization word.

[0045] Optionally, when the word segmentation recognition unit is used to match candidate words for the scene word segmentation using a strategy model to obtain a matching result, it is specifically used to:

[0046] Using the strategy model to perform weight recognition on the scene segmentation to obtain a weight word set corresponding to the scene segmentation;

[0047] Using the strategy model to match any normalized word stored in the dictionary with the weighted word set, if the strategy model does not match the normalized candidate word corresponding to the weighted word set, a no match result is obtained;

[0048] If the strategy model is used to match at least one normalized candidate word corresponding to the weighted word set, controlling the strategy model to determine a matching candidate word from the at least one normalized candidate word;

[0049] If the matching candidate word meets the first confidence requirement, determining the target normalized candidate word as the matching candidate word;

[0050] If the target normalized candidate word does not meet the first confidence requirement, a no-match result is obtained.

[0051] Optionally, the word segmentation recognition unit is used to control the strategy model to determine a matching candidate word from the at least one normalized candidate word, specifically to:

[0052] Controlling the strategy model to determine the normalized candidate word length corresponding to any normalized candidate word among the at least one normalized candidate word, and at least one weight word corresponding to any normalized candidate word;

[0053] Controlling the strategy model to use the normalized candidate word length and the weighted word length set corresponding to the at least one weighted word, and performing word similarity calculation on any of the normalized candidate words and the at least one weighted word to obtain the word similarity corresponding to any of the normalized candidate words;

[0054] The strategy model is controlled to select a normalized candidate word with the highest word similarity from the at least one normalized candidate word as a matching candidate word.

[0055] Optionally, the word segmentation recognition unit is used to control the strategy model to adopt the normalized candidate word length and the weighted word length set corresponding to the at least one weighted word, to perform word similarity calculation on any normalized candidate word and the at least one weighted word, and to obtain the word similarity corresponding to any normalized candidate word, specifically for:

[0056] Controlling the strategy model to determine the sum of all weight word lengths in the weight word length set to obtain a total weight word length;

[0057] The strategy model is controlled to use the total weighted word length and the total weighted word length to calculate the word similarity between any normalized candidate word and the at least one weighted word, so as to obtain the word similarity corresponding to any normalized candidate word.

[0058] Optionally, the semantic model includes: a word semantic model and a sentence semantic model; when the word segmentation recognition unit is used to perform semantic recognition on the scene word segmentation using the semantic model to obtain a semantic recognition result, it is specifically used to:

[0059] Using the word semantic model to perform word semantic recognition on the scene segmentation to obtain at least one predicted attribute word corresponding to the scene segmentation;

[0060] Using the sentence semantic model to perform sentence semantic recognition on the at least one predicted word, respectively, to obtain at least one predicted scene word corresponding to the at least one predicted word;

[0061] respectively calculating the similarity between the at least one predicted scene word and the scene segmentation word, and selecting the predicted attribute word corresponding to the predicted scene word with the highest similarity as the semantic recognition attribute word corresponding to the scene segmentation word;

[0062] If the semantic recognition term satisfies the second confidence requirement, determining the target prediction term to be the semantic recognition term;

[0063] If the semantic recognition result does not meet the second confidence requirement, the non-semantic recognition result is obtained.

[0064] Optionally, after the word segmentation recognition unit is used to select the predicted attribute word corresponding to the predicted scene word with the highest similarity as the semantic recognition attribute word corresponding to the scene segmentation word, it is also used to:

[0065] Determine a first confidence level corresponding to the predicted scene word with the highest similarity and a second confidence level corresponding to the semantic recognition word;

[0066] If the sum of the first confidence and the second confidence is greater than the confidence threshold, it is determined that the semantic recognition term meets the second confidence requirement;

[0067] If the sum of the first confidence and the second confidence is less than or equal to the confidence threshold, it is determined that the target prediction normalization does not meet the second confidence requirement.

[0068] Optionally, when the result arbitration unit is used to determine the speech recognition result corresponding to the scene segmentation according to the matching result and the semantic recognition result, it is specifically used to:

[0069] If the matching result is the target normalized candidate word and the semantic recognition result is the non-semantic non-recognition result, determining that the target normalized candidate word is the speech recognition result corresponding to the scene segmentation word;

[0070] If the matching result is the no matching result and the semantic recognition result is the target predicted word, determining that the target predicted word is the speech recognition result corresponding to the scene segmentation word;

[0071] If the matching result is the target normalized candidate word and the semantic recognition result is the target predicted normalized word, the target normalized candidate word or the target predicted normalized word is selected as the speech recognition result corresponding to the scene segmentation according to the speech vertical domain.

[0072] According to another aspect of the present disclosure, there is provided a terminal, including:

[0073] at least one processor; and

[0074] a memory communicatively connected to the at least one processor; wherein,

[0075] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform any one of the methods described in the above aspect.

[0076] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any one of the methods described in the above aspect.

[0077] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the computer program implements any one of the methods described in the aforementioned aspect.

[0078] In one or more embodiments of the present disclosure, by obtaining a user voice command and determining the scene segmentation corresponding to the user voice command; if the target normalization word corresponding to the scene segmentation word is not found in the dictionary, the strategy model is used to match the scene segmentation word with candidate words to obtain a matching result, and the semantic model is used to perform semantic recognition on the scene segmentation word to obtain a semantic recognition result; wherein the matching result includes a target normalization candidate word or no matching result, and the semantic recognition result includes a target prediction normalization word or no semantic recognition result, and the no matching result is used to indicate that the strategy model has not matched the target normalization candidate word, and the no semantic recognition result is used to indicate that the semantic model has not recognized the target prediction normalization word; the speech recognition result corresponding to the scene segmentation word is determined according to the matching result and the semantic recognition result; wherein the speech recognition result includes a target normalization candidate word or a target prediction normalization word. Therefore, in the case where the target normalization word corresponding to the scene segmentation word is not found in the dictionary, the strategy based on the fusion of the strategy model and the semantic model is used to identify the normalization word corresponding to the scene segmentation word, which can reduce the situation where the user voice command cannot be accurately recognized and executed due to the scene segmentation word not being manually included in the dictionary, thereby improving the convenience of terminal use.

[0079] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0080] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0081] Figure 1 A flow chart showing a speech recognition method provided by an embodiment of the present disclosure is shown;

[0082] Figure 2 A flow chart showing another speech recognition method provided by an embodiment of the present disclosure is shown;

[0083] Figure 3 A flow chart of identifying a policy model provided by an embodiment of the present disclosure is shown;

[0084] Figure 4 A flowchart showing the recognition of a semantic model provided by an embodiment of the present disclosure

[0085] Figure 5 A flowchart of another speech recognition method provided by an embodiment of the present disclosure is shown;

[0086] Figure 6 A schematic diagram showing the structure of a speech recognition device provided by an embodiment of the present disclosure is shown;

[0087] Figure 7A schematic diagram showing the structure of another speech recognition device provided by an embodiment of the present disclosure is shown;

[0088] Figure 8 It is a block diagram of a terminal used to implement the speech recognition method of the embodiment of the present disclosure. DETAILED DESCRIPTION

[0089] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0090] With the development of science and technology, electronic devices are becoming more and more popular, which improves people's production and life. In a terminal with a voice recognition function, the terminal can perform corresponding operations according to the user voice command spoken by the user.

[0091] In vehicle application scenarios, the vehicle voice system in the vehicle can perform synonym recognition on the user's voice commands, normalize the user's generalized voice expressions to standard execution commands, and execute the standard execution commands. For example, the air purification mode of the vehicle air conditioning function has many synonyms, including: air purification, air purification, purification function, etc.

[0092] It is easy to understand that the synonym recognition of the in-vehicle voice system is mainly done through manual operation to enrich the synonymous expressions of a certain vocabulary standard statement. Manually enriching synonyms is costly and inefficient. At the same time, the in-vehicle voice system cannot recognize the unenriched vocabulary and correctly execute the command. For example, if the user says a word that has not been manually recorded, such as "Purify the air", the in-vehicle voice system cannot accurately recognize the user's voice command and execute it.

[0093] The present disclosure is described in detail below with reference to specific embodiments.

[0094] In the first embodiment, if Figure 1 As shown, Figure 1 A flow chart of a speech recognition method provided by an embodiment of the present disclosure is shown, which can be implemented by a computer program and can be run on a device for performing the speech recognition method. The computer program can be integrated into an application or run as an independent tool application.

[0095] The speech recognition device may be a terminal with speech recognition function, and the terminal includes but is not limited to: wearable device, handheld device, personal computer, tablet computer, vehicle-mounted device, smart phone, computing device or other processing device connected to wireless modem, etc. In different networks, the terminal may be called different names, such as: user equipment, access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, cellular phone, cordless phone, personal digital assistant (PDA), fifth generation mobile communication technology (5G) network, fourth generation mobile communication technology (4G) network, third generation mobile communication technology (3G) network or terminal in future evolution network, etc.

[0096] Specifically, the speech recognition method includes:

[0097] S101, obtaining a user voice command and determining a scene segmentation corresponding to the user voice command;

[0098] According to some embodiments, the user voice command refers to a command received by the terminal that requires voice recognition and execution.

[0099] In some embodiments, scene segmentation refers to text information corresponding to the user's voice command.

[0100] It is easy to understand that when the terminal performs voice recognition, the terminal can obtain the user's voice command and determine the scene segmentation corresponding to the user's voice command.

[0101] S102, if the target word corresponding to the scene segmentation word is not found in the dictionary, the strategy model is used to match the scene segmentation word with candidate words to obtain a matching result, and the semantic model is used to perform semantic recognition on the scene segmentation word to obtain a semantic recognition result;

[0102] According to some embodiments, a dictionary refers to a tool for querying that is obtained by manually enriching the synonymous expressions of a certain vocabulary standard statement. Among them, for a certain vocabulary, the synonyms that are not manually enriched in the dictionary are called unregistered synonyms or unregistered words, and unregistered words cannot be queried in the dictionary. Among them, the certain vocabulary standard statement is the word "gui".

[0103] In some embodiments, by searching the dictionary for a target word corresponding to the scene segmentation, the word can be normalized. The non-standard scene segmentation can be normalized to a standard word executable by the terminal through word normalization, which helps the terminal to execute the user's voice command more accurately. For example, the scene segmentation word "wipe the front glass of the car" corresponds to the standard word "wipe the front windshield".

[0104] In some embodiments, the target word refers to a standard word corresponding to the scene segmentation word found in the dictionary. If the target word corresponding to the scene segmentation word is not found in the dictionary, it means that the scene segmentation word is not artificially enriched in the dictionary, that is, the scene segmentation word is an unregistered word.

[0105] According to some embodiments, the strategy model refers to a model that includes a preset unregistered word recognition strategy. The matching result refers to the result obtained after matching the scene word segmentation candidate words using the strategy model. Among them, the matching result includes the target normalized candidate word or no matching result, and the no matching result is used to indicate that the strategy model did not match the target normalized candidate word.

[0106] In some embodiments, the semantic model refers to whether the scene segmentation is a synonym of an existing word in the dictionary in the scene corresponding to the prediction scene segmentation. If so, the predicted scene word in which the synonym is used is predicted. The semantic recognition result refers to the recognition result obtained after the semantic model is used to perform semantic recognition on the scene segmentation. Among them, the semantic recognition result includes the target prediction word or no semantic recognition result, and the no semantic recognition result is used to indicate that the semantic model did not recognize the target prediction word.

[0107] It is easy to understand that when determining the scene segmentation corresponding to the user's voice command, if the target word corresponding to the scene segmentation is not found in the dictionary, the strategy model is used to match the scene segmentation with candidate words to obtain a matching result, and the semantic model is used to perform semantic recognition on the scene segmentation to obtain a semantic recognition result.

[0108] S103, determining the speech recognition result corresponding to the scene segmentation according to the matching result and the semantic recognition result.

[0109] According to some embodiments, the speech recognition result refers to the speech recognition result corresponding to the scene segmentation determined by the terminal according to the matching result and the semantic recognition result through the arbitration strategy. The speech recognition result includes a target normalization candidate word, a target predicted normalization word, or no speech recognition result. No speech recognition result is used to indicate that the terminal did not recognize the target normalization word corresponding to the scene segmentation.

[0110] It is easy to understand that when the strategy model is used to match candidate words for scene segmentation to obtain matching results, and the semantic model is used to perform semantic recognition on the scene segmentation to obtain semantic recognition results, the speech recognition results corresponding to the scene segmentation can be determined based on the matching results and the semantic recognition results.

[0111] In summary, the method provided by the embodiment of the present disclosure obtains the user's voice command and determines the scene segmentation corresponding to the user's voice command; if the target segmentation word corresponding to the scene segmentation word is not found in the dictionary, the strategy model is used to match the scene segmentation word with candidate words to obtain a matching result, and the semantic model is used to perform semantic recognition on the scene segmentation word to obtain a semantic recognition result; the speech recognition result corresponding to the scene segmentation word is determined according to the matching result and the semantic recognition result. Therefore, in the case that the target segmentation word corresponding to the scene segmentation word is not found in the dictionary, the strategy based on the fusion of the strategy model and the semantic model is used to identify the segmentation word corresponding to the scene segmentation, which can reduce the situation where the user's voice command cannot be accurately recognized and executed due to the scene segmentation word not being manually included in the dictionary, thereby improving the convenience of terminal use.

[0112] See also Figure 2 , Figure 2 A flow chart of another speech recognition method provided by an embodiment of the present disclosure is shown. The method can be executed by a terminal. Specifically, the speech recognition method includes:

[0113] S201, obtaining a user voice command and determining a scene segmentation corresponding to the user voice command;

[0114] For example, when the terminal recognizes that the user says "purify the air", the terminal can obtain the user's voice command and determine that the scene segmentation corresponding to the user's voice command is "purify the air".

[0115] S202, using a semantic understanding model to perform semantic understanding on the scene segmentation to obtain a generalized word corresponding to the scene segmentation;

[0116] According to some embodiments, the semantic understanding model can convert scene segmentation into instructions that can be executed by the terminal. The semantic understanding model can be, for example, a domain intent slot (DIS) model. The DIS model can extract important information from the scene segmentation and ultimately pass it to the terminal for execution.

[0117] In some embodiments, domain D in the DIS model refers to the ability to understand conversations in a specific scenario, a vertical domain jointly constructed. For example, navigation, vehicle control, music, and video are all different vertical domains.

[0118] In some embodiments, the intent I in the DIS model refers to the purpose that the user wants to express in the conversation. For example, navigating to the destination and checking the traffic conditions ahead in the navigation function are two different intents.

[0119] In some embodiments, the parameter S in the DIS model refers to key information that affects understanding and execution results, for example: navigating to location A, where location A is the destination, directly affects navigation route planning.

[0120] According to some embodiments, generalized words refer to parameter words extracted from scene segmentation using a semantic understanding model. For example, using a DIS model, key information that affects understanding and execution results extracted from scene segmentation is a generalized word.

[0121] For example, when it is determined that the scene segmentation word corresponding to the user's voice command is "turn on the electric heated chair", the DIS model can extract the generalized word "electric heated chair" from the scene segmentation word "turn on the electric heated chair".

[0122] It is easy to understand that when the terminal obtains the user's voice command and determines the scene segmentation corresponding to the user's voice command, the terminal can use the semantic understanding model to perform semantic understanding on the scene segmentation to obtain the generalized word corresponding to the scene segmentation.

[0123] S203, using the mapping relationship between the generalization word and the term "return", searching the dictionary for the target term "return" corresponding to the generalization word;

[0124] According to some embodiments, a generalization term may correspond to multiple generalization terms. For example, the generalization terms corresponding to the generalization term "wiper" may include "wiper", "wiper", "rain sweeper", etc. The generalization terms corresponding to the generalization term "seat heating" may include "heated seat", "electric heated chair", etc.

[0125] In some embodiments, the mapping relationship between the generalization word and the normalization word is used. When searching for the target normalization word corresponding to the generalization word in the dictionary, a dictionary-based normalization system can be used. The dictionary-based normalization system is provided with a vocabulary, and the vocabulary reflects the mapping relationship between the generalization word and the normalization word. When extracting the generalization word from the scene segmentation, the vocabulary can be queried to perform normalization according to the mapping relationship between the generalization word and the normalization word in the vocabulary.

[0126] For example, when the DIS model extracts the generalized word "electric heated chair" from the scene segmentation of "turn on the electric heated chair", it can query the vocabulary and find that the corresponding generalized word for "electric heated chair" is "seat heating", then the standard word "seat heating" is finally sent to the terminal for execution.

[0127] It is easy to understand that when the terminal obtains the generalization word corresponding to the scene segmentation word, the terminal can use the mapping relationship between the generalization word and the generalization word to query the target generalization word corresponding to the generalization word in the dictionary.

[0128] S204, if the target word corresponding to the scene segmentation word is not found in the dictionary, the strategy model is used to match the scene segmentation word with candidate words to obtain a matching result;

[0129] According to some embodiments, when the terminal uses the strategy model to match the scene segmentation candidate words to obtain a matching result, the terminal can use the strategy model to perform weight identification on the scene segmentation to obtain a weight word set corresponding to the scene segmentation. Then, the terminal can use the strategy model to match any normalized word stored in the dictionary with the weight word set. If the strategy model does not match the normalized candidate word corresponding to the weight word set, a no match result is obtained. At the same time, if the strategy model is used to match at least one normalized candidate word corresponding to the weight word set, the strategy model is controlled to determine the matching candidate word from the at least one normalized candidate word. Finally, if the matching candidate word meets the first confidence requirement, the target normalized candidate word is determined to be the matching candidate word; if the target normalized candidate word does not meet the first confidence requirement, a no match result is obtained. Therefore, the accuracy of obtaining the matching result can be improved.

[0130] In some embodiments, when the terminal uses a policy model to perform weight recognition on scene word segmentation, a method based on term frequency-inverse document frequency (TF-IDF) can be used. TF-IDF is a statistical method used to evaluate the importance of a word to a document set or one of the documents in a corpus. The importance of a word increases in direct proportion to the number of times it appears in a document, but at the same time it decreases in inverse proportion to the frequency of its appearance in the corpus. The main idea of ​​TF-IDF is: if a word or phrase appears in an article with a high frequency TF and rarely appears in other articles, it is considered that this word or phrase has good category discrimination ability and is suitable for classification.

[0131] For example, in a vehicle scenario, with the vehicle scenario corpus data, TF-IDF can be used to identify the weighted words of the vehicle scenario in the scene segmentation.

[0132] In some embodiments, when the terminal uses a policy model to perform weight recognition on scene segmentation words and obtains a weight word set corresponding to the scene segmentation words, the number of weight words in the weight word set may depend on the complexity of the generalized words recognized by the DIS model. For example, when the generalized word is "car window", the weighted word recognized is "car window"; when the generalized word is "purify the air", the weighted words recognized include "purify" and "air".

[0133] According to some embodiments, when the terminal uses a policy model to match any normalized word stored in the dictionary with a weighted word set, if each normalized word does not include any weighted word in the weighted word set, it means that no normalized candidate word corresponding to the weighted word set is matched; if any normalized word includes at least one weighted word in the weighted word set, it means that any normalized word is a normalized candidate word corresponding to the weighted word set.

[0134] For example, the weighted word set corresponding to the scene segmentation word "purify the air" includes "purify" and "air", and the normalized word "air purifier" stored in the dictionary contains the two weighted words "purify" and "air", so "air purifier" is the normalized candidate word corresponding to the weighted word set.

[0135] According to some embodiments, if at least one normalized candidate word corresponding to a weight word set is matched, when the control strategy model determines a matching candidate word from at least one normalized candidate word, the control strategy model can determine the normalized candidate word length corresponding to any normalized candidate word in at least one normalized candidate word, and at least one weight word corresponding to any normalized candidate word. Then, the control strategy model can use the normalized candidate word length and the weight word length set corresponding to at least one weight word to calculate the word similarity of any normalized candidate word and at least one weight word, and obtain the word similarity corresponding to any normalized candidate word. Finally, the control strategy model can select the normalized candidate word with the highest word similarity from at least one normalized candidate word as the matching candidate word. Therefore, the accuracy of obtaining matching candidate words can be improved.

[0136] In some embodiments, the normalized candidate word length refers to the number of characters included in the normalized candidate word. The weighted word length refers to the number of characters included in the weighted word. The weighted word length set refers to a set formed by at least one weighted word length corresponding to at least one weighted word.

[0137] In some embodiments, the control strategy model uses the normalized candidate word length and the weight word length set corresponding to at least one weight word to calculate the word similarity of any normalized candidate word and at least one weight word. When the word similarity corresponding to any normalized candidate word is obtained, the control strategy model can determine the sum of all weight word lengths in the weight word length set to obtain the total weight word length. Then, the control strategy model can use the total weight word length and the total weight word length to calculate the word similarity of any normalized candidate word and at least one weight word to obtain the word similarity corresponding to any normalized candidate word. Therefore, the accuracy of word similarity determination can be improved.

[0138] For example, the normalized candidate word "air purifier" has a normalized candidate word length of 5, and the sum of the weighted word lengths of the two weighted words "purification" and "air" is 4. Therefore, the word similarity corresponding to the normalized candidate word "air purifier" is 4 / 5, or 80%.

[0139] In some embodiments, if there are multiple normalized candidate words with the highest similarity among at least one normalized candidate word, the first-ranked normalized candidate word is selected from the multiple normalized candidate words with the highest similarity as the matching candidate word.

[0140] According to some embodiments, the first confidence requirement refers to the requirement adopted by the terminal when judging whether the matching candidate word can be used as the target normalized candidate word corresponding to the scene segmentation. The first confidence requirement may be, for example, that the word similarity corresponding to the matching candidate word is not less than the word similarity threshold.

[0141] For example, when the word similarity threshold is 70%, if the target normalized candidate word is "air purifier", the word similarity corresponding to "air purifier" is 80%, which means that "air purifier" meets the first confidence requirement and is trustworthy. Therefore, the target normalized candidate word "air purifier" is used as the first recognition result corresponding to the scene segmentation word "purify the air".

[0142] For example, when the word similarity threshold is 90%, if the target normalized candidate word is "air purifier", the word similarity corresponding to "air purifier" is 80%, which means that "air purifier" does not meet the first confidence requirement, that is, it is untrustworthy. Therefore, the first unrecognized result is used as the first recognition result corresponding to the scene segmentation word "purify the air".

[0143] Take a scenario as an example. Figure 3 FIG. 2 shows a flow chart of identifying a strategy model provided by an embodiment of the present disclosure. Figure 3 As shown, in the vehicle application scenario, when the vehicle-mounted scene segmentation is obtained, the strategy model can be used to perform weight recognition on the vehicle-mounted scene segmentation. Next, the matching strategy in the strategy model can be used to determine if the registered word in the dictionary contains a weight word, then the registered word is determined to be a normalized candidate word. Secondly, the word similarity can be calculated by dividing the weight word length by the registered word length containing the weight word (ie, the normalized candidate word length). Finally, when the word similarity is greater than the word similarity threshold, the prediction result is output, and specifically the top N matching results can be output, where N is a positive integer.

[0144] It is easy to understand that when the terminal searches for a target word corresponding to a generalized word in the dictionary, if the target word corresponding to the scene segmentation word is not found in the dictionary, the strategy model is used to match the scene segmentation word with candidate words to obtain a matching result.

[0145] S205, if the target word corresponding to the scene segmentation word is not found in the dictionary, a semantic model is used to perform semantic recognition on the scene segmentation word to obtain a semantic recognition result;

[0146] According to some embodiments, the semantic model includes a word semantic model and a sentence semantic model. When the terminal uses the semantic model to perform semantic recognition on the scene segmentation to obtain a semantic recognition result, the terminal can use the word semantic model to perform word semantic recognition on the scene segmentation to obtain at least one predicted attribute word corresponding to the scene segmentation. Next, the terminal can use the sentence semantic model to perform sentence semantic recognition on at least one predicted attribute word respectively, and obtain at least one predicted scene word corresponding to at least one predicted attribute word. Secondly, the terminal can calculate the similarity between at least one predicted scene word and the scene segmentation respectively, and select the predicted attribute word corresponding to the predicted scene word with the highest similarity as the semantic recognition attribute word corresponding to the scene segmentation. Finally, if the semantic recognition attribute word meets the second confidence requirement, the target predicted attribute word is determined to be the semantic recognition attribute word; if the semantic recognition attribute word does not meet the second confidence requirement, a non-semantic recognition result is obtained. Therefore, the accuracy of obtaining the semantic recognition result can be improved.

[0147] In some embodiments, the word semantic model is used to predict whether the scene segmentation is a synonym of a word already in the dictionary in the scene corresponding to the scene segmentation. For example, in a vehicle application scenario, the word semantic model can be used to predict whether the scene segmentation is a synonym of a word already in the dictionary in the vehicle scenario.

[0148] In some embodiments, the sentence semantic model is used to predict the predicted scene word in which the synonym predicted by the word semantic model is used in the scene corresponding to the scene segmentation. At the same time, the sentence semantic model can also be used to predict whether the scene segmentation is similar to the predicted scene word.

[0149] According to some embodiments, before using the semantic model to identify the scene word segmentation to obtain the semantic recognition result, the terminal needs to train the word semantic model and the sentence semantic model in advance. For example, in the vehicle application scenario, the terminal needs to train the initial word semantic model based on the vehicle scene dictionary and the initial sentence semantic model based on the vehicle scene corpus.

[0150] In some embodiments, when the semantic model outputs a result, a confidence score is also performed on the output result, and the confidence score is used to judge the reliability of the prediction result. Therefore, when the terminal determines the target predicted word corresponding to the scene segmentation word, the terminal can obtain the first confidence score corresponding to the target predicted word and the second confidence score corresponding to the predicted scene word corresponding to the target predicted word.

[0151] According to some embodiments, the second confidence requirement refers to a requirement adopted by the terminal when judging whether a semantic recognition attribute word can be used as a target prediction attribute word corresponding to a scene segmentation word.

[0152] In some embodiments, when the terminal determines whether a semantic recognition-attributed word meets the second confidence requirement, the terminal can determine the first confidence corresponding to the predicted scene word with the highest similarity and the second confidence corresponding to the semantic recognition-attributed word; if the sum of the first confidence and the second confidence is greater than the confidence threshold, it is determined that the semantic recognition-attributed word meets the second confidence requirement; if the sum of the first confidence and the second confidence is less than or equal to the confidence threshold, it is determined that the target predicted-attributed word does not meet the second confidence requirement.

[0153] In some embodiments, the first confidence level may be a result obtained by multiplying a first confidence coefficient by a first confidence score, and the value range of the first confidence coefficient may be, for example, 0 to 1. The second confidence level may be a result obtained by multiplying a second confidence coefficient by a second confidence score, and the value range of the second confidence coefficient may be, for example, 0 to 1.

[0154] In some embodiments, the overall value range of the sum of the first confidence factor and the second confidence factor needs to be between 0 and 1. Therefore, the first confidence factor and the second confidence factor need to be adjusted according to the actual application scenario.

[0155] Take a scenario as an example. Figure 4 FIG. 2 shows a flow chart of a semantic model recognition provided by an embodiment of the present disclosure. Figure 4 As shown, in the vehicle application scenario, the word semantic model can be trained based on the vehicle scenario dictionary, and the sentence semantic model can be trained based on the vehicle scenario corpus. When the vehicle scenario segmentation is an unregistered word, the first N synonymous registered word prediction results corresponding to the unregistered word can be obtained through the trained word semantic model. Then, the trained sentence semantic model can be used to calculate the similarity between the user's current query (i.e., the vehicle scenario segmentation) and the predicted registered word usage scenario, and output the first N matching results.

[0156] It is easy to understand that when the terminal searches for a target word corresponding to a generalized word in the dictionary, if the target word corresponding to the scene segmentation word is not found in the dictionary, the semantic model is used to perform semantic recognition on the scene segmentation word to obtain a semantic recognition result.

[0157] S206, if the matching result is a target normalized candidate word and the semantic recognition result is a non-semantic non-recognition result, then determining that the target normalized candidate word is a speech recognition result corresponding to the scene segmentation word;

[0158] For example, if the matching result is the target normalized candidate word "air purifier" and the semantic recognition result is no semantics and no recognition result, the terminal can trust the strategy model and determine that "air purifier" is the speech recognition result corresponding to the scene segmentation.

[0159] S207, if the matching result is no matching result, and the semantic recognition result is the target predicted word, determining the target predicted word to be the speech recognition result corresponding to the scene segmentation word;

[0160] For example, if the matching result is no matching result, and the semantic recognition result is the target predicted word "air purifier", the terminal can trust the semantic model and determine that "air purifier" is the speech recognition result corresponding to the scene word segmentation.

[0161] S208, if the matching result is a target normalized candidate word and the semantic recognition result is a target predicted normalized word, then the target normalized candidate word or the target predicted normalized word is selected as the speech recognition result corresponding to the scene segmentation according to the speech vertical domain;

[0162] According to some embodiments, the voice vertical domain may be, for example, domain D in the DIS model, that is, a vertical domain jointly constructed by the dialogue understanding capabilities in a specific scenario, for example: navigation, vehicle control, music, and video are all different vertical domains.

[0163] In some embodiments, when the matching result is a target normalized candidate word and the semantic recognition result is a target predicted normalized word, the selection strategies for speech recognition results corresponding to different vertical domains are different, and priorities can be set for different vertical domains based on actual test results.

[0164] For example, when the actual test results corresponding to the music vertical domain indicate that the recognition effect when using the strategy model is better than the recognition effect when using the semantic model, then for the music vertical domain, the priority of the target normalization candidate word can be set higher than the priority of the target prediction normalization word, and the target normalization candidate word can be determined as the speech recognition result corresponding to the scene segmentation.

[0165] When the actual test results corresponding to the video vertical domain indicate that the recognition effect when the semantic model is used for recognition is better than the recognition effect when the strategy model is used for recognition, then for the video vertical domain, the priority of the target prediction normalization word can be set higher than the priority of the target normalization candidate word, and the target prediction normalization word can be determined as the speech recognition result corresponding to the scene segmentation.

[0166] S209: If the matching recognition result is no matching result and the semantic recognition result is no semantic recognition result, then no speech recognition result is obtained.

[0167] Take a scenario as an example. Figure 5 FIG. 2 is a flow chart showing another speech recognition method provided by an embodiment of the present disclosure. Figure 5 As shown, in the vehicle application scenario, when the vehicle obtains the user instruction, first, semantic understanding can be performed based on the vehicle scene DIS model. Then, it can be determined whether a normalization word corresponding to the user instruction can be queried based on the dictionary-based normalization system. If there is a normalization word, the normalization word is used as the normalization word corresponding to the user instruction. If there is no normalization word, the strategy model is used to obtain the matching result, and the word semantic model and the sentence semantic model are used to obtain the semantic recognition result through the confidence fusion method; secondly, the normalization word corresponding to the user instruction is determined according to the arbitration strategy.

[0168] According to some embodiments, when the speech recognition result corresponding to the scene segmentation is obtained, if the speech recognition result is a target normalized candidate word or a target predicted normalized word, the terminal can execute the instruction corresponding to the speech recognition result. If the speech recognition result is no speech recognition result, a prompt message can be issued, wherein the prompt message is used to indicate that the speech recognition failed.

[0169] In summary, the method provided by the embodiment of the present disclosure, first, by obtaining the user's voice instruction, and determining the scene segmentation corresponding to the user's voice instruction; using the semantic understanding model to perform semantic understanding on the scene segmentation, and obtaining the generalization word corresponding to the scene segmentation; using the mapping relationship between the generalization word and the generalization word, querying the target generalization word corresponding to the generalization word in the dictionary; therefore, the accuracy of the target generalization word query can be improved. Then, if the target generalization word corresponding to the scene segmentation is not found in the dictionary, the strategy model is used to match the scene segmentation with candidate words to obtain a matching result, and the semantic model is used to perform semantic recognition on the scene segmentation to obtain a semantic recognition result; therefore, in the case where the target generalization word corresponding to the scene segmentation is not found in the dictionary, the strategy based on the fusion of the strategy model and the semantic model is used to identify the corresponding generalization word of the scene segmentation, which can reduce the situation where the user's voice instruction cannot be accurately recognized and executed due to the scene segmentation not being manually included in the dictionary. Even if the user says a synonym that has not been manually enriched, the terminal can accurately recognize and normalize it to the standard statement, thereby correctly executing the user's voice instruction, thereby improving the convenience of the terminal when using it. Finally, if the matching result is a target normalized candidate word and the semantic recognition result is no semantics and no recognition result, then the target normalized candidate word is determined to be the speech recognition result corresponding to the scene segmentation; if the matching result is no matching result and the semantic recognition result is a target predicted normalized word, then the target predicted normalized word is determined to be the speech recognition result corresponding to the scene segmentation; if the matching result is a target normalized candidate word and the semantic recognition result is a target predicted normalized word, then the target normalized candidate word or the target predicted normalized word is selected according to the speech vertical domain as the speech recognition result corresponding to the scene segmentation; if the matching recognition result is no matching result and the semantic recognition result is no semantics and no recognition result, then no speech recognition result is obtained; therefore, selecting the speech recognition result corresponding to the scene segmentation according to different strategies can improve the accuracy of the speech recognition result determination.

[0170] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0171] The following are embodiments of the device disclosed herein, which can be used to execute the method embodiments disclosed herein. For details not disclosed in the device embodiments disclosed herein, please refer to the method embodiments disclosed herein.

[0172] See also Figure 6 , which shows a schematic diagram of the structure of a speech recognition device provided by an embodiment of the present disclosure. The speech recognition device can be implemented as all or part of the device through software, hardware or a combination of both. The speech recognition device 600 includes an instruction acquisition unit 601, a word segmentation recognition unit 602 and a result arbitration unit 603; wherein,

[0173] The instruction acquisition unit 601 is used to acquire the user's voice instruction and determine the scene segmentation corresponding to the user's voice instruction;

[0174] The word segmentation recognition unit 602 is used for, if the target normalization word corresponding to the scene segmentation word is not found in the dictionary, then using the strategy model to match the scene segmentation word with candidate words to obtain a matching result, and using the semantic model to perform semantic recognition on the scene segmentation word to obtain a semantic recognition result; wherein the matching result includes the target normalization candidate word or no matching result, and the semantic recognition result includes the target predicted normalization word or no semantic recognition result, and the no matching result is used to indicate that the strategy model has not matched the target normalization candidate word, and the no semantic recognition result is used to indicate that the semantic model has not recognized the target predicted normalization word;

[0175] The result arbitration unit 603 is used to determine the speech recognition result corresponding to the scene segmentation word according to the matching result and the semantic recognition result; wherein the speech recognition result includes a target normalized candidate word or a target predicted normalized word.

[0176] Optional, Figure 7 FIG. 2 is a schematic diagram showing the structure of another speech recognition device provided by an embodiment of the present disclosure. Figure 7 As shown, the speech recognition device 600 further includes a semantic understanding unit 604 and a dictionary query unit 605, which are used to determine the scene segmentation corresponding to the user's speech instruction:

[0177] A semantic understanding unit 604 is used to perform semantic understanding on the scene segmentation words by using a semantic understanding model to obtain a generalized word corresponding to the scene segmentation words;

[0178] The dictionary query unit 605 is used to use the mapping relationship between the generalization word and the generalization word to query the dictionary for the target generalization word corresponding to the generalization word.

[0179] Optionally, when the word segmentation recognition unit 602 is used to match candidate words for scene word segmentation using a strategy model to obtain a matching result, it is specifically used to:

[0180] Use the strategy model to perform weight recognition on scene segmentation words and obtain the weight word set corresponding to the scene segmentation words;

[0181] The strategy model is used to match any normalized word stored in the dictionary with the weighted word set. If the strategy model does not match the normalized candidate word corresponding to the weighted word set, a no-match result is obtained;

[0182] If the strategy model is used to match at least one normalized candidate word corresponding to the weighted word set, the strategy model is controlled to determine a matching candidate word from the at least one normalized candidate word;

[0183] If the matching candidate word meets the first confidence requirement, then determining the target normalized candidate word as the matching candidate word;

[0184] If the target normalized candidate word does not meet the first confidence requirement, a no match result is obtained.

[0185] Optionally, the word segmentation recognition unit 602 is used to control the strategy model to determine a matching candidate word from at least one normalized candidate word, specifically to:

[0186] The control strategy model determines a normalized candidate word length corresponding to any normalized candidate word in at least one normalized candidate word, and at least one weight word corresponding to any normalized candidate word;

[0187] The control strategy model uses a normalized candidate word length and a weight word length set corresponding to at least one weight word, calculates word similarity between any normalized candidate word and at least one weight word, and obtains word similarity corresponding to any normalized candidate word;

[0188] The control strategy model selects a normalized candidate word with the highest word similarity from at least one normalized candidate word as a matching candidate word.

[0189] Optionally, the word segmentation recognition unit 602 is used to control the strategy model to use the normalized candidate word length and the weighted word length set corresponding to at least one weighted word, to calculate the word similarity of any normalized candidate word and at least one weighted word, and to obtain the word similarity corresponding to any normalized candidate word, specifically for:

[0190] The control strategy model determines the sum of all weight word lengths in the weight word length set to obtain the total weight word length;

[0191] The control strategy model uses the total weighted word length and the total weighted word length to calculate the word similarity of any normalized candidate word and at least one weighted word to obtain the word similarity corresponding to any normalized candidate word.

[0192] Optionally, the semantic model includes: a word semantic model and a sentence semantic model; when the word segmentation recognition unit 602 is used to perform semantic recognition on the scene word segmentation using the semantic model to obtain a semantic recognition result, it is specifically used to:

[0193] Using a word semantic model to perform word semantic recognition on the scene segmentation, and obtaining at least one predicted attribute word corresponding to the scene segmentation;

[0194] Using a sentence semantic model to perform sentence semantic recognition on at least one predicted attribute word, respectively, to obtain at least one predicted scene word corresponding to the at least one predicted attribute word;

[0195] Calculate the similarity between at least one predicted scene word and the scene segmentation word respectively, and select the predicted attribute word corresponding to the predicted scene word with the highest similarity as the semantic recognition attribute word corresponding to the scene segmentation word;

[0196] If the semantic recognition attribute word meets the second confidence requirement, the target predicted attribute word is determined to be the semantic recognition attribute word;

[0197] If the semantic recognition attribute word does not meet the second confidence requirement, a no semantic recognition result is obtained.

[0198] Optionally, after the word segmentation recognition unit 602 is used to select the predicted classification word corresponding to the predicted scene word with the highest similarity as the semantic recognition classification word corresponding to the scene segmentation word, it is also used to:

[0199] Determine a first confidence level corresponding to the predicted scene word with the highest similarity and a second confidence level corresponding to the semantic recognition word;

[0200] If the sum of the first confidence and the second confidence is greater than the confidence threshold, it is determined that the semantic recognition normalization word meets the second confidence requirement;

[0201] If the sum of the first confidence and the second confidence is less than or equal to the confidence threshold, it is determined that the target prediction term does not meet the second confidence requirement.

[0202] Optionally, when the result arbitration unit 603 is used to determine the speech recognition result corresponding to the scene segmentation according to the matching result and the semantic recognition result, it is specifically used to:

[0203] If the matching result is a target normalized candidate word and the semantic recognition result is a non-semantic non-recognition result, then the target normalized candidate word is determined to be the speech recognition result corresponding to the scene segmentation word;

[0204] If the matching recognition result is no matching result, and the semantic recognition result is the target predicted word, then the target predicted word is determined to be the speech recognition result corresponding to the scene segmentation word;

[0205] If the matching recognition result is a target normalized candidate word and the semantic recognition result is a target predicted normalized word, the target normalized candidate word or the target predicted normalized word is selected as the speech recognition result corresponding to the scene segmentation according to the speech vertical domain.

[0206] It should be noted that when the speech recognition device provided in the above embodiment executes the speech recognition method, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the speech recognition device provided in the above embodiment and the speech recognition method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.

[0207] In summary, the device provided by the embodiment of the present disclosure obtains the user voice instruction through the instruction acquisition unit, and determines the scene segmentation corresponding to the user voice instruction; if the segmentation recognition unit does not find the target normalization word corresponding to the scene segmentation in the dictionary, the strategy model is used to match the scene segmentation with candidate words to obtain a matching result, and the semantic model is used to perform semantic recognition on the scene segmentation to obtain a semantic recognition result; wherein the matching result includes the target normalization candidate word or no matching result, and the semantic recognition result includes the target predicted normalization word or no semantic recognition result, and the no matching result is used to indicate that the strategy model has not matched the target normalization candidate word, and the no semantic recognition result is used to indicate that the semantic model has not recognized the target predicted normalization word; the result arbitration unit determines the speech recognition result corresponding to the scene segmentation according to the matching result and the semantic recognition result; wherein the speech recognition result includes the target normalization candidate word or the target predicted normalization word. Therefore, when the target word corresponding to the scene segmentation is not found in the dictionary, a strategy based on the fusion of the policy model and the semantic model is used to identify the word corresponding to the scene segmentation. This can reduce the situation where the user's voice commands cannot be accurately recognized and executed due to the scene segmentation not being manually included in the dictionary, thereby improving the convenience of terminal use.

[0208] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0209] According to an embodiment of the present disclosure, the present disclosure also provides a terminal, a readable storage medium and a computer program product.

[0210] Figure 8 A schematic block diagram of an example terminal 800 that can be used to implement embodiments of the present disclosure is shown. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit implementations of the present disclosure described and / or claimed herein.

[0211] like Figure 8 As shown, the terminal 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the terminal 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0212] A number of components in the terminal 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the terminal 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0213] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as speech recognition methods. For example, in some embodiments, the speech recognition method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the terminal 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of the speech recognition method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the speech recognition method in any other appropriate manner (e.g., by means of firmware).

[0214] Various embodiments of the devices and techniques described above herein can be implemented in digital electronic circuit devices, integrated circuit devices, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), devices on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable device including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage device, at least one input device, and at least one output device, and transmit data and instructions to the storage device, the at least one input device, and the at least one output device.

[0215] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0216] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution device, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor devices, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0217] To provide interaction with a user, the devices and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0218] The apparatus and techniques described herein may be implemented in a computing device including backend components (e.g., as a data server), or a computing device including middleware components (e.g., an application server), or a computing device including frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the apparatus and techniques described herein), or a computing device including any combination of such backend components, middleware components, or frontend components. The components of the apparatus may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.

[0219] A computer device may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed device, or a server combined with a blockchain.

[0220] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0221] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A speech recognition method, characterized in that: include: Obtaining a user voice command and determining a scene segmentation corresponding to the user voice command; If the target normalization word corresponding to the scene segmentation word is not found in the dictionary, the strategy model is used to match the scene segmentation word with candidate words to obtain a matching result, and the semantic model is used to perform semantic recognition on the scene segmentation word to obtain a semantic recognition result; wherein the matching result includes the target normalization candidate word or no matching result, and the semantic recognition result includes the target predicted normalization word or no semantic recognition result, and the no matching result is used to indicate that the strategy model has not matched the target normalization candidate word, and the no semantic recognition result is used to indicate that the semantic model has not recognized the target predicted normalization word; Determine the speech recognition result corresponding to the scene segmentation word according to the matching result and the semantic recognition result; wherein the speech recognition result includes the target normalized candidate word or the target predicted normalized word.

2. The method according to claim 1, characterized in that After determining the scene segmentation corresponding to the user voice command, the method further includes: Using a semantic understanding model to perform semantic understanding on the scene segmentation to obtain a generalized word corresponding to the scene segmentation; The mapping relationship between the generalization word and the target word is searched in the dictionary for the target word corresponding to the generalization word.

3. The method according to claim 1, characterized in that The adopting the strategy model to match the scene segmentation words with candidate words to obtain a matching result includes: Using the strategy model to perform weight recognition on the scene segmentation to obtain a weight word set corresponding to the scene segmentation; Using the strategy model to match any normalized word stored in the dictionary with the weighted word set, if the strategy model does not match the normalized candidate word corresponding to the weighted word set, a no match result is obtained; If the strategy model is used to match at least one normalized candidate word corresponding to the weighted word set, controlling the strategy model to determine a matching candidate word from the at least one normalized candidate word; If the matching candidate word meets the first confidence requirement, determining the target normalized candidate word as the matching candidate word; If the target normalized candidate word does not meet the first confidence requirement, a no-match result is obtained.

4. The method according to claim 3, characterized in that The controlling the strategy model to determine a matching candidate word from the at least one normalized candidate word comprises: Controlling the strategy model to determine the normalized candidate word length corresponding to any normalized candidate word among the at least one normalized candidate word, and at least one weight word corresponding to any normalized candidate word; Controlling the strategy model to use the normalized candidate word length and the weighted word length set corresponding to the at least one weighted word, and performing word similarity calculation on any of the normalized candidate words and the at least one weighted word to obtain the word similarity corresponding to any of the normalized candidate words; The strategy model is controlled to select a normalized candidate word with the highest word similarity from the at least one normalized candidate word as a matching candidate word.

5. The method according to claim 4, characterized in that The controlling the strategy model uses the normalized candidate word length and the weighted word length set corresponding to the at least one weighted word to calculate the word similarity between any of the normalized candidate words and the at least one weighted word to obtain the word similarity corresponding to any of the normalized candidate words, including: Controlling the strategy model to determine the sum of all weight word lengths in the weight word length set to obtain a total weight word length; The strategy model is controlled to use the total weighted word length and the total weighted word length to calculate the word similarity between any normalized candidate word and the at least one weighted word, so as to obtain the word similarity corresponding to any normalized candidate word.

6. The method according to claim 1, characterized in that The semantic model includes: a word semantic model and a sentence semantic model; the semantic recognition result obtained by using the semantic model to perform semantic recognition on the scene segmentation includes: Using the word semantic model to perform word semantic recognition on the scene segmentation to obtain at least one predicted attribute word corresponding to the scene segmentation; Using the sentence semantic model to perform sentence semantic recognition on the at least one predicted word, respectively, to obtain at least one predicted scene word corresponding to the at least one predicted word; respectively calculating the similarity between the at least one predicted scene word and the scene segmentation word, and selecting the predicted attribute word corresponding to the predicted scene word with the highest similarity as the semantic recognition attribute word corresponding to the scene segmentation word; If the semantic recognition term satisfies the second confidence requirement, determining the target prediction term to be the semantic recognition term; If the semantic recognition result does not meet the second confidence requirement, the non-semantic recognition result is obtained.

7. The method according to claim 6, characterized in that After selecting the predicted attribute word corresponding to the predicted scene word with the highest similarity as the semantic recognition attribute word corresponding to the scene segmentation word, the method further includes: Determine a first confidence level corresponding to the predicted scene word with the highest similarity and a second confidence level corresponding to the semantic recognition word; If the sum of the first confidence and the second confidence is greater than the confidence threshold, it is determined that the semantic recognition term meets the second confidence requirement; If the sum of the first confidence and the second confidence is less than or equal to the confidence threshold, it is determined that the target prediction normalization does not meet the second confidence requirement.

8. The method according to claim 1, characterized in that The determining the speech recognition result corresponding to the scene segmentation according to the matching result and the semantic recognition result includes: If the matching result is the target normalized candidate word and the semantic recognition result is the non-semantic non-recognition result, determining that the target normalized candidate word is the speech recognition result corresponding to the scene segmentation word; If the matching result is the no matching result and the semantic recognition result is the target predicted word, determining that the target predicted word is the speech recognition result corresponding to the scene segmentation word; If the matching result is the target normalized candidate word and the semantic recognition result is the target predicted normalized word, the target normalized candidate word or the target predicted normalized word is selected as the speech recognition result corresponding to the scene segmentation according to the speech vertical domain.

9. A speech recognition device, characterized in that: include: An instruction acquisition unit, used to acquire a user voice instruction and determine a scene segmentation corresponding to the user voice instruction; A word segmentation recognition unit is used for, if a target normalization word corresponding to the scene segmentation word is not found in the dictionary, then using a strategy model to match the scene segmentation word with candidate words to obtain a matching result, and using a semantic model to perform semantic recognition on the scene segmentation word to obtain a semantic recognition result; wherein the matching result includes a target normalization candidate word or no matching result, and the semantic recognition result includes a target predicted normalization word or no semantic recognition result, the no matching result is used to indicate that the strategy model has not matched the target normalization candidate word, and the no semantic recognition result is used to indicate that the semantic model has not recognized the target predicted normalization word; A result arbitration unit is used to determine the speech recognition result corresponding to the scene segmentation word according to the matching result and the semantic recognition result, wherein the speech recognition result includes the target normalized candidate word or the target predicted normalized word.

10. A terminal, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.

11. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 8.