Speech recognition method and apparatus, electronic device, storage medium, and vehicle
By combining the parallel contact language model and decoder with the general language model and decoder, the accuracy of speech recognition in contact scenarios is independently improved, solving the problem in the existing technology that contact recognition affects non-contact scenarios, and achieving Accurate identification of contact scenarios.
Patent Information
- Application Number
- PCT/CN2024/081172
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-13
- Filing Date
- 2024-03-12
- Publication Date
- 2024-09-19
AI Technical Summary
When existing speech recognition technology improves the accuracy of contact recognition, it easily affects the accuracy of speech recognition in non-contact scenarios, and the post-pinyin matching strategy relies on universal recognition results, resulting in contact recognition errors.
Using a parallel contact language model and contact decoder and a universal language model and universal decoder, through parallel decoding of acoustic features and language features, combined with recognition confidence and pinyin similarity, the recognition results are determined, and the accuracy of the contact scene is independently improved. Recognition accuracy without affecting non-contact scenarios.
Without affecting the accuracy of speech recognition in non-contact scenes, the accuracy of speech recognition in contact scenes is improved. The accuracy of the recognition results is ensured through the independent construction of contact language models and decoders and pinyin similarity judgment.
Smart Images

Figure CN2024081172_19092024_PF_FP_ABST
Abstract
Description
Voice recognition method, device, electronic device, storage medium and vehicle
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 13, 2023, with application number 202310266253.2 and application name “Speech Recognition Method, Device, Electronic Device, Storage Medium and Vehicle”, and claims priority to the Chinese patent application filed with the China Patent Office on March 13, 2023, with application number 202310260666.X and application name “Speech Recognition Method, Device, Electronic Device, Storage Medium and Vehicle”, all of which are incorporated by reference into the application. Technical Field
[0002] 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
[0003] 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.
[0004] 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.
[0005] 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.
[0006] Summary of the Invention
[0007] 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.
[0008] 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.
[0009] 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.
[0010] 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.
[0011] 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.
[0012] 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.
[0013] 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.
[0014] 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.
[0015] 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.
[0016] In the second aspect, the present application provides a speech recognition method, including: performing acoustic feature recognition on the speech to be recognized based on an acoustic model to obtain acoustic features corresponding to the speech to be recognized; 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, the contact language model is constructed based on multiple contact decoding graphs for generalizing the speech of contact information, each contact decoding graph is generated based on keywords related to contact search and the user's contact list, and each contact decoding graph is used to indicate multiple contact identification paths; decoding the acoustic features and the contact language features based on a contact decoder to obtain a contact identification result; and outputting the contact identification result.
[0017] In some embodiments of the present application, 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, 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, each contact branch includes multiple nodes and real lines between any two adjacent nodes, 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.
[0018] In some embodiments of the present application, the contact recognition result is the one with the highest recognition probability among multiple candidate recognition results corresponding to the acoustic features and the contact language features, and the recognition probability is the product of the acoustic recognition probability and the language recognition probability; the language recognition probability is determined based on the product of the language matching probabilities corresponding to each character in the contact recognition result, and one of the language matching probabilities is the matching probability of a character in the contact recognition result obtained based on the contact language features and the corresponding character in the speech to be recognized; the acoustic recognition probability is determined based on the product of the acoustic matching probabilities corresponding to each character in the contact recognition result, and one of the acoustic matching probabilities is the matching probability of a character in the contact recognition result obtained based on the acoustic features and the corresponding character in the speech to be recognized; each solid line corresponds to an enhancement coefficient, and when the contact recognition path corresponding to the contact recognition 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 at least one solid line in the first contact branch; the enhancement coefficient is greater than 1.
[0019] 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.
[0020] In some embodiments of the present application, each empty link corresponds to a penalty coefficient. 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; wherein, when the contact identification path corresponding to the contact identification result includes the one target empty link, the second value is the penalty coefficient corresponding to the one target empty link, and when the contact identification path corresponding to the contact identification result includes multiple target empty links, the second value is the product of the penalty coefficients corresponding to each target empty link in the multiple target empty links; the penalty coefficient is less than 1.
[0021] 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 generalized processing of the order of words in the corresponding contacts.
[0022] 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.
[0023] In some embodiments of the present application, before 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, the method also includes: performing general language feature recognition on the speech to be recognized based on a universal language model to obtain the universal language feature 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; determining whether the universal speech recognition result is related to a contact based on a binary classification algorithm; 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 includes: when it is determined that the general speech recognition result is related to a contact, performing contact language feature recognition on the speech to be recognized based on the contact language model to obtain the contact language feature.
[0024] In some embodiments of the present application, after determining whether the general voice recognition result is related to the contact based on the binary classification algorithm, the method further includes: outputting the general voice recognition result if it is determined that the general voice recognition result is not related to the contact.
[0025] In a third 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.
[0026] In a fourth aspect, an embodiment of the present application provides a speech recognition device, comprising: a feature recognition module, configured to perform acoustic feature recognition on a speech to be recognized based on an acoustic model, and obtain acoustic features corresponding to the speech to be recognized; perform contact language feature recognition on the speech to be recognized based on a contact language model, and obtain contact language features corresponding to the speech to be recognized, wherein the contact language model is constructed based on multiple contact decoding graphs for generalizing the speech of contact information, and each contact decoding graph is generated based on keywords related to contact search and the user's contact list; a decoding module, configured to decode the acoustic features and the contact language features based on a contact decoder, and obtain a contact recognition result; and an output module, configured to output the contact recognition result.
[0027] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising: a processor, wherein the processor is used to execute a computer program stored in a memory, and when the computer program is executed by the processor, the steps of any one of the speech recognition methods provided in the first aspect or the second aspect are implemented.
[0028] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any one of the speech recognition methods provided in the first aspect or the second aspect are implemented.
[0029] In a seventh aspect, an embodiment of the present application provides a vehicle, comprising: a speech recognition device as described in the third aspect or the fourth aspect, or an electronic device as described in the fifth aspect, or a computer-readable storage medium as described in the sixth aspect.
[0030] In an eighth 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 or the second aspect.
[0031] In the ninth 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 or the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] 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.
[0033] 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.
[0034] FIG1 is a flow chart of a speech recognition method provided by the present application;
[0035] FIG2 is a schematic diagram of a model structure of a speech recognition method provided by this application;
[0036] FIG3 is a flow chart of another speech recognition method provided by the present application;
[0037] FIG4 is a schematic diagram of the structure of a contact decoding diagram of a speech recognition method provided by the present application;
[0038] FIG5 is a schematic diagram of the structure of a contact subgraph of a speech recognition method provided by this application;
[0039] FIG6 is a schematic diagram of the structure of a contact subgraph of another speech recognition method provided by the present application;
[0040] FIG7 is a schematic diagram of the structure of a contact subgraph of another speech recognition method provided by the present application;
[0041] FIG8 is a flow chart of a speech recognition method provided by the present application;
[0042] FIG9 is a schematic diagram of a model structure of a speech recognition method provided by this application;
[0043] FIG10 is a flow chart of a speech recognition method provided by the present application;
[0044] FIG11 is a flow chart of a speech recognition method provided by the present application;
[0045] FIG12 is a schematic diagram of a model structure of a speech recognition method provided by this application;
[0046] FIG13 is a schematic structural diagram of a speech recognition device provided by the present application;
[0047] FIG14 is a schematic structural diagram of a speech recognition device provided by the present application;
[0048] FIG15 is a schematic diagram of the hardware structure of an electronic device provided in this application. DETAILED DESCRIPTION
[0049] 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.
[0050] 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.
[0051] 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.
[0052] 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.
[0053] 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.
[0054] 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.
[0055] The present application is applied to the speech 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 method can be determined according to the actual situation and is not limited here. 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 a functional module or functional entity in the electronic device or vehicle that can implement the speech recognition method. The specific method can be determined according to the actual situation and is not limited here. The following is a detailed explanation of the technical solution of the present application through several specific embodiments.
[0056] FIG1 is a flow chart of a speech recognition method provided by the present application. As shown in FIG1 , the speech recognition method may include the following steps 101 to 107:
[0057] 101. Perform 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.
[0058] The acoustic feature is specifically an acoustic feature probability matrix, which includes a probability vector corresponding to each character in the speech to be recognized, and each element in the probability vector corresponding to a character is a matching probability value between a candidate character and the character.
[0059] 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 that one character. 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 of each of the 8000 characters with "今", the probability vector corresponding to the first "天" is the matching probability value of each of the 8000 characters with "天", the probability vector corresponding to the second "天" is the matching probability value of each of the 8000 characters with "天", the probability vector corresponding to "气" is the matching probability value of each of the 8000 characters with "气", the probability vector corresponding to "怎" is the matching probability value of each of the 8000 characters with "怎", the probability vector corresponding to "么" is the matching probability value of each of the 8000 characters with "么", and the probability vector corresponding to "样" is the matching probability value of each of the 8000 characters with "样".
[0060] 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.
[0061] 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.
[0062] Among them, the general language features are specifically a general language probability matrix. The general language probability matrix includes the probability vector corresponding to each character in the speech to be recognized. Each element in the probability vector corresponding to one character is the matching probability value of a candidate character with that one character. For specific descriptions, reference can be made to the relevant descriptions of the acoustic feature probability matrix above, which will not be elaborated here.
[0063] Among them, the character library corresponding to the acoustic model and the character library corresponding to the general language model can be the same or different, which 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.
[0064] 103. Decode the acoustic features and the general language features based on a general decoder to obtain a general recognition result.
[0065] 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.
[0066] 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.
[0067] 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.
[0068] 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.
[0069] 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.
[0070] 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.
[0071] Among them, the contact language model is generated based on keywords related to contact search 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 obtained based on the contact language features, 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.
[0072] Exemplarily, the voice to be recognized 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", "phone", "to", "Li", and "Si" in the contact recognition result ("Call Li Si") based on the language features of the contact. Among them, the language matching probability of the character "Call" is the matching probability of the character "Call" in the contact recognition result ("Call Li Si") and the corresponding character "Call" in the voice to be recognized ("Call Li Si?"); the language matching probability of the character "Si" is the matching probability of the character "Si" in the contact recognition result ("Call Li Si") and the corresponding character "Si" in the voice to be recognized ("Call Li Si?").
[0073] The acoustic recognition probability can be referred to the above example of the language recognition probability, which will not be elaborated here.
[0074] 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.
[0075] 106. 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 voice to be recognized.
[0076] Among them, the recognition confidence is the product of the language recognition probability and the acoustic recognition probability.
[0077] 107. When the recognition confidence is less than the recognition threshold, the general recognition result is determined as the recognition result of the voice to be recognized, and the recognition threshold is less than or equal to the confidence threshold.
[0078] Among them, the confidence threshold and the recognition threshold can be determined according to the actual situation and are not limited here. 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.
[0079] For example, as shown in FIG2 , a schematic diagram of the model structure of the speech recognition method provided in an embodiment of the present application is provided. 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. For the user's contact-related voice request (the voice to be recognized includes the contact), such as "Call ***", the contact can be correctly identified, and non-contact-related voice requests (that is, the voice to be recognized does not include the contact), such as "Open the car window", can also be correctly recognized.
[0080] 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.
[0081] The confidence threshold and the recognition threshold may or may not be the same, and this is not limited here. When the confidence threshold and the recognition threshold are the same (both denoted as the confidence threshold), steps 106 and 107 specifically include outputting the contact recognition result and discarding the general recognition result if the recognition confidence is greater than or equal to the confidence threshold; and outputting the general recognition result and discarding the contact recognition result if the recognition confidence is less than the confidence threshold.
[0082] 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.
[0083] In some embodiments of the present application, in combination with FIG1 , as shown in FIG3 , the speech recognition method provided in the embodiment of the present application may further include the following steps 108 to 111 .
[0084] 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.
[0085] 109. Determine the phonetic similarity between the first phonetic symbol and the second phonetic symbol.
[0086] 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.
[0087] 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.
[0088] The similarity threshold can be determined based on actual circumstances and is not limited here. If the recognition confidence is greater than or equal to the recognition threshold and less than the confidence threshold, the contact recognition result is compared with the general recognition result in a toned pinyin comparison and the pinyin similarity is calculated. The pinyin similarity calculation formula is: number of identical pinyin characters / number of longer pinyin characters. If 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).
[0089] 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 identical characters in the two pinyin results 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.
[0090] 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.
[0091] Among them, keywords related to contact search include "call" and "check number". For example, as shown in Figure 4 (a), the contact decoding graph can be "call @CONTACT", where "call" is a keyword subgraph and "@CONTACT" represents a contact subgraph. When a user's request is received, the request contains the user's contact list. Assuming that the contact list includes: Zhang San, Li Si, and Wang Wu, the contact list is converted into a contact subgraph. As shown in Figure 4 (b), the contact subgraph obtained based on the contact list is shown; this contact subgraph is then inserted into the contact decoding graph to form a complete contact decoding graph, as shown in Figure 4 (c). The corresponding contact decoding graph shown in Figure 4 (c) is used to indicate the three contact identification paths of "call Zhang San", "call Li Si", and "call Wang Wu".
[0092] In an embodiment of the present application, the user's address book list can be obtained through Bluetooth connection, WiFi connection, etc. 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 embodiment of the present application. In actual situations, the server can prioritize recognizing the voice to be recognized based on the voice recognition method provided in the embodiment of the present application. If the local device does not receive the recognition result returned by the server within a preset time period (poor signal quality or server failure, etc.), the local device recognizes the voice to be recognized based on the voice recognition method provided in the embodiment of the present application.
[0093] In the embodiments of the present application, combining a keyword related to a contact with a 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 decoding acoustic features and contact language features, and can improve the recognition speed and recognition accuracy of the contact recognition path.
[0094] In the embodiments of the present application, the accuracy of speech recognition in the contact scenario can be improved by enhancing the weight of each character in the contact subgraph in the contact language model.
[0095] 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.
[0096] It can be understood that because there may be a problem of homophone substitution 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 the confidence level of the contact recognition result of "Li Si" being very low; for this 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", make the probability of "Si" greater than that of "Si", and improve the contact recognition probability corresponding to "Li Si", then the recognition confidence level corresponding to "Li Si" is also improved, and finally the recognition confidence level of the contact recognition result is obtained. After 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), the contact recognition can be made more accurate, and the boundary between contacts and non-contacts can be made clearer, avoiding the influence on non-contact scenarios.
[0097] 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.
[0098] 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 of terms. To adapt to this generalization of terms, we add an edge that can be directly jumped when constructing the contact subgraph (in the following Figures 5 to 7, " <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.
[0099] 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.
[0100] Each empty link in each contact branch indicates a null character or a character with a different pinyin than the one indicated by the corresponding solid link. As can be understood, in the process of constructing the contact subgraph, we add an empty link for each character to which we can jump, so that every 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 resulting contact subgraph is shown in Figure 5. When using character-level generalization, every character in the user's stored contacts can be skipped. Therefore, 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," as well as "Yang Feng, Director of the 10th Factory."
[0101] 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.
[0102] 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.
[0103] 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.
[0104] It can be understood that when a user searches for a long contact, they will surely mention words that can represent the contact, rather than just a single character or some incoherent characters (not a word). Therefore, when using the Neuro-Linguistic Programming (NLP) word segmentation model for word segmentation, when constructing the contact subgraph, the character is still used as the modeling unit to construct the decoding graph, but words are used as the unit to add nullable jump edges (empty connections). For example, for "Factory Director Yang Feng of the 12th Factory", after word segmentation, we get three words: "12th Factory", "Factory Director", and "Yang Feng". The contact subgraph constructed using them is shown in Figure 6. Using this generalization at the word level, only an entire word can be skipped selectively. Eventually, the contact decoder can only recognize 7 expressions: "12th Factory", "Factory Director", "Yang Feng", "Factory Director of the 12th Factory", "Yang Feng of the 12th Factory", "Factory Director Yang Feng", and "Factory Director Yang Feng of the 12th Factory", avoiding the situation where the expression "Yang Feng of the 10th Factory" would be supported if each character could be skipped.
[0105] In the embodiments of the present application, by setting empty connections for the words in the contact subgraph, the generalization of the expressions of the words in the contact can be achieved, which can improve the recognition accuracy between the contact subgraph and the speech to be recognized.
[0106] In some embodiments of the present 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.
[0107] 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, because the probability of recognizing "Si" is not high, it may discard "Si" because the probability of the empty jump is higher than the probability of "Si", and finally a character loss phenomenon occurs in the contact recognition. To avoid this situation, a penalty is set for all empty jump edges to reduce the probability of empty jumps, that is, the probability of the 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 the empty jump is less than the probability of "Si", ensuring the recognition accuracy of the speech in the contact scenario.
[0108] 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.
[0109] It can be understood that after using character-level (or word-level) generalization, the user's stored contacts can be generalized in terms of characters (or words), but the reverse order (adjusting the order of words in the contact) cannot be recognized. For example, the contact "Yang Feng, Director of the 12th Factory" cannot be recognized as "Director Yang Feng" in the contact decoder. To address this problem, the contact subgraph construction method is optimized. After obtaining the word segmentation results of the contact's name, each word 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 shown in Figure 7. "Yang Feng, Director of the 12th Factory" can be generalized into three statements "12th Factory", "Director", and "Yang Feng" according to the word segmentation results. After recognizing "Yang Feng" and reaching the end point 3, it can be generalized through <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.
[0110] 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.
[0111] 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.
[0112] 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.
[0113] 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, so that 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.
[0114] 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.
[0115] An embodiment of the present application provides a speech recognition method, which performs 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; performs 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, wherein the contact language model is constructed based on multiple contact decoding graphs that perform speech generalization processing on contact information, each contact decoding graph is generated based on keywords related to contact search and a user's contact list, and each contact decoding graph is used to indicate multiple contact recognition paths; decodes the acoustic features and the contact language features based on a contact decoder to obtain a contact recognition result; and outputs the contact recognition result. Since the contact information is generalized in terms of terms, one contact information can be transformed into multiple transformed contact information, each transformed contact information is a generalized term 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 generalize the terms of the contact information are used to indicate the one contact information. In this solution, a contact language model is constructed based on the multiple contact decoding graphs that generalize the terms of the contact information, so that the voice recognition of the contact scenario is more in line with the actual scenario where users use the generalized terms of the contacts (the terms of the corresponding transformed contact information) to search for contacts, which can improve the accuracy of voice recognition in the contact scenario.
[0116] The technical solution of this application is explained in detail below through several specific embodiments.
[0117] FIG8 is a flow chart of a speech recognition method provided by the present application. As shown in FIG8 , the speech recognition method may include the following steps 201 to 204:
[0118] 201. Perform 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.
[0119] Among them, the acoustic feature is specifically an acoustic feature 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 is a matching probability value between a candidate character and this character.
[0120] 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 this 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 "样".
[0121] 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.
[0122] 202. 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.
[0123] Among them, the contact language model is constructed based on multiple contact decoding graphs obtained by performing generalization processing on contact information. Each contact decoding graph is generated based on keywords related to finding contacts and the user's contact list, and each contact decoding graph is used to indicate multiple contact recognition paths.
[0124] Among them, 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 is a matching probability value between a candidate character and this character. For specific descriptions, reference can be made to the relevant descriptions of the acoustic feature probability matrix above, which will not be elaborated here.
[0125] 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.
[0126] The contact information is generalized, that is, the contact is segmented to obtain multiple contact segments, and then the multiple contact segments are combined to obtain multiple generalized segments indicating the contact.
[0127] For example, the generalized statements corresponding to the contact person "Yang Feng, director of the 12th Factory" include: "12th Factory", "factory director", "Yang Feng", "factory director of the 12th Factory", "Yang Feng of the 12th Factory", "factory director Yang Feng", "factory director Yang Feng", "Yang Feng, the 12th Factory", and "factory director of the 12th Factory".
[0128] 203. Decode the acoustic feature and the contact language feature based on a contact decoder to obtain a contact recognition result.
[0129] 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.
[0130] Among them, 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 by the product of the language matching probabilities corresponding to each character in the contact recognition result, and the language matching probability is the matching probability of 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 by the product of the acoustic matching probabilities corresponding to each character in the contact recognition result, and the acoustic matching probability is the matching probability of a character in the contact recognition result obtained based on the acoustic feature and the corresponding character in the speech to be recognized.
[0131] Exemplarily, the voice to be recognized 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", "Telephone", "Speak", "Give", "Li", and "Si" in the contact recognition result ("Call Li Si") based on the language features of the contact. Among them, the language matching probability of the character "Call" is the matching probability of the character "Call" in the contact recognition result ("Call Li Si") and the corresponding character "Call" in the voice to be recognized ("Call Li Si?"); the language matching probability of the character "Si" is the matching probability of the character "Si" in the contact recognition result ("Call Li Si") and the corresponding character "Si" in the voice to be recognized ("Call Li Si?").
[0132] For the acoustic recognition probability, it can refer to the above example of the language recognition probability and will not be elaborated here.
[0133] 204. Output the contact recognition result.
[0134] Exemplarily, as shown in FIG. 9, it is a schematic diagram of the model structure of the voice recognition method provided by the embodiment of the present application. Among them, the acoustic model corresponds to the above step 201, the contact language model corresponds to the above step 202, and the contact decoder corresponds to the above steps 203 and 204. For the user's contact-related voice request (the voice to be recognized includes a contact), such as "Call ***", the contact can be correctly recognized.
[0135] In the embodiment of the present application, since the generalization processing of the contact information is performed, a contact information can be transformed into multiple transformed contact information. Each transformed contact information is a generalized statement equivalent to the one contact information, and each transformed contact information refers to the one contact information. Therefore, at least two contact recognition paths indicated by each contact decoding graph in the multiple contact decoding graphs for the generalization processing of the contact information are used to indicate the one contact information. Furthermore, in this solution, by constructing a contact language model based on the multiple contact decoding graphs for the generalization processing of the contact information, the voice recognition in the contact scenario can be made more in line with the scenario where the user uses the generalized statement (the statement of the corresponding transformed contact information) of the contact to search for the contact in reality, and the accuracy of the voice recognition in the contact scenario can be improved.
[0136] In some embodiments of the present application, 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, 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, each contact branch includes multiple nodes and real lines between any two adjacent nodes, 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.
[0137] Keywords related to contact search include "call" and "look up number." For example, as shown in Figure 4 (a), the contact decoding graph can be "call @CONTACT," where "call" is a keyword subgraph and "@CONTACT" represents a contact subgraph. Upon receiving a user request, the request includes the user's contact list. Assuming the contact list includes Zhang San, Li Si, and Wang Wu, the contact list is converted into a contact subgraph. Figure 4 (b) shows the contact subgraph derived from the contact list. This contact subgraph is then inserted into the contact decoding graph, forming a complete contact decoding graph, as shown in Figure 4 (c). The corresponding contact decoding graph, shown in Figure 4 (c), indicates the three contact identification paths: "call Zhang San," "call Li Si," and "call Wang Wu."
[0138] In an embodiment of the present application, the user's address book list can be obtained through Bluetooth connection, WiFi connection, etc. 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 embodiment of the present application. In actual situations, the server can prioritize recognizing the voice to be recognized based on the voice recognition method provided in the embodiment of the present application. If the local device does not receive the recognition result returned by the server within a preset time period (poor signal quality or server failure, etc.), the local device recognizes the voice to be recognized based on the voice recognition method provided in the embodiment of the present application.
[0139] In an embodiment of the present application, a contact-related keyword and a contact list are combined to construct the contact decoding graph, which has a simple and clear structure, making the contact identification path clearer and more understandable, which is conducive to improving the extraction of contact language features by the contact language model, and facilitating the contact decoding graph to decode acoustic features and contact language features, thereby improving the recognition speed and accuracy of the contact identification path.
[0140] In an embodiment of the present application, the accuracy of speech recognition in the contact scenario can be improved by enhancing the weight of each character in the contact sub-graph in the contact language model.
[0141] In some embodiments of the present application, the contact recognition result is the one with the highest recognition probability among multiple candidate recognition results corresponding to the acoustic feature and the contact language feature, and the recognition probability is the product of the acoustic recognition probability and the language recognition probability; the language recognition probability is determined based on the product of the language matching probabilities corresponding to each character in the contact recognition result, and one such language matching probability is the matching probability between a character in the contact recognition result obtained based on the contact language feature and the corresponding character in the to-be-recognized speech; the acoustic recognition probability is determined based on the product of the acoustic matching probabilities corresponding to each character in the contact recognition result, and one such acoustic matching probability is the matching probability between a character in the contact recognition result obtained based on the acoustic feature and the corresponding character in the to-be-recognized speech; 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.
[0142] 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 final contact recognition or a very low confidence level of the contact recognition result being "Li Si"; for this homophone situation, when constructing the contact sub-graph, 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 sub-graph is greater than 1. That is, the probability of "Si" is increased using the language model, making the probability of "Si" greater than that of "Si", and at the same time increasing the contact recognition probability corresponding to "Li Si", thus improving the recognition confidence level corresponding to "Li Si", and finally the recognition confidence level of the contact recognition result. 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 contact recognition more accurate and make the boundary between contacts and non-contacts clearer, avoiding the influence on non-contact scenarios.
[0143] In an embodiment of the present application, the accuracy of speech recognition in the contact scenario can be improved by performing generalization processing on the statements of each contact in the contact sub-graph in the contact language model. For example, if there is a relatively long name such as title + person name in the contact, and only the title or the person name exists in the to-be-recognized speech, it can be correctly recognized.
[0144] 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 of the name. To adapt to this generalization of the name, we add an edge that can be directly jumped when constructing the contact subgraph (in the following Figures 5 to 7, " <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.
[0145] 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.
[0146] Each empty line in each contact branch is used to indicate an empty space. It is understood that when a character in the speech to be recognized is identified as the character indicated by the current solid line in the target contact branch, the recognition path includes the current solid line; when a character is identified as not the character indicated by the current solid line in the target contact branch, the recognition path includes the empty line corresponding to the current solid line, that is, at the starting node of the current solid line, an empty transition is achieved through the corresponding empty line, and the character is continuously identified as the character indicated by the next solid line in the target contact branch. The above process is repeated until the end node of the target contact branch is reached.
[0147] As you can understand, in the process of constructing the contact subgraph, we add an empty link for each character that can be jumped to, so that every character in the user's stored contacts can be skipped during the recognition process. Taking "Yang Feng, Director of Factory 12" as an example, the contact subgraph it constructs is shown in Figure 5. When using character-level generalization, for each character in the user's stored contacts, it can be skipped. Therefore, for the contact "Yang Feng, Director of Factory 12", contact recognition can support generalized statements such as "Yang Feng" and "Director of Factory 12", and also support the generalized statement "Yang Feng, Director of Factory 10".
[0148] 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.
[0149] 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.
[0150] Each empty line in each contact branch is used to indicate emptiness. It is understood that when a word in the speech to be recognized is identified as a word indicated by at least two solid lines in the target contact branch, the recognition path includes the at least two solid lines. When a word is identified that is not a word indicated by at least two solid lines in the target contact branch, the recognition path includes the empty line corresponding to the at least two solid lines. That is, at the starting node of the at least two solid lines, an empty transition is achieved through the corresponding empty line, and the word is continuously identified as a word indicated by the next at least two solid lines in the target contact branch. The above process is repeated until the end node of the target contact branch is reached.
[0151] Understandably, when searching for a long contact, users will definitely say a word that can represent the contact, not just a single character or a series of incoherent characters (not a word). Therefore, a Neuro-Linguistic Programming (NLP) word segmentation model is used for word segmentation. When constructing the contact subgraph, the decoding graph is still constructed using characters as the modeling unit, but empty jumpable edges (empty connections) are added to the word unit. For example, after word segmentation, "Twelve Factory Director Yang Feng" ("Twelve Factory"), the three words "Factory Director", "Factory Director", and "Yang Feng" are obtained. The contact subgraph constructed using this is shown in Figure 6. Using this word-level generalization, only an entire word can be selectively skipped. Ultimately, the contact decoder can only recognize seven different ways of saying "Twelve Factory", "Factory Director", "Yang Feng", "Factory Director of Twelve Factory", "Twelve Factory Yang Feng", "Factory Director Yang Feng", and "Factory Director Yang Feng". This avoids the situation where "Tenth Factory Yang Feng" is supported when every character can be skipped.
[0152] In the embodiment of the present application, by setting empty links for the words in the contact subgraph, the generalization of the words in the contact is achieved, which can improve the recognition accuracy of the contact subgraph and the speech to be recognized.
[0153] In some embodiments of the present application, each empty connection line corresponds to a penalty coefficient. When the contact recognition path corresponding to the contact recognition result includes one or more target empty connection lines in the first contact branch, the language recognition probability is determined based on the product of the first value and the second value. Wherein, when the contact recognition path corresponding to the contact recognition result includes the one target empty connection line, the second value is the penalty coefficient corresponding to the one target empty connection line; when the contact recognition path corresponding to the contact recognition result includes the multiple target empty connection lines, the second value is the product of the penalty coefficients corresponding to each target empty connection line among the multiple target empty connection lines; the penalty coefficient is less than 1.
[0154] It can be understood that since there may be a problem of homophone substitution during recognition. For example, the recognition result is "Li Si", while the user's contact is "Li Si". After adding the jumpable edges, because the probability of recognizing "Si" is not high, it may discard "Si" because the probability of an empty jump is higher than the probability of "Si", and finally there is a phenomenon of missing characters in the contact recognition. To avoid this situation, penalties are set for all empty jump edges to reduce the probability of empty jumps, that is, the probability of the empty jump edge is set to be less than 1 (that is, a penalty coefficient is set for each empty connection line, and the penalty coefficient is less than 1), so that the probability of the empty jump is less than the probability of "Si", ensuring the accuracy of speech recognition in the contact scenario.
[0155] In some embodiments of the present application, in the case where at least two contact branches included in the contact subgraph indicate the same contact, the contact subgraph further includes an empty branch. The starting node of the empty branch is the termination node of any contact branch, and the termination node of the empty branch is the starting node of any contact branch; the empty branch is used to implement the generalization processing of the order of words in the corresponding contact.
[0156] Wherein, when the current contact branch reaches the termination node, but the characters in the to-be-recognized speech have not been completely recognized, the recognition path includes the empty branch, that is, an empty jump is realized through the empty branch at the termination node of the current contact branch, and the starting node of the contact subgraph is returned to continue to recognize whether the unrecognized characters in the to-be-recognized speech are the characters in other contact branches in the contact subgraph until the to-be-recognized speech recognition is completed.
[0157] It can be understood that after using character-level (or word-level) generalization, the user's stored contacts can be generalized in terms of characters (or words), but the reverse order (adjusting the order of words in the contact) cannot be recognized. For example, the contact "Yang Feng, Director of the 12th Factory" cannot be recognized as "Director Yang Feng" in the contact decoder. To address this problem, the contact subgraph construction method is optimized. After obtaining the word segmentation results of the contact's name, each word 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 shown in Figure 7. "Yang Feng, Director of the 12th Factory" can be generalized into three statements "12th Factory", "Director", and "Yang Feng" according to the word segmentation results. After recognizing "Yang Feng" and reaching the end point 3, it can be generalized through <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.
[0158] 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 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; wherein, when the contact identification path corresponding to the contact identification result includes the one target empty link, the second value is the penalty coefficient corresponding to the one target empty link; when the contact identification path corresponding to the contact identification result includes multiple target empty links, the second value is the product of the penalty coefficients corresponding to each target empty link in the multiple target empty links; the penalty coefficient is less than 1.
[0159] 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.
[0160] This application makes contact identification independent, constructs a decoding graph for contact identification separately, and increases the weight of contacts in the decoding graph 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.
[0161] 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.
[0162] In some embodiments of the present application, in combination with FIG8 , as shown in FIG10 , before the above step 202 , the speech recognition method provided in the embodiment of the present application may further include the following steps 205 to 207 . The above step 202 may be specifically implemented by the following step 202a:
[0163] 205. Recognize the general language features of the speech to be recognized based on the general language model to obtain the general language features corresponding to the speech to be recognized.
[0164] The general language feature is specifically a general 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 is the probability value 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.
[0165] 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.
[0166] 206. Decode the acoustic feature and the universal language feature based on a universal decoder to obtain a universal recognition result.
[0167] 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.
[0168] 207. Determine whether the general voice recognition result is related to the contact based on a binary classification algorithm.
[0169] The binary classification algorithm may be a naive Bayes algorithm, a logistic regression algorithm, a random forest (RF) algorithm, a support vector machine (SVM) algorithm, or the like, and is not limited thereto. For example, when implementing step 207, a binary classification algorithm model may be used to determine whether the general speech recognition result is related to a contact. For example, if the general recognition result includes contact-related keywords such as "make a call" and "look up a number," then the general speech recognition result is determined to be related to a contact.
[0170] 202a: When it is determined that the general speech recognition result is related to a contact, perform contact language feature recognition on the speech to be recognized based on a contact language model to obtain the contact language feature.
[0171] In an embodiment of the present application, universal recognition is first performed on the speech to be recognized based on a universal language model and a universal decoder to obtain a universal recognition result, and then it is determined whether the universal recognition result is related to a contact. When it is determined that the universal recognition result is related to a contact, contact recognition is performed on the speech to be recognized based on a contact language model and a contact decoder to obtain a contact recognition result, and the contact recognition result is output. This can improve the accuracy of speech recognition in contact scenarios.
[0172] In some embodiments of the present application, in combination with FIG10 , as shown in FIG11 , after the above step 207 , the speech recognition method provided in the embodiment of the present application may further include the following step 208 :
[0173] 208. If it is determined that the general voice recognition result is not related to the contact, output the general voice recognition result.
[0174] For example, as shown in Figure 12, a schematic diagram of the model structure of the speech recognition method provided in an embodiment of the present application is provided. The acoustic model corresponds to step 201 above, the general language model corresponds to step 205 above, the general decoder model corresponds to step 206 above, the contact language model corresponds to step 202 above, the contact decoder corresponds to step 203 above, and determining whether the speech is related to a contact corresponds to step 207 above.
[0175] In an embodiment of the present application, when it is determined that the general recognition result is not related to a contact, a general speech recognition result is output. This improves the accuracy of speech recognition in contact scenarios without affecting the accuracy of speech recognition in non-contact scenarios. This application separates contact recognition, constructs a separate contact decoding graph for contact recognition, and increases the weight of the contact in the contact subgraph to ensure contact recognition without affecting speech recognition in non-contact scenarios. By adding empty jump edges to the contact subgraph and setting an empty jump penalty, recognition of generalized contact statements is guaranteed.
[0176] The present application also provides a speech recognition device. FIG13 is a structural diagram of a speech recognition device provided by the present application. As shown in FIG13 , 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 the language recognition probability and acoustic recognition probability corresponding to the contact recognition result; the contact language The model is generated based on keywords related to contact search 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 obtained based on the contact's language features, 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; the 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, 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.
[0177] 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.
[0178] 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.
[0179] 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.
[0180] 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.
[0181] 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.
[0182] 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.
[0183] 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.
[0184] The present application also provides a speech recognition device. Figure 14 is a structural schematic diagram of a speech recognition device provided by the present application. As shown in Figure 14, the speech recognition device includes: a feature recognition module 1001, 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 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, and the contact language model is constructed based on multiple contact decoding graphs that perform utterance generalization processing on contact information, and each contact decoding graph is generated based on keywords related to contact search and the user's contact list; a decoding module 1002, which is used to decode the acoustic features and the contact language features based on a contact decoder to obtain a contact recognition result; and an output module 1003, which is used to output the contact recognition result.
[0185] In some embodiments of the present application, 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, 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, each contact branch includes multiple nodes and real lines between any two adjacent nodes, 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.
[0186] In some embodiments of the present application, the contact recognition result is the one with the highest recognition probability among multiple candidate recognition results corresponding to the acoustic feature and the contact language feature, and the recognition probability is the product of the acoustic recognition probability and the language recognition probability; the language recognition probability is determined based on the product of the language matching probabilities corresponding to each character in the contact recognition result, and the language matching probability is the matching probability of 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 the acoustic matching probabilities corresponding to each character in the contact recognition result, and the acoustic matching probability is the matching probability of a character in the contact recognition result obtained based on the acoustic feature and the corresponding character in the speech to be recognized; each solid line corresponds to an enhancement coefficient, and when the contact recognition path corresponding to the contact recognition 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 at least one solid line in the first contact branch; the enhancement coefficient is greater than 1.
[0187] 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.
[0188] In some embodiments of the present application, each empty link corresponds to a penalty coefficient. 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; wherein, when the contact identification path corresponding to the contact identification result includes the target empty link, the second value is the penalty coefficient corresponding to the target empty link; when the contact identification path corresponding to the contact identification result includes multiple target empty links, the second value is the product of the penalty coefficients corresponding to each target empty link in the multiple target empty links; the penalty coefficient is less than 1.
[0189] 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 generalized processing of the order of words in the corresponding contacts.
[0190] 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 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; wherein, when the contact identification path corresponding to the contact identification result includes the one target empty link, the second value is the penalty coefficient corresponding to the one target empty link; when the contact identification path corresponding to the contact identification result includes multiple target empty links, the second value is the product of the penalty coefficients corresponding to each target empty link in the multiple target empty links; the penalty coefficient is less than 1.
[0191] In some embodiments of the present application, the feature recognition module 1001 is further used to recognize the universal language features of the speech to be recognized based on the universal language model before performing 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 1002 is further used to decode the acoustic features and the universal language features based on a universal decoder to obtain a universal recognition result; the device also includes: a determination module for determining whether the universal speech recognition result is related to the contact based on a binary classification algorithm; the feature recognition module 1001 is specifically 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 when it is determined that the universal speech recognition result is related to the contact.
[0192] In some embodiments of the present application, the output module 1003 is further configured to, after determining whether the general voice recognition result is related to the contact based on a binary classification algorithm, output the general voice recognition result if it is determined that the general voice recognition result is not related to the contact.
[0193] 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 implement the functions of the device embodiment, and this embodiment of this application does not limit it. In the embodiment of this application, each module can implement the speech recognition method provided by the above-mentioned method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0194] 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.
[0195] In the embodiment of the present application, each module can implement the speech recognition method provided by the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0196] Figure 15 is a structural diagram of an electronic device provided in an embodiment of the present application, which 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 embodiment of the present application.
[0197] As shown in Figure 15, 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.
[0198] 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.
[0199] 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.
[0200] 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.
[0201] 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.
[0202] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0203] 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.
[0204] 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).
[0205] 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.
[0206] 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.
[0207] 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.
[0208] 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.
[0209] 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.
[0210] 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.
[0211] 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.
[0212] 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> < / eps> < / eps>
Claims
1. A speech recognition method, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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; Wherein, when the contact identification path corresponding to the contact identification result also includes the one target real connection line, the third value is the enhancement coefficient of the one target real connection line; when the contact identification path corresponding to the contact identification result also includes the multiple target real connections, the third value is the enhancement coefficient of each target real connection line in the multiple target real connections. The product of the enhancement coefficients corresponding to the connection line, the fourth value is the penalty coefficient corresponding to the empty branch; the penalty coefficient is less than 1.
9. A speech recognition method, It is 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 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, wherein the contact language model is constructed based on a plurality of contact decoding graphs that perform utterance generalization processing on contact information, each contact decoding graph is generated based on keywords related to contact search and a contact list of a user, and each contact decoding graph is used to indicate a plurality of contact recognition paths; Decoding the acoustic features and the contact language features based on a contact decoder to obtain a contact recognition result; The contact identification result is outputted.
10. The method according to claim 9, It is characterized in that The contact recognition result is the one with the highest recognition probability among multiple candidate recognition results corresponding to the acoustic features and the contact language features, and the recognition probability is the product of the acoustic recognition probability and the language recognition probability; the language recognition probability is determined based on the product of the language matching probabilities corresponding to each character in the contact recognition result, and one of the language matching probabilities is the matching probability between a character in the contact recognition result obtained based on the contact language features and the corresponding character in the speech to be recognized; the acoustic recognition probability is determined based on the product of the acoustic matching probabilities corresponding to each character in the contact recognition result, and one of the acoustic matching probabilities is the matching probability between a character in the contact recognition result obtained based on the acoustic features and the corresponding character in the speech to be recognized.
11. The method according to any one of claims 9 to 10, It is characterized in that Before 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, the method further includes: Recognize the general language features of the speech to be recognized based on the general language model to obtain the general 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; Based on a binary classification algorithm, determining whether the general voice recognition result is related to the contact; The 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 includes: When it is determined that the general speech recognition result is related to a contact, contact language feature recognition is performed on the speech to be recognized based on a contact language model to obtain the contact language feature.
12. The method according to claim 11, It is characterized in that After determining whether the general voice recognition result is related to the contact person based on the binary classification algorithm, the method further includes: In the case where it is determined that the general voice recognition result is not related to the contact, the general voice recognition result is output.
13. A speech recognition device, It is 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.
14. A speech recognition device, It is 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 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, wherein the contact language model is constructed based on a plurality of contact decoding graphs that generalize the contact information, each of which is generated based on a keyword related to contact search and a contact list of a user; A decoding module, used for decoding the acoustic features and the contact language features based on a contact decoder to obtain a contact recognition result; An output module is used to output the contact identification result.
15. An electronic device, It is 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 12.
16. A computer-readable storage medium having a computer program stored thereon, It is 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 12 are implemented.
17. A vehicle, It is characterized in that include: A speech recognition device as claimed in any one of claims 13-14, or an electronic device as claimed in claim 15, or a computer-readable storage medium as claimed in claim 16.
Citation Information
Patent Citations
Voice recognition method, device, user equipment and storage medium
CN108510990A
Method and apparatus for speech recognition of contacts
CN108986790A
System and method for generating and using text-to-speech (TTS) data for improved speech recognition model and equipment
CN113470662A
Speech recognition method and device, equipment and storage medium
CN113920999A
Speech recognition method and device based on hot word graph, equipment and storage medium
CN115101054A
