Speech recognition method and device, electronic equipment, storage medium and vehicle

By introducing parallel contact language models and decoders into speech recognition technology, combined with recognition confidence and pinyin similarity, the problem of contact recognition accuracy and the impact of non-contact scenarios is solved, and high-accuracy contact recognition is achieved Identification and universal identification.

CN118645087APending Publication Date: 2024-09-13BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310266253.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-13
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

When existing speech recognition technology improves the accuracy of contact recognition, it is easy to affect the accuracy of speech recognition in non-contact scenarios, and the post-pinyin matching strategy relies on the accuracy of universal recognition results, resulting in contact recognition errors.

Method used

On the basis of the original acoustic model and general language model, a parallel contact language model and contact decoder are added. Through the decoding processing of acoustic features and language features, combined with the recognition confidence and pinyin similarity, the recognition result is determined to be a contact. The recognition result is still a universal recognition result.

Benefits of technology

It improves the accuracy of speech recognition in contact scenarios without affecting the accuracy of speech recognition in non-contact scenarios, enhances the accuracy of recognition of contacts, and avoids recognition errors in homophone substitutions and generalizations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118645087A
    Figure CN118645087A
Patent Text Reader

Abstract

The invention relates to a voice recognition method and device, electronic equipment, a storage medium and a vehicle, and the method comprises the steps: carrying out the acoustic feature recognition of a to-be-recognized voice, and obtaining an acoustic feature corresponding to the to-be-recognized voice; performing general language feature recognition on the to-be-recognized voice to obtain a general language feature corresponding to the to-be-recognized voice; decoding the acoustic features and the universal language features to obtain a universal recognition result; performing contact linguistic feature recognition on the to-be-recognized voice to obtain a contact linguistic feature corresponding to the to-be-recognized voice; decoding the acoustic feature and the linguistic feature of the contact person to obtain a contact person identification result; when the recognition confidence is greater than or equal to a confidence threshold, determining the contact person recognition result as the recognition result of the to-be-recognized voice, the recognition confidence being a product of a language recognition probability and an acoustic recognition probability; and under the condition that the recognition confidence is smaller than the recognition threshold value, determining the universal recognition result as the recognition result of the to-be-recognized voice.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the development of artificial intelligence technology, speech recognition technology has been widely used in various industries, and speech recognition technology based on traditional modeling methods is relatively mature.

[0003] In existing speech recognition technology, to improve the accuracy of contact recognition, one approach is to use contacts as hot words, increase their weight, and enhance contact recognition accuracy through hot word enhancement (referred to as the hot word enhancement strategy). Another approach is to convert general recognition results into pinyin and then match the pinyin with the contact (referred to as the post-pinyin matching strategy) to improve contact recognition accuracy. However, while the hot word enhancement strategy optimizes contact recognition by increasing the weight of contacts, it can lead to a decrease in the accuracy of speech recognition results in other non-contact scenarios. The post-pinyin matching strategy relies on the results of general speech recognition. If the pinyin of the general recognition result is inconsistent with what the user said, the contact recognition error will occur.

[0004] Therefore, there is an urgent need for a method to improve the speech recognition accuracy in contact scenarios without affecting the speech recognition accuracy in non-contact scenarios. Summary of the Invention

[0005] The present application provides a speech recognition method, device, electronic device, storage medium, and vehicle, which can improve the speech recognition accuracy in contact scenarios without affecting the speech recognition accuracy in non-contact scenarios.

[0006] In a first aspect, the present application provides a speech recognition method, comprising: performing acoustic feature recognition on a speech to be recognized based on an acoustic model to obtain acoustic features corresponding to the speech to be recognized; performing universal language feature recognition on the speech to be recognized based on a universal language model to obtain universal language features corresponding to the speech to be recognized; decoding the acoustic features and the universal language features based on a universal decoder to obtain a universal recognition result; performing contact language feature recognition on the speech to be recognized based on a contact language model to obtain contact language features corresponding to the speech to be recognized; decoding the acoustic features and the contact language features based on a contact decoder to obtain a contact recognition result, as well as a language recognition probability and an acoustic recognition probability corresponding to the contact recognition result; the contact language model is generated based on keywords related to contact search and a user's contact list, and the language recognition probability The recognition confidence rate is the product of the language matching probabilities corresponding to each character in the contact recognition result obtained based on the language features of the contact, and the language matching probability is the matching probability of a character in the contact recognition result and the corresponding character in the speech to be recognized; the acoustic recognition probability is the product of the acoustic matching probabilities corresponding to each character in the contact recognition result obtained based on the acoustic features, and the acoustic matching probability is the matching probability of a character in the contact recognition result and the corresponding character in the speech to be recognized; when the recognition confidence is greater than or equal to the confidence threshold, the contact recognition result is determined as the recognition result of the speech to be recognized, and the recognition confidence is the product of the language recognition probability and the acoustic recognition probability; when the recognition confidence is less than the recognition threshold, the general recognition result is determined as the recognition result of the speech to be recognized, and the recognition threshold is less than or equal to the confidence threshold.

[0007] In some embodiments of the present application, the method further includes: when the recognition confidence is greater than or equal to the recognition threshold and less than the confidence threshold, converting the contact recognition result into a first pinyin and converting the general recognition result into a second pinyin; determining the pinyin similarity between the first pinyin and the second pinyin; when the pinyin similarity is greater than or equal to the similarity threshold, determining the contact recognition result as the recognition result of the speech to be recognized; when the pinyin similarity is less than the similarity threshold, determining the general recognition result as the recognition result of the speech to be recognized.

[0008] In some embodiments of the present application, the contact language model is constructed based on multiple contact decoding graphs, each contact decoding graph is used to indicate multiple contact identification paths, and each contact decoding graph includes a keyword subgraph and a contact subgraph connected in series; the keyword subgraph is used to indicate a keyword related to contact search, and the keyword subgraph includes multiple nodes and lines between any two adjacent nodes, and each line in the keyword subgraph is used to indicate a character in the corresponding keyword; the contact subgraph includes multiple contact branches, each contact branch corresponds to a contact in the contact list, and each contact branch includes multiple nodes and real lines between any two adjacent nodes, and each real line in each contact branch is used to indicate a character in the corresponding contact, the starting nodes of the multiple contact branches are the same node, and the ending nodes of the multiple contact branches are the same node.

[0009] In some embodiments of the present application, each solid line corresponds to an enhancement coefficient. When the contact identification path corresponding to the contact identification result includes at least one solid line in the first contact branch, the language recognition probability is determined based on a first value, which is the product of the enhancement coefficients corresponding to at least one solid line in the first contact branch; the enhancement coefficient is greater than 1.

[0010] In some embodiments of the present application, each contact branch also includes multiple empty lines; the two nodes of each empty line are the two nodes of a solid line, and each empty line in each contact branch is used to implement generalization processing of the statement of a character in the contact indicated by the corresponding solid line; or, the two nodes of each empty line are the starting node of the first solid line and the ending node of the last solid line in at least two solid lines; each empty line in each contact branch is used to implement generalization processing of the statement of a word in the contact indicated by the corresponding at least two solid lines.

[0011] In some embodiments of the present application, each empty link corresponds to a penalty coefficient, the two nodes of each empty link are the two nodes of a real link, and each empty link in each contact branch is used to implement generalization processing of the statement of a character in the contact indicated by the corresponding real link; or, the two nodes of each empty link are the starting node of the first real link and the ending node of the last real link in at least two real links; each empty link in each contact branch is used to implement generalization processing of the statement of a word in the contact indicated by the corresponding at least two real links; the penalty coefficient is less than 1.

[0012] In some embodiments of the present application, when at least two contact branches included in the contact subgraph indicate the same contact, the contact subgraph also includes an empty branch, the starting node of the empty branch is the ending node of any contact branch, and the ending node of the empty branch is the starting node of any contact branch; the empty branch is used to implement generalization processing of the order of words in the corresponding contacts.

[0013] In some embodiments of the present application, the empty branch corresponds to a penalty coefficient. When the contact identification path corresponding to the contact identification result also includes the empty branch and a target real line or multiple target real lines in the second contact branch, the language recognition probability is determined based on the product of the first value, the third value and the fourth value; wherein, when the contact identification path corresponding to the contact identification result also includes the target real line, the third value is the enhancement coefficient of the target real line, when the contact identification path corresponding to the contact identification result also includes the multiple target real lines, the third value is the product of the enhancement coefficients corresponding to each target real line in the multiple target real lines, and the fourth value is the penalty coefficient corresponding to the empty branch; the penalty coefficient is less than 1.

[0014] In a second aspect, the present application provides a speech recognition device, comprising: a feature recognition module for performing acoustic feature recognition on a speech to be recognized based on an acoustic model to obtain acoustic features corresponding to the speech to be recognized; performing universal language feature recognition on the speech to be recognized based on a universal language model to obtain universal language features corresponding to the speech to be recognized; a decoding module for decoding the acoustic features and the universal language features based on a universal decoder to obtain a universal recognition result; the feature recognition module is also used to perform contact language feature recognition on the speech to be recognized based on a contact language model to obtain contact language features corresponding to the speech to be recognized; the decoding module is also used to decode the acoustic features and the contact language features based on a contact decoder to obtain a contact recognition result, as well as a language recognition probability and an acoustic recognition probability corresponding to the contact recognition result; the contact language model is based on keywords related to contact search and the user's contact information. The contact list is generated, the language recognition probability is the product of the language matching probabilities corresponding to each character in the contact recognition result obtained based on the language features of the contact, and the language matching probability is the matching probability of a character in the contact recognition result with the corresponding character in the speech to be recognized; the acoustic recognition probability is the product of the acoustic matching probabilities corresponding to each character in the contact recognition result obtained based on the acoustic features, and the acoustic matching probability is the matching probability of a character in the contact recognition result with the corresponding character in the speech to be recognized; a determination module is used to determine the contact recognition result as the recognition result of the speech to be recognized when the recognition confidence is greater than or equal to the confidence threshold, and the recognition confidence is the product of the language recognition probability and the acoustic recognition probability; when the recognition confidence is less than the recognition threshold, determine the general recognition result as the recognition result of the speech to be recognized, and the recognition threshold is less than or equal to the confidence threshold.

[0015] In some embodiments of the present application, the device also includes: a conversion module, which is used to convert the contact recognition result into a first pinyin and convert the general recognition result into a second pinyin when the recognition confidence is greater than or equal to the recognition threshold and less than the confidence threshold; the determination module is also used to determine the pinyin similarity between the first pinyin and the second pinyin; when the pinyin similarity is greater than or equal to the similarity threshold, determine the contact recognition result as the recognition result of the speech to be recognized; when the pinyin similarity is less than the similarity threshold, determine the general recognition result as the recognition result of the speech to be recognized.

[0016] In some embodiments of the present application, the contact language model is constructed based on multiple contact decoding graphs, each contact decoding graph is used to indicate multiple contact identification paths, and each contact decoding graph includes a keyword subgraph and a contact subgraph connected in series; the keyword subgraph is used to indicate a keyword related to contact search, and the keyword subgraph includes multiple nodes and lines between any two adjacent nodes, and each line in the keyword subgraph is used to indicate a character in the corresponding keyword; the contact subgraph includes multiple contact branches, each contact branch corresponds to a contact in the contact list, and each contact branch includes multiple nodes and real lines between any two adjacent nodes, and each real line in each contact branch is used to indicate a character in the corresponding contact, the starting nodes of the multiple contact branches are the same node, and the ending nodes of the multiple contact branches are the same node.

[0017] In some embodiments of the present application, each solid line corresponds to an enhancement coefficient. When the contact identification path corresponding to the contact identification result includes at least one solid line in the first contact branch, the language recognition probability is determined based on a first value, which is the product of the enhancement coefficients corresponding to at least one solid line in the first contact branch; the enhancement coefficient is greater than 1.

[0018] In some embodiments of the present application, each contact branch also includes multiple empty lines; the two nodes of each empty line are the two nodes of a solid line, and each empty line in each contact branch is used to implement generalization processing of the statement of a character in the contact indicated by the corresponding solid line; or, the two nodes of each empty line are the starting node of the first solid line and the ending node of the last solid line in at least two solid lines; each empty line in each contact branch is used to implement generalization processing of the statement of a word in the contact indicated by the corresponding at least two solid lines.

[0019] In some embodiments of the present application, each empty link corresponds to a penalty coefficient, the two nodes of each empty link are the two nodes of a real link, and each empty link in each contact branch is used to implement generalization processing of the statement of a character in the contact indicated by the corresponding real link; or, the two nodes of each empty link are the starting node of the first real link and the ending node of the last real link in at least two real links; each empty link in each contact branch is used to implement generalization processing of the statement of a word in the contact indicated by the corresponding at least two real links; the penalty coefficient is less than 1.

[0020] In some embodiments of the present application, when at least two contact branches included in the contact subgraph indicate the same contact, the contact subgraph also includes an empty branch, the starting node of the empty branch is the ending node of any contact branch, and the ending node of the empty branch is the starting node of any contact branch; the empty branch is used to implement generalization processing of the order of words in the corresponding contacts.

[0021] In some embodiments of the present application, the empty branch corresponds to a penalty coefficient. When the contact identification path corresponding to the contact identification result also includes the empty branch and a target real line or multiple target real lines in the second contact branch, the language recognition probability is determined based on the product of the first value, the third value and the fourth value; wherein, when the contact identification path corresponding to the contact identification result also includes the target real line, the third value is the enhancement coefficient of the target real line, when the contact identification path corresponding to the contact identification result also includes the multiple target real lines, the third value is the product of the enhancement coefficients corresponding to each target real line in the multiple target real lines, and the fourth value is the penalty coefficient corresponding to the empty branch; the penalty coefficient is less than 1.

[0022] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, wherein the processor is configured to execute a computer program stored in a memory, wherein when the computer program is executed by the processor, the steps of any one of the speech recognition methods provided in the first aspect are implemented.

[0023] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the speech recognition methods provided in the first aspect.

[0024] In a fifth aspect, an embodiment of the present application provides a vehicle, comprising: the speech recognition device as described in the second aspect, or the electronic device as described in the third aspect, or the computer-readable storage medium as described in the fourth aspect.

[0025] In a sixth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a computer program or instructions. When the computer program product runs on a processor, the processor executes the computer program or instructions to implement the steps of the speech recognition method as described in the first aspect.

[0026] In the seventh aspect, an embodiment of the present application provides a chip, which includes a processor, a memory and a communication interface, the communication interface is coupled to the processor, the memory is used to store programs or instructions that can be run on the processor, and the processor is used to execute the program or instructions to implement the steps of the speech recognition method described in the first aspect.

[0027] The technical solution provided by the embodiments of the present application has the following advantages over the prior art: In the embodiments of the present application, a contact language model and contact decoder module are added to the existing universal speech recognition solution of an acoustic model, a universal language model, and a universal decoder, in parallel with the universal language model and universal decoder. This allows the universal decoder to decode the acoustic features obtained from the acoustic model and the universal language features obtained from the universal language model to obtain a universal recognition result. The contact decoder then decodes the acoustic features obtained from the acoustic model and the contact language features obtained from the contact language model to obtain a contact recognition result. The recognition confidence corresponding to the contact recognition result (the product of the acoustic recognition probability corresponding to the contact recognition result and the language model probability) and the relationship between the confidence threshold and the recognition threshold determine whether the recognition result of the speech to be recognized is a contact recognition result or a universal recognition result. In this solution, since the universal language model and universal decoder (referred to as the universal recognition path) are parallel to the contact language model and contact decoder (referred to as the contact recognition path), the two do not affect each other. This allows the contact recognition path to improve the accuracy of speech recognition in contact scenarios without affecting the accuracy of speech recognition in non-contact scenarios by the universal recognition path. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0029] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0030] Figure 1 A flowchart of a speech recognition method provided in this application;

[0031] Figure 2 A schematic diagram of the model structure of a speech recognition method provided in this application;

[0032] Figure 3 A flowchart of another speech recognition method provided by this application;

[0033] Figure 4 A schematic diagram of the structure of a contact decoding graph of a speech recognition method provided by this application;

[0034] Figure 5 A schematic diagram of the structure of a contact subgraph of a speech recognition method provided by this application;

[0035] Figure 6 A schematic diagram of the structure of a contact subgraph of another speech recognition method provided by this application;

[0036] Figure 7 A schematic diagram of the structure of a contact subgraph of another speech recognition method provided by this application;

[0037] Figure 8 A schematic diagram of the structure of a speech recognition device provided in this application;

[0038] Figure 9 A schematic diagram of the hardware structure of an electronic device provided in this application. DETAILED DESCRIPTION

[0039] In order to more clearly understand the above-mentioned objectives, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that, in the absence of conflict, the embodiments of the present application and the features therein can be combined with each other.

[0040] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application can also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present application, not all of the embodiments.

[0041] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "first," "second," and the like generally distinguish objects of a class and do not limit the number of objects. For example, the first object may be one or more.

[0042] Use the hot word enhancement solution to strengthen the weight of contacts in the general speech recognition process and optimize the recognition of contacts. Weighting contacts will affect the results of speech recognition in other scenarios. For example, if the contact is "Li Si", and the user's request is "where is it", because "Li Si" and "where is it" sound similar, it may cause the user to say "that Li Si where". In order to avoid the above problem, the weight of the contact will be reduced. Lowering the weight of the contact will eventually lead to the hot word enhancement not being able to recognize all contacts correctly, and speech recognition in other scenarios (non-contact recognition scenarios) is also affected by hot words. As a result, not only the recognition accuracy of the contact recognition scenario is not well improved, but the recognition accuracy of the non-contact scenario is also reduced.

[0043] The post-pinyin matching strategy uses general speech recognition to identify possible contacts within the general recognition results. This strategy then converts the results into pinyin, matching the results against the contact list. For example, if the user says "Call Li Shi" and the general recognition result is "Call Li Shi," where "Li Shi" is likely a contact, "Li Shi" can be converted into pinyin and matched against the contact list. However, the post-pinyin matching strategy relies on the general recognition results. If the pinyin of a possible contact in the general recognition results doesn't match the user's speech, contact recognition will fail. Consequently, speech recognition accuracy in contact recognition scenarios is low.

[0044] To address the aforementioned issues, embodiments of the present application provide a speech recognition method that, based on the existing universal speech recognition solution consisting of an acoustic model, a universal language model, and a universal decoder, adds a contact language model and a contact decoder module, running in parallel with the universal language model and universal decoder. This allows the universal decoder to decode the acoustic features obtained from the acoustic model and the universal language features obtained from the universal language model to obtain a universal recognition result. The contact decoder then decodes the acoustic features obtained from the acoustic model and the contact language features obtained from the contact language model to obtain a contact recognition result. The method then determines whether the recognition result for the speech being recognized is a contact recognition result or a universal recognition result based on the recognition confidence corresponding to the contact recognition result (the product of the acoustic recognition probability corresponding to the contact recognition result and the language model probability) and the relationship between the confidence threshold and the recognition threshold. In this solution, since the universal language model and universal decoder (referred to as the universal recognition path) are parallel to the contact language model and contact decoder (referred to as the contact recognition path), the two do not affect each other. This allows the contact recognition path to improve the accuracy of speech recognition in contact scenarios without affecting the accuracy of speech recognition in non-contact scenarios by the universal recognition path.

[0045] The present application is applied to the voice recognition scenario. The electronic device in the embodiment of the present application can be a vehicle-mounted terminal, or a mobile phone, notebook, computer, server, etc. that is connected to the vehicle for communication. The specific details can be determined based on actual conditions and are not limited here.

[0046] The execution subject of the speech recognition method provided in the embodiment of the present application can be an electronic device or a vehicle, or it can be a functional module or functional entity in the electronic device or vehicle that can implement the speech recognition method. The specific execution subject can be determined according to actual conditions and is not limited here.

[0047] The technical solution of this application is explained in detail below through several specific embodiments.

[0048] Figure 1A schematic flowchart of a speech recognition method provided for this application, as Figure 1 shown. The speech recognition method may include the following steps 101 to step 107:

[0049] 101. Perform acoustic feature recognition on the speech to be recognized based on an acoustic model to obtain the acoustic features corresponding to the speech to be recognized.

[0050] Among them, the acoustic features are specifically an acoustic feature probability matrix, which includes probability vectors corresponding to each character in the speech to be recognized. Each element in the probability vector corresponding to one character is a matching probability value between a candidate character and the one character.

[0051] For example, assume that the acoustic model is generated based on a character library of 8000 characters. Each of the 8000 characters is a candidate character corresponding to the one character, and the speech to be recognized is "What's the weather like today?". Then, the acoustic feature probability matrix corresponding to "What's the weather like today?" includes the probability vector corresponding to "今", the probability vector corresponding to the first "天", the probability vector corresponding to the second "天", the probability vector corresponding to "气", the probability vector corresponding to "怎", the probability vector corresponding to "么", and the probability vector corresponding to "样". Among them, the probability vector corresponding to "今" is the matching probability value between each of the 8000 characters and "今", the probability vector corresponding to the first "天" is the matching probability value between each of the 8000 characters and "天", the probability vector corresponding to the second "天" is the matching probability value between each of the 8000 characters and "天", the probability vector corresponding to "气" is the matching probability value between each of the 8000 characters and "气", the probability vector corresponding to "怎" is the matching probability value between each of the 8000 characters and "怎", the probability vector corresponding to "么" is the matching probability value between each of the 8000 characters and "么", and the probability vector corresponding to "样" is the matching probability value between each of the 8000 characters and "样".

[0052] During the process of the acoustic model recognizing the speech to be recognized, the speech to be recognized is divided into multiple frames, and each frame is recognized separately. Usually, each frame corresponds to at most one character.

[0053] 102. Perform general language feature recognition on the speech to be recognized based on a general language model to obtain the general language features corresponding to the speech to be recognized.

[0054] Among them, the general language features are specifically a general language probability matrix, which includes probability vectors corresponding to each character in the speech to be recognized. Each element in the probability vector corresponding to one character is a matching probability value between a candidate character and the one character. For specific descriptions, reference can be made to the relevant descriptions of the acoustic feature probability matrix above, and details are not elaborated here.

[0055] The character library corresponding to the acoustic model and the character library corresponding to the general language model may be the same or different, and this is not limited here. The feature extraction process corresponding to the acoustic model is different from the feature extraction process of the general language model.

[0056] 103. Decode the acoustic feature and the universal language feature based on a universal decoder to obtain a universal recognition result.

[0057] Among them, the universal decoder searches based on acoustic features and universal language features, and determines a universal recognition result from multiple universal candidate recognition results. Each universal candidate result is determined by acoustic features and universal language features, and the universal recognition result is the one that best matches the speech to be recognized among multiple universal candidate recognition results.

[0058] 104. Perform contact language feature recognition on the speech to be recognized based on the contact language model to obtain contact language features corresponding to the speech to be recognized.

[0059] The contact language feature is specifically a contact language probability matrix, which includes a probability vector corresponding to each character in the speech to be recognized. Each element in the probability vector corresponding to a character represents the probability of a match between a candidate character and that character. For a detailed description, please refer to the above description of the acoustic feature probability matrix and will not be repeated here.

[0060] The character library for the acoustic model differs from the character library for the contact language model, which is generated based on the contact list. The feature extraction process for the acoustic model differs from that for the contact language model.

[0061] 105. Decode the acoustic feature and the contact language feature based on a contact decoder to obtain a contact recognition result, as well as a language recognition probability and an acoustic recognition probability corresponding to the contact recognition result.

[0062] Among them, the contact decoder searches based on acoustic features and contact language features, and determines a contact recognition result from multiple contact candidate recognition results. Each contact candidate result is determined by acoustic features and contact language features. The contact recognition result is the one that best matches the voice to be recognized among the multiple contact candidate recognition results.

[0063] Among them, the contact language model is generated based on keywords related to finding contacts and the user's contact list. The language recognition probability is the product of the language matching probabilities corresponding to each character in the contact recognition result based on the contact language features. One such language matching probability is the matching probability between a character in the contact recognition result and the corresponding character in the to-be-recognized speech; the acoustic recognition probability is the product of the acoustic matching probabilities corresponding to each character in the contact recognition result based on the acoustic features. One such acoustic matching probability is the matching probability between a character in the contact recognition result and the corresponding character in the to-be-recognized speech.

[0064] Exemplarily, the to-be-recognized speech is "Call Li Si?" The contact recognition result is "Call Li Si". Among them, the language recognition probability is determined by the product of the language matching probabilities of the characters "Call", "Electric", "Words", "Give", "Li", and "Si" in the contact recognition result ("Call Li Si") based on the contact language features. Among them, the language matching probability of the character "Call" is the matching probability between the character "Call" in the contact recognition result ("Call Li Si") and the corresponding character "Call" in the to-be-recognized speech ("Call Li Si?"); the language matching probability of the character "Si" is the matching probability between the character "Si" in the contact recognition result ("Call Li Si") and the corresponding character "Si" in the to-be-recognized speech ("Call Li Si?").

[0065] For the acoustic recognition probability, the above example of the language recognition probability can be referred to, and it will not be elaborated here.

[0066] Among them, the contact recognition result is the one with the largest product of the language recognition probability and the acoustic recognition probability among multiple candidate contact recognition results. [[ID=~10]]

[0067] 106. In the case where the recognition confidence is greater than or equal to the confidence threshold, the contact recognition result is determined as the recognition result of the to-be-recognized speech.

[0068] Among them, the recognition confidence is the product of the language recognition probability and the acoustic recognition probability.

[0069] 107. In the case where the recognition confidence is less than the recognition threshold, the general recognition result is determined as the recognition result of the to-be-recognized speech, and the recognition threshold is less than or equal to the confidence threshold.

[0070] Among them, the confidence threshold and the recognition threshold can be determined according to the actual situation and are not limited here.

[0071] It can be understood that when the recognition confidence is greater than or equal to the confidence threshold, the contact recognition result is output and the general recognition result is discarded; when the recognition confidence is less than the recognition threshold, the general recognition result is output and the contact recognition result is discarded.

[0072] For example, Figure 2 As shown, it is a schematic diagram of the model structure of the speech recognition method provided in an embodiment of the present application. Among them, the acoustic model corresponds to the above step 101, the general language model corresponds to the above step 102, the general decoder model corresponds to the above step 103, the contact language model corresponds to the above step 104, the contact decoder corresponds to the above step 105, and the recognition arbitration result corresponds to the above steps 106 and 107. The user's contact-related voice requests (the voice to be recognized includes contacts), such as "Call ***", can correctly identify the contacts, and non-contact-related voice requests (that is, the voice to be recognized does not include contacts), such as "Open the car window", can also be correctly recognized.

[0073] In an embodiment of the present application, a contact language model and contact decoder module are added to the existing universal speech recognition solution consisting of an acoustic model, a universal language model, and a universal decoder, running in parallel with the universal language model and universal decoder. This allows the universal decoder to decode the acoustic features obtained from the acoustic model and the universal language features obtained from the universal language model to obtain a universal recognition result. The contact decoder then decodes the acoustic features obtained from the acoustic model and the contact language features obtained from the contact language model to obtain a contact recognition result. The recognition confidence corresponding to the contact recognition result (the product of the acoustic recognition probability corresponding to the contact recognition result and the language model probability) is then determined to be a contact recognition result or a universal recognition result based on the relationship between the confidence threshold and the recognition threshold. In this solution, since the universal language model and universal decoder (referred to as the universal recognition path) are parallel to the contact language model and contact decoder (referred to as the contact recognition path), the two do not affect each other. This allows the contact recognition path to improve the accuracy of speech recognition in contact scenarios without affecting the accuracy of speech recognition in non-contact scenarios by the universal recognition path.

[0074] The confidence threshold and the recognition threshold may be the same or different, and are not limited here.

[0075] When the confidence threshold and the recognition threshold are the same (both denoted as the confidence threshold), steps 106 and 107 are as follows: if the recognition confidence is greater than or equal to the confidence threshold, the contact recognition result is output and the general recognition result is discarded; if the recognition confidence is less than the confidence threshold, the general recognition result is output and the contact recognition result is discarded.

[0076] When the confidence threshold and the recognition threshold are different, and the recognition confidence is greater than or equal to the recognition threshold and less than the confidence threshold, the final recognition result can be determined as a general recognition result or a contact recognition result based on the pinyin similarity between the general recognition result and the contact recognition result.

[0077] In some embodiments of the present application, Figure 1 ,like Figure 3 As shown, the speech recognition method provided in the embodiment of the present application may further include the following steps 108 to 111.

[0078] 108. When the recognition confidence is greater than or equal to the recognition threshold and less than the confidence threshold, convert the contact recognition result into a first pinyin and convert the general recognition result into a second pinyin.

[0079] 109. Determine the phonetic similarity between the first phonetic symbol and the second phonetic symbol.

[0080] 110. When the pinyin similarity is greater than or equal to the similarity threshold, determine the contact recognition result as the recognition result of the speech to be recognized.

[0081] 111. When the pinyin similarity is less than the similarity threshold, determine the general recognition result as the recognition result of the speech to be recognized.

[0082] The similarity threshold can be determined according to actual conditions and is not limited here.

[0083] If the recognition confidence is greater than or equal to the recognition threshold and less than the confidence threshold, the contact recognition result and the general recognition result are compared in pinyin with tones, and the pinyin similarity is calculated. The pinyin similarity calculation formula is: number of identical pinyin characters / number of longer pinyin characters. When the pinyin similarity is greater than or equal to the similarity threshold, the contact recognition result is trusted (i.e., the contact recognition result is determined as the final recognition result); otherwise, the general recognition result is trusted (i.e., the general recognition result is determined as the final recognition result).

[0084] Exemplarily, the recognition confidence is greater than or equal to the recognition threshold and less than the confidence threshold, the similarity threshold is 0.9, the contact recognition result is "Call Zhang Shan", the corresponding pinyin is "da3dian4hua4gei3zhang1shan1", a total of 27 characters, and the general recognition result is "Call Zhang San", the corresponding pinyin is "da3dian4hua4gei3zhang1san1", a total of 26 characters. At this time, the number of characters in the two pinyin results that are the same is 26, and the number of characters in the longer pinyin is 27. The pinyin similarity is the ratio of 26 to 27, and the ratio of 26 to 27 is greater than 0.9, so the contact recognition result is confident.

[0085] In some embodiments of the present application, the contact language model is constructed based on multiple contact decoding graphs, each contact decoding graph is used to indicate multiple contact identification paths, and each contact decoding graph includes a keyword subgraph and a contact subgraph connected in series; the keyword subgraph is used to indicate a keyword related to contact search, and the keyword subgraph includes multiple nodes and lines between any two adjacent nodes, and each line in the keyword subgraph is used to indicate a character in the corresponding keyword; the contact subgraph includes multiple contact branches, each contact branch corresponds to a contact in the contact list, and each contact branch includes multiple nodes and real lines between any two adjacent nodes, and each real line in each contact branch is used to indicate a character in the corresponding contact, the starting nodes of the multiple contact branches are the same node, and the ending nodes of the multiple contact branches are the same node.

[0086] Among them, the keywords related to searching for contacts include: "call", "check number", etc. For example, Figure 4 As shown in (a) in the figure, the contact decoding graph can be "call @CONTACT", where "call" is the keyword subgraph and "@CONTACT" represents the contact subgraph. When receiving a user's request, the request carries the user's contact list. Assuming that the contact list includes: Zhang San, Li Si, and Wang Wu, the contact list is converted into the form of a contact subgraph, such as Figure 4 (b) in FIG2 shows a contact subgraph obtained from the contact list; the contact subgraph is then inserted into the contact decoding graph to form a complete contact decoding graph, as shown in FIG2. Figure 4 As shown in (c) in the figure. Figure 4 The contact decoding graph shown in (c) is used to indicate three contact identification paths: "Call Zhang San", "Call Li Si", and "Call Wang Wu".

[0087] In the embodiments of the present application, the address book list of the user can be obtained through connections such as Bluetooth connection and WiFi connection. Specifically, the local device and the server can both have the ability to recognize the voice to be recognized through the voice recognition method provided in the embodiments of the present application. In actual situations, the server can preferably recognize the voice to be recognized based on the voice recognition method provided in the embodiments of the present application. When the local device does not receive the recognition result returned by the server within the preset duration (such as poor signal quality or server failure), the local device recognizes the voice to be recognized based on the voice recognition method provided in the embodiments of the present application.

[0088] In the embodiments of the present application, combining a keyword related to the contact with the contact list to construct the above-mentioned contact decoding graph has a simple and clear structure, making the contact recognition path clearer, which is beneficial to improving the extraction of contact language features by the contact language model, and is beneficial to the contact decoding graph to decode acoustic features and contact language features, and can improve the recognition speed and recognition accuracy of the contact recognition path.

[0089] In the embodiments of the present application, the accuracy of voice recognition in the contact scenario can be improved by enhancing the weight of each character in the contact subgraph in the contact language model.

[0090] In some embodiments of the present application, each solid connection line corresponds to an enhancement coefficient. When the contact recognition path corresponding to the contact recognition result includes at least one solid connection line in the first contact branch, the language recognition probability is determined based on a first value, and the first value is the product of the enhancement coefficients corresponding to at least one solid connection line in the first contact branch; the enhancement coefficient is greater than 1.

[0091] It can be understood that because the problem of homophone substitution may occur during recognition. For example, the recognition result is "Li Si", while the user's contact is "Li Si", that is, the probability of recognizing "Si" is greater than that of "Si", which may lead to the failure of the final contact recognition or a very low confidence level of the contact recognition result being "Li Si"; for this kind of homophone situation, when constructing the contact subgraph, weights are added to each character of the contact (that is, an enhancement coefficient is set for each solid connection line), so that the probability of each edge in the contact subgraph is greater than 1, that is, the language model is used to increase the probability of "Si", making the probability of "Si" greater than that of "Si", and increasing the contact recognition probability corresponding to "Li Si", then the recognition confidence level corresponding to the final recognition result of the contact recognition result is improved. Using this method to add weights to the contact (that is, regarding each word in the contact list as a hot word and enhancing the weight) can make the contact recognition more accurate and make the boundary between contacts and non-contacts clearer, avoiding the influence on non-contact scenarios.

[0092] In an embodiment of the present application, the accuracy of speech recognition in the contact scenario can be improved by performing speech generalization processing on each contact in the contact subgraph in the contact language model (due to the speech generalization processing on the contact information, one contact information can be transformed into multiple transformed contact information, each transformed contact information is a generalized speech equivalent to the one contact information, and each transformed contact information refers to the one contact information. Therefore, at least two contact identification paths indicated by each contact decoding graph in the multiple contact decoding graphs that perform speech generalization processing on the contact information are used to indicate the one contact information. In this solution, by performing speech generalization processing on each contact in the contact subgraph in the contact language model, the speech recognition in the contact scenario is made more consistent with the actual scenario where users use the generalized speech of the contact (the corresponding speech of the transformed contact information) to search for contacts, and the accuracy of speech recognition in the contact scenario can be improved). For example, if there is a long name such as a job title + a person's name in the contact, only the job title or the person's name in the speech to be recognized can be correctly recognized.

[0093] For example, the contact stored in the contact list is "Yang Feng, Director of the 12th Factory", but when the user searches for a contact, he only says "Yang Feng", omitting part of the contact name stored by the user. This phenomenon is called generalization. In order to adapt to this generalization, we add an edge that can be directly jumped when constructing the contact subgraph (in the following Figures 5 to 7 middle," <eps>" indicates an edge that can jump directly to the next state, that is, an empty link), so that some content in the contact can be omitted; this improves the voice recognition accuracy of the contact scenario.

[0094] In some embodiments of the present application, each contact branch further includes multiple empty links; the two nodes of each empty link are the two nodes of a solid link (i.e., the starting node of each empty link is the starting node of the corresponding solid link, and the ending node of each empty link is the ending node of the corresponding solid link). Each empty link in each contact branch is used to implement a generalization process for a character in the contact indicated by the corresponding solid link. In other words, a generalization process is performed on each character in the contact subgraph.

[0095] Each empty line in each contact branch is used to indicate a blank or a character with a different pinyin from the character indicated by the corresponding solid line.

[0096] It can be understood that in the process of constructing the contact subgraph, we add an empty link for each character to jump to, so that each character in the user's stored contacts can be skipped during the recognition process. Taking "Yang Feng, Director of the 12th Factory" as an example, the contact subgraph it constructs is as follows Figure 5 As shown in the figure, when character-level generalization is used, each character in the user's stored contacts can be skipped. For the contact "Yang Feng, Director of the 12th Factory", contact recognition can support generalized statements such as "Yang Feng" and "Director of the 12th Factory", and also support the generalized statement "Yang Feng, Director of the 10th Factory".

[0097] In the embodiment of the present application, by setting an empty link for each character in the contact subgraph, the expression of each character in the contact is generalized, which can improve the recognition accuracy of the contact subgraph and the speech to be recognized.

[0098] In some embodiments of the present application, each contact branch further includes multiple empty links; the two nodes of each empty link are the starting node of the first of the at least two solid links and the ending node of the last of the at least two solid links (i.e., the starting node of each empty link is the starting node of the first of the at least two solid links, and the ending node of each empty link is the ending node of the last of the at least two solid links); each empty link in each contact branch is used to implement a generalization process for a term in the contact indicated by the corresponding at least two solid links. That is, a generalization process is performed on each term in the contact subgraph.

[0099] Each empty line in each contact branch is used to indicate an empty word or a word with a different pinyin from the words indicated by the corresponding multiple solid lines.

[0100] It can be understood that when a user searches for a long contact, they will definitely mention words that can represent the contact, rather than just a single character or some incoherent characters (not a word). Therefore, when using the word segmentation model of Neuro-Linguistic Programming (NLP) for word segmentation, the construction of the contact subgraph still takes characters as the modeling unit for decoding graph construction, but adds nullable jump edges (empty connections) based on words. For example, for "Factory 12 Director Yang Feng", after word segmentation, we get three words: "Factory 12", "Director", and "Yang Feng". The contact subgraph constructed using these words is as shown in Figure 6 As shown. Using this generalization at the word level, only an entire word can be selectively skipped. Eventually, the contact decoder can only recognize 7 expressions: "Factory 12", "Director", "Yang Feng", "Factory 12 Director", "Factory 12 Yang Feng", "Director Yang Feng", and "Factory 12 Director Yang Feng", avoiding the situation where the expression "Factory 10 Yang Feng" would be supported if each character could be skipped.

[0101] In the embodiments of this application, by setting empty connections for words in the contact subgraph, the generalization of the expressions of words in the contact can be achieved, which can improve the recognition accuracy between the contact subgraph and the speech to be recognized.

[0102] In some embodiments of this application, each empty connection corresponds to a penalty coefficient. The two nodes of each empty connection are the two nodes of a real connection. Each empty connection in each contact branch is used to achieve the generalization processing of an expression of a single character in the contact indicated by the corresponding real connection; or, the two nodes of each empty connection are the starting node of the first real connection and the ending node of the last real connection among at least two real connections; each empty connection in each contact branch is used to achieve the generalization processing of an expression of a single word in the contact indicated by the corresponding at least two real connections; and the penalty coefficient is less than 1.

[0103] It can be understood that because the problem of homophone substitution may occur during recognition. For example, the recognition result is "Li Si", while the user's contact is "Li Si". After adding the jumpable edges, since the probability of recognizing "Si" is not high, it may discard "Si" because the probability of an empty jump is higher than that of "Si", and finally a character loss phenomenon occurs in contact recognition. To avoid this situation, a penalty is set for all empty jump edges to reduce the probability of an empty jump, that is, the probability of an empty jump edge is set to be less than 1 (that is, a penalty coefficient is set for each empty connection, and the penalty coefficient is less than 1), so that the probability of an empty jump is less than the probability of "Si", ensuring the recognition accuracy of speech in the contact scenario.

[0104] In some embodiments of the present application, when at least two contact branches included in the contact subgraph indicate the same contact, the contact subgraph also includes an empty branch, the starting node of the empty branch is the ending node of any contact branch, and the ending node of the empty branch is the starting node of any contact branch; the empty branch is used to implement generalization processing of the order of words in the corresponding contacts.

[0105] It is understandable that after using character-level (or word-level) generalization, the user's stored contacts can be generalized in terms of characters (or words), but it is unable to recognize the reverse order (adjusting the order of words in the contact), such as the contact "Yang Feng, the director of the 12th factory" cannot be recognized as "Yang Feng, the director" in the contact decoder. To address this problem, the contact subgraph construction method is optimized. After obtaining the segmentation results of the contact's name, each segmentation result is constructed in parallel, and the end point is connected to the starting point in the form of an empty jump (i.e., an empty branch). The contact subgraph is as follows: Figure 7 As shown in the figure, "Yang Feng, the director of the 12th factory" can be generalized into three statements according to the word segmentation results: "12th factory", "factory director", and "Yang Feng". After recognizing "Yang Feng" and reaching the end point 3, it can be passed <eps>A null jump directly jumps to starting point 0, allowing the system to continue recognizing titles such as "factory director." This allows the contact decoder to recognize reverse-order combinations such as "factory director Yang Feng," thereby improving the accuracy of voice recognition in contact scenarios.

[0106] In some embodiments of the present application, the empty branch corresponds to a penalty coefficient. When the contact identification path corresponding to the contact identification result also includes the empty branch and a target real line or multiple target real lines in the second contact branch, the language recognition probability is determined based on the product of the first value, the third value and the fourth value; wherein, when the contact identification path corresponding to the contact identification result also includes the target real line, the third value is the enhancement coefficient of the target real line, when the contact identification path corresponding to the contact identification result also includes the multiple target real lines, the third value is the product of the enhancement coefficients corresponding to each target real line in the multiple target real lines, and the fourth value is the penalty coefficient corresponding to the empty branch; the penalty coefficient is less than 1.

[0107] In the embodiment of the present application, in order to solve the problem that an empty branch may lead to inaccurate recognition results, a penalty coefficient is also set for the empty branch, and the penalty coefficient is less than 1, so as to ensure the accuracy of the contact recognition scenario.

[0108] This application makes contact identification independent, constructs a contact decoding graph for contact identification separately, and increases the weight of contacts in the contact subgraph to ensure contact identification without affecting speech recognition in non-contact scenarios; by adding empty jump edges to the contact subgraph and setting empty jump penalties, it ensures the recognition of generalized contact statements.

[0109] In an embodiment of the present application, a contact can be transformed into multiple transformed contacts by performing statement generalization processing on the contact (including at least one of the following: performing statement generalization processing on the characters in the contact; performing statement generalization processing on the words in the contact, and / or performing statement generalization processing on the order of the words in the contact), each transformed contact is a generalized statement equivalent to the one contact, and each transformed contact refers to the one contact. Therefore, the at least two contact identification paths indicated by each contact decoding graph in the multiple contact decoding graphs on which the statement generalization processing is performed are used to indicate the one contact.

[0110] In some embodiments of the present application, in addition to generalizing a contact's statement by adding empty lines and / or empty branches to the contact decoding graph, generalizing a contact's statement can also be achieved by adding multiple solid-line branches to the contact subgraph. Each added solid-line branch indicates a branch equivalent to the contact branch. For example, if the contact is "Factory Director Yang Feng of Factory No. 12," the added solid-line branches may include "Factory No. 12," "Director," "Yang Feng," "Director of Factory No. 12," "Factory Director Yang Feng," "Factory Director Yang Feng," "Factory Director Yang Feng," "Factory Director Yang Feng," and "Factory Director Yang Feng," etc.

[0111] This application also provides a speech recognition device, Figure 8 A schematic diagram of the structure of a speech recognition device provided in this application is shown in FIG. Figure 8 As shown, the speech recognition device includes: a feature recognition module 801, which is used to perform acoustic feature recognition on the speech to be recognized based on the acoustic model to obtain the acoustic features corresponding to the speech to be recognized; perform universal language feature recognition on the speech to be recognized based on the universal language model to obtain the universal language features corresponding to the speech to be recognized; a decoding module 802, which is used to decode the acoustic features and the universal language features based on a universal decoder to obtain a universal recognition result; the feature recognition module 801 is also used to perform contact language feature recognition on the speech to be recognized based on the contact language model to obtain the contact language features corresponding to the speech to be recognized; the decoding module 802 is also used to decode the acoustic features and the contact language features based on the contact decoder to obtain a contact recognition result, as well as a language recognition probability and an acoustic recognition probability corresponding to the contact recognition result; the contact language model is based on keywords related to searching for contacts and the user's contact information. The contact list is generated, the language recognition probability is the product of the language matching probabilities corresponding to each character in the contact recognition result obtained based on the language features of the contact, and the language matching probability is the matching probability of a character in the contact recognition result with the corresponding character in the speech to be recognized; the acoustic recognition probability is the product of the acoustic matching probabilities corresponding to each character in the contact recognition result obtained based on the acoustic features, and the acoustic matching probability is the matching probability of a character in the contact recognition result with the corresponding character in the speech to be recognized; a determination module 803 is used to determine the contact recognition result as the recognition result of the speech to be recognized when the recognition confidence is greater than or equal to the confidence threshold, the recognition confidence being the product of the language recognition probability and the acoustic recognition probability; and when the recognition confidence is less than the recognition threshold, determine the general recognition result as the recognition result of the speech to be recognized, and the recognition threshold being less than or equal to the confidence threshold.

[0112] In some embodiments of the present application, the device also includes: a conversion module, which is used to convert the contact recognition result into a first pinyin and convert the general recognition result into a second pinyin when the recognition confidence is greater than or equal to the recognition threshold and less than the confidence threshold; the determination module 803 is also used to determine the pinyin similarity between the first pinyin and the second pinyin; when the pinyin similarity is greater than or equal to the similarity threshold, determine the contact recognition result as the recognition result of the speech to be recognized; when the pinyin similarity is less than the similarity threshold, determine the general recognition result as the recognition result of the speech to be recognized.

[0113] In some embodiments of the present application, the contact language model is constructed based on multiple contact decoding graphs, each contact decoding graph is used to indicate multiple contact identification paths, and each contact decoding graph includes a keyword subgraph and a contact subgraph connected in series; the keyword subgraph is used to indicate a keyword related to contact search, and the keyword subgraph includes multiple nodes and lines between any two adjacent nodes, and each line in the keyword subgraph is used to indicate a character in the corresponding keyword; the contact subgraph includes multiple contact branches, each contact branch corresponds to a contact in the contact list, and each contact branch includes multiple nodes and real lines between any two adjacent nodes, and each real line in each contact branch is used to indicate a character in the corresponding contact, the starting nodes of the multiple contact branches are the same node, and the ending nodes of the multiple contact branches are the same node.

[0114] In some embodiments of the present application, each solid line corresponds to an enhancement coefficient. When the contact identification path corresponding to the contact identification result includes at least one solid line in the first contact branch, the language recognition probability is determined based on a first value, which is the product of the enhancement coefficients corresponding to at least one solid line in the first contact branch; the enhancement coefficient is greater than 1.

[0115] In some embodiments of the present application, each contact branch also includes multiple empty lines; the two nodes of each empty line are the two nodes of a solid line, and each empty line in each contact branch is used to implement generalization processing of the statement of a character in the contact indicated by the corresponding solid line; or, the two nodes of each empty line are the starting node of the first solid line and the ending node of the last solid line in at least two solid lines; each empty line in each contact branch is used to implement generalization processing of the statement of a word in the contact indicated by the corresponding at least two solid lines.

[0116] In some embodiments of the present application, each empty link corresponds to a penalty coefficient, the two nodes of each empty link are the two nodes of a real link, and each empty link in each contact branch is used to implement generalization processing of the statement of a character in the contact indicated by the corresponding real link; or, the two nodes of each empty link are the starting node of the first real link and the ending node of the last real link in at least two real links; each empty link in each contact branch is used to implement generalization processing of the statement of a word in the contact indicated by the corresponding at least two real links; the penalty coefficient is less than 1.

[0117] In some embodiments of the present application, when at least two contact branches included in the contact subgraph indicate the same contact, the contact subgraph also includes an empty branch, the starting node of the empty branch is the ending node of any contact branch, and the ending node of the empty branch is the starting node of any contact branch; the empty branch is used to implement generalization processing of the order of words in the corresponding contacts.

[0118] In some embodiments of the present application, the empty branch corresponds to a penalty coefficient. When the contact identification path corresponding to the contact identification result also includes the empty branch and a target real line or multiple target real lines in the second contact branch, the language recognition probability is determined based on the product of the first value, the third value and the fourth value; wherein, when the contact identification path corresponding to the contact identification result also includes the target real line, the third value is the enhancement coefficient of the target real line, when the contact identification path corresponding to the contact identification result also includes the multiple target real lines, the third value is the product of the enhancement coefficients corresponding to each target real line in the multiple target real lines, and the fourth value is the penalty coefficient corresponding to the empty branch; the penalty coefficient is less than 1.

[0119] It should be noted that the above-mentioned speech recognition device can be the electronic device in the above-mentioned method embodiment of this application, or it can be a functional module and / or functional entity in the electronic device that can realize the functions of the device embodiment, and the embodiment of this application does not limit it.

[0120] In the embodiment of the present application, each module can implement the speech recognition method provided by the above method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0121] Figure 9 The structural diagram of an electronic device provided in an embodiment of the present application is used to exemplify an electronic device that implements any speech recognition method in an embodiment of the present application and should not be understood as a specific limitation on the embodiments of the present application.

[0122] like Figure 9 As shown, the electronic device 900 may include a processor (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 into a random access memory (RAM) 903. Various programs and data required for the operation of the electronic device 900 are also stored in the RAM 903. The processor 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0123] Typically, the following devices may be connected to the I / O interface 905: an input device 906 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 908 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 909. The communication device 909 may allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although the electronic device 900 is shown as having various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.

[0124] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 909, or installed from the storage device 908, or installed from the ROM 902. When the computer program is executed by the processor 901, the functions defined in any speech recognition method provided in the embodiment of the present application can be executed.

[0125] It should be noted that the computer-readable medium mentioned above in this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, 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 above. In this application, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0126] In some embodiments, the client and server can communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with 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"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0127] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0128] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: performs acoustic feature recognition on the speech to be recognized based on the acoustic model to obtain the acoustic features corresponding to the speech to be recognized; performs universal language feature recognition on the speech to be recognized based on the universal language model to obtain the universal language features corresponding to the speech to be recognized; decodes the acoustic features and the universal language features based on the universal decoder to obtain a universal recognition result; performs contact language feature recognition on the speech to be recognized based on the contact language model to obtain the contact language features corresponding to the speech to be recognized; decodes the acoustic features and the contact language features based on the contact decoder to obtain a contact recognition result, as well as the language recognition probability and acoustic recognition probability corresponding to the contact recognition result; the contact language model is based on keywords related to contact search and the user's contact information. The contact recognition result is generated by a person list, the language recognition probability is the product of the language matching probabilities corresponding to each character in the contact recognition result obtained based on the language features of the contact, and the language matching probability is the matching probability of a character in the contact recognition result and the corresponding character in the speech to be recognized; the acoustic recognition probability is the product of the acoustic matching probabilities corresponding to each character in the contact recognition result obtained based on the acoustic features, and the acoustic matching probability is the matching probability of a character in the contact recognition result and the corresponding character in the speech to be recognized; when the recognition confidence is greater than or equal to the confidence threshold, the contact recognition result is determined as the recognition result of the speech to be recognized, and the recognition confidence is the product of the language recognition probability and the acoustic recognition probability; when the recognition confidence is less than the recognition threshold, the general recognition result is determined as the recognition result of the speech to be recognized, and the recognition threshold is less than or equal to the confidence threshold.

[0129] In an embodiment of the present application, a computer program code for performing the operation of the present application can be written in one or more programming languages ​​or a combination thereof, and the above-mentioned programming languages ​​include but are not limited to object-oriented programming languages, such as Java, Smalltalk, C++, and also include conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the computer, partially on the computer, as an independent software package, partially on the computer and partially on a remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0130] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.

[0131] The units involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of a unit does not, in some cases, constitute a limitation on the unit itself.

[0132] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0133] In the context of the present application, computer-readable medium can be a tangible medium that can contain or store a program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. Computer-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. More specific examples of computer-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0134] An embodiment of the present application further provides a vehicle, comprising: the above-mentioned speech recognition device, or the above-mentioned electronic device, or the above-mentioned computer-readable storage medium.

[0135] The above description is merely a preferred embodiment of the present application and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this application is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but also encompasses other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this application.

[0136] In addition, although adopting specific order to describe each operation, this should not be interpreted as requiring these operations to be executed in the specific order shown or in sequential order.Under certain environment, multitasking and parallel processing may be advantageous.Similarly, although comprising some specific implementation details in the above discussion, these should not be interpreted as limiting the scope of the application.Some features described in the context of separate embodiment can also be implemented in a single embodiment in combination.On the contrary, the various features described in the context of a single embodiment also can be implemented in multiple embodiments individually or in the mode of any suitable subcombination.

[0137] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.< / eps> < / eps>

Claims

1. A speech recognition method, characterized in that: The method comprises: Performing acoustic feature recognition on the speech to be recognized based on the acoustic model to obtain acoustic features corresponding to the speech to be recognized; Performing universal language feature recognition on the speech to be recognized based on a universal language model to obtain universal language features corresponding to the speech to be recognized; Decoding the acoustic features and the universal language features based on a universal decoder to obtain a universal recognition result; Performing contact language feature recognition on the speech to be recognized based on the contact language model to obtain the contact language feature corresponding to the speech to be recognized; Decoding the acoustic features and the contact language features based on a contact decoder to obtain a contact recognition result, as well as a language recognition probability and an acoustic recognition probability corresponding to the contact recognition result; the contact language model is generated based on keywords related to contact search and a contact list of a user, the language recognition probability is determined based on the product of language matching probabilities corresponding to each character in the contact recognition result, one of the language matching probabilities being the matching probability between a character in the contact recognition result obtained based on the contact language features and a corresponding character in the speech to be recognized; the acoustic recognition probability is determined based on the product of acoustic matching probabilities corresponding to each character in the contact recognition result, one of the acoustic matching probabilities being the matching probability between a character in the contact recognition result obtained based on the acoustic features and a corresponding character in the speech to be recognized; In the case where the recognition confidence is greater than or equal to the confidence threshold, determining the contact recognition result as the recognition result of the speech to be recognized, wherein the recognition confidence is the product of the language recognition probability and the acoustic recognition probability; In the case that the recognition confidence is less than a recognition threshold, the general recognition result is determined as the recognition result of the speech to be recognized, and the recognition threshold is less than or equal to the confidence threshold.

2. The method according to claim 1, characterized in that The method further comprises: When the recognition confidence is greater than or equal to the recognition threshold and less than the confidence threshold, converting the contact recognition result into a first pinyin and converting the general recognition result into a second pinyin; Determining the phonetic similarity between the first phonetic symbol and the second phonetic symbol; When the pinyin similarity is greater than or equal to the similarity threshold, determining the contact recognition result as the recognition result of the speech to be recognized; When the pinyin similarity is less than the similarity threshold, the general recognition result is determined as the recognition result of the speech to be recognized.

3. The method according to claim 1 or 2, characterized in that: The contact language model is constructed based on a plurality of contact decoding graphs, each contact decoding graph is used to indicate a plurality of contact identification paths, and each contact decoding graph includes a concatenated keyword subgraph and a contact subgraph; The keyword subgraph is used to indicate a keyword related to contact search, the keyword subgraph includes a plurality of nodes and lines between any two adjacent nodes, and each line in the keyword subgraph is used to indicate a character in the corresponding keyword; The contact subgraph includes multiple contact branches, each contact branch corresponds to a contact in the contact list, each contact branch includes multiple nodes and solid lines between any two adjacent nodes, each solid line in each contact branch is used to indicate a character in the corresponding contact, the starting nodes of the multiple contact branches are the same node, and the ending nodes of the multiple contact branches are the same node.

4. The method according to claim 3, characterized in that Each of the solid lines corresponds to an enhancement coefficient, and when the contact identification path corresponding to the contact identification result includes at least one solid line in the first contact branch, the language recognition probability is determined based on a first value, and the first value is the product of the enhancement coefficients corresponding to the at least one solid line in the first contact branch; The enhancement factor is greater than 1.

5. The method according to claim 4, characterized in that Each contact branch also includes a plurality of empty lines; The two nodes of each empty line are the two nodes of a solid line, and each empty line in each contact branch is used to implement the generalization processing of a character in the contact indicated by the corresponding solid line; or, The two nodes of each empty link are the starting node of the first solid link and the ending node of the last solid link among the at least two solid links; each empty link in each contact branch is used to implement the generalization processing of a word in the contact indicated by the corresponding at least two solid links.

6. The method according to claim 5, characterized in that Each empty link corresponds to a penalty coefficient, and when the contact identification path corresponding to the contact identification result includes one target empty link or multiple target empty links in the first contact branch, the language recognition probability is determined based on the product of the first value and the second value; Among them, when the contact identification path corresponding to the contact identification result includes the one target empty line, the second value is the penalty coefficient corresponding to the one target empty line; when the contact identification path corresponding to the contact identification result includes multiple target empty lines, the second value is the product of the penalty coefficients corresponding to each of the multiple target empty lines; the penalty coefficient is less than 1.

7. The method according to claim 4, characterized in that In the case where at least two contact branches included in the contact subgraph indicate the same contact, the contact subgraph also includes an empty branch, the starting node of the empty branch is the ending node of any contact branch, and the ending node of the empty branch is the starting node of any contact branch; the empty branch is used to implement generalization processing of the order of words in the corresponding contact.

8. The method according to claim 7, characterized in that The empty branch corresponds to a penalty coefficient, and when the contact identification path corresponding to the contact identification result further includes the empty branch and one or more target real lines in the second contact branch, the language recognition probability is determined based on the product of the first value, the third value and the fourth value; Among them, when the contact identification path corresponding to the contact identification result also includes the target real line, the third value is the enhancement coefficient of the target real line; when the contact identification path corresponding to the contact identification result also includes the multiple target real lines, the third value is the product of the enhancement coefficients corresponding to each of the multiple target real lines, and the fourth value is the penalty coefficient corresponding to the empty branch; the penalty coefficient is less than 1.

9. A speech recognition device, characterized in that: include: A feature recognition module, used to perform acoustic feature recognition on the speech to be recognized based on the acoustic model to obtain the acoustic features corresponding to the speech to be recognized; Performing universal language feature recognition on the speech to be recognized based on a universal language model to obtain universal language features corresponding to the speech to be recognized; A decoding module, used for decoding the acoustic features and the universal language features based on a universal decoder to obtain a universal recognition result; The feature recognition module is further used to perform contact language feature recognition on the speech to be recognized based on the contact language model to obtain the contact language feature corresponding to the speech to be recognized; The decoding module is further used to decode the acoustic features and the contact language features based on the contact decoder to obtain a contact recognition result, and a language recognition probability and an acoustic recognition probability corresponding to the contact recognition result; The contact language model is generated based on keywords related to contact search and the user's contact list, the language recognition probability is determined based on the product of language matching probabilities corresponding to each character in the contact recognition result, one of the language matching probabilities being the matching probability between a character in the contact recognition result obtained based on the contact language feature and the corresponding character in the speech to be recognized; the acoustic recognition probability is determined based on the product of acoustic matching probabilities corresponding to each character in the contact recognition result, one of the acoustic matching probabilities being the matching probability between a character in the contact recognition result obtained based on the acoustic feature and the corresponding character in the speech to be recognized; a determination module, configured to determine the contact recognition result as the recognition result of the to-be-recognized speech when the recognition confidence is greater than or equal to a confidence threshold, wherein the recognition confidence is the product of the language recognition probability and the acoustic recognition probability; In the case that the recognition confidence is less than a recognition threshold, the general recognition result is determined as the recognition result of the speech to be recognized, and the recognition threshold is less than or equal to the confidence threshold.

10. An electronic device, characterized in that: include: A processor, wherein the processor is used to execute a computer program stored in a memory, wherein the computer program, when executed by the processor, implements the steps of the speech recognition method according to any one of claims 1 to 8.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the speech recognition method according to any one of claims 1 to 8 are implemented.

12. A vehicle, characterized in that: include: The speech recognition device as claimed in claim 9, or the electronic device as claimed in claim 10, or comprising the computer-readable storage medium as claimed in claim 11.