Speech recognition method and device, electronic equipment and storage medium

By generating encoding features through a generative model and combining hot word collections to calculate the initial weight matrix, filter and update parameters, the problem of low accuracy in recognition of less frequent named entity nouns is solved and the accuracy of speech recognition is improved.

CN118737145APending Publication Date: 2024-10-01JINGDONG CITY BEIJING DIGITS TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410911031.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing speech recognition technology has low accuracy in identifying named entity nouns with low frequency, resulting in poor recognition results.

Method used

Generate coding features through a generative model, calculate the initial weight matrix based on the hot word collection in the field, screen out parameter sets that do not meet the preset conditions, and update the weight matrix to enhance the recognition results.

Benefits of technology

It improves the recognition accuracy of lower frequency information, reduces the interference of weakly influential hot words on the recognition results, enhances the effect of strong influential hot words, and improves the overall recognition accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118737145A_ABST
    Figure CN118737145A_ABST
Patent Text Reader

Abstract

The invention discloses a voice recognition method and device, electronic equipment and a storage medium, and relates to the technical field of computers. A specific embodiment of the method comprises the steps of obtaining to-be-processed information in response to a voice recognition instruction, calling a preset generation model, and generating a coding feature of the to-be-processed information; obtaining a hot word set of a field corresponding to the speech recognition instruction to calculate word vectors of the hot word set; calling a preset calculation model, and calculating an initial weight matrix based on the coding features and the word vectors; screening a parameter set which does not meet a preset condition in the initial weight matrix so as to update the parameter set to a preset value, and obtaining an updated weight matrix; and determining an identification result of the to-be-processed information based on the updated weight matrix and the coding feature. According to the embodiment, the problem that the recognition accuracy is low due to the fact that the recognition effect on named entity nouns and the like which appear at low frequency is poor can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] In recent years, with the rapid development of end-to-end automatic speech recognition (ASR) technology, intelligent outbound call systems have been widely used in marketing, debt collection, logistics delivery and other fields. ASR technology can recognize the audio input by the outbound call object, and combine natural language understanding technology to determine the intention information of the outbound call object, thereby realizing intelligent voice interaction. In related technologies, the accuracy of speech recognition is usually achieved through model training, but for some named entity nouns and other information, because of their low frequency of occurrence, model training cannot produce a good recognition effect, resulting in low recognition accuracy. Summary of the invention

[0003] In view of this, embodiments of the present invention provide a method, device, electronic device and storage medium for speech recognition, which can solve the problem of poor recognition effect on named entity nouns with low occurrence frequency, resulting in low recognition accuracy.

[0004] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for speech recognition is provided.

[0005] A method for speech recognition according to an embodiment of the present invention comprises: in response to a speech recognition instruction, obtaining information to be processed, calling a preset generation model, and generating coding features of the information to be processed;

[0006] Obtaining a hot word set in the field corresponding to the speech recognition instruction to calculate the word vector of the hot word set; calling a preset calculation model to calculate an initial weight matrix based on the encoding features and the word vector;

[0007] Screening the parameter set that does not meet the preset condition in the initial weight matrix to update the parameter set to a preset value to obtain an updated weight matrix;

[0008] Based on the updated weight matrix and the encoding feature, a recognition result of the information to be processed is determined.

[0009] In one embodiment, screening the parameter set in the initial weight matrix that does not meet the preset conditions includes:

[0010] A parameter set whose value in the initial weight matrix is ​​less than a preset threshold is screened.

[0011] In yet another embodiment, screening the parameter set in the initial weight matrix that does not meet the preset condition includes:

[0012] A parameter set of a preset proportion is selected from the initial weight matrix, wherein the values ​​of the parameters in the parameter set are smaller than the values ​​of the parameters not in the data set.

[0013] In yet another embodiment, before responding to the voice recognition instruction, the method further includes:

[0014] In response to the hot word processing instruction, a corresponding target domain is obtained to query an associated conversation text set;

[0015] A preset recognition model is called to identify a hot word set corresponding to the conversation text set, so as to determine the hot word set as the target field.

[0016] In yet another embodiment, after determining the hot word set for the target field, the method further includes:

[0017] For each hot word in the hot word set, the audio information of each hot word corresponding to different audio features is collected, and a preset recognition model is called to recognize the audio information of each hot word, and the accuracy of the recognition result is calculated to determine the target hot word audio information based on the accuracy, and update it to the hot words in the target field.

[0018] In yet another embodiment, obtaining a hot word set of the field corresponding to the speech recognition instruction includes:

[0019] Obtaining a domain identifier corresponding to the speech recognition instruction to query a first hot word set of the domain identifier;

[0020] Obtaining an adjacent field identifier associated with the field to query a second hot word set corresponding to the adjacent field identifier;

[0021] The first hot word set and the second hot word set are combined to determine a hot word set for the field corresponding to the speech recognition instruction.

[0022] To achieve the above objective, according to another aspect of an embodiment of the present invention, a speech recognition device is provided.

[0023] A speech recognition device according to an embodiment of the present invention includes: a generation unit, configured to obtain audio to be processed in response to a speech recognition instruction, call a preset generation model, and generate coding features of the audio to be processed;

[0024] A calculation unit, used to obtain a hot word set in the field corresponding to the speech recognition instruction to calculate the word vector of the hot word set; call a preset calculation model to calculate an initial weight matrix based on the encoding feature and the word vector;

[0025] An updating unit, used for screening the parameter set that does not meet the preset condition in the initial weight matrix, so as to update the parameter set to a preset value and obtain an updated weight matrix;

[0026] An identification unit is used to determine an identification result of the information to be processed based on the updated weight matrix and the coding feature.

[0027] In one embodiment, the updating unit is specifically configured to:

[0028] A parameter set whose value in the initial weight matrix is ​​less than a preset threshold is screened.

[0029] In yet another embodiment, the updating unit is specifically configured to:

[0030] A parameter set of a preset proportion is selected from the initial weight matrix, wherein the values ​​of the parameters in the parameter set are smaller than the values ​​of the parameters not in the data set.

[0031] In yet another embodiment, the apparatus further comprises:

[0032] A query unit, for obtaining a corresponding target domain in response to a hot word processing instruction, so as to query an associated conversation text set;

[0033] The determination unit is used to call a preset recognition model to identify the hot word set corresponding to the conversation text set, so as to determine it as the hot word set of the target field.

[0034] In yet another embodiment, the determining unit is specifically configured to:

[0035] For each hot word in the hot word set, the audio information of each hot word corresponding to different audio features is collected, and a preset recognition model is called to recognize the audio information of each hot word, and the accuracy of the recognition result is calculated to determine the target hot word audio information based on the accuracy, and update it to the hot words in the target field.

[0036] In yet another embodiment, the computing unit is specifically configured to:

[0037] Obtaining a domain identifier corresponding to the speech recognition instruction to query a first hot word set of the domain identifier;

[0038] Obtaining an adjacent field identifier associated with the field to query a second hot word set corresponding to the adjacent field identifier;

[0039] The first hot word set and the second hot word set are combined to determine a hot word set for the field corresponding to the speech recognition instruction.

[0040] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device is provided.

[0041] An electronic device according to an embodiment of the present invention comprises: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method for speech recognition provided by the embodiment of the present invention.

[0042] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer readable medium is provided.

[0043] A computer-readable medium according to an embodiment of the present invention stores a computer program, and when the program is executed by a processor, the method for speech recognition provided by the embodiment of the present invention is implemented.

[0044] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer program product is provided.

[0045] A computer program product according to an embodiment of the present invention includes a computer program, and when the program is executed by a processor, the method for speech recognition provided by the embodiment of the present invention is implemented.

[0046] One embodiment of the above invention has the following advantages or beneficial effects: In the embodiment of the present invention, during speech recognition, the coding features of the information to be processed can be generated by generating a model for the information to be processed; at the same time, the word vector of the hot word set in the field corresponding to the speech recognition instruction can be calculated, and the initial weight matrix can be calculated in combination with the coding features to realize the combination of the hot words in the field and the information to be processed, so that the hot words enhance the recognition effect of the information with lower frequency of occurrence; further, the parameter set that does not meet the preset conditions in the initial weight matrix is ​​screened and updated to the preset value to reduce the interference of the hot words with weak influence on the recognition effect, and then the recognition result of the audio to be processed is determined by the updated weight matrix and coding features. In this way, in the embodiment of the present invention, the initial weight matrix is ​​calculated in combination with the hot word set during speech recognition, so as to enhance the recognition effect of the information with lower frequency of occurrence through the hot words, and the parameter set that does not meet the preset conditions is also updated to the preset value, so as to reduce the interference of the hot words with weak influence, enhance the enhancement effect of the hot words with strong influence, and then improve the recognition effect of the information with lower frequency of occurrence, and improve the recognition accuracy.

[0047] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with specific implementation examples. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0049] Figure 1 is a schematic diagram of a main process of a method for speech recognition according to an embodiment of the present invention;

[0050] Figure 2 is a schematic diagram of a network structure of a speech recognition model according to an embodiment of the present invention;

[0051] Figure 3 is a schematic diagram of another main process of the method for speech recognition according to an embodiment of the present invention;

[0052] Figure 4 is a schematic diagram of main units of a speech recognition apparatus according to an embodiment of the present invention;

[0053] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0054] Figure 6 It is a schematic diagram of the structure of a computer system suitable for implementing the embodiment of the present invention. DETAILED DESCRIPTION

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

[0056] It should be noted that the embodiments and features of the embodiments of the present invention can be combined with each other without conflict. The acquisition, storage, use, and processing of data in the technical solution of this application are in compliance with the relevant provisions of national laws and regulations.

[0057] An embodiment of the present invention provides a speech recognition system, which can be used in a scenario where input speech is recognized.

[0058] In speech recognition, in order to improve the recognition accuracy of information with low frequency of occurrence, hot words can be pre-set to perform speech recognition in combination with the preset hot words. Hot words usually refer to named entity nouns, including names of people, places, product names, etc. These words may appear with changes in the language environment or language habits, the occurrence of hot events, etc., and because they may appear less frequently in model training, the speech recognition effect of the trained model is poor. Therefore, in the embodiment of the present invention, the preset hot words can be combined during speech recognition to enhance the influence of the hot words on speech recognition and improve the recognition accuracy of these information with low frequency of occurrence. At the same time, in the process of speech recognition, the content of each recognition is different, and not all hot words have an enhancing effect on the recognition effect. Therefore, in order to reduce mutual interference, the influence of hot words that have less influence on the recognition effect in the recognition process can be reduced, thereby further enhancing the accuracy of speech recognition.

[0059] The embodiment of the present invention provides a method for speech recognition, which can be performed by a speech recognition system. Figure 1 As shown, the method includes:

[0060] S101: In response to a speech recognition instruction, obtain information to be processed, call a preset generation model, and generate coding features of the information to be processed.

[0061] The speech recognition instruction can be triggered automatically or sent by an external device. For example, the speech recognition system can receive the speech recognition instruction of the external system, or trigger the speech recognition instruction after collecting or receiving the speech to be recognized. The information to be processed can represent the speech to be recognized, and the information to be processed can be carried in the speech recognition instruction or stored in a preset location, so when responding to the speech recognition instruction in this step, the information to be processed is obtained.

[0062] The generative model may be pre-configured and trained, and in the embodiment of the present invention may be an encoder (·), which may be composed of 2 convolutional neural networks (CNN) and 12 standard Conformer (a neural network model for natural language processing and speech recognition tasks) modules. The generative model may process the information to be processed to obtain corresponding coding features.

[0063] It should be noted that, in the embodiment of the present invention, when the information to be processed is audio information, the generation model can first convert it into text information, and then generate coding features.

[0064] S102: Obtain a hot word set in the field corresponding to the speech recognition instruction to calculate the word vector of the hot word set; call a preset calculation model to calculate an initial weight matrix based on the encoding features and the word vector.

[0065] Among them, the hot word set is pre-configured. Since hot words in different fields may be different, the hot words can be divided into fields in the embodiment of the present invention, so the hot word set corresponding to the field identifier of the speech recognition instruction can be obtained in this step. The field identifier corresponding to the speech recognition instruction can be carried in the speech recognition instruction, or can be determined by the information to be processed, such as the field identifier can be included in the information to be processed.

[0066] It should be noted that, in the embodiments of the present invention, the fields of speech recognition can be divided based on demand. For example, different fields of speech recognition can be set based on application scenarios, which can specifically include mobile phone fields, computer fields, clothing fields, etc., and corresponding field identifiers can be set for each field. For each field, related fields can be determined as adjacent fields. For example, mobile phones and computers are both electronic devices, so these two fields can be determined as adjacent fields.

[0067] In the embodiment of the present invention, a generative model of word vectors can be pre-configured, which can be implemented based on LSTM (Long Short-Term Memory). The model structure includes an embedding layer and two layers of LSTM, wherein the feature dimension of LSTM can be set to 256 dimensions. The word vector matrix corresponding to the hot word set is generated through the generative model of word vectors.

[0068] After the word vectors of the hot word set are obtained, they can be combined with the encoding features of the information to be processed to calculate the initial weight matrix. The weight matrix is ​​a matrix used to enhance the recognition results in speech recognition. In the embodiment of the present invention, the weight matrix is ​​used to enhance the influence of hot words on the recognition results.

[0069] Specifically, the calculation model in the embodiment of the present invention can be implemented by Formula 1.

[0070]

[0071] In formula 1, α represents the initial weight matrix, Represents the word vector matrix, where N represents the number of hot words in the hot word set, and d f The encoding feature dimension can be 256. Represents the encoding features of the information to be processed, where T represents the number of frames of the output features of the generated model, and d e Indicates the dimension of the Conformer module in the generative model. For example, the value can be 256 dimensions.

[0072] The initial weight matrix represents the weight coefficients, so the sum of the parameter values ​​of each column in the initial weight matrix is ​​1.

[0073] It should be noted that the line of sight of the calculation model in the embodiment of the present invention can also be set based on demand. For example, the encoding features and word vectors can be weighted and then normalized to obtain an initial weight matrix.

[0074] In one embodiment, the hot word set is preset, and can be specifically identified from a conversation text. The conversation text can be specifically an expression used in a common communication, and can be specifically a speech template.

[0075] For example, in an outbound call system, since fixed words are usually used to communicate with the outbound call object, a lot of keyword information exists in the wording template. Therefore, the wording template can be used to identify and extract hot words, and the specific recognition model can be an entity recognition model. Since hot words in the embodiment of the present invention can be divided into fields, the associated wording template can be queried based on the field to identify the hot word set corresponding to each field. Specifically, determining the hot word set can be performed as follows: responding to the hot word processing instruction, obtaining the corresponding target field to query the associated conversation text set; calling the preset recognition model to identify the hot word set corresponding to the conversation text set to determine it as the hot word set of the target field.

[0076] It should be noted that due to differences in voice, intonation, etc., each hot word may have multiple voice expressions. Therefore, in order to enrich the hot words in the embodiment of the present invention, the above-identified hot words can be converted into multiple audio information to determine the audio information with better recognition effect to supplement the hot words. Therefore, in this step, for each hot word in the hot word set, the audio information of each hot word corresponding to different audio features can be collected, and the preset recognition model can be called to recognize the audio information of each hot word, and the accuracy of the recognition result can be calculated to determine the target hot word audio information based on the accuracy, and update it to the hot words in the target field.

[0077] There may be multiple audio features. Specifically, the hot words may be synthesized into hot word audio information with different expressions using speech synthesis technology.

[0078] In order to verify the statistical significance, each hot word can be synthesized using no less than 50 timbres to obtain multiple hot word audio information. Each hot word audio information can be recognized by a preset recognition model, and the recognition accuracy can be counted, and then the hot word audio information with a higher accuracy can be used as a hot word and updated to the hot word in the target field. For example, the hot word audio information with an accuracy greater than 80% can be selected as the target hot word audio information.

[0079] In another embodiment, since hot words may overlap in similar fields, when obtaining a hot word set, a hot word set of a similar field can also be obtained. Specifically, the following can be performed: obtaining the field corresponding to the speech recognition instruction to query the first hot word set of the field; obtaining the adjacent field associated with the field to query the second hot word set corresponding to the adjacent field; merging the first hot word set and the second hot word set to determine the hot word set of the field corresponding to the speech recognition instruction.

[0080] In this step, the first hot word set and the second hot word set are combined, and the first hot word set and the second hot word set and the union can be taken, that is, the hot word set of the field corresponding to the speech recognition instruction is determined. The adjacent fields associated with the field can be preset or determined based on the field classification level. For example, each field can be divided into different levels according to the inclusion relationship, and fields with the same previous level can be determined as adjacent fields.

[0081] It should be noted that in the embodiment of the present invention, the hot word recognition from the speech template can be implemented using a large language model (large model). Compared with the natural language processing model, the large language model technology usually uses more training data and model parameters. By designing a specific prompt (prompt word), it can stimulate the hot word enhancement ability of the large language model for the speech recognition task. For example, it is necessary to extract "nuclear waste water" from the speech template as a hot word. In the embodiment of the present invention, the prompt of the large language model can be involved. By using the prompt information of the confusing pronunciation vocabulary, the hot words are automatically extracted from the speech template, thereby improving the enhancement effect of the hot word extraction result on the downstream speech recognition task. For example, the prompt can be "extract the keywords and give the corresponding meaningless pronunciations that are easily confused". While the prompt model extracts "nuclear waste water", it generates words such as "Hefei water" as hot words. In this way, during speech recognition, it is possible to identify the confusing vocabulary "Hefei water", and finally "Hefei water" can be transcribed into "nuclear waste water" through error correction, thereby improving the recognition effect.

[0082] S103: screening the parameter sets that do not meet the preset conditions in the initial weight matrix to update the parameter sets to preset values, thereby obtaining an updated weight matrix.

[0083] Among them, each parameter in the initial weight matrix can represent the influence strength of the corresponding feature on the recognition result. In order to reduce the interference of features with weaker influence, the parameter set that does not meet the preset conditions can be screened from the initial weight matrix, and the preset conditions can be set based on the specific scenario. For the screened parameter set, in order to reduce its influence, it can be updated to the preset value, which can be specifically -∞ or 0, so that it will no longer have an impact in the subsequent calculation process, so that the updated weight matrix can be obtained.

[0084] It should be noted that the value in the initial weight matrix is ​​less than the preset threshold T h The element index is I, and the matrix in formula (1) All elements corresponding to index I are set to -∞ to obtain the matrix P′, and the updated weight matrix is ​​obtained by softmax(P′). In the updated weight matrix, the matrix elements corresponding to index I are all 0, so that the corresponding hot words can be restricted from participating in speech recognition, and the hot words with weak influence can be excluded from participating in recognition. At the same time, the upper limit of the number of hot words directly participating in speech recognition can be limited, thereby alleviating the mutual interference between hot words.

[0085] Specifically, on the one hand, in the embodiment of the present invention, a threshold can be pre-configured, and then a parameter set whose value in the initial weight matrix is ​​less than the preset threshold can be screened. The preset threshold can be set based on demand, for example, it can be set to 0.01.

[0086] On the other hand, in an embodiment of the present invention, a parameter set can also be screened based on a ratio, that is, parameters with a preset ratio with the smallest value are screened out. Specifically, it can be performed as follows: a parameter set with a preset ratio is screened from the initial weight matrix, wherein the values ​​of the parameters in the parameter set are smaller than the values ​​of the parameters in the non-data set.

[0087] S104: Determine the recognition result of the information to be processed based on the updated weight matrix and the encoding features.

[0088] After the updated weight matrix is ​​obtained, it can be input into a decoder to determine the recognition result of the information to be processed. The decoder can be specifically composed of 6 layers of standard Transformer modules. Alternatively, in an embodiment of the present invention, a deep learning model can be pre-trained to calculate the recognition result of the information to be processed after the updated weight matrix and the encoding features are input into the deep learning model.

[0089] It should be noted that, based on the recognition of hot words and hot words in adjacent fields by speech templates, the present invention can also support the method of manually configuring hot words to supplement the first two hot word determination methods, thereby improving the overall recognition effect of the model. In the actual operation process, the manual configuration can be manually configured by the project operator according to the recognition problems in the use of the project. At the same time, the configuration system can also provide system prompts to avoid repeated configuration of hot words based on the existing hot word list of the speech.

[0090] In an embodiment of the present invention, an initial weight matrix is ​​calculated in combination with a hot word set during speech recognition, so as to enhance the recognition effect of information with a lower frequency of occurrence through hot words. At the same time, a parameter set that does not meet the preset conditions is updated to a preset value, thereby reducing the interference of weakly influential hot words and enhancing the enhancement effect of strongly influential hot words, thereby improving the recognition effect of information with a lower frequency of occurrence and improving recognition accuracy.

[0091] It should be noted that, in the embodiment of the present invention, speech recognition can be used as an overall model, including a Conformer backbone network and a hot word enhancement network. The Conformer backbone network consists of two parts: an encoding network encoder and a decoding network decoder. The encoder can be used to realize the encoding features of the information to be processed generated in step S101, and the decoder can be used to determine the recognition results of the audio to be processed in step S104. The hot word enhancement network can be implemented based on LSTM and an attention mechanism, wherein the word vectors of the hot word set are calculated based on LSTM, and the weight matrix is ​​calculated through the attention mechanism. Figure 2 As shown, this is a structural diagram of a speech recognition network.

[0092] The speech recognition model can be trained in advance, and the training data set is denoted as D = {x i ,y i |i∈[1,M]}, where x i is the audio feature matrix of the i-th training data sample, y i is the audio feature x i The corresponding text annotation result, M is the number of annotated samples in the training data set. In the embodiment of the present invention, the training data set is a 10w hour Chinese data set, the audio sampling rate is 16kHz, and the audio feature matrix used can be an 80-dimensional Mel-spectrogram feature, in which the duration of each frame is 25ms and the step length is 10ms. The model is trained to convergence by using the training data set D. During the training process, the input hot words can be a list of continuous texts of random length in the annotated text in each mini-batch. During use, the input hot words are the configured hot word set.

[0093] Combine the following Figure 3 The embodiment shown in the figure specifically describes the method of speech recognition in the embodiment of the present invention. Figure 3 As shown, the method includes:

[0094] S301: In response to a speech recognition instruction, obtain information to be processed, call an encoder, and generate encoding features of the information to be processed.

[0095] S302: Obtain a hot word set in the field corresponding to the speech recognition instruction to calculate the word vector of the hot word set.

[0096] S303: Call the preset calculation model to calculate the initial weight matrix based on the encoding features and word vectors.

[0097] S304: Filter the parameter set whose value in the initial weight matrix is ​​less than a preset threshold.

[0098] S305: Update the parameter set to a preset value to obtain an updated weight matrix.

[0099] S306: Call the decoder to determine the recognition result of the information to be processed based on the updated weight matrix and the encoding features.

[0100] It should be noted that the data processing principle in the embodiment of the present invention is the same as Figure 1 The corresponding data processing principles in the illustrated embodiments are the same and will not be described in detail here.

[0101] In order to solve the problems existing in the prior art, the embodiment of the present invention provides a speech recognition device 400, such as Figure 4 As shown, the device 400 includes:

[0102] The generating unit 401 is used to obtain the audio to be processed in response to the speech recognition instruction, call the preset generating model, and generate the coding features of the audio to be processed;

[0103] The calculation unit 402 is used to obtain a hot word set in the field corresponding to the speech recognition instruction to calculate the word vector of the hot word set; call a preset calculation model to calculate an initial weight matrix based on the encoding feature and the word vector;

[0104] An updating unit 403 is used to screen the parameter set in the initial weight matrix that does not meet the preset condition, so as to update the parameter set to a preset value to obtain an updated weight matrix;

[0105] The identification unit 404 is used to determine the identification result of the information to be processed based on the updated weight matrix and the encoding feature.

[0106] It should be understood that the manner of implementing the embodiments of the present invention is different from the Figure 1 The method of the illustrated embodiment is the same and will not be repeated here.

[0107] In one embodiment, the updating unit 403 is specifically configured to:

[0108] A parameter set whose value in the initial weight matrix is ​​less than a preset threshold is screened.

[0109] In yet another embodiment, the updating unit 403 is specifically configured to:

[0110] A parameter set of a preset proportion is selected from the initial weight matrix, wherein the values ​​of the parameters in the parameter set are smaller than the values ​​of the parameters not in the data set.

[0111] In yet another embodiment, the apparatus 400 further includes:

[0112] A query unit, for obtaining a corresponding target domain in response to a hot word processing instruction, so as to query an associated conversation text set;

[0113] The determination unit is used to call a preset recognition model to identify the hot word set corresponding to the conversation text set, so as to determine it as the hot word set of the target field.

[0114] In yet another embodiment, the determining unit is specifically configured to:

[0115] For each hot word in the hot word set, the audio information of each hot word corresponding to different audio features is collected, and a preset recognition model is called to recognize the audio information of each hot word, and the accuracy of the recognition result is calculated to determine the target hot word audio information based on the accuracy, and update it to the hot words in the target field.

[0116] In yet another embodiment, the computing unit 402 is specifically configured to:

[0117] Obtaining a domain identifier corresponding to the speech recognition instruction to query a first hot word set of the domain identifier;

[0118] Obtaining an adjacent field identifier associated with the field to query a second hot word set corresponding to the adjacent field identifier;

[0119] The first hot word set and the second hot word set are combined to determine a hot word set for the field corresponding to the speech recognition instruction.

[0120] It should be understood that the manner of implementing the embodiments of the present invention is different from the Figure 1 , 3 The method of the illustrated embodiment is the same and will not be described again here.

[0121] In an embodiment of the present invention, an initial weight matrix is ​​calculated in combination with a hot word set during speech recognition, so as to enhance the recognition effect of information with a lower frequency of occurrence through hot words. At the same time, a parameter set that does not meet the preset conditions is updated to a preset value, thereby reducing the interference of weakly influential hot words and enhancing the enhancement effect of strongly influential hot words, thereby improving the recognition effect of information with a lower frequency of occurrence and improving recognition accuracy.

[0122] According to an embodiment of the present invention, the embodiment of the present invention further provides an electronic device and a readable storage medium.

[0123] The electronic device of an embodiment of the present invention comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the one processor, and the instructions are executed by the at least one processor so that the at least one processor executes the method of speech recognition provided by the embodiment of the present invention.

[0124] Figure 5 An exemplary system architecture 500 is shown to which the method for speech recognition or the apparatus for speech recognition according to the embodiment of the present invention can be applied.

[0125] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0126] The user can use the terminal devices 501, 502, 503 to interact with the server 505 through the network 504 to receive or send messages, etc. Various client applications can be installed on the terminal devices 501, 502, 503.

[0127] The terminal devices 501 , 502 , and 503 may be, but are not limited to, smart phones, tablet computers, laptop computers, and desktop computers, etc.

[0128] The server 505 may be a server that provides various services. The server may analyze and process the received data such as the product information query request, and feed back the processing result (such as product information - just an example) to the terminal device.

[0129] It should be noted that the speech recognition method provided in the embodiment of the present invention is generally executed by the server 505 , and accordingly, the speech recognition device is generally disposed in the server 505 .

[0130] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0131] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 suitable for implementing an embodiment of the present invention. Figure 6 The computer system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0132] like Figure 6As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0133] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.

[0134] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.

[0135] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

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

[0137] The units involved in the embodiments of the present invention may be implemented by software or hardware. The units described may also be arranged in a processor, for example, it may be described as: a processor includes a generation unit, a calculation unit, an update unit, and an identification unit. The names of these units do not constitute a limitation on the units themselves in some cases, for example, the generation unit may also be described as a "unit for generating functions".

[0138] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device executes the method of speech recognition provided by the present invention.

[0139] As another aspect, the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the method for speech recognition provided by an embodiment of the present invention.

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

Claims

1. A method for speech recognition, characterized in that: include: In response to the speech recognition instruction, the information to be processed is obtained, and a preset generation model is called to generate coding features of the information to be processed; Obtain a hot word set in the field corresponding to the speech recognition instruction to calculate a word vector of the hot word set; Calling a preset calculation model to calculate an initial weight matrix based on the encoding features and the word vector; Screening the parameter set that does not meet the preset condition in the initial weight matrix to update the parameter set to a preset value to obtain an updated weight matrix; Based on the updated weight matrix and the coding features, a recognition result of the information audio to be processed is determined.

2. The method according to claim 1, characterized in that Screening the parameter set that does not meet the preset conditions in the initial weight matrix includes: A parameter set whose value in the initial weight matrix is ​​less than a preset threshold is screened.

3. The method according to claim 1, characterized in that: Screening the parameter set that does not meet the preset conditions in the initial weight matrix includes: A parameter set of a preset proportion is selected from the initial weight matrix, wherein the values ​​of the parameters in the parameter set are smaller than the values ​​of the parameters not in the data set.

4. The method according to claim 1, characterized in that: Before responding to the voice recognition instruction, the method further includes: In response to the hot word processing instruction, a corresponding target domain is obtained to query an associated conversation text set; A preset recognition model is called to identify a hot word set corresponding to the conversation text set, so as to determine the hot word set as the target field.

5. The method according to claim 4, characterized in that After determining the hot word set in the target field, the method further includes: For each hot word in the hot word set, the audio information of each hot word corresponding to different audio features is collected, and a preset recognition model is called to recognize the audio information of each hot word, and the accuracy of the recognition result is calculated to determine the target hot word audio information based on the accuracy, and update it to the hot words in the target field.

6. The method according to claim 1, characterized in that Obtaining a set of hot words in the field corresponding to the speech recognition instruction, including: Obtaining a domain identifier corresponding to the speech recognition instruction to query a first hot word set corresponding to the domain identifier; Obtaining an adjacent field identifier associated with the field to query a second hot word set corresponding to the adjacent field identifier; The first hot word set and the second hot word set are combined to determine a hot word set for the field corresponding to the speech recognition instruction.

7. A speech recognition device, characterized in that: include: A generating unit, configured to obtain the audio to be processed in response to the speech recognition instruction, call a preset generating model, and generate coding features of the audio to be processed; A calculation unit, used to obtain a hot word set in the field corresponding to the speech recognition instruction to calculate a word vector of the hot word set; Calling a preset calculation model to calculate an initial weight matrix based on the encoding features and the word vector; An updating unit, used for screening the parameter set that does not meet the preset condition in the initial weight matrix, so as to update the parameter set to a preset value and obtain an updated weight matrix; An identification unit is used to determine an identification result of the information to be processed based on the updated weight matrix and the coding feature.

8. The device according to claim 7, characterized in that The updating unit is specifically used for: A parameter set whose value in the initial weight matrix is ​​less than a preset threshold is screened.

9. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.