Speech recognition method, device, equipment and storage medium

By constructing a decoding network on a cloud server for real-time speech recognition using vertical keyword sets and syntactic networks, the method enhances the accuracy of recognizing vertical keywords in specific situations, addressing the limitations of existing technologies.

JP2024537481AInactive Publication Date: 2024-10-10UNIV OF SCI & TECH OF CHINA +1

Patent Information

Application Number
JP2024525244
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-10-29
Filing Date
2021-11-26
Publication Date
2024-10-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing speech recognition technologies struggle to accurately recognize vertical keywords such as people's names and place names in specific situations like making calls or navigating, due to their unpredictable nature and low appearance rates in training data, leading to poor user experience.

Method used

A speech recognition method that constructs a decoding network based on a vertical keyword set and a syntactic decoding network for the specific scene, using a cloud server to build and decode speech recognition results in real-time, combining it with a general-purpose model to enhance accuracy.

Benefits of technology

This approach allows for accurate recognition of vertical keywords by ensuring the decoding network includes the latest keyword set and leverages the cloud's computing power, improving overall speech recognition effectiveness in specific scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024537481000001_ABST
    Figure 2024537481000001_ABST
Patent Text Reader

Abstract

This application proposes a speech recognition method, device, equipment and storage medium, the method includes: obtaining an acoustic state sequence of a speech to be recognized; constructing a speech recognition decoding network based on a set of vertical keywords in a scene to which the speech to be recognized belongs and a syntactic decoding network obtained by syntactic induction and syntactic slot definition processing on a text corpus in a scene to which the speech to be recognized belongs at least; and using the speech recognition decoding network to decode the acoustic state sequence and obtain a speech recognition result. By constructing the speech recognition decoding network and using it for speech recognition, the speech to be recognized, especially the speech in a specific scene related to vertical keywords, especially the vertical keywords from the speech can be correctly recognized.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application claims priority to a Chinese patent application with application number 202111274880.8, titled "Speech recognition method, device, equipment and storage medium", filed with the China Patent Office on October 29, 2021, the entire contents of which are hereby incorporated by reference into this application. [Background technology]

[0002] The present application relates to the field of voice recognition technology, and specifically to a voice recognition method, device, equipment and storage medium.

[0003] With the rapid development of mobile Internet and artificial intelligence, voice recognition is becoming an important interface in human-machine interaction, and is becoming more widely used in many aspects of people's daily lives and production activities.

[0004] Currently, the most effective solution for speech recognition is to use neural network technology to learn a large amount of data and obtain a speech recognition model, which has a very high recognition effect in general cases. Theoretically, if there is enough data to cover as many vocabulary words as possible, a high recognition effect can be obtained.

[0005] However, in situations such as "making a call to a mobile phone contact," "sending a message to a mobile phone contact," and "checking the weather conditions or current location in a city," existing voice recognition systems are ineffective and have difficulty correctly recognizing the user's voice. In particular, they often fail to recognize vertical keywords such as people's names and place names from the user's voice. Summary of the Invention [Problem to be solved by the invention]

[0006] Taking into consideration the current state of the art described above, the embodiments of the present application propose a speech recognition method, device, equipment, and storage medium for correctly recognizing speech to be recognized, particularly speech in specific situations related to vertical keywords, and particularly vertical keywords from speech. [Means for solving the problem]

[0007] 1. A speech recognition method, comprising: Obtaining an acoustic state sequence of a speech to be recognized; Constructing a speech recognition decoding network based on a vertical keyword set in the scene to which the recognition target speech belongs and a syntax decoding network obtained by syntactic induction processing on at least the text corpus in the scene to which the recognition target speech belongs; and decoding the acoustic state sequence using the speech recognition decoding network to obtain a speech recognition result.

[0008] 1. A speech recognition method, comprising: Obtaining an acoustic state sequence of a speech to be recognized; Decoding the acoustic state sequence using a speech recognition decoding network constructed based on a vertical keyword set and a syntax decoding network in the scene to which the recognition target speech belongs to obtain a first speech recognition result, and decoding the acoustic state sequence using a general speech recognition model. obtaining a second speech recognition result; and providing an acoustics score incentive for the first speech recognition result; and determining a final speech recognition result from at least the first speech recognition result after providing an incentive and the second speech recognition result.

[0009] A speech recognition device, comprising: an acoustic recognition unit for obtaining an acoustic state sequence of a speech to be recognized; a network construction unit for constructing a speech recognition decoding network based on a vertical keyword set in the scene to which the speech to be recognized belongs and a syntax decoding network obtained by syntactic induction processing on at least the text corpus in the scene to which the speech to be recognized belongs; and a decoding processing unit for decoding the acoustic state sequence using the speech recognition decoding network to obtain a speech recognition result.

[0010] A speech recognition device, comprising: an acoustic recognition unit for obtaining an acoustic state sequence of a speech to be recognized; Decoding the acoustic state sequence using a speech recognition decoding network constructed based on a vertical keyword set and a syntax decoding network in the scene to which the recognition target speech belongs to obtain a first speech recognition result, and decoding the acoustic state sequence using a general speech recognition model. a multi-dimensional decoding unit for obtaining a second speech recognition result; An acoustic incentive for incentivizing an acoustic score for the first speech recognition result. Active units and and a decision-making processing unit for determining a final speech recognition result from at least the first speech recognition result after providing an incentive and the second speech recognition result.

[0011] A voice recognition device, A memory connected to the processor and used to store a program; and a processor used to execute the program stored in the memory and to implement the speech recognition method.

[0012] A storage medium stores a computer program which, when executed by a processor, implements the speech recognition method described above. Effect of the Invention

[0013] The speech recognition method of the present application can construct a speech recognition decoding network based on a set of vertical keywords in a scene to which the speech to be recognized belongs and a syntax decoding network in the scene that has been constructed in advance. The speech recognition decoding network includes syntax information of various speeches in the scene to which the speech to be recognized belongs as well as various vertical keywords in the scene to which the speech to be recognized belongs, and can use the speech recognition decoding network to decode speech consisting of any syntax and any vertical keyword in the scene to which the speech to be recognized belongs. Therefore, by constructing the above speech recognition decoding network, the speech to be recognized, particularly the speech in a specific scene related to vertical keywords, particularly the vertical keyword from the speech, can be correctly recognized. [Brief description of the drawings]

[0014] In order to more clearly describe the technical solutions of the embodiments of the present application or the prior art, the drawings necessary for describing the embodiments or the prior art will be briefly described below. Obviously, the drawings described below are only the embodiments of the present application, and those skilled in the art can obtain other drawings according to these drawings without creative efforts.

[0015] [Figure 1] FIG. 1 is a flow chart showing a speech recognition method according to an embodiment of the present application. [Diagram 2] FIG. 2 illustrates a word-level syntactic decoding network according to an embodiment of the present application. [Diagram 3] FIG. 3 is a flow chart illustrating another speech recognition method according to an embodiment of the present application. [Figure 4] FIG. 4 is a flow chart illustrating another speech recognition method according to an embodiment of the present application. [Diagram 5] FIG. 5 is a flow chart illustrating another speech recognition method according to an embodiment of the present application. [Figure 6] FIG. 6 is a flow chart illustrating another speech recognition method according to an embodiment of the present application. [Figure 7]FIG. 7 is a diagram showing a text syntax network according to an embodiment of the present application. [Figure 8] FIG. 8 illustrates a pronunciation-level syntactic decoding network according to an embodiment of the present application. [Figure 9] FIG. 9 is a diagram showing a word-level name network according to an embodiment of the present application. [Figure 10] FIG. 10 is a diagram showing a pronunciation level name network corresponding to FIG. 9 according to an embodiment of the present application. [Figure 11] FIG. 11 is a process flowchart of correcting a first speech recognition result using a second speech recognition result according to an embodiment of the present application. [Figure 12] FIG. 12 is a process flowchart of determining a final speech recognition result from a first speech recognition result and a second speech recognition result according to an embodiment of the present application. [Figure 13] FIG. 13 is a diagram showing a state network of a speech recognition result according to an embodiment of the present application. [Figure 14] FIG. 14 is a diagram showing a state network after path expansion is performed on the speech recognition result shown in FIG. [Figure 15] FIG. 15 is a diagram showing the structure of a voice recognition device according to an embodiment of the present application. [Figure 16] FIG. 16 is a diagram showing the structure of another speech recognition device according to an embodiment of the present application. [Figure 17] FIG. 17 is a diagram showing the structure of a voice recognition device according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] The technical solutions in the embodiments of the present application are applicable to application scenarios of voice recognition. By utilizing the technical solutions in the embodiments of the present application, the content of voice, especially the content of voice in specific scenarios related to vertical keywords, can be more accurately recognized, especially vertical keywords can be correctly recognized from voice, and the overall effect of voice recognition can be improved.

[0017] The above vertical keywords generally refer to different keywords belonging to the same category. Examples of such keywords include a person's name, a place name, and an application name. The vertical keywords include a person's name vertical keyword consisting of different people's names registered in a user's contact list, a place name vertical keyword consisting of different place names in the area where the user stays, and an application name vertical keyword consisting of the names of the applications installed on the user's terminal.

[0018] The above-mentioned business situations related to vertical keywords refer to business situations in which vertical keywords are included in dialogue voice. For example, in business situations such as making a phone call by voice or using voice navigation, the user must say the name of the other party or the name of the destination, such as "Call XX" or "Tell me the route to YY." Here, "XX" can be considered as a name registered in the user's phone book, and "YY" as a place name where the user is located. In this way, since vertical keywords (such as people's names and place names) are included in the voice in these business situations, these business situations fall under business situations related to vertical keywords.

[0019] With the spread of artificial intelligence and smart devices, human-machine interaction with voice recognition as an important interface is being introduced and used in many situations. For example, voice assistants are built into the operating systems of smart devices, allowing users to operate the devices by voice. For example, users can call contacts registered in their contact list by voice. You can make calls, send short messages, check the weather in various cities, and start / end applications on your device. These interaction scenarios are specific business scenarios, unlike general voice recognition business scenarios, and the voices in these scenarios often involve vertical keywords (such as people's names registered in the contact list, place names, and device application names).

[0020] Unlike general text keywords, vertical keywords have the characteristics of frequent changes, unpredictability, and customizability. In addition, the proportion of vertical keywords in large speech recognition training corpora is low. Therefore, conventional speech recognition solutions that train speech recognition models with large corpora are often not suitable for speech recognition tasks involving vertical keywords.

[0021] For example, since the occurrence rate of personal names is lower than that of normal text corpora, personal names are rare even in a large training corpus, and the model cannot learn sufficient personal name features from a large corpus. In addition, personal names are customized text content and have the characteristics of being difficult to cover or unpredictable, so it is not realistic to generate all personal names manually. Furthermore, the names of people registered in a contact list by a user may be nicknames, code names, nicknames, etc. other than standard personal names, and the number of people registered in the contact list may be changed or increased or decreased, so the names registered in the contact list by the user are highly diverse, making it difficult for the model to learn the features of all names in a unified manner.

[0022] Therefore, the technical solution of training a speech recognition model using a large corpus and using the speech recognition model to realize the speech recognition function is not well suited for speech recognition tasks in business scenarios involving vertical keywords, especially in that the vertical keywords contained in the voice cannot be correctly recognized, resulting in a poor user experience.

[0023] In view of the above technical situation, the embodiments of the present application propose a speech recognition method, which can improve the effect of speech recognition, especially in business scenarios involving vertical keywords.

[0024] Hereinafter, the technical solutions in the embodiments of the present application will be described in detail and in detail with reference to the drawings of the embodiments of the present application. It is clear that the described embodiments are only a part of the embodiments of the present application, and are not all of them. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0025] In the embodiment of the present application, a speech recognition method is proposed, as shown in FIG. 1, which includes the following steps: Includes steps.

[0026] S101: Acquire an acoustic state sequence of speech to be recognized. Specifically, based on the application scenarios applied to the technical solutions of the embodiments of the present application described above, the above-mentioned speech to be recognized is speech data in business scenarios specifically related to vertical keywords, and the speech to be recognized contains the speech content of vertical keywords.

[0027] The target speech is processed by end point detection, windowing, frame division, feature extraction, etc. to obtain audio features, which can be expressed as Mel-Frequency Cepstral Coefficients (MFCCs) or other types of audio features.

[0028] After obtaining the audio features of the speech to be recognized, the audio features are input into an acoustic model to perform acoustic recognition, and the posterior score of the acoustic state for each audio frame, i.e., the acoustic state sequence, is obtained. The acoustic model is mainly a neural network structure, and the front The forward algorithm recognizes the acoustic state of each audio frame and calculates its posterior score. The acoustic state corresponding to the audio frame is specifically a pronunciation unit corresponding to the audio frame, such as a phoneme or a phoneme sequence corresponding to the audio frame.

[0029] Conventional speech recognition solutions have a structure that combines an acoustic model and a language model, that is, the acoustic model performs acoustic recognition of the target speech and realizes mapping from the speech features to a phoneme sequence, and then the language model recognizes the phoneme sequence and realizes mapping from the phonemes to text.

[0030] In the conventional speech recognition solution, the acoustic state sequence of the speech to be recognized obtained from the above acoustic recognition is input to a language model for decoding to determine the text content corresponding to the speech to be recognized. The language model is a model obtained by training from a large training corpus and capable of realizing phoneme-to-text mapping.

[0031] Unlike conventional speech recognition solutions, the embodiment of the present application uses a decoding network constructed in real time to decode the acoustic state sequence, rather than a speech model trained on a large corpus.

[0032] S102: Construct a speech recognition decoding network based on a vertical keyword set in the scene to which the speech to be recognized belongs and a syntax decoding network. Specifically, unlike the conventional language model, in the embodiment of the present application, when recognizing speech in a vertical keyword business scenario, a speech recognition decoding network is constructed in real time, and the acoustic state sequence of the speech to be recognized is decoded using the network to obtain the speech recognition result.

[0033] The speech recognition decoding network is obtained from a vertical keyword set in the context of the speech to be recognized, and a pre-constructed syntax decoding network in the context of the speech to be recognized.

[0034] Here, the syntactic decoding network for the scene to which the recognition target speech belongs is obtained by syntactic induction processing for at least the text corpus in the scene to which the recognition target speech belongs.

[0035] The scene to which the speech to be recognized belongs specifically refers to the scene of the business to which the speech to be recognized belongs. For example, if the speech to be recognized is "I want to give XX a call," the speech to be recognized corresponds to the speech of the calling business, and the scene to which the speech to be recognized belongs is the scene of making a phone call. Also, if the speech to be recognized is "Tell me the route to XX," the speech to be recognized corresponds to the speech of the navigation business, and the scene to which the speech to be recognized belongs is the navigation scene.

[0036] Through research, the inventors of the present application have found that in business situations involving vertical keywords, a large portion of the user's voice syntax is fixed. For example, when making a phone call or sending a short message, users often use syntax such as "I want to give XX a call" or "send a message to XX for me," and when using voice navigation, users often use syntax such as "Go to XX (place name)" or "Tell me the route to XX (place name)."

[0037] Therefore, in a particular task involving vertical keywords, the syntax of the user's speech is regular or can be said to be exhaustive. Through induction of such syntax, a syntax network corresponding to the task can be obtained, which is called a syntax decoding network in the embodiment of the present application. The syntax decoding network constructed in the above manner contains the syntax information corresponding to the task, and induction is performed on the text corpus of all syntaxes in a certain task to generate the syntax decoding network. It is understood that when a context is obtained, the syntax decoding network includes any syntax in the context.

[0038] As a preferred embodiment, in the embodiment of the present application, the syntactic slot definition process is performed on the text corpus in the scene to which the speech to be recognized belongs.

[0039] Defining the syntactic slots of a sentence as above is specifically determining the grammatical type of the text slots of the sentence. In the embodiment of the present application, the text slots of a text sentence are classified into general syntactic slots and replacement syntactic slots, where the text slots of a text sentence in which a non-vertical keyword is placed are defined as general syntactic slots, and the text slots of a text sentence in which a vertical keyword is placed are defined as replacement syntactic slots.

[0040] As a simple example, when you make a phone call or send a text message, you should type "I We perform syntactic induction and syntactic slot definition for a text corpus such as "want to give XX a call" or "send a message to XX for me", and then use the syntactic decoding network shown in Figure 2 to The syntactic decoding network is composed of nodes and directed arcs of connecting nodes, where the directed arcs correspond to general syntactic slots and substitution syntactic slots, and the directed arcs contain tag information describing the text content in the slots. Specifically, the general syntactic slot phrase is divided and connected in series by nodes and directed arcs, and two nodes are connected in series. The word information is written on the directed arc between the two, and the items on the left and right of the colon represent the input and output information, respectively. Here, the input and output information are set to be the same, and a phrase is extracted. The divided words are connected in series, and each phrase in the same syntax slot is connected in parallel. A placeholder "#placeholder#" is used to reserve a place in the replacement syntax slot. Without expanding, Number the nodes sequentially, where words with the same start node identifier are numbered with one start node. The network shares a common end node for words with the same end node identifier. Figure 2 shows a simple contact list word-level syntax decoding network, with general syntax slots preceding substitution syntax slots including "I want to give," "send a message to " and "give a call", and the general syntax slot after the substitution syntax slot contains three phrases: "for me", "a call", and "a call with her number". The connection between node 10 and node 18 means that the end node can be reached directly from node 10, and the " " on the side of the arc represents mute.

[0041] For the specific construction process of the above syntax decoding network, please refer to the detailed description of the embodiment described later.

[0042] The vertical keyword set in the business scene to which the speech to be recognized belongs refers to a set consisting of all vertical keywords in the business scene to which the speech to be recognized belongs. For example, if the speech to be recognized is a voice to make a phone call or send a short mail by voice, the vertical keyword set in the business scene to which the speech to be recognized belongs may specifically be a set of personal names consisting of personal names registered in the user's contact list. If the speech to be recognized is a voice to perform voice navigation, the vertical keyword set in the business scene to which the speech to be recognized belongs may specifically be a set of place names consisting of names of various places in the area where the user stays.

[0043] A speech recognition decoding network is obtained by adding the vertical keywords in the vertical keyword set in the task context to which the speech to be recognized belongs to the replacement syntax slot of the syntax decoding network. In this way, when the decoding network includes both all speech syntax in the task context to which the speech to be recognized belongs and all vertical keywords in the task context, the speech recognition decoding network can recognize both the speech syntax in the task context to which the speech to be recognized belongs and the vertical keywords of the recognized speech, that is, it can recognize the speech in the task context. It can be recognized.

[0044] The specific process of constructing the above-mentioned speech recognition and decoding network will be described in detail in the following examples.

[0045] It should be noted that, as a preferred embodiment, in the embodiment of the present application, when constructing a speech recognition decoding network, it is specifically constructed on a server, that is, a vertical keyword set for the business scenario to which the speech to be recognized belongs is transmitted to a cloud server, and the cloud server constructs a speech recognition decoding network based on the vertical keyword set for the business scenario to which the speech to be recognized belongs and the previously constructed syntax decoding network.

[0046] For example, when a user speaks the call command "I want to give XX a call" to a mobile phone, the mobile phone transmits a local contact list (i.e., a vertical keyword collection of names) to a cloud server, and the cloud server builds a voice recognition and decoding network based on the names of people registered in the contact list and the syntax decoding network for making a call. The voice recognition and decoding network includes various syntaxes for making a call and the names of people registered in the contact list for the current call, and the decoding network can be used to recognize the user's voice for making a call to any person registered in the current contact list.

[0047] In the prior art, the voice recognition and decoding network is locally constructed in the user terminal, not constructed in real time, but constructed in advance and then repeatedly called. Due to the low computing resources of the terminal device, the network construction speed is slow, and the network decoding speed is limited. In addition, the decoding network constructed in a non-real time manner is not updated promptly when the vertical keyword set is updated, resulting in poor voice recognition effect.

[0048] In the embodiment of the present application, a voice recognition decoding network is constructed in the cloud server, and when performing voice recognition, a vertical keyword set is transmitted in real time, and "construct a voice recognition decoding network" of S102 is executed, so that the constructed voice recognition decoding network contains the latest vertical keyword set, that is, the vertical keyword set required for the current recognition, and can correctly recognize the vertical keyword. In addition, based on the strong computing ability of the cloud server, the voice recognition decoding network has stronger decoding performance.

[0049] In addition, based on the centralized processing capacity of the cloud server, there is no need to build a voice recognition and decoding network for each terminal, but it can be built in the cloud server. For any terminal connected to the cloud server, the terminal transmits the voice information to be recognized and a vertical keyword set (such as a contact list saved in a local terminal) for the business situation to which the voice to be recognized belongs to, to the cloud server, and the cloud server builds a voice recognition and decoding network suitable for the current voice to be recognized and decodes the current voice to be recognized.

[0050] S103: Decode the acoustic state sequence using the speech recognition decoding network to obtain a speech recognition result.

[0051] As can be seen from the above description, the speech recognition and decoding network constructed as above includes the syntax of the business context to which the speech to be recognized belongs and the vertical keyword set of the business context to which the speech to be recognized belongs, and then the speech recognition and decoding network can be used to recognize the speech content of the speech to be recognized.

[0052] For example, when a user terminal collects a voice signal of a user making a call to a person registered in the contact list of the terminal, a voice recognition and decoding network including the names of people registered in the local contact list is constructed using the contact list of the local terminal (the contact list is a vertical keyword set) and a pre-constructed syntax decoding network corresponding to the scene of the call operation, according to the description of S102 above, in order to recognize the voice. For specific details, refer to the configuration of the voice recognition and decoding network shown in FIG. The recognition and decoding network contains not only all outgoing voice syntax but also all names registered in the local contact list, so that, in theory, the user can control the terminal by voice and the words he uses to call any person registered in the terminal's contact list must be included in the speech recognition and decoding network.

[0053] Illustratively, the speech recognition decoding network includes multiple identical or different syntactic paths consisting of various vertical keywords. One acoustic state sequence is the speech recognition If it matches the pronunciation of one or more syntactic paths in the decoding network, the pronunciation is It can be determined that the text content of the sequence of learning states is the text content of the syntactic path. Therefore, the speech recognition result finally obtained from the decoding is considered to be the text of one or more paths in the speech recognition decoding network, that is, the final There may be one or more speech recognition results obtained.

[0054] For example, if the user's voice collected by the terminal is "I want to give John a call", perform acoustic recognition of the voice to obtain its acoustic state sequence, and then use the contact list of the terminal to build a voice recognition decoding network, in which the voice recognition decoding network contains sentences such as "I want to give XX a call" and names such as "John", as well as other sentences and names. Based on the voice recognition decoding network, perform pronunciation matching for the acoustic state sequence of the voice and each path in the voice recognition decoding network. If the acoustic state sequence matches the pronunciation of the path "I want to give John a call", the voice recognition result "I want to give John a call" is obtained, that is, recognition of the user's voice is realized.

[0055] As can be seen from the above description, the speech recognition method according to the embodiment of the present application can construct a speech recognition decoding network based on a set of vertical keywords in the business context to which the speech to be recognized belongs and a syntax decoding network in the business context that has been constructed in advance. The speech recognition decoding network includes various speech syntaxes in the business context to which the speech to be recognized belongs as well as various vertical keywords in the business context to which the speech to be recognized belongs, and can use the speech recognition decoding network to decode speech consisting of any syntax and any vertical keyword in the business context to which the speech to be recognized belongs. Therefore, by constructing the above speech recognition decoding network, it is possible to correctly recognize the speech to be recognized, particularly the speech in a specific context related to vertical keywords, particularly the vertical keyword from the speech.

[0056] In a preferred embodiment, the speech recognition decoding network described above is used to decode the acoustic state sequence of the speech to be recognized, and at the same time, a general-purpose speech recognition model is used to decode the acoustic state sequence of the speech to be recognized.

[0057] For ease of distinction, the result obtained by decoding the acoustic state sequence of the recognition target speech using the speech recognition decoding network is called the first speech recognition result, and the general-purpose speech recognition model is called the second speech recognition result. The acoustic state sequence of the speech to be recognized is decoded using the model, and the results are used for the second speech recognition. The result is.

[0058] As shown in Figure 3, after executing "obtaining the acoustic state sequence of the speech to be recognized" in S301, , respectively, “obtain a speech recognition decoding network” in S302, and “decode the acoustic state sequence using the speech recognition decoding network to obtain a first speech recognition result” in S303. " and also executes S304 "decode the acoustic state sequence using a general-purpose speech recognition model to obtain a second speech recognition result".

[0059] The first speech recognition result and the second speech recognition result may each be one or more. To ensure the effectiveness of speech recognition, up to five speech recognition results output from each model are retained for use in determining the final speech recognition result.

[0060] Here, the above-mentioned general-purpose speech recognition model, i.e., a conventional speech recognition model obtained by training from a large amount of corpus, learns the features of speech and recognizes the text content corresponding to the speech, and does not have a standardized syntax like the above-mentioned speech recognition decoding network. Therefore, the syntax recognized by the general-purpose speech recognition model has high flexibility. By decoding the acoustic state sequence of the recognition target speech using the general-purpose speech recognition model, the content of the recognition target speech can be recognized more flexibly without being restricted by the recognition target speech syntax.

[0061] If the speech to be recognized is not one of the syntaxes in the speech recognition decoding network above, The first speech recognition result obtained is not correctly decoded by the speech recognition decoding network. Although the recognition result is incorrect, the target speech can be recognized and decoded by utilizing the general-purpose speech recognition model to obtain a second speech recognition result.

[0062] After the first speech recognition result and the second speech recognition result are obtained, in step S305, and determining a final speech recognition result from the first speech recognition result and the second speech recognition result. To carry out.

[0063] In an exemplary embodiment, after obtaining the first speech recognition result and the second speech recognition result, a competition is made based on the acoustic scores of the first speech recognition result and the second speech recognition result. The one or more results having the highest scores selected from the second speech recognition results are selected as the final speech recognition results.

[0064] Here, the acoustic scores of the first and second speech recognition results refer to the score of the entire decoding result determined by the decoding scores of each acoustic state sequence element when decoding the acoustic state sequence of the speech to be recognized. For example, the sum of the decoding scores of each acoustic state sequence element is the score of the entire decoding result. The decoding score of an acoustic state sequence element refers to the probability score that an acoustic state sequence element (such as a phoneme or phoneme unit) is decoded as one text. So the score of the whole decoding result is the whole acoustic state sequence is decoded as one text. The acoustic score of a speech recognition result means a score of the speech recognition result obtained by recognizing a speech, and the score indicates the accuracy of the speech recognition result.

[0065] Therefore, based on the acoustic scores of one or more first speech recognition results and the acoustic scores of one or more second speech recognition results, the accuracy of each recognition result is indicated and a competition is made based on the acoustic scores, i.e., by comparing the acoustic scores, one or more speech recognition results with the highest scores selected from such recognition results are selected as the final speech recognition results.

[0066] S301 to S303 in the method embodiment shown in FIG. 3 correspond to S101 to S103 in the method embodiment shown in FIG. 1, respectively, and for specific contents, refer to the explanation of the method embodiment in FIG.

[0067] Furthermore, FIG. 4 is a flow chart illustrating another speech recognition method according to an embodiment of the present application.

[0068] Unlike the speech recognition method shown in FIG. 3, as shown in FIG. 4, in the speech recognition method according to the embodiment of the present application, in addition to using the constructed speech recognition decoding network and the general-purpose speech recognition model to decode the acoustic state sequence of the speech to be recognized to obtain a first speech recognition result and a second speech recognition result, the method also executes S405 "using a pre-trained scene customization model to decode the acoustic state sequence to obtain a third speech recognition result."

[0069] After obtaining the first speech recognition result, the second speech recognition result, and the third speech recognition result, , S406 "the first speech recognition result, the second speech recognition result, and the third speech recognition result Then, the final speech recognition result is determined.

[0070] The scene-customized model refers to a speech recognition model obtained by performing speech recognition training on speech in a scene to which the speech to be recognized belongs. The scene-customized model has the same model structure as the general-purpose speech recognition model, and is different from the general-purpose speech recognition model in that the scene-customized model is obtained by training using a corpus in a scene to which the speech to be recognized belongs, rather than a large-scale general-purpose corpus. Therefore, the scene-customized model has a higher sensitivity and recognition rate than the general-purpose speech recognition model for speech in a business scene to which the speech to be recognized belongs. The scene-customized model can correctly recognize speech in a specific business scene better than the general-purpose speech recognition model, and is not limited to a preset syntax like the speech recognition decoding network.

[0071] Therefore, based on the above speech recognition decoding network and the above general-purpose speech recognition model, a scene customization model is added, and the three models are each based on the acoustic state of the target speech. Decoding the sequence can be used in various forms to provide more complete and in-depth speech recognition of the speech to be recognized.

[0072] The speech recognition results output from each of the three models are, for example, as described in S305 above. Referring to the description, the first speech recognition result, the second speech recognition result, and the third speech recognition result are subjected to acoustic analysis. The acoustic score is compared, and one or more sounds with the highest or highest acoustic score are selected from the results. The voice recognition result is the final voice recognition result.

[0073] S401 to S404 in the method embodiment shown in FIG. 4 correspond to S301 to S304 in the method embodiment shown in FIG. 3, respectively, and their specific contents are omitted here since they refer to the contents of the method embodiment shown in FIG.

[0074] The main idea of ​​the above speech recognition method based on multiple models is to perform decoding using multiple models, and then select the final recognition result from the multiple recognition results by competing with each other based on the acoustic score. In practical application, the first speech recognition result output from the above speech recognition decoding network is compared with the acoustic score of the second speech recognition result output from the general-purpose speech recognition model, or the third speech recognition result output from the scene customization model. If so, the first speech recognition result is matched with the second speech recognition result or the third speech recognition result. I often lose to.

[0075] In reality, the speech recognition results output from the three models are close to each other. The syntax of each speech recognition result is almost the same, but the position of the vertical keyword is different. However, the first speech recognition result contains more accurate vertical keyword information. If the first speech recognition result loses, the vertical keyword is not recognized correctly. Therefore, if the scores of the recognition results output from each model are close to each other, the recognition result containing the correct vertical keyword should win.

[0076] However, according to the above explanations of the embodiments, the first speech recognition result does not always win. .

[0077] Considering the above situation, when making a bet on the speech recognition results, first, Incentives are given to the score of the slot in which the vertical keyword is placed, and the percentage is increased to a certain extent, that is, incentives are given to the acoustic score for the first speech recognition result. By doing so, even if the syntax output from each model is the same, the first speech recognition result will win. This will be the case.

[0078] The above description generally proposes the idea and necessity regarding the acoustic score incentive, and for a specific acoustic score incentive process, please refer to the description of the embodiment below.

[0079] From the above idea of ​​acoustic score incentive, the embodiment of the present application proposes another speech recognition method, as shown in FIG. 5, the method includes the following steps: S501: Acquire an acoustic state sequence of speech to be recognized. S502: Decode the acoustic state sequence using a speech recognition decoding network to generate a first speech S503: Decode the acoustic state sequence using a general speech recognition model to obtain a second speech recognition result. It is obtained based on vertical keyword collection in the scene and syntactic decoding network. S504: Incentivize an acoustic score for the first speech recognition result. S505: A final speech recognition result is determined from at least the first speech recognition result after the incentive and the second speech recognition result.

[0080] Specifically, the specific process contents of the above S501, S502, S503, and S505 can be referred to in the voice recognition method embodiment shown in Figs. 1 to 4, so they are omitted here.

[0081] Here, the above-mentioned speech recognition decoding network is constructed based on a vertical keyword set in the scene to which the speech to be recognized belongs, and a syntactic decoding network obtained in advance by syntactic induction and syntactic slot definition processing for the text corpus in the scene to which the speech to be recognized belongs. For the specific content of the speech recognition decoding network, please refer to the description of the above embodiment, and for the construction process of the network, please refer to the specific description of the embodiment described later.

[0082] The difference between the speech recognition method described in the above embodiment and the speech recognition method according to the embodiment of the present application is that the speech recognition method according to the embodiment of the present application first performs an acoustic score test on the first speech recognition result before determining the final speech recognition result. The aim is to provide incentives for academic achievement.

[0083] Specifically, incentivizing the acoustic score for the first speech recognition result includes: Incentives are given to the acoustic score of the vertical keyword slot in the first speech recognition result. In other words, the vertical keyword slot of the first speech recognition result is The acoustic score is scaled by an incentive coefficient, and the specific value of the incentive coefficient is determined according to the business scenario and the actual speech recognition result. For specific acoustic score incentives, please refer to the explanation of the embodiment related to the acoustic score incentives described later.

[0084] According to the above-mentioned acoustic score incentive process, if the first speech recognition result is close to the score of the second speech recognition result, i.e., the syntax is the same, the first speech recognition result will win the acoustic score competition because the acoustic score of the first speech recognition result is higher than that of the second speech recognition result. That is, if the score of the first speech recognition result is close to that of the second speech recognition result, the vertical keyword of the finally obtained speech recognition result is guaranteed to be a more accurate recognition result.

[0085] In this way, the speech recognition method according to the embodiment of the present application can construct a speech recognition decoding network based on a set of vertical keywords in a business context to which the speech to be recognized belongs and a syntax decoding network for the business context that has been constructed in advance. The speech recognition decoding network can be used to decode speech consisting of any syntax and any vertical keyword in the business context to which the speech to be recognized belongs. Therefore, based on the above speech recognition decoding network, it is possible to correctly recognize the speech to be recognized, particularly the vertical keyword, from the speech to be recognized in a specific context related to the speech to be recognized, particularly the vertical keyword.

[0086] In addition, in the speech recognition method according to the embodiment of the present application, the above speech recognition decoding network is used to perform decoding and recognition, and a general-purpose speech recognition model is also used to perform decoding and recognition. The general-purpose speech recognition model has higher syntax flexibility than the above speech recognition decoding network, and by decoding the acoustic state sequence of the recognition target speech using multiple models, it is possible to perform more comprehensive and in-depth speech recognition for the recognition target speech in various forms.

[0087] In addition, when decoding and recognition are performed using multiple models, in the embodiment of the present application, an acoustic score incentive is performed for the speech recognition result output from the speech recognition decoding network. The above speech recognition decoding network recognizes vertical keywords more accurately than the general-purpose speech recognition model, so that even if the speech recognition result output from the speech recognition decoding network is close to the score of the speech recognition result output from the general-purpose speech recognition model, the speech recognition result output from the speech recognition decoding network will win based on the above acoustic score incentive process, thereby ensuring that the vertical keyword of the final speech recognition result is correctly recognized.

[0088] As a preferred embodiment, the embodiment of the present application proposes another speech recognition method, which is different from the speech recognition method shown in FIG. 5 in that the scene classification for decoding the acoustic state sequence of the speech to be recognized is added. Customised models have been added.

[0089] As shown in FIG. 6, in step S602, “the acoustic state sequence is generated by using a speech recognition decoding network.” and obtain a first speech recognition result" in S603 and "using a general-purpose speech recognition model to In addition to executing "decoding the acoustic state sequence and obtaining a second speech recognition result" in S604, The acoustic state sequence is decoded by a pre-trained scene customization model to obtain a third speech recognition result.

[0090] Here, the scene customized model is obtained by speech recognition training for speech in a scene to which the speech to be recognized belongs.

[0091] Specifically, for the function of the above scene customization model and the advantageous effects of adding the scene customization model, please refer to the embodiment of the voice recognition method shown in FIG. Therefore, we will omit it here.

[0092] Finally, the process of S606 "determine a final voice recognition result from the first voice recognition result after providing the incentive, the second voice recognition result, and the third voice recognition result" is executed.

[0093] For example, as described in the above embodiment, the first speech recognition result, the second speech recognition result, and the third speech recognition result are competed for acoustic scores, and the speech selected from them is selected. The speech recognition results or the one with the highest acoustic score are determined as the final speech recognition result. For the specific processing steps, please refer to the description of the above embodiment.

[0094] The specific contents of S601 to S603 and S605 in FIG. 6 are the same as those of the relevant steps in the above embodiment. Since the detailed processing details can be found in the relevant section, they will be omitted here.

[0095] In the above speech recognition methods, when a competition is finally made among multiple speech recognition results, the competition is made based only on the acoustic scores of the speech recognition results, and the influence of the language model on the recognition effect is completely ignored, especially in the above speech recognition decoding network or scene customization model. Such a simple competition policy has a large impact on the recognition effect, and in serious cases, it will cause malfunctions and affect the user experience.

[0096] In contrast, in an embodiment of the present application, it is proposed to provide language model incentives for speech recognition results in a competition based on acoustic scores, to include language model information in the speech recognition results, and finally to select the final speech recognition results based on the language scores.

[0097] As for the arbitrary voice recognition result decision and selection method, refer to the description of the above embodiment, and the first voice recognition decoding network, the general voice recognition model, and the scene customization model are respectively selected. A recognition result, a second speech recognition result, and a third speech recognition result are obtained, and a first speech recognition result and a second speech recognition result are obtained. 1. Incentivize Acoustics Score and First Speech Recognition After Incentive As a result, determining a final speech recognition result from the second speech recognition result and the third speech recognition result can be performed by the following process.

[0098] First, the acoustic score of the first speech recognition result after the acoustic score incentive is performed, and and based on an acoustic score of the first speech recognition result and the second speech recognition result, Candidates for the speech recognition result are determined from the speech recognition result.

[0099] Specifically, in the processing of this step, in the same manner as in the acoustic score contest described above, a competition is made on the first speech recognition result and the second speech recognition result after the acoustic score incentive is performed, and one or more speech recognition results having the highest selected acoustic scores are selected. The recognition results are used as candidates for the speech recognition results.

[0100] Next, a language model is generated for each of the candidate speech recognition result and the third speech recognition result. Incentives will be provided for those who wish to take part in the project.

[0101] Specifically, the above-mentioned language model incentive refers to matching the speech recognition result with a vertical keyword in the scene to which the speech to be recognized belongs, and if a match is possible, performing a path extension of the speech recognition result, and then re-evaluating the speech recognition result after the extension based on the clustering language model, and performing an incentive in the language model of the speech recognition result. A specific language model incentive processing process will be described in the following embodiment.

[0102] Finally, based on the language scores of the candidate speech recognition results after performing language model incentive and the language scores of the third speech recognition result after performing language model incentive, and determining a final speech recognition result from the candidates of the speech recognition result and the third speech recognition result. do.

[0103] Specifically, referring to the above acoustic score competition policy, a language score competition is conducted for the candidates of the speech recognition result after the language model incentive and the third speech recognition result. Then, one or more speech recognition results with the highest language scores are selected from the speech recognition results and used as the final speech recognition results. The specific process of the language score competition is omitted here because the process of the acoustic score competition described in the above embodiment can be referred to.

[0104] The order of execution of the steps such as the acoustic score incentive, language model incentive, and speech recognition result candidate selection can be freely adjusted as long as it does not affect the realization of the entire function. It is possible.

[0105] For example, as a method for determining and selecting the selectable speech recognition results, referring to the description of the above embodiment, the first speech recognition result, the second speech recognition result, and the third speech recognition result are obtained from the speech recognition and decoding network, the general speech recognition model, and the scene customization model, respectively. A language for the first speech recognition result, the second speech recognition result, and the third speech recognition result. The first step after incentivizing the model and then incentivizing the language model A competition is made based on the language scores of the first speech recognition result, the second speech recognition result, and the third speech recognition result, and the best score is selected from the first speech recognition result, the second speech recognition result, and the third speech recognition result. Determine the final speech recognition result.

[0106] The following describes in detail the processing steps of each speech recognition method described in each of the above examples in different embodiments. Since there are overlapping or identical processing steps between the above speech recognition methods, it should be understood that the specific embodiment of the processing steps described in each of the below examples can be applied to the necessary or related processing steps of the speech recognition method described in each of the above examples.

[0107] First, this application describes the construction process of the syntax decoding network for constructing the speech recognition decoding network in the above-mentioned embodiments of each speech recognition method. The construction process of the syntax decoding network described below is only an exemplary preferred embodiment, and when the technical solution of the embodiments of this application is actually applied, the function of the syntax decoding network shown in this embodiment can be referred to and constructed in a different form.

[0108] A syntax decoding network for a task to which the speech to be recognized belongs, as described in each of the above embodiments, is constructed by the following steps A1 to A3.

[0109] A1: A text-syntax network is constructed by performing syntactic induction and syntactic slot definition processing on the corpus data of the scene to which the recognition target speech belongs.

[0110] Corpus data for the business scenario to which the speech to be recognized belongs is speech annotation data collected from actual business scenarios. For example, when a user makes a phone call by voice or sends a short message by voice, the user's command voice for making a call or sending a short message is collected, annotated, and used as corpus data for making a phone call or sending a short message. Alternatively, manual expansion can be performed by combining experience to obtain grammatical and logical corpus data suitable for the business scenario. For example, "I want to give John a call" and "send a message to Peter for me" are each generated using two corpus data. In this case, since syntactic induction and syntactic slot definition are then performed directly based on the corpus, the coverage of the collected corpus is required to be high at this stage, but the coverage of vertical keywords is not required.

[0111] As described above, in a particular vertical keyword business scenario, the syntax of user speech is usually regular or can be said to be exhaustive. By inducing such syntax and classifying and defining the syntax slots of the syntax, a syntax network corresponding to the business scenario can be obtained, which is defined as a text syntax network in the embodiment of this application.

[0112] Defining the syntactic slots of a sentence as described above is specifically determining the grammatical type of the text slots of the sentence. In the embodiment of the present application, the text slots of a text sentence are classified into general syntactic slots and replacement syntactic slots, where the text slots corresponding to non-vertical keywords are defined as general syntactic slots, and the text slots corresponding to vertical keywords are defined as replacement syntactic slots. The general syntactic slots include the text slots The non-vertical keyword content of the sentence is stored, and the replacement syntax slot stores the placeholder corresponding to the vertical keyword. In the text, according to the position of the vertical keyword text slot, the number of general syntax slots is one or more. Each vertical keyword Each text slot corresponds to one substitution syntax slot.

[0113] The elements included in the text syntactic network constructed in the above embodiment include network nodes and directed arcs of connecting nodes, and the text syntactic network is defined based on ABNF (Augmented Backus-Naur Form). Directed arcs of the syntactic network are tagged with tag information, which corresponds to a placeholder in a substitution syntactic slot corresponding to the directed arc or to text in a general syntactic slot corresponding to the directed arc.

[0114] Figure 7 shows the results based on the collected corpus data on calling or sending short messages. Here is the defined text-syntax network: <xxxx>A directed arc with the tag is called a general syntactic slot, and a general syntactic slot contains at least one phrase, The collection of all phrases must be completed in the definition stage of the text syntactic network. Figure 7 contains two general syntactic slots, <phone>and <sth>and <phone>teeth In the scene corpus use case, the text phrases that precede the names of people in the contact list are used. For example, "I want to give" and "send a message" are <phone>These are the two phrases in the syntactic slots. <sth>Contact in the use case It corresponds to the text phrase content after the name of the person registered in the list, e.g. "a call" and "for me" <sth>These are two phrases in the syntax slots. The directed arc is called a replacement syntax slot, and the replacement syntax slot is a placeholder that is not assigned to an actual phrase in the syntax definition stage. The actual phrase is passed when constructing the speech recognition decoding network. In Fig. 7, "name" is a substitution syntax slot, and then the dynamically created vertical keyword network is inserted into the substitution syntax slot to construct the complete speech recognition decoding network. Finally, the directed arc with the "-" tag is called a virtual arc, and the virtual A virtual arc is a directed arc that does not have syntactic slots or phrase information and can select a path. The virtual arc must then have the appropriate syntactic slots to construct a network and a decoding path that can skip the syntactic slot. For example, in Figure 7, the virtual arcs between nodes 2 and 4 and between nodes 2 and 3 are The syntax slot corresponding to <sth>If it is a syntactic slot, the recognition result is In addition, two syntaxes are defined in the text syntax network in Figure 7, <phone>+name and <phone>+name+ <sth>The speech recognition results obtained from the network always match one of these two syntaxes. For example, The sentence "give a call to John" has the general syntax slot <phone>It contains only two slots: ="give a call to" and substitution syntax slot name="John". Because there is a lot of phrase data in the general syntax slots, for ease of explanation, the following examples use only a small number of phrases when explaining related concepts.

[0115] Furthermore, every syntactic slot in the text syntactic network may be given an ID, and a slot_id field for that syntactic slot may be defined to set a globally unique identifier.

[0116] Finally, the syntaxes defined in the syntactic network, the phrases in the syntactic slots and the general syntactic slots jointly constitute the text syntactic network.

[0117] A2: Divide phrases in the general syntactic slots in the text syntactic network, and expand word nodes from the division results to obtain a word-level syntactic decoding network.

[0118] Specifically, based on the syntactic slot information in the constructed text syntactic network, general syntactic slot phrases are analyzed, the phrases in the general syntactic slots are divided, and word nodes are expanded based on the division results to construct a word-level syntactic decoding network.

[0119] The word-level syntactic decoding network includes a plurality of nodes and directed arcs between the nodes. When constructing the word-level syntactic decoding network, firstly, each phrase in the general syntactic slot is divided respectively, and each word corresponding to each phrase is obtained.

[0120] Next, for each word corresponding to the same phrase, the word node is expanded, that is, the division results of the same phrase are connected in series by nodes and directed arcs to obtain a word sequence corresponding to the phrase. The directed arc between two nodes contains the word information obtained by division. It is noted that, where the items to the left and right of the colon represent input information and output information, respectively, and that the input information and the output information are set to be the same.

[0121] Finally, referring to the above node expansion method, multiple words split from a single phrase are connected in series, and word strings corresponding to different phrases in the same general syntax slot are connected in parallel. The replacement syntax slot is reserved for the placeholder "#placeholder#", and the expansion is performed. Instead of extending the word-level syntax, we number the network nodes sequentially, where words with the same start node identifier share one start node and words with the same end node identifier share one end node, thereby obtaining a word-level syntax decoding network.

[0122] FIG. 2 shows, by way of example, a simple contact list word-level syntactic decoding network. This is a diagram of the syntax slots <phone>contains three phrases: "I want to give," "send a message to," and "give a call," and has three syntactic slots: <sth>contains three phrases: "for me", "a call" and "a call with her number". The connection between node 10 and node 18 means that the end node can be reached directly from node 10, and the " " on the arc side represents mute.

[0123] A3: Replace each word in the general syntax slot in the word-level syntax decoding network with its pronunciation, expand the pronunciation node according to the pronunciation of the word, obtain a pronunciation-level syntax decoding network, and use the pronunciation-level syntax decoding network as the syntax decoding network for the scene to which the speech to be recognized belongs.

[0124] Specifically, first, each word in a general syntactic slot in the word-level syntactic decoding network is replaced with its corresponding pronunciation.

[0125] Illustratively, the pronunciation dictionary is consulted for correspondences between existing words and pronunciations to determine the pronunciation of the word annotated in each directed arc in the general syntactic slot in the word-level syntactic decoding network, and on this basis, the pronunciation of the word is substituted for the word annotated in the directed arc.

[0126] Next, for each pronunciation in the word-level syntactic decoding network, a pronunciation unit division is performed, and each pronunciation unit corresponding to the pronunciation is used to expand the pronunciation node, thereby obtaining a pronunciation-level syntactic decoding network.

[0127] That is, for each pronunciation of each directed arc of the word-level syntactic decoding network, its pronunciation unit is determined, and the pronunciation unit is classified, and in this application, the pronunciation is exemplarily divided into a phoneme sequence. For example, the pronunciation of the word "I" is the monophone "ay", and the pronunciation of the word "give" is the phoneme sequence "g ih v".

[0128] On this basis, the pronunciation nodes are serially connected to the pronunciation according to the order and quantity of the pronunciation units. Illustratively, similar to the word node expansion described above, each phoneme with the same pronunciation is serially connected in order by nodes and directed arcs to obtain a phoneme string corresponding to the pronunciation. Next, the pronunciation is replaced by the phoneme string corresponding to the pronunciation, and the word-level syntactic decoding network is expanded to a pronunciation-level syntactic decoding network. When the pronunciation nodes are expanded, the replacement syntactic slots are not expanded. The pronunciation-level syntactic decoding network is used as the syntactic decoding network for the task to which the speech to be recognized belongs.

[0129] FIG. 8 illustrates a simple pronunciation-level syntactic decoding network.

[0130] In addition, to facilitate the storage of the network structure in the computer, the dynamic insertion and updating of the sub-networks, and the decoding and traversal, the nodes in the syntax decoding network are numbered sequentially, and pronunciation units having the same start node identifier are grouped together. Pronunciation units that share a start node and have the same end node identifier A single node in the network contains three attribute fields in total: ID number, number of incoming arcs, and number of outgoing arcs. These form a triple array for storing the node. An in arc is a directed arc pointing to a node, and an out arc is a directed arc proceeding from a node. A single directed arc in a network includes four attribute fields in total: left node number, right node number, arc pronunciation information, and syntactic slot identifier slot_id to which it belongs. The total number of nodes and arcs in the network are also recorded.

[0131] In addition, the left and right node position information of the syntactic slots may be recorded in the syntactic decoding network. As shown in FIG. 8, <phone>The left node position of the substitution syntax slot name in the network is 10, the right node position is 11, and the general syntax slot <sth>The left node is 11 and the right node is 16.

[0132] Furthermore, arcs that satisfy the conditions within the obtained pronunciation-level syntactic decoding network are integrated and optimized, and redundant nodes are deleted to reduce the complexity of the network. The specific method used is the same as the optimization method for general decoding networks, so it is omitted here.

[0133] The decoding network obtained after completing the above steps becomes a syntax decoding network, which is introduced into the cloud speech recognition service as a global resource. However, since no real contact list information is recorded in the substitution syntax slot, it cannot have real decoding capabilities.

[0134] Based on the syntax decoding network obtained by the above construction, a speech recognition decoding network that decodes the acoustic state sequence of the speech to be recognized can be obtained by combining a vertical keyword set in the business context to which the speech to be recognized belongs.

[0135] In the embodiment of the present application, the construction process of the speech recognition decoding network is further illustrated by way of example.

[0136] As an embodiment, in the example of the present application, the following steps B1 to B3 are executed to construct a speech recognition and decoding network.

[0137] B1: A pre-constructed syntax decoding network for the scene to which the speech to be recognized belongs is obtained.

[0138] Specifically, as described in the above embodiment, a syntax decoding network for the task to which the speech to be recognized belongs is constructed in advance, and in this case, the syntax decoding network can be directly called. Alternatively, the syntax decoding network can be constructed in real time when step B1 is executed, referring to the description of the above embodiment.

[0139] B2: A vertical keyword network is constructed based on the vertical keywords in the vertical keyword set in the scene to which the speech to be recognized belongs.

[0140] Specifically, the vertical keyword set in the business scene to which the speech to be recognized belongs refers to a set consisting of all vertical keywords in the business scene to which the speech to be recognized belongs. For example, if the speech to be recognized is a voice for making a phone call by voice or sending a short mail by voice, the vertical keyword set in the business scene to which the speech to be recognized belongs may specifically be a set of personal names from the personal names registered in the user contact list. If the speech to be recognized is a voice for performing voice navigation, the vertical keyword set in the business scene to which the speech to be recognized belongs may specifically be a set of place names consisting of the names of various places in the area where the user stays.

[0141] In the embodiment of the present application, the contact list is taken as a vertical keyword set, and the construction of a network of people's names registered in the contact list is taken as an example to describe a specific implementation process of constructing a vertical keyword network.

[0142] Regarding the construction of the vertical keyword network, one can specifically refer to the construction process of the syntactic decoding network above, but the difference is that the constructed vertical keyword network does not contain syntactic slot information, and by default, all syntactic slots belong to replacement syntactic slots.

[0143] First, a word-level vertical keyword network is constructed based on each vertical keyword in a vertical keyword set in the business scene to which the speech to be recognized belongs.

[0144] For example, the names of people registered in the contact list are divided to obtain each word contained in the name, and each word is connected in series with nodes and directed arcs to obtain a word string corresponding to the name. Word strings corresponding to different names are connected in parallel to obtain a word-level name network.

[0145] Figure 9 shows a word sequence constructed with three contact phrases: "Jack Alen," "Tom," and "Peter." FIG. 13 illustrates a person name network at the level of the

[0146] Then, each word in the word-level vertical keyword network is replaced with its pronunciation, and the pronunciation node is expanded with the pronunciation of the word to obtain a pronunciation-level vertical keyword network.

[0147] For example, for each word in a word-level name network, the pronunciation is determined, the phonemes contained in the pronunciation are determined, each phoneme is connected by nodes and directed arcs to form a phoneme string, and then the pronunciation is replaced with the phoneme string corresponding to the pronunciation, thereby obtaining a name network at the pronunciation level.

[0148] Regarding the construction of the vertical keyword network at the word level and the process of the pronunciation substitution, reference can be made to the process contents when constructing the syntactic decoding network described in the above embodiment.

[0149] According to the above explanation, a vertical keyword network at the pronunciation level is obtained, which is the final constructed vertical keyword network. In this network, the node with 0 incoming arcs is the network start node, and the node with 0 outgoing arcs is the network end node.

[0150] Figure 10 shows the results obtained after performing phonetic substitution on the word-level name network shown in Figure 9. A diagram showing a phonetic level personal name network. In the network, the 0th node is the starting node of the network, and node 8 is the ending node of the network.

[0151] B3: The vertical keyword network is inserted into the syntactic decoding network to obtain a speech recognition decoding network.

[0152] From the above description, through the processes of constructing a word-level network and extending the pronunciation of the word-level network, the finally obtained syntactic decoding network and vertical keyword network are both composed of nodes and directed arcs connected to the nodes, and the directed arcs between the nodes store pronunciation information or placeholders. Specifically, the directed arcs corresponding to the general syntactic slots of the syntactic decoding network store the pronunciation information of the text in the slots, the directed arcs corresponding to the replacement syntactic slots of the syntactic decoding network store placeholders, and the directed arcs corresponding to each syntactic slot of the vertical keyword network store the pronunciation information of the text in the slots.

[0153] On this basis, the vertical keyword network is connected to the left and right nodes of the replacement syntax slot in the syntax decoding network through directed arcs, i.e., the vertical keyword network is used to replace the directed arc in which the replacement syntax slot is located in the syntax decoding network, thereby obtaining a speech recognition decoding network.

[0154] In order to ensure that valid pronunciation information is stored in the directed arc between each pair of adjacent nodes after connection when respectively connecting the left and right nodes of the vertical keyword network and the replacement syntax slot of the syntax decoding network, in the embodiment of the present application, the right node of each outgoing arc of the start node of the vertical keyword network is connected to the left node of the replacement syntax slot via a directed arc, and the pronunciation information of each outgoing arc of the start node of the vertical keyword network is stored in each connected directed arc, and the left node of each incoming arc of the end node of the vertical keyword network is connected to the right node of the replacement syntax slot via a directed arc, and the pronunciation information of each incoming arc of the end node of the vertical keyword network is stored in each connected directed arc, thereby obtaining a speech recognition decoding network.

[0155] As a more preferred embodiment, in order to improve the efficiency of inserting the vertical keyword network into the syntax decoding network, in the embodiment of the present application, the first arc and the last arc of each keyword in the vertical keyword network store a unique identifier corresponding to the keyword, and the unique identifier can be set as an example to the hash code of the keyword. For example, in the pronunciation level name network shown in Figure 10, the hash code corresponding to the name "Jack Alen" is stored in the directed arc between nodes (0, 1) and the directed arc between nodes (7, 8).

[0156] Accordingly, in the embodiment of the present application, a keyword information set inserted into the network is also set, and in the keyword information set inserted into the network, a unique identifier of the keyword inserted into the syntax decoding network and the left and right node numbers in the syntax decoding network of the directed arc in which the unique identifier is placed are respectively stored.

[0157] For example, the keyword information set inserted into the network may adopt a HashMap storage structure with a key:value structure. The key is a hash code corresponding to the vertical keyword, and the value is a pair of node numbers of the directed arc where the hash code is placed. In this case, the HashMap is empty at the start, and in the entire recognition service process, the HashMap uniquely stores pairs of hash codes and node numbers of all dynamically passed vertical keyword phrases, but does not record user IDs and the mapping relationship between user IDs and vertical keyword sets.

[0158] By setting the set of keyword information inserted in the network, it is easy to clarify the vertical keyword information inserted in the syntax decoding network, that is, it is easy to clarify the vertical keyword information existing in the speech recognition decoding network. Therefore, every time an insertion of a vertical keyword network is performed, the set of keyword information inserted in the network is checked to confirm whether a vertical keyword has been inserted. If it is confirmed that the vertical keyword to be inserted exists in the speech recognition decoding network, the insertion of the current vertical keyword is canceled, and the insertion operation of another vertical keyword is continued.

[0159] Based on the above idea, when inserting a vertical keyword network into a syntax decoding network, traverse each outgoing arc of the starting node of the vertical keyword network, and for each outgoing arc traversed, determine whether the keyword corresponding to the unique identifier has been inserted into the syntax decoding network based on the unique identifier of the outgoing arc and the keyword information set inserted into the network.

[0160] If the keyword corresponding to the unique identifier has not been inserted into the syntax decoding network, the right node of the traversed outgoing arc and the left node of the replacement syntax slot are connected through a directed arc, the pronunciation information of the traversed outgoing arc is stored in the directed arc, and the number of incoming or outgoing arcs of both end nodes of the directed arc is updated.

[0161] For example, when inserting a personal name network into a syntax decoding network, traverse each outgoing arc of the starting node in the personal name network, and for each outgoing arc traversed, obtain the personal name hash code of the outgoing arc, and compare the hash code with all the hash codes in the keyword information set inserted into the network. If the hash code matches any of the hash codes in the keyword information set inserted into the network, it means that the personal name corresponding to the hash code has been inserted into the syntax decoding network, in this case, skip the outgoing arc and perform hash code judgment of the next outgoing arc.

[0162] If the hash code of the traversed outgoing arc does not match any of the hash codes in the keyword information set inserted into the network, it means that the name corresponding to the hash code has not been inserted into the syntax decoding network. In this case, the right node of the traversed outgoing arc is connected to the left node of the replacement syntax slot in the syntax decoding network through a directed arc, the pronunciation information of the traversed outgoing arc is stored in the connecting directed arc, and the number of incoming or outgoing arcs of the nodes at both ends of the directed arc is updated.

[0163] The above process achieves the connection of the right node of each outgoing arc of the starting node of the vertical keyword network with the left node of the replacement syntactic slot of the syntactic decoding network.

[0164] Accordingly, for each incoming arc of an end node of the vertical keyword network, Sequentially traversing, for each incoming arc traversed, determining whether a keyword corresponding to the unique identifier has been inserted into the syntax decoding network based on the incoming arc's unique identifier and the keyword inserted into the network information set.

[0165] If the keyword corresponding to the unique identifier has not been inserted into the syntactic decoding network, the left node of the traversed incoming arc and the right node of the replacement syntactic slot are connected through a directed arc, and the pronunciation information on the traversed incoming arc is stored in the directed arc.

[0166] For example, when inserting a personal name network into a syntax decoding network, traverse each incoming arc of the end node in the personal name network, and for each traversed incoming arc, obtain the personal name hash code of the incoming arc, and compare the hash code with all the hash codes in the keyword information set inserted into the network. If the hash code matches any of the hash codes in the keyword information set inserted into the network, it means that the personal name corresponding to the hash code has been inserted into the syntax decoding network. In this case, skip the incoming arc and perform hash code judgment of the next incoming arc.

[0167] If the hash code of the traversed incoming arc does not match any of the hash codes in the keyword information set inserted into the network, it means that the name corresponding to the hash code has not been inserted into the syntax decoding network. In this case, the left node of the traversed incoming arc is connected to the right node of the replacement syntax slot in the syntax decoding network through a directed arc, the pronunciation information of the traversed incoming arc is stored in the connecting directed arc, and the number of incoming or outgoing arcs of the nodes at both ends of the directed arc is updated.

[0168] The above process realizes the connection of the left node of each incoming arc of the end node of the vertical keyword network with the right node of the replacement syntactic slot of the syntactic decoding network.

[0169] Through the above process, each keyword in the vertical keyword network is inserted into the syntax decoding network. In concrete implementation, the execution order of the insertion to the start node and the end node of the above vertical keyword network can be set freely, for example, the insertion operation can be performed to the start node of the vertical keyword network, and the insertion operation can be performed to the end node of the vertical keyword network. They can also be performed simultaneously.

[0170] Furthermore, when a keyword in a vertical keyword network is inserted into a syntax decoding network, i.e., after the right node of the first arc of the network path in which the keyword is placed is connected to the left node of the replacement syntax slot of the syntax decoding network, and the left node of the last arc of the network path in which the keyword is placed is connected to the right node of the replacement syntax slot of the syntax decoding network, in an embodiment of the present application, the unique identifier of the keyword and the left and right node numbers in the syntax decoding network with respect to the directed arc in which the unique identifier is placed are stored in the keyword information set inserted into the network, respectively.

[0171] For example, in the pronunciation-level name network shown in Figure 10, the placement of the name “Jack Alen” Node 1 of the network path shown in FIG. 8 is connected to the left node 10 of the substitution syntax slot of the syntax decoding network shown in FIG. 8, and node 7 of the network path where “Jack Alen” is placed is connected to node 8 of the network path shown in FIG. After the right node 11 of the substitution syntax slot of the syntax decoding network shown in FIG. 1 is connected, the hash code of the person's name "Jack Alen" is used as the key, and the directed arc in which the hash code is placed is The left and right node numbers are stored as values ​​in the keyword information set inserted into the network. do.

[0172] In an embodiment of the present application, to build a voice recognition decoding network in a cloud server, a user can upload a vertical keyword set to the cloud server, and the cloud server builds a large-scale or ultra-large-scale voice recognition decoding network based on the vertical keyword set uploaded by the user, to meet the calling needs of various users.

[0173] The setting of the keyword information set inserted into the network can improve the efficiency of inserting vertical keywords into the speech recognition decoding network, and can facilitate the selection of a specific decoding path according to the current user's speech recognition needs.

[0174] For example, in a business scenario where a user makes a voice call, when a voice recognition and decoding network is constructed according to the above solution, it contains both the contact list phrase information dynamically transmitted in the current conversation and the contact list information of other past conversations, and is stored in a keyword information set inserted into the network in the form of a hash code.

[0175] In order to correctly recognize who the user wants to call in the telephone contact list when recognizing the current conversation, the recognition is naturally performed within the currently transmitted contact list, in which case the paths of the speech recognition decoding network are updated to restrict the decoding paths to the currently transmitted contact list.

[0176] Specifically, embodiments include the following: Each unique identifier in the keyword information set inserted into the network is traversed, and if the traversed unique identifier is not the unique identifier of any keyword in the vertical keyword set in the business context to which the speech to be recognized belongs, the directed arc between the left and right node numbers corresponding to the unique identifier is disconnected.

[0177] Taking the above-mentioned business scenario of a user making a phone call by voice as an example, a speech recognition and decoding network is constructed using the user's contact list and the syntax decoding network to decode the user's voice. After inserting the current contact list into the speech recognition and decoding network, each hash code in the keyword information set inserted into the network is traversed, and if the traversed hash code is the hash code of a person's name registered in the currently transmitted contact list, no processing is performed, but if it is not the hash code of a person's name registered in the currently transmitted contact list, the keyword information set inserted into the network is examined, the left and right node numbers corresponding to the hash code are determined, and the directed arc between the left and right node numbers is disconnected. Then, in the speech recognition and decoding network actually involved in the decoding, only the decoding path where the currently transmitted contact list is placed is in a conductive state, so that when decoding is performed, a speech recognition result of calling one of the names listed in the current contact list is obtained, which meets the user's expectations.

[0178] In this way, by the above process, when decoding the current voice, the decoding path is within the range of the vertical keyword set transmitted this time, so that the path search range is narrowed, the decoding efficiency is improved, and the decoding error is reduced.

[0179] To summarize the above descriptions of the embodiments of each speech recognition method, the speech recognition decoding network constructed based on the vertical keyword set and syntax decoding network is considered to be the main network for realizing speech recognition related to vertical keywords.

[0180] Through research, the inventors of the present application have found that the voice recognition and decoding network has two problems: vertical keyword malfunction and insufficient network coverage.

[0181] The problem of malfunction is the most common problem in speech recognition based on a fixed-phrase speech recognition decoding network, and is the most difficult problem to solve. Malfunction means that the actual content of the audio is not the syntax of the fixed-phrase speech recognition decoding network, but the result of the fixed-phrase speech recognition decoding network is obtained as the final result. Vertical keyword malfunction means that there is no vertical keyword in the actual result, or the vertical keyword does not exist in the vertical keyword set currently transmitted, but the result of the speech recognition decoding network wins as the final result, and the wrong vertical keyword is obtained. For example, in the case of making a phone call, there is no person's name in the actual result, or the person's name does not exist in the contact list currently transmitted, but the result of the speech recognition decoding network output wins as the final result, and the wrong person's name is obtained.

[0182] There are generally four types of vertical keyword malfunctions: (1) Malfunctions where the vertical keyword and the true result are pronounced the same. (2) Malfunctions where the vertical keyword and the true result are pronounced similarly. (3) The pronunciation of vertical keywords and true results is completely different, but the incentive policy (4) There is no vertical keyword in the real result, A malfunction in which vertical keywords were recognized from the speech recognition decoding network.

[0183] Regarding the fourth malfunction, the root cause is the voice recognition decoding network. This is thought to be due to insufficient coverage of syntax in the work.

[0184] Considering the malfunction of the vertical keyword, the embodiment of this application provides a solution to the problem of insufficient syntax coverage of the speech recognition decoding network. For other malfunctions, the following embodiment provides a different solution to solve and improve them.

[0185] As mentioned above, the speech recognition decoding network is constructed based on the syntax decoding network, that is, it is constructed based on the syntax, and this network construction method has the advantage that it can accurately acquire speech syntax by matching, but it also has the disadvantage that it is difficult to cover all syntax in all situations with just the corpus used for network construction, so if the syntax is not in the network, it cannot be recognized. Therefore, the speech recognition decoding network has the problem of insufficient syntax coverage.

[0186] On the other hand, the general-purpose speech recognition model is trained with a large amount of data and has an extensive and very rich syntax. In certain business scenarios, the errors in the results of the general-purpose speech recognition model are often vertical keyword recognition errors. The general-purpose speech recognition model contains the language scores during corpus training, and it is not easy to apply the scores of the preferred vertical keywords from the corpus. Although the vertical keywords recognized by the general-purpose speech recognition model are incorrect, their syntax is correct, and the syntax is applied by the training data.

[0187] In other words, the syntax information, which is the recognition result of the general-purpose speech recognition model, is highly reliable, but the vertical keyword information, which is the recognition result of the speech recognition decoding network, is highly reliable. Based on this idea, this proposal proposes a method to solve the problem of insufficient syntax coverage of the speech recognition decoding network based on the syntax of the general-purpose speech recognition model.

[0188] The specific solution is to use a speech recognition decoding network and a general speech recognition model respectively constructed according to the technical idea of ​​the present application to decode the acoustic state sequence of the speech to be recognized, and After obtaining the speech recognition result and the second speech recognition result, a first The purpose is to correct the speech recognition results.

[0189] As mentioned above, the vertical keyword content of the first voice recognition result is more accurate. However, the syntax information of the second speech recognition result is more accurate. Therefore, when the second speech recognition result is used to correct the first speech recognition result, the syntax becomes more accurate if the non-vertical keyword content of the first speech recognition result is corrected.

[0190] Therefore, in the embodiment of the present application, the content of the first speech recognition result is converted into a vertical keyword content. and non-vertical keyword content, and accordingly classify the content of the second speech recognition result into reference text content and non-reference text content according to the correspondence relationship between the content of the second speech recognition result and the content of the first speech recognition result. The reference text content of the second speech recognition result is a reference text content of the second speech recognition result that matches the content of the non-vertical keyword of the first speech recognition result. This refers to the text content.

[0191] The text content matching the non-vertical keyword content of the first speech recognition result is: Specifically, the most similar character string to the non-vertical keyword content of the first speech recognition result is or the similarity may be greater than a set threshold.

[0192] According to the classification of the text content, the first speech recognition result is modified based on the second speech recognition result, specifically, the reference text content of the second speech recognition result is used to modify the non-vertical keyword content of the first speech recognition result, and the modified first speech recognition result is The aim is to obtain

[0193] The above correction process is specifically realized by executing the following steps C1 to C3.

[0194] C1: Vertical keyword content and non-vertical keyword content are obtained from the first speech recognition result. and determining text contents corresponding to the non-vertical keyword contents of the first speech recognition result from the second speech recognition result, and setting them as reference text contents.

[0195] In a preferred embodiment, the embodiment of the present application is based on an edit distance algorithm: The speech recognition result of the first speech recognition and the second speech recognition result are matched, and the reference text content is determined from the second speech recognition result.

[0196] Specifically, first, an edit distance matrix between the first speech recognition result and the second speech recognition result is determined based on an edit distance algorithm. The edit distance matrix includes the The edit distance between each character and each character of the second speech recognition result is included.

[0197] Next, based on the edit distance matrix and the non-vertical keyword content of the first speech recognition result, From the second speech recognition result, a text content corresponding to the non-vertical keyword content of the first speech recognition result is determined, and this is set as a reference text content.

[0198] According to the position of the vertical keyword in the first speech recognition result, the non-vertical keyword content of the first speech recognition result may be a character string before the vertical keyword and / or a character string after the vertical keyword. It is believed to be classified as a string of characters.

[0199] Taking the character string before the vertical keyword as an example, based on the character string of the part and the above edit distance matrix, a character string having the smallest edit distance with the character string of the part from the second speech recognition result; That is, the reference text content corresponding to the character string of the part is selected. Similarly, the reference text content corresponding to the character string after the vertical keyword can be determined by the above method.

[0200] C2: Determine modified non-vertical keyword content based on the reference text content of the second speech recognition result and the non-vertical keyword content of the first speech recognition result.

[0201] As an optional embodiment, in the embodiment of the present application, the reference text of the second speech recognition result The target text content of the second speech recognition result or the non-vertical keyword content of the first speech recognition result is modified according to the difference in the characters between the content and the non-vertical keyword content of the first speech recognition result. The non-vertical keyword content is determined after the selection.

[0202] Here, the target text content of the second speech recognition result is the first part of the second speech recognition result. This refers to the text content corresponding to the position of the non-vertical keyword content in the speech recognition result.

[0203] Specifically, with respect to the target text content of the second speech recognition result, the position in the second speech recognition result is the same as the position in the first speech recognition result with respect to the non-vertical keyword content of the first speech recognition result.

[0204] For example, if the non-vertical keyword content of the first speech recognition result is the text content before the vertical keyword of the first speech recognition result, the target text content of the second speech recognition result is: Specifically, the position of the vertical keyword in the first speech recognition result is the text content mapped before the position in the second speech recognition result. Regarding the position of the direct keyword, the mapping to the second speech recognition result is This is achieved based on columns.

[0205] The process of determining non-personal name content after correction will be described below using a case of making a phone call as an example. As described below, the position of a person's name in the first speech recognition result in a sentence will be described as an example, and in particular, the correction of the character string before the person's name in the first speech recognition result will be described. The correction process will be described below. The character strings following a person's name may also be subjected to such correction processing.

[0206] An edit distance matrix between the first speech recognition result and the second speech recognition result, and Based on the non-vertical keyword content of the result, the reference text content is determined from the second speech recognition result. Then, the reference text content of the second speech recognition result is compared with the non-vertical keyword content of the first speech recognition result to determine whether the reference text content of the second speech recognition result is the same as the non-vertical keyword content of the first speech recognition result.

[0207] If they are the same, the target text content of the second speech recognition result is converted into a non-vertical character after correction. -The word content will be determined.

[0208] If they are not the same, it is determined whether the number of characters in the second speech recognition result is greater than the number of characters in the non-vertical keyword content of the first speech recognition result, and whether the difference in the number of characters between the two exceeds a set threshold.

[0209] If the number of characters in the second speech recognition result is greater than the number of characters in the non-vertical keyword content of the first speech recognition result, and the difference in the number of characters between the two does not exceed a set threshold, The target text content of the speech recognition result is determined as the non-vertical keyword content after correction.

[0210] If the number of characters in the second speech recognition result is smaller than the number of characters in the non-vertical keyword content of the first speech recognition result and / or the difference in the number of characters between the two exceeds a set threshold, the non-vertical keyword content of the first speech recognition result is determined to be the non-vertical keyword content after correction.

[0211] Specifically, referring to the correction process shown in FIG. 11, based on the edit distance matrix between the first speech recognition result and the second speech recognition result and the character string before the person's name in the first speech recognition result, Calculate the local maximum subsequence of the character string before the person's name and the second speech recognition result, and The desired maximum subsequence is a reference text content determined from the second speech recognition result.

[0212] Next, it is determined whether the maximum subsequence is a character string before a person's name, that is, whether the reference text content is the same as the character string before a person's name.

[0213] If they are the same, the target text content of the second speech recognition result is converted to the corrected part before the person's name. In this case, the target text content of the second speech recognition result is specifically The position of the person's name in the first speech recognition result is between the first speech recognition result and the second speech recognition result. Based on the edit distance matrix of The content is:

[0214] If they are not the same, the second speech recognition result has more characters than the character string preceding the person's name. Determine whether or not this is the case.

[0215] If the number of characters in the second speech recognition result is less than the number of characters in the character string before the person's name, the character string before the person's name in the first speech recognition result is kept as it is, i.e., the number of characters in the first speech recognition result is not changed. The character string before the given name is determined to be the character string before the person's name after modification.

[0216] If the number of characters in the second speech recognition result is greater than the number of characters in the character string before the person's name, Determine whether the difference in the number of characters between the first and second sounds exceeds a set threshold. With respect to the portion where the number of characters in the voice recognition result exceeds the number of characters in the character string preceding the person's name, it is determined whether or not the portion exceeds 20% of the number of characters in the character string preceding the person's name.

[0217] If the set threshold is exceeded, the character string before the person's name in the first speech recognition result is left as is. That is, the character string before the person's name in the first speech recognition result is retained in the Determined as a string.

[0218] If the set threshold is not exceeded, the target text content of the second speech recognition result is corrected. It is determined as the string before the corrected person's name.

[0219] Similarly, for the character string following the person's name in the first speech recognition result, refer to the above description. , and determine the character string following the corrected person's name.

[0220] C3: Combine the modified non-vertical keyword content and the vertical keyword content to obtain a modified first speech recognition result.

[0221] Specifically, the combination result obtained by combining the corrected non-vertical keyword content and the vertical keyword content based on the positional relationship between the original non-vertical keyword content and the vertical keyword content is regarded as the corrected first speech recognition result.

[0222] For example, as shown in FIG. 11, when the character string before the corrected person's name, the character string of the person's name, and the character string after the corrected person's name are sequentially joined and combined, the first speech recognition result after the correction is obtained. get.

[0223] By the above processing process, the first speech recognition result is corrected, and the speech recognition decoding network is In addition to including more accurate vertical keyword information in the output results, general-purpose voice recognition The accurate syntactic information recognized by the model can be fused, so that the recognition results of the speech recognition decoding network are more accurate and the syntax coverage rate is higher, and the recognition malfunction problem that occurs when the syntax coverage rate of the speech recognition decoding network is low can be solved.

[0224] According to the above embodiment, when a plurality of models respectively decode the acoustic state sequence of the speech to be recognized, incentives (including acoustic incentives and linguistic incentives) may be given to the result of the speech recognition decoding network so that the result of the speech recognition decoding network can win the final competition. If the incentive process is not implemented appropriately, the incentive may be insufficient or too much incentive may be given, resulting in malfunctions, such as the above-mentioned second and third types of vertical keyword malfunctions ((2) malfunction in which the pronunciation of the vertical keyword and the real result are similar, and (3) malfunction in which the pronunciation of the vertical keyword and the real result are completely different, but caused by the introduction of the incentive policy).

[0225] In order to improve the above problems and provide reasonable incentives to ensure that the results of the speech recognition decoding network are not inferior to the results of other models, and to avoid recognition malfunctions of the speech recognition decoding network due to excessive incentives as much as possible, the embodiments of the present application study the above incentive schemes and propose a preferred incentive scheme.

[0226] In an embodiment of the present application, first, when using a speech recognition decoding network and a general-purpose speech recognition model to decode an acoustic state sequence of a speech to be recognized, the final speech recognition result is determined from the first speech recognition result output from the speech recognition decoding network and the second speech recognition result output from the general-purpose speech recognition model, by referring to the process shown in FIG. 12 and performing the processing of the following steps D1 to D3.

[0227] D1: Comparing the first speech recognition result and the second speech recognition result, determining a degree of match between the first speech recognition result and the second speech recognition result; The reliability of the first speech recognition result is determined based on the degree of coincidence between the first and second speech recognition results.

[0228] Specifically, a character edit distance is calculated from the first speech recognition result and the second speech recognition result by an edit distance algorithm, and the degree of match between the two is determined.

[0229] After the degree of agreement between the first speech recognition result and the second speech recognition result is determined, the first speech recognition result is The reliability of the first speech recognition result is determined based on the degree of agreement between the first speech recognition result and the second speech recognition result.

[0230] For example, when determining the reliability of the first speech recognition result, it is first determined whether the degree of match between the first speech recognition result and the second speech recognition result is greater than a set threshold value of degree of match. The matching threshold is the single value with the greatest contribution to recognition, as calculated from multiple test sets. It is.

[0231] If the degree of agreement is greater than the set threshold, the acoustic characteristics of each frame of the first speech recognition result are Based on the scores, a confidence level of the first speech recognition result is determined by calculation, i.e., a cumulative sum or a weighted cumulative sum of the acoustic scores of each frame of the first speech recognition result is calculated, and the result of the cumulative sum is the confidence level of the first speech recognition result.

[0232] If the degree of coincidence is not greater than the set threshold, the vertical keyword of the first speech recognition result is A decoding network is constructed using the content of the message and the second speech recognition result, and the decoding network is The acoustic state sequence is re-decoded using a network, and the first acoustic state sequence is generated based on the result of the decoding. The voice recognition result is updated based on the acoustic score of each frame of the first voice recognition result after the update. Based on this, the reliability of the first speech recognition result is determined by calculation.

[0233] Specifically, if the degree of agreement between the first speech recognition result and the second speech recognition result is not greater than the set threshold value of degree of agreement, the vertical keyword of the first speech recognition result and the syntax of the second speech recognition result, i.e., the content of the second speech recognition result other than the content corresponding to the vertical keyword, are Utilizing the above, we construct a small decoding network, which can be seen to have only one decoding path.

[0234] Using the small decoding network, the acoustic state sequence of the recognition target speech is re-decoded to obtain a decoding result, which is taken as a new first speech recognition result. For each frame of the first speech recognition result after the update, using the acoustic score at the time of decoding, The cumulative sum or weighted cumulative sum of the acoustic scores of each frame is calculated, and the first sound is finally determined. This is the confidence level of the voice recognition result.

[0235] If the reliability of the first speech recognition result is greater than a preset reliability threshold, step D2 "calculate the reliability of the first speech recognition result based on the acoustic score of the first speech recognition result and the acoustic score of the second speech recognition result" is performed. and selecting a final speech recognition result from the first speech recognition result and the second speech recognition result based on the selected speech recognition result.

[0236] Specifically, the above-mentioned confidence threshold is a threshold determined by testing to determine whether the first speech recognition result is similar to other This refers to the score threshold that will win the score competition against the voice recognition results.

[0237] If the reliability of the first speech recognition result is greater than a preset reliability threshold, it means that the first speech recognition result will not easily lose to the acoustic scores of other speech recognition results due to its reliability. Therefore, in this case, the acoustic scores and Based on the acoustic scores of the first and second speech recognition results, a competition is held between the two. The speech recognition result with the highest acoustic score or scores selected from the speech recognition results is called the final speech recognition result. Let us assume that.

[0238] the reliability of the first speech recognition result is not greater than a preset reliability threshold; Step D3: "incentivizing the acoustic score for the first speech recognition result" and selecting a final speech recognition result from the first speech recognition result and the second speech recognition result based on an acoustic score of the first speech recognition result after the incentive is given and an acoustic score of the second speech recognition result.

[0239] Specifically, when the reliability of the first speech recognition result becomes greater than a preset reliability threshold value, If the first speech recognition result does not have a high degree of confidence, it means that the reliability of the first speech recognition result is low, i.e., its acoustic score is low. However, it lost the acoustic score of the other speech recognition results, and the more accurate vertical keyword information contained in the first speech recognition result was selected from the speech recognition results that were finally selected. This can result in information being lost and misrecognition, especially of vertical keywords.

[0240] In this case, to prevent the first speech recognition result from easily losing to the subsequent acoustic score, In an embodiment of the present application, an acoustic score incentive is provided for the first speech recognition result; Specifically, the acoustic score of the vertical keyword slot in the first speech recognition result is Incentives are provided, and the sound of the slot in which the vertical keyword of the first speech recognition result is placed is Increasing the acoustics score by a fixed percentage improves the acoustics score of the first speech recognition result and ensures that the first speech recognition result will not easily be outdone by the acoustics scores of other speech recognition results thereafter.

[0241] After performing the acoustic score incentive for the first speech recognition result, incentive Based on the acoustic score of the first speech recognition result and the acoustic score of the second speech recognition result after performing the above, a competition is made between the acoustic scores of both results, and one or more acoustic scores selected from the competition are The highest speech recognition result is taken as the final speech recognition result.

[0242] The following is an incentive for the acoustic score for the first speech recognition result according to each of the above embodiments: A specific embodiment relating to the above will be described.

[0243] Incentivizing the acoustic score for the first speech recognition result means incentivizing the acoustic score of the slot in which the vertical keyword of the first speech recognition result is placed, specifically, After the score is multiplied by the incentive coefficient, the acoustic score of the first speech recognition result is determined by recalculation based on the vertical keyword acoustic score after the incentive is applied.

[0244] Specifically, the following steps E1 to E3 are executed to obtain an acoustic characteristic of the first speech recognition result. A points incentive can be realized.

[0245] E1: At least the vertical keyword content and non-vertical keyword content of the first speech recognition result The acoustic incentive coefficient is determined based on the content of the program.

[0246] The acoustic incentive coefficient is an incentive for the acoustic score for the first speech recognition result. If the incentive coefficient is too large, the incentive becomes excessive, which causes the recognition malfunction problem described above. If the incentive coefficient is too small, the purpose of the incentive is not achieved, and the first speech recognition result is not able to compete with other speech recognition results in terms of points. I lose.

[0247] Therefore, the determination of the acoustic incentive coefficient is the key to solving the problem of the malfunction of the vertical keyword in the above embodiment and the problem of losing important vertical keyword information in the acoustic competition.

[0248] In an embodiment of the present application, the acoustic incentive factor is determined by detecting at least a first acoustic The determination is based on the vertical keyword content and non-vertical keyword content of the voice recognition result, and is also set to take into consideration actual business situations and experience parameters in actual business situations.

[0249] As an optional embodiment, an incentive prior coefficient of an acoustic score in a business situation to which the recognition target voice belongs, the number of characters of the vertical keyword of the first speech recognition result, the number of phonemes, and Based on the number of all characters and the number of all phonemes of the first speech recognition result, An incentive factor may be determined.

[0250] Specifically, in this embodiment, the acoustic incentive coefficient RC is calculated by the following formula. RC=1.0+α*{β*(SlotWC / SentWC)+(1-β)*(SlotPC / SentPC)}

[0251] Here, α is the a priori coefficient of the scene, which in the embodiment of the present application is the incentive a priori coefficient of the business scene to which the speech to be recognized belongs, and the signs of the coefficients respectively represent the positive incentive and the negative incentive. The a priori coefficient α is an open parameter, and can be dynamically set every time a recognition conversation is performed according to the needs of the recognition system. For example, based on natural language processing (NLP) technology, the upper layer system can set the a priori coefficient α according to the context during the user dialogue. It predicts the user's behavioral intentions and dynamically adjusts the coefficients in real time to meet the requirements in various situations.

[0252] In addition, since the word count and the length of the phoneme of the word pronunciation of the vertical keyword may not match in the vertical keyword in the business scene related to the vertical keyword, in order to improve the generalization ability and the adaptability in each slot of the acoustic incentive coefficient and to avoid unreasonable incentives, the word count in slot (SlotWC) and the phoneme count in slot (SlotPC), all of which are included in the slot where the vertical keyword is placed, are designed. That is, the proportional relationship between the number of characters and the number of phonemes of the vertical keyword, and the number of words in a sentence (word count in sentence: SentWC) and the number of phonemes (phoneme count in sentence: SentPC) (i.e., the total number of characters and the total number of phonemes of the first speech recognition result) is fully taken into consideration, and an influence weight β is set for the number of characters and the number of phonemes, respectively, so that the sum of the influence weights of the characters and the phonemes becomes 1. This method limits the range of the acoustic incentive coefficient and realizes self-adaptation of the incentive under different sentence lengths and keywords. In a particular case, if the calculated incentive coefficient RC exceeds 1.0, the recognition result is biased toward the first speech recognition result output from the speech recognition decoding network, otherwise it is biased toward the results output from other models. In addition, the incentive for the acoustic score is an incentive for the acoustic score of the slot where the vertical keyword is placed, and the interference of irrelevant contexts is eliminated, thereby avoiding the recognition malfunction problem caused by excessive incentives.

[0253] In another embodiment, the vertical keyword content of the first speech recognition result is firstly generated. Prime number and acoustic scores, and phoneme quantity and phoneme quality of non-vertical keyword content of the first speech data result Calculate a score confidence of the vertical keyword content of the first speech recognition result based on the acoustic score; Next, based on the score confidence of the vertical keyword content of the first speech recognition result, an acoustic inference is performed. Determine the objective coefficient.

[0254] Specifically, when analyzing the acoustic state sequences of speech recognition results, it is found that the state sequences of incorrectly recognized words have low scores, which is why correctly recognized results also have the highest scores. In other words, the average score of the acoustic sequences of incorrectly recognized results is low.

[0255] In the case of a task involving vertical keywords, the vertical keywords are not correctly recognized, but the overall syntax is recognized normally. That is, in the overall speech recognition result, the local recognition effect of the vertical keywords is worse than the recognition effect of the non-vertical keyword part of the whole sentence. In line with this idea, this proposal proposes a scheme to solve the malfunction problem that the vertical keywords are close to the pronunciation of the actual result by using the score confidence of the vertical keyword content.

[0256] The proposal for the score confidence of vertical keywords divides the vertical keywords and non-vertical keywords in the first speech recognition result output from the speech recognition decoding network, and The ratio of the total acoustic score of the vertical keyword to the number of effective acoustic modeling factors occupied by the vertical keyword, and the ratio of the total acoustic score of the non-vertical keyword part to the number of effective acoustic modeling factors occupied by the non-vertical keyword part are calculated, and then the two are divided to obtain the score reliability value of the vertical keyword.

[0257] Score confidence of the above vertical keywords S c is calculated by the following formula:

number

[0258] Here, the acoustic score of the vertical keyword of the first speech recognition result is S p , Vertical Keywords The number of effective acoustic phonemes occupied by the slot in which p ,Total acoustics of non-vertical keywords Score S a , the number of effective acoustic phonemes occupied by the slots in which the non-vertical keywords are placed is N a It is written as:

[0259] After obtaining the score confidence of the vertical keyword content of the first speech recognition result, Based on this, an acoustic incentive coefficient for providing an incentive for that vertical keyword can be determined.

[0260] In an exemplary embodiment, the vertical keyword content score confidence of the first speech recognition result and A preset confidence threshold is compared. The confidence threshold is determined by the probability of recognition errors according to an acoustic incentive coefficient. Vertical keywords of the first speech recognition result If the score reliability of the content exceeds the reliability threshold, it is considered that the vertical keyword is likely to cause a malfunction, and the acoustic incentive coefficient of the vertical keyword should be reduced when determining the acoustic incentive coefficient of the vertical keyword. If the score confidence of the resultant vertical keyword content does not exceed the confidence threshold, it is considered that the vertical keyword is likely to lose the competition, and the acoustic incentive coefficient should be increased when determining the acoustic incentive coefficient of the vertical keyword.

[0261] In addition, based on the score confidence of the vertical keyword content of the first speech recognition result, When determining the incentive coefficient, the score of the vertical keyword content of the first speech recognition result is The confidence level and the relationship between the predetermined acoustic incentive factor and the cognitive effect or malfunction can be combined and jointly used in determining the acoustic incentive factor.

[0262] Specifically, in the embodiment of the present application, the recognition results of multiple test sets are analyzed, the influence of the magnitude of the acoustic incentive coefficient on the recognition effect or recognition error is statistically calculated, and the relationship between the acoustic incentive coefficient and the recognition effect or recognition error is determined.

[0263] Based on the relationship between the acoustic incentive coefficient and the recognition effect or recognition error, when determining the specific value of the acoustic incentive coefficient, a value that balances the improvement of the recognition rate and the reduction of the error is selected. The selection principle is that the number of errors is much greater than the improvement of the recognition effect. Using the acoustic incentive coefficients selected in the embodiment of the present application, the number of recognition errors is 100 times smaller than the number of recognition gains.

[0264] E2: Using the acoustic incentive coefficient, Update the acoustic score of the audio content.

[0265] Specifically, the acoustics of the vertical keyword content slot of the first speech recognition result The score is multiplied by the acoustic incentive factor determined in the above step to obtain the acoustic score of the updated vertical keyword content.

[0266] E3: Acoustic score of the vertical keyword content of the first speech recognition result after updating, and and recalculating the acoustic score of the non-vertical keyword content of the first speech recognition result based on the acoustic score of the non-vertical keyword content of the first speech recognition result. and determining an acoustic score for the first speech recognition result.

[0267] Specifically, the acoustic score of the vertical keyword content after updating is compared with the first speech recognition result. Then, the acoustic score of the vertical keyword content of the first speech recognition result is replaced. The acoustic scores of each character are summed or weighted, and the first speech recognition result after the update is Obtain an acoustic score.

[0268] In the following, specific embodiments of the incentive for the language model according to each of the above embodiments will be described. In the below-described embodiments, the incentive for the language model for the third speech recognition result is The specific processing content of the language model incentive will be described using the active as an example. The specific language model incentive processing process is not limited by the incentive target. The language model incentive concept is also applicable to incentives for other speech recognition results. For example, it should be understood that the language model incentive realization concept described in the embodiment described below is similarly applied to the language model incentive for the speech recognition result candidates selected from the first speech recognition result and the second speech recognition result.

[0269] The incentive for the language model means that the score of the speech recognition result is recalculated in the language model, and the score of the speech recognition result has a language component.

[0270] The incentive mechanism for the language model is a clustering class language model and a vertical clustering Based on the policy of matching the keyword to the pronunciation sequence of the speech recognition result, the path of the speech recognition result is expanded, and a language score of the speech recognition result is determined based on the expanded path and the above clustered language model.

[0271] First, we will explain the clustering class model. In a particular speech recognition task involving vertical keywords, such as navigation, the vertical keywords in each task are restricted to a finite range through enumeration or a user-provided scheme, and the context in which the vertical keywords are placed usually manifests as a specific syntax.

[0272] In addition to using a common training corpus, clustering language models also use The clustering language model defines a type for every specific situation, and each type of situation has a type tag corresponding to that situation. After defining all the class tags, In addition, vertical keywords such as person names, city names, and audio / video names in the training corpus are also replaced with appropriate category tags to become the target corpus, which are then added to the initial training corpus and reused for speech recognition training to the clustered language model. With this processing method, the special word class represents the probability of a certain category of words, so the clustering The probability of the N-gram language model in which the special word class is placed in the model is a specific vertical type - This is clearly higher than the probability of the word itself.

[0273] Based on the above-mentioned type tag, in the embodiment of the present application, a third speech recognition result is obtained based on a vertical keyword set in the business scene to which the speech to be recognized belongs and the type tag corresponding to the business scene. Then, perform path expansion on the result.

[0274] For example, first, the vertical keyword of the third speech recognition result and the recognition target speech belong to Compare the vertical keywords in the vertical keyword set in business situations.

[0275] As described above, in a specific speech recognition task scenario that includes vertical keywords, such as making a call, checking the weather, and navigation, the vertical keywords are within a finite range. All vertical keywords in that task scenario can be used as a static resource by enumeration, user provision, or other methods. Using the pronunciation dictionary resource, the pronunciation sequence information of the vertical keywords in the task scenario to which the recognition target voice belongs and the third speech recognition result is generated, the pronunciation information of the vertical keywords in the third speech recognition result is compared with the pronunciation information of the vertical keywords in the vertical keyword set in the task scenario to which the recognition target voice belongs, and the vertical keywords in the third speech recognition result are generated. It is then determined whether the vertical keyword matches any vertical keyword in a vertical keyword set for the business situation to which the speech to be recognized belongs.

[0276] Third, vertical keywords of the speech recognition results and vertical keywords in the business context to which the speech to be recognized belongs If any vertical keyword in the keyword set is matched, the third voice A new path is extended between the left and right nodes of the slot in which the vertical keyword of the recognition result is placed, and a type tag corresponding to the business scene to which the speech to be recognized belongs is stored in the new path.

[0277] For example, FIG. 13 shows a speech recognition result for a task of making a phone call. <s> Telephone number< / s> FIG. 1 shows a state lattice of "

[0278] If it is confirmed that the name "Zhang San" of the speech recognition result matches "Zhang San" in the contact list uploaded by the user through pronunciation matching, a new path is extended between the left and right nodes of the slot in which "Zhang San" is placed in the state network shown in FIG. 13, and the new path shares the start node and the end node with "Zhang San" in the original state network. A class tag "class" corresponding to the current business scene is annotated on the new path. Specifically, the "class" may be a specific "person's name". The state after the path extension is The network is as shown in FIG.

[0279] After completing the above process to extend the path of the third speech recognition result, Based on the recognition results to the training corpus for the corresponding clustered language models of the category tags corresponding to the task scenarios, language model scores of the third speech recognition result and the extension pass of the third speech recognition result are determined respectively.

[0280] Specifically, the recognition result for the training corpus of the clustered language model includes the N-gram language model probability of each word in the recognition result, which is the language score of the word.

[0281] After completing the path extension of the third speech recognition result, a clustered language model corresponding to the third speech recognition result is selected, and the scores are re-examined for the third speech recognition result and the extension path of the third speech recognition result, and the language model scores of the third speech recognition result and the extension path of the third speech recognition result are respectively determined.

[0282] In the embodiment of the present application, the general-purpose speech recognition model and the scene customization model are trained on different corpora, so the two models correspond to different clustered class language models, whereas the speech recognition decoding network and the scene customization model are both domain-related models, so they share the same clustered class language model. Therefore, when the score is recalculated for the speech recognition result, the clustering language model is adapted based on the model of the obtained speech recognition result, and the score is recalculated for the speech recognition result.

[0283] In particular, when the above language model incentive scheme is used to incentivize a language model for candidate speech recognition results selected from the first speech recognition result and the second speech recognition result, since the candidate speech recognition results are either results output from a speech recognition decoding network (i.e., any one or more of the first speech recognition results) or results output from a general-purpose speech recognition model (i.e., one or more of the second speech recognition results), in order to re-examine the scores, a clustered language model of the same type as the source of the candidate speech recognition results must be selected based on the source.

[0284] The above different types of clustered language models have the same model structure, but the training corpora are different. For example, the general-purpose speech recognition model and the same type of clustered language model are trained from a large corpus, and we call it model A, and the scene customization model is called model B. The same type of clustering language model is trained from a scene corpus, and we call it model B. Models A and B are trained from different types of training corpora. Therefore, the two correspond to different types of clustered language models. The same type of clustered language model as the speech recognition decoding network is also trained from a scene corpus. Let us call it model C. Models B and C are trained from the same type of training corpus. Since they are the same type of clustered language model,

[0285] Table 1 shows the calculation method for re-examining the scores for the two passes in FIG. [Table 1]

[0286] Based on the above description, referring to Table 1, the third speech recognition result and the third speech recognition result Then, the language model scores scoreA and scoreB of the expansion pass can be determined.

[0287] Finally, a language model score of the third speech recognition result and a language model score of the extension path of the third speech recognition result are used to obtain a language model score of the third speech recognition result after incentive. Determine the score.

[0288] Specifically, the language model score scoreA of the third speech recognition result and the language model score scoreB of the extension path of the third speech recognition result are combined in a certain ratio, so that the sum of the combination coefficients of the two becomes 1. A language score after incentive is obtained for the language model of the third speech recognition result.

[0289] For example, the post-incentive language score Score of the language model of the third speech recognition result is calculated using the following formula: Score = γ*scoreA+(1-γ)*scoreB

[0290] Here, γ is an empirical coefficient whose value is determined by testing. Specifically, the objective is to obtain a correct language score, and to compete on the language score to obtain a correct speech recognition result from many speech recognition results.

[0291] The above examples describe specific embodiments of the acoustic score incentive and the language model incentive. In the above embodiments, especially in the acoustic score incentive embodiment, the malfunction problem of the vertical keyword is fully considered and the incentive coefficient is reasonably set, so that the malfunction problem that occurs when the vertical keyword is close to the pronunciation of the actual test result due to the incentive and the malfunction problem that occurs when the vertical keyword is significantly different from the pronunciation of the actual result can be solved.

[0292] As described in the above embodiment, the malfunction problem caused by the pronunciation of the vertical keyword and the actual result being the same cannot be solved by the above-mentioned incentive coefficient control concept. This is because the speech recognition decoding network constructed in the embodiment of the present application is a syntactic network that does not contain linguistic information and relies on an acoustic model, and cannot essentially solve the problem of the pronunciation of the vertical keyword and the actual result being the same. In order to reduce the impact of such malfunction, the embodiment of the present application uses multiple candidates to show the result to the user.

[0293] Specifically, the general-purpose speech recognition model and the speech recognition decoding network are based on one acoustic model. Since the outputs share the same pronunciation, their acoustic scores are always the same. Therefore, the first speech recognition result output from the speech recognition decoding network is and the acoustic score of the second speech recognition result output from the general-purpose speech recognition model are the same. In this case, both the first and second speech recognition results are treated as the final speech recognition results, that is, the first and second speech recognition results are output simultaneously, and the user selects the correct speech recognition result from among them. Here, the output order when the first and second speech recognition results are output simultaneously can be freely adjusted, and preferably, the first speech recognition result is output first. , and the second speech recognition result is output last.

[0294] Regarding the points to be explained, the idea of ​​outputting the speech recognition result from a plurality of candidates as described above is also applicable to the score competition of the speech recognition results of more models. For example, as described in the above embodiment, when the output results of the speech recognition decoding network, the general speech recognition model, and the scene customization model are competed by score and the final speech recognition result is determined, if there are a plurality of speech recognition results with the same score, these speech recognition results with the same score are output simultaneously, and the user can select the correct speech recognition result from among them.

[0295] Up to now, the above embodiments of the present application respectively describe the processing process of each proposed speech recognition method, in particular the typical processing steps of each speech recognition method. It should be noted that, in order to simplify the specification, the specific embodiments of the same or related processing steps in each speech recognition method can be mutually referred to, so that the embodiments of the present application will describe them one by one. The processing steps in each speech recognition method are referred to and combined with each other to form a technical solution that does not exceed the scope of protection of this application.

[0296] In addition, in accordance with the above-mentioned speech recognition method, a speech recognition device is proposed in the embodiment of the present application. As shown in FIG. 15, the speech recognition device: an acoustic recognition unit 001 for acquiring an acoustic state sequence of a speech to be recognized; A network construction unit 002 for constructing a speech recognition decoding network based on a vertical keyword set and a syntax decoding network in the scene to which the speech to be recognized belongs; and a decoding processing unit 003 for decoding the acoustic state sequence using the speech recognition decoding network to obtain a speech recognition result. Here, the syntax decoding network is obtained by syntactic induction processing on a text corpus at least in the context of the speech to be recognized.

[0297] In an alternative embodiment, constructing a speech recognition decoding network based on a vertical keyword set and a syntax decoding network in the business context to which the speech to be recognized belongs, The method includes transmitting a vertical keyword set for the scene to which the recognition target voice belongs to a cloud server, and constructing a speech recognition decoding network in the cloud server based on the vertical keyword set for the scene to which the recognition target voice belongs and the syntax decoding network.

[0298] In an optional embodiment, the speech recognition result is a first speech recognition result. In addition, the decoding processing unit 003 Decoding the acoustic state sequence using a general speech recognition model to obtain a second speech recognition result. , A final speech recognition result is determined from at least the first speech recognition result and the second speech recognition result.

[0299] In an alternative embodiment, the decoding processing unit 003: A pre-trained scene customization model is used to decode the acoustic state sequence and obtain a third speech recognition result, where the scene customization model is obtained by speech recognition training for speech in a scene to which the speech to be recognized belongs.

[0300] determining a final speech recognition result from at least the first speech recognition result and the second speech recognition result, From the first speech recognition result, the second speech recognition result, and the third speech recognition result, determining a final speech recognition result.

[0301] In an optional embodiment, determining a final speech recognition result from the first speech recognition result, the second speech recognition result, and the third speech recognition result includes: the first speech recognition result, the second speech recognition result, and the third speech recognition result, Incentivizing language models for The first speech recognition result, the second speech recognition result, and the third speech recognition result after the incentive is provided. and determining a final speech recognition result from the first speech recognition result, the second speech recognition result, and the third speech recognition result based on a linguistic score of the recognition results.

[0302] In an optional embodiment, determining a final speech recognition result from the first speech recognition result, the second speech recognition result, and the third speech recognition result includes: incentivizing an acoustics score for the first speech recognition result and incentivizing a language model for the third speech recognition result; an acoustic score of the first speech recognition result after performing an acoustic score incentive; and based on an acoustic score of the second speech recognition result, determining candidates for a speech recognition result from the recognition result; Incentivizing a language model for the candidate speech recognition result; Based on the language score of the candidate speech recognition result after performing language model incentive and the language score of the third speech recognition result after performing language model incentive, determining a final speech recognition result from the candidates of the speech recognition result and the third speech recognition result; Includes and.

[0303] In another embodiment of the present application, another speech recognition device is proposed, as shown in FIG. 16, which comprises: an acoustic recognition unit 011 for obtaining an acoustic state sequence of a speech to be recognized; Decoding the acoustic state sequence using a speech recognition decoding network to perform a first speech recognition. obtaining a result, decoding the acoustic state sequence using a general speech recognition model, and performing a second speech recognition a multi-dimensional decoding unit 012 for obtaining a result; An acoustic incentive for incentivizing an acoustic score for the first speech recognition result. Active Unit 013 and and a decision-making processing unit 014 for determining a final speech recognition result from at least the first speech recognition result after the incentive and the second speech recognition result. The speech recognition decoding network is constructed based on a vertical keyword set in the context of the speech to be recognized and a syntax decoding network.

[0304] In an alternative embodiment, the multi-dimensional decoding unit 012 further comprises: A pre-trained scene customization model is used to decode the acoustic state sequence and obtain a third speech recognition result, where the scene customization model is obtained by speech recognition training for speech in a scene to which the speech to be recognized belongs.

[0305] Determining a final speech recognition result from the first speech recognition result after at least the incentive and the second speech recognition result, The first speech recognition result, the second speech recognition result, and the third speech recognition result after the incentive is provided. and determining a final speech recognition result from the speech recognition results.

[0306] As an optional embodiment, a final speech recognition result is determined from the first speech recognition result after the incentive is provided, the second speech recognition result, and the third speech recognition result. , an acoustic score of the first speech recognition result after performing an acoustic score incentive; and based on an acoustic score of the second speech recognition result, determining candidates for a speech recognition result from the recognition result; The candidate speech recognition result and the third speech recognition result are each subjected to an input of a language model. and Based on the language score of the candidate speech recognition result after performing language model incentive and the language score of the third speech recognition result after performing language model incentive, determining a final speech recognition result from the candidates of the speech recognition result and the third speech recognition result; Includes and.

[0307] In an alternative embodiment, a syntactic decoding network for the scene to which the speech to be recognized belongs is constructed by the following process.

[0308] A text syntactic network is constructed by performing syntactic induction and syntactic slot definition processing on the corpus data of the scene to which the recognition target speech belongs, where the text syntactic network includes general syntactic slots corresponding to non-vertical keywords and replacement syntactic slots corresponding to vertical keywords, and the replacement syntactic slots store placeholders corresponding to vertical keywords.

[0309] The phrases of the general syntactic slots in the text syntactic network are divided, and the word nodes are expanded from the division results to obtain a word-level syntactic decoding network.

[0310] Each word in a general syntactic slot in the word-level syntactic decoding network is replaced with its pronunciation, and the pronunciation node is expanded by the pronunciation of the word to obtain a pronunciation-level syntactic decoding network, which is the syntactic decoding network for the scene to which the speech to be recognized belongs.

[0311] In an optional embodiment, the step of segmenting phrases in the general syntactic slots in the text syntactic network and expanding word nodes from the segmentation results to obtain a word-level syntactic decoding network includes: Dividing each phrase in a general syntactic slot in the text syntactic network to obtain each word corresponding to each phrase; performing word node expansion using each word corresponding to the same phrase to obtain a word sequence corresponding to the phrase; and connecting in parallel the word strings corresponding to each phrase in the same general syntactic slot to obtain a word-level syntactic decoding network.

[0312] In an alternative embodiment, replacing each word in a general syntactic slot in the word-level syntactic decoding network with its pronunciation and expanding pronunciation nodes with the pronunciations of the words to obtain a pronunciation-level syntactic decoding network comprises: replacing each word in a general syntactic slot in said word-level syntactic decoding network with a corresponding pronunciation; For each pronunciation in the word-level syntactic decoding network, a pronunciation unit is divided, and each pronunciation unit corresponding to the pronunciation is used to expand the pronunciation node; and obtaining a phone-level syntactic decoding network.

[0313] In an alternative embodiment, constructing a speech recognition decoding network based on a vertical keyword set and a syntax decoding network in the context of the speech to be recognized, Obtaining a pre-constructed syntax decoding network for a scene to which the speech to be recognized belongs; Constructing a vertical keyword network based on the vertical keywords in the vertical keyword set in the scene to which the speech to be recognized belongs; and inserting the vertical keyword network into the syntax decoding network to obtain a speech recognition decoding network.

[0314] In an optional embodiment, constructing a vertical keyword network based on a vertical keyword in a vertical keyword set in a scene to which the speech to be recognized belongs includes: Constructing a vertical keyword network based on each vertical keyword in the vertical keyword set in the scene to which the speech to be recognized belongs; replacing each word in the word-level vertical keyword network with its pronunciation, and expanding the pronunciation node with the pronunciation of the word to obtain a pronunciation-level vertical keyword network.

[0315] In an alternative embodiment, both the vertical keyword network and the syntactic decoding network are composed of nodes and directed arcs connecting the nodes, with pronunciation information or placeholders stored in the directed arcs between the nodes.

[0316] inserting the vertical keyword network into the syntax decoding network to obtain a speech recognition decoding network; The method includes using directed arcs to connect the left and right nodes of the substitution syntax slot of the vertical keyword network and the syntax decoding network, respectively, to construct a speech recognition decoding network.

[0317] In an optional embodiment, using the directed arcs to connect the left and right nodes of the substitution syntax slots of the vertical keyword network and the syntax decoding network, respectively, to construct a speech recognition decoding network, The method includes connecting the right node of each outgoing arc of the start node of the vertical keyword network to the left node of the replacement syntax slot via a directed arc, and connecting the left node of each incoming arc of the end node of the vertical keyword network to the right node of the replacement syntax slot via a directed arc, thereby constructing a speech recognition and decoding network.

[0318] In an alternative embodiment, a unique identifier corresponding to each keyword is stored in the first and last arcs of the vertical keyword network.

[0319] The right node of each outgoing arc of the start node of the vertical keyword network is connected to the left node of the replacement syntax slot via a directed arc, and the left node of each incoming arc of the end node of the vertical keyword network is connected to the right node of the replacement syntax slot via a directed arc to construct a speech recognition and decoding network, traversing each outgoing arc of a starting node of the vertical keyword network; and for each outgoing arc traversed, determining whether a keyword corresponding to the unique identifier has been inserted into a syntax decoding network based on a unique identifier of the outgoing arc and a keyword information set inserted into the network, wherein the keyword information set inserted into the network includes a keyword corresponding to the unique identifier of the outgoing arc, the keyword information set including a keyword inserted into the syntax decoding network, and the keyword information set including a keyword corresponding to the unique identifier of the outgoing arc. The unique identifier of the keyword and the left and right node numbers in the syntactic decoding network for the directed arc in which the unique identifier is located are stored.

[0320] If the keyword corresponding to the unique identifier is not inserted into the syntax decoding network, connect the right node of the traversed outgoing arc to the left node of the replacement syntax slot through a directed arc, and store the pronunciation information of the traversed outgoing arc in the directed arc; And, Each incoming arc of the end node of the vertical keyword network is traversed, and for each incoming arc traversed, it is determined whether a keyword corresponding to the unique identifier has been inserted into the syntax decoding network based on the unique identifier of the incoming arc and the keyword information set inserted into the network.

[0321] If the keyword corresponding to the unique identifier has not been inserted into the syntactic decoding network, the left node of the traversed incoming arc and the right node of the replacement syntactic slot are connected through a directed arc, and the pronunciation information on the traversed incoming arc is stored in the directed arc.

[0322] In an alternative embodiment, the step of connecting the right node of each outgoing arc of the start node of the vertical keyword network to the left node of the replacement syntax slot via a directed arc, and connecting the left node of each incoming arc of the end node of the vertical keyword network to the right node of the replacement syntax slot via a directed arc to construct a speech recognition and decoding network further comprises: When a keyword in the vertical keyword network is inserted into the syntactic decoding network, a unique identifier of the keyword and left and right node numbers in the syntactic decoding network with respect to the directed arc in which the unique identifier is placed are stored in an information set of keywords inserted into the network, respectively.

[0323] In an alternative embodiment, the step of connecting the right node of each outgoing arc of the start node of the vertical keyword network to the left node of the replacement syntax slot via a directed arc, and connecting the left node of each incoming arc of the end node of the vertical keyword network to the right node of the replacement syntax slot via a directed arc to construct a speech recognition and decoding network further comprises: traversing each unique identifier in a keyword information set inserted into the network; If the traversed unique identifier is not the unique identifier of any keyword in the vertical keyword set in the scene to which the speech to be recognized belongs, the directed arc between the left and right node numbers corresponding to the unique identifier is cut off.

[0324] As an optional embodiment, the speech recognition device further comprises: and a result modification unit for modifying the first speech recognition result based on the second speech recognition result.

[0325] In an optional embodiment, modifying the first speech recognition result based on the second speech recognition result includes: Using a reference text content of the second speech recognition result to modify a non-vertical keyword content of the first speech recognition result to obtain a modified first speech recognition result; Here, the reference text content is a text content in the second speech recognition result that matches a non-vertical keyword content in the first speech recognition result.

[0326] In an alternative embodiment, the second speech recognition result is used as a reference text content to Modifying the non-vertical keyword content of the first speech recognition result to obtain a modified first speech recognition result, determining vertical keyword content and non-vertical keyword content from the first speech recognition result; and determining text contents corresponding to the non-vertical keyword contents of the first speech recognition result from the second speech recognition result, and setting them as reference text contents; determining a modified non-vertical keyword content according to the reference text content of the second speech recognition result and the non-vertical keyword content of the first speech recognition result; and combining the modified non-vertical keyword content and the vertical keyword content to obtain a modified first speech recognition result.

[0327] As an optional embodiment, determining text content corresponding to the non-vertical keyword content of the first speech recognition result from the second speech recognition result and setting the text content as reference text content, determining an edit distance matrix between the first speech recognition result and the second speech recognition result based on an edit distance algorithm; Based on the edit distance matrix and the non-vertical keyword content of the first speech recognition result, and determining a text content corresponding to the non-vertical keyword content of the first speech recognition result from the second speech recognition result, and setting the determined text content as a reference text content.

[0328] In an optional embodiment, determining a modified non-vertical keyword content based on the reference text content of the second speech recognition result and the non-vertical keyword content of the first speech recognition result includes: determining a target text content of the second speech recognition result or a non-vertical keyword content of the first speech recognition result as a modified non-vertical keyword content according to a difference between characters of the reference text content of the second speech recognition result and the non-vertical keyword content of the first speech recognition result; Here, the target text content of the second speech recognition result is a text content of the second speech recognition result that corresponds to the position of the non-vertical keyword content of the first speech recognition result. Point.

[0329] In an optional embodiment, the second speech recognition result is compared based on a difference in characters between the reference text content of the second speech recognition result and the non-vertical keyword content of the first speech recognition result. The target text content or the non-vertical keyword content of the first speech recognition result is corrected. The non-vertical keyword content is determined as comparing a reference text content of the second speech recognition result with a non-vertical keyword content of the first speech recognition result to determine whether the reference text content of the second speech recognition result and the non-vertical keyword content of the first speech recognition result are the same; If they are the same, the target text content of the second speech recognition result is converted into a non-vertical type Determine as keyword content. If not, determining whether the second speech recognition result has a greater number of characters than the non-vertical keyword content of the first speech recognition result and whether the difference in the number of characters between the second speech recognition result and the non-vertical keyword content of the first speech recognition result exceeds a set threshold; If the number of characters in the second speech recognition result is greater than the number of characters in the non-vertical keyword content of the first speech recognition result, and the difference in the number of characters between the two does not exceed a set threshold, determining the target text content of the speech recognition result as the non-vertical keyword content after correction; When the number of characters of the second speech recognition result is smaller than that of the non-vertical keyword content of the first speech recognition result and / or the difference between the number of characters of the two exceeds a set threshold, the non-vertical keyword content of the first speech recognition result is treated as a modified non-vertical keyword content. The decision is made based on the above.

[0330] In an optional embodiment, determining a final speech recognition result from at least the first speech recognition result and the second speech recognition result includes: The first speech recognition result and the second speech recognition result are compared, and the first speech recognition result is and determining a degree of match between the first speech recognition result and the second speech recognition result. determining a reliability of the first speech recognition result based on a degree of coincidence of the speech recognition result; If the reliability of the first speech recognition result is greater than a preset reliability threshold, selecting a final speech recognition result from the first speech recognition result and the second speech recognition result based on an acoustic score of the first speech recognition result and an acoustic score of the second speech recognition result; the reliability of the first speech recognition result is not greater than a preset reliability threshold; Incentivizing an acoustic score for the first speech recognition result; and and selecting a final speech recognition result from the first speech recognition result and the second speech recognition result based on the acoustic score of the first speech recognition result and the acoustic score of the second speech recognition result after the selection.

[0331] In an optional embodiment, determining a reliability of the first speech recognition result based on a degree of agreement between the first speech recognition result and the second speech recognition result includes: determining whether a degree of match between the first speech recognition result and the second speech recognition result is greater than a set degree of match threshold; If the degree of agreement is greater than the set threshold, the acoustic characteristics of each frame of the first speech recognition result are determining a confidence level of the first speech recognition result by calculation based on the score; If the degree of coincidence is not greater than the set threshold, the vertical keyword of the first speech recognition result is A decoding network is constructed using the content of the message and the second speech recognition result, and the decoding network is The acoustic state sequence is re-decoded using a network, and the first acoustic state sequence is generated based on the result of the decoding. updating the voice recognition result; and and determining a confidence level of the first speech recognition result by calculation based on the acoustic scores of each frame of the first speech recognition result after the update.

[0332] In an optional embodiment, if the acoustic scores of the first speech recognition result and the second speech recognition result are the same, both the first speech recognition result and the second speech recognition result are taken as final speech recognition results.

[0333] In an optional embodiment, an incentive for the acoustic score for the first speech recognition result is To carry out a project is to At least the vertical keyword content and the non-vertical keyword content of the first speech recognition result determining an acoustic incentive factor based on the content of the acoustic incentive coefficient; The acoustic incentive coefficient is used to generate a vertical keyword of the first speech recognition result. updating the acoustic score of the content; The acoustic score of the vertical keyword content of the first speech recognition result after updating, and the acoustic score of the previous Based on the acoustic score of the non-vertical keyword content of the first speech recognition result, the previous and determining an acoustic score for the first speech recognition result.

[0334] In an alternative embodiment, at least one of the first speech recognition results includes a vertical keyword. Determining acoustic incentive coefficients based on content and non-vertical keyword content; Incentive pre-factor for the acoustic score in the scene to which the speech to be recognized belongs, the first speech The number of characters and the number of phonemes of the vertical keyword of the recognition result, and all of the first speech recognition result This involves calculating and determining an acoustic incentive factor based on the number of letters and the number of all phonemes.

[0335] In an alternative embodiment, at least one of the first speech recognition results includes a vertical keyword. Determining acoustic incentive coefficients based on content and non-vertical keyword content; Based on the phoneme number and acoustic score of the vertical keyword content of the first speech recognition result and the phoneme number and acoustic score of the non-vertical keyword content of the first speech data result, Calculating a vertical keyword content confidence score of the recognition result; Based on at least the confidence score of the vertical keyword content in the first speech recognition result, and determining an acoustic incentive factor.

[0336] In an alternative embodiment, at least one of the first speech recognition results includes a vertical keyword. Determining an acoustic incentive coefficient based on the score reliability of the content, A score confidence of the vertical keyword content of the first speech recognition result and a predetermined speech recognition result. This includes determining an acoustic incentive factor based on a relationship between the acoustic incentive factor and the cognitive effect or cognitive malfunction.

[0337] As an optional embodiment, an incentive for a language model for the third speech recognition result is To carry out a project is to A path extension is performed for the third speech recognition result based on a vertical keyword set in a scene to which the speech to be recognized belongs and a category tag corresponding to the scene, and the category tag is determined by clustering for the recognition scene; determining language model scores of the third speech recognition result and an extension path of the third speech recognition result based on a recognition result of a training corpus of a clustered language model corresponding to the type tag; Incentivizing a language model for the third speech recognition result based on a language model score of the third speech recognition result and a language model score of an extension path of the third speech recognition result. and determining a language score after the test. Here, the clustered language model is obtained by speech recognition training on a target corpus, and all vertical keywords in the target corpus are replaced with the category tags.

[0338] In an alternative embodiment, a path extension for the third speech recognition result is performed based on a vertical keyword set in a scene to which the speech to be recognized belongs and a category tag corresponding to the scene. What we do is: The vertical keyword of the third speech recognition result is a vertical keyword in a scene to which the speech to be recognized belongs. vertical keywords in the word set; The vertical keyword of the third speech recognition result is any one of the vertical keywords in the vertical keyword set. When matching with a vertical keyword, the vertical keyword of the third speech recognition result and extending a new path between the left and right nodes of the placed slot, and storing in the new path a type tag corresponding to the scene to which the speech to be recognized belongs.

[0339] Specifically, the specific operation of each unit in each embodiment of the above-mentioned voice recognition device can be referred to in the processing contents of the relevant steps of the above-mentioned voice recognition method, so that the description is omitted here.

[0340] Another embodiment of the present application further proposes a speech recognition device, as shown in FIG. 17, the device includes a memory 200 and a processor 210, Here, the memory 200 is connected to the processor 210 and is used to store a program; The processor 210 is used to execute a program stored in the memory 200 and to implement the speech recognition method disclosed in any of the above embodiments.

[0341] Specifically, the above voice recognition facility further includes a bus, a communication port 220 , an input facility 230 and an output facility 240 .

[0342] The processor 210, the memory 200, the communication port 220, the input facility 230, and the output facility 240 are connected via a bus. Here, a bus can contain one channel, and the It transmits information between each component of a data system.

[0343] The processor 210 may be a general-purpose processor such as a general-purpose processor (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or an integrated circuit for controlling the execution of one or more programs of the present invention. It may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), The logic devices may be field programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate and transistor logic devices, or discrete hardware components.

[0344] The processor 210 includes a main processor as well as a baseband chip, a modem, and the like.

[0345] The memory 200 stores a program for implementing the technical solution of the present invention. The operating system and other important operations may also be stored. Specifically, the program may include program code, which includes computer operation instructions. More specifically, the memory 200 may include a read-only memory (ROM), Other types of static storage devices that store static information or instructions, such as random access memory (RAM), random access memory (RAM), other types of dynamic storage devices that store information or instructions, disk This may include memory, flash, etc.

[0346] The input device 230 may be a keyboard, a mouse, a camera, a scanner, a light pen, or a voice input device. The device may include devices that receive data or information input by a user, such as a chair, a touch screen, a pedometer, or a gravity sensor.

[0347] The output facility 240 outputs information to a user, such as a display screen, a printer, a speaker, etc. The present invention may include means for enabling

[0348] Communications port 220 may include devices that use any transceiver to communicate with other devices or communications networks, such as Ethernet, a radio access network (RAN), a wireless local area network (WLAN), and the like.

[0349] The processor 2102 executes a program stored in the memory 200 and calls other equipment. By outputting the above-mentioned commands, each step of the speech recognition method according to the embodiment of the present application is realized.

[0350] In another embodiment of the present application, a storage medium is provided, in which a computer program is stored, the computer program being executed by a processor to realize each step of the speech recognition method according to any of the above embodiments.

[0351] Specifically, the specific operation of each part of the above-mentioned voice recognition equipment and the specific processing content when the computer program stored in the above-mentioned storage medium is executed by a processor can be referred to in each embodiment of the above-mentioned voice recognition method, so they will not be described here.

[0352] Although each of the method embodiments described above has been described as a series of operations for ease of explanation, those skilled in the art will recognize that, in accordance with the present application, some steps may be performed in other orders. It should be appreciated that the present application is not limited by the order of operations described, as they may be performed in any order or simultaneously. In addition, those skilled in the art should also appreciate that the embodiments described in the specification are all preferred embodiments, and that the associated operations and modules are not necessarily essential to the present application.

[0353] Each embodiment in this specification is described step by step, and each embodiment is described with emphasis on the differences from other embodiments, and the same and similar parts between the embodiments may be referred to each other. The apparatus embodiments are generally similar to the method embodiments, so they are briefly described, and the relevant points may be referred to the method embodiments.

[0354] The steps in the methods of each embodiment of the present application may be adjusted, merged, increased or decreased in order according to actual needs, and the technical features described in each embodiment may be replaced or combined.

[0355] The modules and sub-modules of the devices and terminals in each embodiment of the present application can be merged, divided, increased or decreased according to actual needs.

[0356] It should be understood that in some embodiments of the present application, the disclosed terminal, device, and method may be implemented in other forms. For example, the above-described terminal embodiment is merely exemplary and is merely a division of logical functions, such as a division of modules or submodules, and other division methods are possible, such as combining multiple submodules or modules or integrating them into another module, or ignoring or not performing some features, when implemented. In addition, the shown or discussed mutual couplings or direct couplings or communication connections may be indirect couplings or communication connections via some interfaces, devices, or modules, or may be electrical, mechanical, or other forms.

[0357] A module or sub-module described as a separate component may or may not be physically separate, and the components of the module or sub-module may be a physical module or sub-module or a non-physical module or sub-module, i.e., may be located at one location but may be distributed across multiple network modules. The present invention may be implemented in various ways, for example, by using a single module or a single sub-module.

[0358] In addition, each functional module or sub-module in each embodiment of the present application is a processing module. Each module or sub-module may exist physically separately, or two or more modules or sub-modules may be combined into one module. The above-described integrated modules or sub-modules may be realized by hardware, or may be realized by software functional modules or sub-modules.

[0359] Those skilled in the art can also recognize that the units and algorithm steps illustrated in the embodiments disclosed herein may be implemented in electronic hardware, computer software, or a combination of both. In order to clearly show the compatibility of hardware and software, the configurations and steps of each example are generally described by function in the above description. Whether these functions are performed by hardware or computer software depends on the specific application and design constraints of the technical solution. Professional engineers can use different methods to realize the described functions for each specific application, but such implementation should not be considered as going beyond the scope of this application.

[0360] The steps of a method or algorithm described in the embodiments disclosed herein may be implemented directly by a software unit executed by hardware or a processor, or a combination of both. The software unit may be implemented using a random access memory (RAM) ), memory, read-only memory (ROM), programmable ROM, erasable programmable ROM, storage device, hard disk, removable disk, CD-ROM, or any other device, regardless of form The image data may be stored on any suitable storage medium known in the art.

[0361] Finally, it should be understood that in this specification, related terms such as "first" and "second" are used to distinguish one entity or operation from another entity or operation. It does not necessarily require or imply that there is any actual relationship or sequence between entities or operations. Furthermore, the terms "comprise," "include," or other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or facility that includes a set of elements includes not only those elements, but also other elements not expressly listed or inherent to such process, method, article, or facility. An element defined by "comprises one or more ..." does not exclude the presence of other identical elements in the process, method, article, or equipment that includes the element.

[0362] The above description of the disclosed embodiments enables any person skilled in the art to make or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Thus, the present application is not intended to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.< / sth> < / phone> < / sth> < / phone> < / phone> < / sth> < / phone> < / phone> < / sth> < / sth> < / sth> < / phone> < / phone> < / sth> < / phone> < / xxxx>

Claims

1. 1. A speech recognition method, comprising: Obtaining an acoustic state sequence of a speech to be recognized; Constructing a speech recognition decoding network based on a vertical keyword set in the scene to which the speech to be recognized belongs and a syntactic decoding network obtained by syntactic induction and processing of at least the text corpus in the scene to which the speech to be recognized belongs; decoding the acoustic state sequence using the speech recognition decoding network to obtain a speech recognition result; 13. A speech recognition method comprising:

2. Constructing a speech recognition decoding network based on a vertical keyword set and a syntax decoding network in the scene to which the speech to be recognized belongs; Transmitting the vertical keyword set in the scene to which the speech to be recognized belongs to a cloud server, and constructing a speech recognition decoding network in the cloud server based on the vertical keyword set in the scene to which the speech to be recognized belongs and the syntax decoding network; 2. The method of claim 1, comprising:

3. the speech recognition result being a first speech recognition result, the method further comprising: Decoding the acoustic state sequence using a general speech recognition model to obtain a second speech recognition result. And, determining a final speech recognition result from at least the first speech recognition result and the second speech recognition result; The method of claim 1 further comprising:

4. The method comprises: and decoding the acoustic state sequence using a pre-trained scene customization model to obtain a third speech recognition result. wherein the scene customized model is obtained by speech recognition training for speech in a scene to which the speech to be recognized belongs, determining a final speech recognition result from at least the first speech recognition result and the second speech recognition result; From the first speech recognition result, the second speech recognition result, and the third speech recognition result, determining a final speech recognition result; 4. The method according to claim 3 .

5. From the first speech recognition result, the second speech recognition result, and the third speech recognition result, Determining a final speech recognition result includes: Regarding the first speech recognition result, the second speech recognition result, and the third speech recognition result, Incentivize the language models separately, The first speech recognition result, the second speech recognition result, and the third speech recognition result after the incentive is provided. determining a final speech recognition result from the first speech recognition result, the second speech recognition result, and the third speech recognition result based on a language score of the recognition results; 5. The method of claim 4, comprising:

6. From the first speech recognition result, the second speech recognition result, and the third speech recognition result, Determining a final speech recognition result includes: incentivizing an acoustics score for the first speech recognition result and incentivizing a language model for the third speech recognition result; an acoustic score of the first speech recognition result after performing an acoustic score incentive; and based on an acoustic score of the second speech recognition result, determining candidates for a speech recognition result from the recognition result; Incentivizing a language model for the candidate speech recognition result; Based on the language score of the candidate speech recognition result after performing language model incentive and the language score of the third speech recognition result after performing language model incentive, determining a final speech recognition result from the candidates of the speech recognition result and the third speech recognition result; And, 5. The method of claim 4, comprising:

7. 1. A speech recognition method, comprising: Obtaining an acoustic state sequence of a speech to be recognized; Decoding the acoustic state sequence using a speech recognition decoding network to perform a first speech recognition. obtaining a result, decoding the acoustic state sequence using a general speech recognition model, and performing a second speech recognition To get results and providing an acoustics score incentive for the first speech recognition result; determining a final speech recognition result from at least the first speech recognition result after providing an incentive and the second speech recognition result; Wherein, the speech recognition decoding network is constructed based on a vertical keyword set and a syntax decoding network in the scene to which the speech to be recognized belongs; 13. A speech recognition method comprising:

8. The method comprises: and decoding the acoustic state sequence using a pre-trained scene customization model to obtain a third speech recognition result. wherein the scene customized model is obtained by speech recognition training for speech in a scene to which the speech to be recognized belongs, determining a final speech recognition result from at least the first speech recognition result after providing the incentive and the second speech recognition result; The first speech recognition result, the second speech recognition result, and the third speech recognition result after the incentive is provided. determining a final speech recognition result from the speech recognition results of 8. The method according to claim 7 .

9. determining a final speech recognition result from the first speech recognition result, the second speech recognition result, and the third speech recognition result after providing the incentive; an acoustic score of the first speech recognition result after performing an acoustic score incentive; and based on an acoustic score of the second speech recognition result, determining candidates for a speech recognition result from the recognition result; The candidate speech recognition result and the third speech recognition result are respectively subjected to a language model Providing incentives and Based on the language score of the candidate speech recognition result after performing language model incentive and the language score of the third speech recognition result after performing language model incentive, determining a final speech recognition result from the candidates of the speech recognition result and the third speech recognition result; And, 9. The method of claim 8, comprising:

10. The process for constructing a syntax decoding network for a scene to which the speech to be recognized belongs includes the following steps: constructing a text syntactic network including general syntactic slots corresponding to non-vertical keywords and replacement syntactic slots corresponding to vertical keywords for storing placeholders corresponding to vertical keywords by syntactic induction and syntactic slot definition processing for corpus data in a scene to which the speech to be recognized belongs; Segmenting phrases of general syntactic slots in the text syntactic network, and expanding word nodes according to the segmentation results to obtain a word-level syntactic decoding network; replacing each word in the general syntactic slot of the word-level syntactic decoding network with its pronunciation, and expanding the pronunciation node with the pronunciation of the word to obtain a pronunciation-level syntactic decoding network, and making the pronunciation-level syntactic decoding network a syntactic decoding network for the scene to which the speech to be recognized belongs; 10. The method according to claim 1, further comprising:

11. Constructing a speech recognition decoding network based on a vertical keyword set and a syntax decoding network in the scene to which the speech to be recognized belongs; Obtaining a pre-constructed syntax decoding network for a scene to which the speech to be recognized belongs; Constructing a vertical keyword network based on the vertical keywords in the vertical keyword set in the scene to which the speech to be recognized belongs; inserting the vertical keyword network into the syntax decoding network to obtain a speech recognition decoding network; 10. The method according to claim 1, further comprising:

12. Constructing a vertical keyword network based on the vertical keywords in the vertical keyword set in the scene to which the speech to be recognized belongs; Constructing a word-level vertical keyword network based on each vertical keyword in the vertical keyword set in the context of the speech to be recognized; replacing each word in the word-level vertical keyword network with its pronunciation, and performing pronunciation node expansion according to the pronunciation of the word to obtain a pronunciation-level vertical keyword network; 12. The method of claim 11, comprising:

13. Both the vertical keyword network and the syntactic decoding network are composed of nodes and directed arcs connecting the nodes, and pronunciation information or placeholders are stored in the directed arcs between the nodes; inserting the vertical keyword network into the syntax decoding network to obtain a speech recognition decoding network; and using a directed arc to connect the left and right nodes of the substitution syntax slot of the vertical keyword network and the syntax decoding network, respectively, to construct a speech recognition decoding network.

12. The method according to claim 11 .

14. A unique identifier corresponding to each keyword is stored in the first arc and the last arc of each keyword in the vertical keyword network; When a keyword in the vertical keyword network is inserted into the syntactic decoding network, a unique identifier of the keyword and a left and right node numbers in the syntactic decoding network with respect to a directed arc in which the unique identifier is placed are stored in a keyword information set inserted into the network, respectively; Here, the keyword information set inserted into the network stores a unique identifier of each keyword inserted into the syntax decoding network and a left and right node number in the syntax decoding network for the directed arc in which the unique identifier is placed.

14. The method according to claim 13 .

15. Further, each unique identifier in the keyword information set inserted into the network is Traversing and If the traversed unique identifier is not the unique identifier of any keyword in the vertical keyword set in the scene to which the speech to be recognized belongs, cutting off the directed arc between the left and right node numbers corresponding to the unique identifier; 15. The method of claim 14, comprising:

16. The method comprises: and further comprising: modifying non-vertical keyword content of the first speech recognition result using a reference text content of the second speech recognition result to obtain a modified first speech recognition result; Wherein, the reference text content is a text content in the second speech recognition result that matches a non-vertical keyword content of the first speech recognition result.

10. The method according to any one of claims 3 to 9.

17. Using the reference text content of the second speech recognition result to modify the non-vertical keyword content of the first speech recognition result to obtain a modified first speech recognition result, determining vertical keyword content and non-vertical keyword content from the first speech recognition result; determining a text content corresponding to a non-vertical keyword content of the first speech recognition result from the second speech recognition result, and setting the determined text content as a reference text content; determining a modified non-vertical keyword content based on the reference text content of the second speech recognition result and the non-vertical keyword content of the first speech recognition result; combining the modified non-vertical keyword content and the vertical keyword content to obtain a modified first speech recognition result; 17. The method of claim 16, comprising:

18. determining a text content corresponding to a non-vertical keyword content of the first speech recognition result from the second speech recognition result, and setting the determined text content as a reference text content; determining an edit distance matrix between the first speech recognition result and the second speech recognition result based on an edit distance algorithm; Based on the edit distance matrix and the non-vertical keyword content of the first speech recognition result, determining a text content corresponding to the non-vertical keyword content of the first speech recognition result from the second speech recognition result, and setting the determined text content as a reference text content; 20. The method of claim 17, comprising:

19. determining a modified non-vertical keyword content based on the reference text content of the second speech recognition result and the non-vertical keyword content of the first speech recognition result; determining whether a reference text content of the second speech recognition result and a non-vertical keyword content of the first speech recognition result are the same; If the two are the same, the second voice recognition result is a non-vertical key after the target text content is corrected. Deciding on the word content; If not the same, determining whether the number of characters of the non-vertical keyword content of the second speech recognition result is greater than the number of characters of the non-vertical keyword content of the first speech recognition result, and whether the difference between the number of characters of the second speech recognition result and the non-vertical keyword content of the first speech recognition result exceeds a set threshold value; If the number of characters of the non-vertical keyword content of the second speech recognition result is greater than the number of characters of the non-vertical keyword content of the first speech recognition result and the difference between the number of characters of the two does not exceed a set threshold, determining the target text content of the recognition result as a modified non-vertical keyword content; determining the non-vertical keyword content of the first speech recognition result as a modified non-vertical keyword content when the number of characters of the second speech recognition result is smaller than that of the non-vertical keyword content of the first speech recognition result and / or the difference between the number of characters of the first speech recognition result and the non-vertical keyword content of the first speech recognition result exceeds a set threshold; Here, the target text content of the second speech recognition result is a text content corresponding to a position of the non-vertical keyword content of the first speech recognition result; be, 18. The method of claim 17.

20. determining a final speech recognition result from at least the first speech recognition result and the second speech recognition result; Whether the reliability of the first speech recognition result is greater than a preset reliability threshold. and determining If the reliability of the first speech recognition result is greater than a preset reliability threshold, selecting a final speech recognition result from the first speech recognition result and the second speech recognition result based on an acoustic score of the first speech recognition result and an acoustic score of the second speech recognition result; When the reliability of the first speech recognition result is not greater than a preset reliability threshold value. performing an incentive for an acoustic score for the first speech recognition result; selecting a final speech recognition result from the first speech recognition result and the second speech recognition result based on an acoustic score of the first speech recognition result and an acoustic score of the second speech recognition result after performing the above-mentioned; 4. The method of claim 3, comprising:

21. if the acoustic scores of the first speech recognition result and the second speech recognition result are the same, both the first speech recognition result and the second speech recognition result are set as final speech recognition results; 21. The method according to claim 7 or 20.

22. Incentivizing an acoustic score for the first speech recognition result includes: At least the vertical keyword content and the non-vertical keyword content of the first speech recognition result determining an acoustic incentive factor based on the content of the acoustic incentive coefficient; using the acoustic incentive coefficient, updating the acoustic score of the content; The acoustic score of the vertical keyword content in the first speech recognition result after updating and the Based on the acoustic score of the non-vertical keyword content in the first speech recognition result, determining an acoustic score for the first speech recognition result based on the 21. The method of claim 4, 6, or 20, comprising:

23. Incentivizing a language model for the third speech recognition result includes: performing a path extension for the third speech recognition result based on a vertical keyword set in a scene to which the speech to be recognized belongs and a category tag corresponding to the scene; determining language model scores of the third speech recognition result and an extension path of the third speech recognition result based on a recognition result of a training corpus of a clustered language model corresponding to the type tag; Incentivizing a language model for the third speech recognition result based on a language model score of the third speech recognition result and a language model score of an extension path of the third speech recognition result. and determining a language score after the test, Wherein, the category tag is determined by clustering for a speech recognition scene, the clustered language model is obtained by speech recognition training for a target corpus, and all vertical keywords in the target corpus are replaced with the category tag.

10. The method according to claim 5, 6 or 9.

24. performing a path extension for the third speech recognition result based on a vertical keyword set in a scene to which the speech to be recognized belongs and a category tag corresponding to the scene; The vertical keyword of the third speech recognition result is a vertical keyword in a scene to which the speech to be recognized belongs. vertical keywords in the word set; The vertical keyword of the third speech recognition result is any one of the vertical keywords in the vertical keyword set. When matching a vertical keyword, the vertical keyword in the third speech recognition result is extending a new path between the left and right nodes of the slot in which the node is placed, and storing a type tag corresponding to a scene to which the speech to be recognized belongs in the new path; 24. The method of claim 23, comprising:

25. A speech recognition device, comprising: an acoustic recognition unit for obtaining an acoustic state sequence of a speech to be recognized; a network construction unit for constructing a speech recognition decoding network based on a vertical keyword set in the scene to which the speech to be recognized belongs and a syntax decoding network obtained by syntactic induction and processing of at least the text corpus in the scene to which the speech to be recognized belongs; a decoding processing unit for decoding the acoustic state sequence using the speech recognition decoding network to obtain a speech recognition result; A speech recognition device comprising:

26. A speech recognition device, comprising: an acoustic recognition unit for obtaining an acoustic state sequence of a speech to be recognized; Decoding the acoustic state sequence using a speech recognition decoding network constructed based on a vertical keyword set and a syntax decoding network in the scene to which the recognition target speech belongs to obtain a first speech recognition result, and decoding the acoustic state sequence using a general speech recognition model. a multi-dimensional decoding unit for obtaining a second speech recognition result; An acoustic incentive for incentivizing an acoustic score for the first speech recognition result. Active units and a decision-making processing unit for determining a final speech recognition result from at least the first speech recognition result after providing an incentive and the second speech recognition result; A speech recognition device comprising:

27. A voice recognition device, A memory connected to the processor and storing a program; a processor that executes a program stored in the memory and realizes the speech recognition method according to any one of claims 1 to 24; A voice recognition device comprising:

28. A storage medium, comprising: A computer program storing therein a computer program which, when executed by a processor, implements the speech recognition method according to any one of claims 1 to 24. A storage medium comprising:

Citation Information

Patent Citations

  • Speech recognition device and speech recognition method

    JP2000322085A

  • Network grammar generation method, network grammar generation device, and voice recognition device

    JP2003242147A

  • Generation apparatus, recognition apparatus, generation method and program

    JP2016102947A

  • Speech recognition method and device

    JP2018536905A

Cited By

  • Information processing methods, programs, and information processing systems

    JP2026166986A