Method and device for processing multi-pronunciation problem in speech recognition, equipment and medium
By constructing pseudo-words and updating the pronunciation dictionary, the problem of reduced recognition accuracy and excessive resource usage caused by multiple pronunciations in English command word recognition is solved, enabling deployment on devices with extremely low resources.
Patent Information
- Application Number
- CN202410913691.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-10-08
AI Technical Summary
In the prior art, multiple pronunciation problems in the recognition process of Chinese and English command words lead to reduced recognition accuracy and excessive resource usage, making it impossible to deploy on devices with extremely low resources.
By constructing text corpus, converting word sequences into phoneme sequences, constructing pseudo-words, and using these pseudo-words to replace words in the pronunciation dictionary, update the pronunciation dictionary for discriminative training, reducing the number of modeling units of the network model and the number of decoding required space.
It improves the recognition accuracy of English command words by the speech recognition model, significantly reduces the space occupied by the model and the space required for decoding, allowing this method to be deployed on devices with extremely low resources.
Smart Images

Figure CN118748009A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of speech recognition technology, and in particular to a method, device, equipment and medium for processing multiple pronunciation problems in speech recognition. Background Art
[0002] In the field of smart home, voice wake-up and command word recognition are common intelligent functions. Users need to activate the device by shouting out specific wake-up words or command words and get real-time responses. Command word recognition is an application of voice recognition and is widely used in the field of smart home, including smart voice speakers, smart voice headphones, smart voice lights, smart voice fans and other devices. In order to improve recognition accuracy, discriminative training is a commonly used training method. It requires that the correct word sequence has a high probability while limiting the total probability of all possible word sequences to be small, thereby greatly reducing the possibility of misrecognition. In English command word recognition, due to the existence of multiple pronunciation methods, directly using phonemes as modeling units will face the problem of multiple pronunciations. A common processing method is to use a modeling unit based on byte-pair encoding (BPE). This processing method can avoid the problem of multiple pronunciations, but to obtain good recognition results, the number of BPE categories usually needs to reach more than 100, such as BPE500. This results in a large space occupied by the network model and the space required for decoding, which cannot be deployed on devices with extremely low resources.
[0003] Therefore, in the English command word recognition process, the existing processing method for multiple pronunciations occupies a large amount of space and requires a large amount of space for decoding, and the problem that it cannot be deployed on devices with extremely low resources needs to be solved urgently. Summary of the invention
[0004] The main purpose of this application is to provide a method for processing multiple pronunciation problems in speech recognition, aiming to solve the technical problem that the existing processing method for multiple pronunciations in the English command word recognition process in the prior art occupies a large space and the space required for decoding is large, and it cannot be deployed on devices with extremely low resources.
[0005] The first aspect of the present application provides a method for processing a multi-pronunciation problem in speech recognition, comprising:
[0006] Constructing a text corpus and converting a word sequence contained in the text corpus into a phoneme sequence;
[0007] Based on the phoneme sequence, construct a pseudo word by phoneme concatenation;
[0008] Replace words in the pronunciation dictionary with pseudo-words;
[0009] Arrange all pseudo-words into a pseudo-word list according to the format of the pronunciation dictionary, and update the pronunciation dictionary;
[0010] The speech recognition model is discriminatively trained using the updated pronunciation dictionary.
[0011] Furthermore, the step of constructing a text corpus and converting a word sequence contained in the text corpus into a phoneme sequence includes:
[0012] Use open source datasets as a basis to build text corpora;
[0013] Segment the sentences in the text corpus and decompose the sentences into word sequences;
[0014] Using the g2p tool, each word sequence is processed by phoneme conversion to obtain a corresponding phoneme sequence. Further, the step of constructing a pseudo word by phoneme concatenation based on the phoneme sequence includes:
[0015] Obtaining the phoneme sequence;
[0016] identifying phonemes in the phoneme sequence;
[0017] Arranging the phonemes in a specified order;
[0018] The arranged phonemes are concatenated in order to form the pseudo-words.
[0019] Further, the step of replacing the words in the pronunciation dictionary with pseudo words comprises:
[0020] Identify pronounced words in a pronunciation dictionary;
[0021] Match the pronounced words with the generated pseudo-word list;
[0022] According to the matching results, the corresponding pronounced words in the pronunciation dictionary are replaced with the corresponding pseudo-words.
[0023] Furthermore, the step of arranging all pseudo words into a pseudo word list according to the format of the pronunciation dictionary includes:
[0024] Analyze the format specifications of pronunciation dictionaries;
[0025] Align the generated pseudo-words with the word formats of the pronunciation dictionary;
[0026] All pseudo-words are organized into a pseudo-word list according to the format specifications of the pronunciation dictionary.
[0027] Furthermore, after the step of constructing a text corpus and converting a word sequence contained in the text corpus into a phoneme sequence, the following steps are included:
[0028] Based on the phoneme sequence, identifying the tone information contained in the phoneme sequence;
[0029] Deleting the recognized tone information, or mapping the phoneme sequence containing the tone information to the corresponding toneless phoneme through a predefined mapping relationship;
[0030] Correct and organize the processed phoneme sequence.
[0031] Furthermore, the step of using the updated pronunciation dictionary to perform discriminative training on the speech recognition model includes:
[0032] Load the pre-trained speech recognition model;
[0033] Provide the updated pronunciation dictionary as input to the speech recognition model to train the model;
[0034] The performance of the model is evaluated through cross-validation or test sets until the predetermined performance index is reached and training is stopped.
[0035] A second aspect of the present application provides a device for processing multiple pronunciation problems in speech recognition, comprising:
[0036] A construction module, used for constructing a text corpus and converting a word sequence contained in the text corpus into a phoneme sequence;
[0037] A pseudo-word construction module, used for constructing pseudo-words by concatenating phonemes based on the phoneme sequence;
[0038] A replacement module for replacing words in the pronunciation dictionary with pseudo-words;
[0039] A list sorting module is used to sort all pseudo words into a pseudo word list according to the format of the pronunciation dictionary and update the pronunciation dictionary;
[0040] A training module is used to perform discriminative training on a speech recognition model using the updated pronunciation dictionary.
[0041] The third aspect of the present application provides a device for processing multiple pronunciation problems in speech recognition, comprising:
[0042] processor;
[0043] Memory for storing computer programs;
[0044] Wherein, when the processor executes the computer program, the method for processing the multi-pronunciation problem in speech recognition described in any one of the above is implemented.
[0045] A fourth aspect of the present application provides a computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method for processing multiple pronunciation problems in speech recognition described in any one of the above-mentioned methods is implemented.
[0046] Beneficial effects:
[0047] The present application constructs a text corpus and converts it into a phoneme sequence, further constructs pseudo words by phoneme splicing, and uses these pseudo words to replace words in the pronunciation dictionary, and finally uses the updated pronunciation dictionary to perform discriminative training on the speech recognition model. This method not only solves the problem of reduced recognition accuracy caused by the multi-pronunciation problem in the recognition process of English command words, but also significantly reduces the space occupied by the network model and the space required for decoding through the construction and replacement of pseudo words, so that the method can be deployed on devices with extremely low resources. Specifically, firstly, pseudo words are constructed by phoneme splicing, which avoids the multi-pronunciation problem faced when directly using phonemes as modeling units, thereby improving the recognition accuracy of English command words by the speech recognition model. Since the words in the pronunciation dictionary are replaced by pseudo words, the number of modeling units required for the network model is significantly reduced, thereby reducing the space occupied by the model. This is of great significance for deploying speech recognition models on devices with limited resources. By updating the pronunciation dictionary, the speech recognition model can directly use the pseudo word list during the decoding process without complex phoneme conversion and splicing operations, thereby improving the decoding efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 It is a schematic diagram of the steps of a method for processing a multi-pronunciation problem in speech recognition according to an embodiment of the present application;
[0049] Figure 2 It is a schematic block diagram of the structure of a device for processing multiple pronunciation problems in speech recognition according to an embodiment of the present application;
[0050] Figure 3 is a schematic block diagram of the structure of a computer device according to an embodiment of the present application;
[0051] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0053] It will be appreciated by those skilled in the art that, unless expressly stated, the singular forms "one", "above", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of features, integers, steps, operations, elements, modules, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, modules, components, and / or groups thereof. It should be understood that when an element is said to be "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may also be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any module and all combinations of one or more associated listed items.
[0054] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with those in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.
[0055] Based on the above scheme, this application writes the following scheme content:
[0056] Reference Figure 1 The present application embodiment provides a method for processing a multi-pronunciation problem in speech recognition, comprising the following steps S1-S5:
[0057] S1. Construct a text corpus and convert a word sequence contained in the text corpus into a phoneme sequence;
[0058] S2, constructing a pseudo word by concatenating phonemes based on the phoneme sequence;
[0059] S3, replace words in the pronunciation dictionary with pseudo words;
[0060] S4, organize all pseudo words into a pseudo word list according to the format of the pronunciation dictionary, and update the pronunciation dictionary;
[0061] S5. Use the updated pronunciation dictionary to perform discriminative training on the speech recognition model.
[0062] In step S1, first, a basic data set is constructed from a large amount of text corpus. These data sets can be texts from various sources, such as gigaspeech (a large-scale multilingual speech data set) and librispeech (an open English speech data set). These data sets contain rich word sequences, which will serve as the basis for subsequent conversion into phoneme sequences. After the text is collected, some preprocessing operations are performed, such as removing punctuation marks, special characters, numbers, etc., to ensure that the subsequent steps can proceed smoothly. The preprocessed text is segmented to obtain a word sequence. This step is to divide the text into smaller units to facilitate subsequent conversion into a phoneme sequence. This step can provide the original word sequence and provide a data basis for subsequent conversion into a phoneme sequence. Through this step, the word sequence in the text corpus can be converted into a phoneme sequence, providing basic data for subsequent pseudo-word construction and pronunciation dictionary replacement. By constructing a text corpus and converting it into a phoneme sequence, the pronunciation characteristics of the word can be captured more accurately, providing strong support for the subsequent solution of the multi-pronunciation problem. It can make full use of a large amount of text corpus and provide more abundant and accurate pronunciation data for subsequent speech recognition models by means of word segmentation and conversion into phoneme sequences, which helps to improve the recognition accuracy and robustness of the speech recognition model.
[0063] In step S2, based on the phoneme sequence obtained in step S1, pseudo words (fakeword) are constructed. The specific implementation process is as follows: First, the phonemes corresponding to each word in the phoneme sequence are traversed. For each word, according to the pronunciation of its phonemes, these phonemes are recombined into one or more pseudo words using a predefined rule or algorithm. These pseudo words represent different pronunciation possibilities of the original words. For example, for the word "to", three pseudo words may be constructed, specifically, "TAH", "TIH", and "T UW" represent three different pronunciations of "to" respectively. In this way, corresponding pseudo words are constructed for each word with multiple pronunciation possibilities, for example, according to "TAH", "TIH", and "T UW", the pseudo words "T_AH", "T_IH" and "T_UW" are obtained respectively. Thereby ensuring that in the subsequent steps, no matter how the actual pronunciation of the word is, the corresponding pseudo word can be found. Step S2 solves the problem caused by multi-pronunciation words in traditional speech recognition by recombining phonemes into pseudo words. Traditional speech recognition systems usually only provide a fixed pronunciation model for a word, which will lead to a decrease in recognition accuracy when there are multiple pronunciation words. Usually a large amount of labeled data is required to train multiple pronunciation models. However, this solution only constructs pseudo words by concatenating phonemes, without the need for additional labeled data, reducing the cost of data collection and annotation.
[0064] In step S3, in step S3, the original words in the pronunciation dictionary are replaced with the pseudo-words constructed in step S2. The purpose of this step is to replace the words in the pronunciation dictionary with pseudo-words, which contain pseudo-words of all possible pronunciations of the original words. The specific implementation process is as follows: First, the original pronunciation dictionary is traversed, and for each word, the pseudo-words corresponding to the pseudo-words constructed in step S2 are searched. If the corresponding pseudo-words are found, the entries of the word in the pronunciation dictionary are replaced with these pseudo-words. It should be noted that if a word does not construct a pseudo-word in step S2 (i.e., the word has only one fixed pronunciation), its original entry in the pronunciation dictionary is kept unchanged. Through this step, the pronunciation dictionary will contain pseudo-words of all possible pronunciations of the original word. This updated pronunciation dictionary will be used for the discriminative training of the subsequent speech recognition model. The effect of step S3 is that, by replacing the words in the original pronunciation dictionary with pseudo-words, the pronunciation dictionary can cover the actual pronunciation of the word more comprehensively, thereby improving the recognition accuracy of the speech recognition model for multi-pronunciation words. In terms of technical effects, step S3 solves the problem of reduced recognition accuracy caused by multi-pronounced words in traditional speech recognition by replacing the words in the pronunciation dictionary with pseudo-words. Since pseudo-words contain all possible pronunciations of a word, the corresponding entry can be found in the pronunciation dictionary regardless of the actual pronunciation of the word, thereby improving the recognition accuracy. Compared with the prior art, since the construction of pseudo-words in this solution is based on phoneme splicing, it does not require additional annotation data, nor does it need to train multiple pronunciation models for each word, which reduces the cost of data collection and annotation, while improving the recognition accuracy.
[0065] In step S4, the updated pronunciation dictionary obtained in step S3 is further processed, all pseudo-words are sorted into a pseudo-word list according to the standard format of the pronunciation dictionary, and the pronunciation dictionary is updated. These pseudo-words are sorted into a pseudo-word list according to the standard format of the pronunciation dictionary. The pronunciation dictionary usually contains a mapping relationship between words and their corresponding pronunciations, so we need to ensure that the pseudo-word list also follows this format. Specifically, we can create an entry for each pseudo-word, which includes the pseudo-word itself and the corresponding pronunciation tag (i.e., phoneme sequence). For example:
[0066] G_AY_D→G AY D
[0067] Y_UW→Y UW
[0068] W_AO_K→W AO K
[0069] TH_R_UW→TH R UW
[0070] DH_AH→DH AH
[0071] D_AO_R→D AO R
[0072] S_IY→S IY
[0073] R_EH_D→R EHD
[0074] After arranging the pseudo-word list, the pronunciation dictionary is updated. If an original word constructs multiple pseudo-words in step S2, we create multiple entries for the word in the pronunciation dictionary, each entry corresponding to a pseudo-word. If an original word has only one fixed pronunciation (i.e., no pseudo-words are constructed), we keep its original entry in the pronunciation dictionary unchanged. This step ensures the integrity and accuracy of the pronunciation dictionary. By arranging the pseudo-word list and updating the pronunciation dictionary, we can ensure that the subsequent speech recognition model can take into account all possible pronunciations of the word when recognizing the word. The original pronunciation dictionary usually contains multiple pronunciations of each word, which may cause the decoding graph (HCLG-Hypothesis, Context, Lexicon, Grammar) to be inconsistent with the actual pronunciation (ground truth), affecting the recognition effect. The updated pronunciation dictionary solves the confusion caused by multi-pronunciation words by replacing them with pseudo-words, so that the decoding graph and the actual ground truth label are consistent, and the accuracy of speech recognition is improved. It helps to improve the recognition accuracy of the speech recognition model for multi-pronunciation words. By arranging the pseudo-words into a list according to the format of the pronunciation dictionary and updating the pronunciation dictionary, the pronunciation dictionary can cover the actual pronunciation of the word more comprehensively. This helps solve the problem of reduced recognition accuracy caused by multi-pronounced words in traditional speech recognition. Compared with the existing technology, this solution constructs pseudo words based on phoneme splicing and updates the pronunciation dictionary, without the need for additional annotation data or training multiple pronunciation models, thus reducing the cost of data collection and annotation and improving recognition accuracy.
[0075] In step S5, the speech recognition model is discriminated by using the pronunciation dictionary updated in step S4. The main purpose of this step is to enable the speech recognition model to accurately distinguish different pronunciations of words, especially in the case of multi-pronunciation words. By using the updated pronunciation dictionary for discriminative training, the speech recognition model can better adapt to the situation of multi-pronunciation words. The specific implementation may include constructing a decoding graph using the updated pronunciation dictionary. The decoding graph is a structure used to convert the phoneme sequence output by the acoustic model into text in speech recognition, which contains a language model, a pronunciation dictionary and grammatical information. In this solution, the updated pronunciation dictionary ensures the consistency of the decoding graph with the actual pronunciation and avoids the decoding ambiguity caused by multi-pronunciation words. Then, the model is trained using a training data set containing fakewords and the updated decoding graph. During the training process, the model learns the mapping relationship between each fakeword and its corresponding phoneme sequence, thereby improving the recognition accuracy of multi-pronunciation words. The model performance is regularly evaluated during the training process, such as using a cross entropy loss function to monitor the training progress and using a validation set to evaluate the generalization ability of the model. According to the evaluation results, the model parameters or training strategies are adjusted. After the model training is completed, an independent test set is used for final evaluation to ensure that the model can perform well on unknown data. Then, the model is deployed in practical applications such as voice assistants, telephone customer service systems, etc. Since the pronunciation dictionary has covered all possible pronunciations of the word, the model can learn the characteristics of these pronunciations during training, thereby improving the recognition accuracy. Step S5 significantly improves the recognition ability of the speech recognition model for multi-pronunciation words through discriminative training. Since the model has learned all possible pronunciations of the word, no matter how the actual pronunciation of the word is, the model can find the corresponding pseudo-word and give accurate recognition results. Compared with the prior art, this solution does not need to train multiple pronunciation models for each word, reduces the cost of data collection and annotation, and improves the recognition accuracy. In addition, by using the updated pronunciation dictionary for training, we can also solve the recognition error problem caused by incomplete pronunciation dictionary or inaccurate annotation in traditional speech recognition. The updated pronunciation dictionary contains all possible pronunciations of the word, so it can ensure that the decoding graph is consistent with the actual ground truth label, thereby improving the accuracy of speech recognition. Improved speech recognition accuracy: Solved the recognition problem of multi-pronunciation words and reduced recognition errors.
[0076] In one embodiment, the step of constructing a text corpus and converting a word sequence contained in the text corpus into a phoneme sequence includes:
[0077] S10. Use open source datasets as a basis to build text corpora;
[0078] S11, segment the sentences in the text corpus and decompose the sentences into word sequences;
[0079] S12. Use the g2p tool to perform phoneme conversion on each word sequence to obtain a corresponding phoneme sequence.
[0080] In this embodiment, open source data sets are used as the basis, such as Gigaspeech and Librispeech. It is possible to ensure the richness and diversity of text corpus, thereby providing sufficient data support for subsequent phoneme conversion and model training. Through the word segmentation step, the system can accurately decompose sentences into word sequences, providing a basis for subsequent word pronunciation processing. Then, using the g2p (grapheme-to-phoneme) tool to perform phoneme conversion processing on each word sequence is a key step to ensure the accuracy of word pronunciation. The g2p tool is a tool that can convert words into phonemes. The g2p tool can be used, which can convert words into corresponding phoneme sequences. The g2p tool maps words to their corresponding phoneme representations according to the pronunciation rules of the language and the spelling of letters. These phoneme sequences not only contain the main pronunciation information of the word, but also reflect the pronunciation characteristics and rules of the word. This embodiment uses open source data sets to construct text corpus, which can provide rich text samples, increase the diversity and coverage of the corpus, and improve the adaptability of the speech recognition system to different fields and language styles. Secondly, word segmentation can divide text into smaller word units, which helps the speech recognition system better understand the structure and meaning of sentences and improve the precision and accuracy of subsequent phoneme conversion. Finally, converting word sequences into phoneme sequences can provide accurate pronunciation data for subsequent pronunciation dictionary replacement and discriminative training, improve the recognition accuracy of the speech recognition system for multiple pronunciations, and enhance the robustness and performance of the system.
[0081] In one embodiment, the step of constructing a pseudo-word by concatenating phonemes based on the phoneme sequence comprises:
[0082] S20, obtaining the phoneme sequence;
[0083] S21, identifying the phonemes in the phoneme sequence;
[0084] S22, arranging the phonemes in a specified order;
[0085] S23, splicing the arranged phonemes in order to form the pseudo-words.
[0086] In this embodiment, once the phoneme sequence is obtained, the next step is to identify the phonemes in the phoneme sequence, which involves analyzing and identifying the phonemes using a phoneme recognition algorithm or tool. Then, the identified phonemes are arranged in a specified order, and then the arranged phonemes are spliced in their order to form pseudo-words. This can be achieved by converting the phonemes into actual pronunciations or constructing spellings similar to real words. First, by constructing pseudo-words, the system can effectively handle polyphonic words, that is, a word has multiple pronunciations. In English, this situation is very common, such as the word "refuse" has different pronunciations when it is a verb and a noun. Constructing pseudo-words can create a unique word form for each pronunciation, thereby ensuring the accuracy of the speech recognition model when processing polyphonic words. This embodiment converts the phoneme sequence into a word form, even though these words do not exist in the dictionary. In this way, the system can create a direct correspondence between a phoneme sequence and a word form, and the use of pseudo-words enhances the generalization ability of the model. Because pseudo-words are constructed based on phoneme rules, the model can be exposed to more phoneme combinations during training, which helps the model maintain a high recognition rate when facing unknown vocabulary or pronunciation variations. Take the English word "to" for example. This word can have several different pronunciations in different contexts. For example, as a preposition, it is usually pronounced as or In infinitive structures, such as "to go", it is usually pronounced To handle this multi-pronunciation phenomenon, we can use the method of constructing pseudo-words by phoneme concatenation to ensure that each pronunciation has a corresponding pseudo-word. First, we need to determine the phoneme sequences of all possible pronunciations of the word "to". For example, / can be expressed as "T UW", (the phoneme sequence of this application is expressed as "T UW1". In order to reduce the resource energy consumption of the system, the tone expression can be directly removed here to become "T UW") It can be expressed as "TAH". In this example, pseudo-words are constructed based on different phoneme sequences. For "T UW", we can construct the pseudo-word "T_UW"; "T AH" is expressed as "T_A", and so on. By constructing pseudo-words, we can ensure that the speech recognition model or speech synthesis system can distinguish different pronunciations when processing the word "to". This improves the accuracy and robustness of the system, especially when dealing with words with multiple pronunciations. In addition, this method can also enhance the model's ability to handle unregistered words (OOV, Out-Of-Vocabulary words) because it can generate new pronunciations based on phoneme rules, even if these words have never appeared in the training data.
[0087] In one embodiment, the step of replacing words in the pronunciation dictionary with pseudo words comprises:
[0088] S30, recognizing the pronounced words in the pronunciation dictionary;
[0089] S31, matching the pronounced words with the generated pseudo-word list;
[0090] S32. According to the matching result, the corresponding pronounced words in the pronunciation dictionary are replaced with corresponding pseudo words.
[0091] In the present embodiment, the pronunciation word needs to be matched with the pseudo-word list generated. The pseudo-word list generated is generated by the phoneme splicing construction method mentioned above. For each pronunciation word, it is necessary to find a matching pseudo-word in the pseudo-word list. According to the matching result, the corresponding pronunciation word in the pronunciation dictionary is replaced with the corresponding pseudo-word. By replacing the word in the pronunciation dictionary, the system can better understand the phonetic structure and the phoneme combination rule of the language. This helps to improve the accurate recognition ability of different pronunciation modes, thereby improving the accuracy of the speech recognition system.
[0092] In one embodiment, the step of arranging all pseudo-words into a pseudo-word list in the format of a pronunciation dictionary includes:
[0093] S40, analyzing the format specifications of pronunciation dictionaries;
[0094] S41, aligning the generated pseudo-words with the word formats of the pronunciation dictionary;
[0095] S42. Arrange all pseudo-words into a pseudo-word list according to the format specification of the pronunciation dictionary.
[0096] In this embodiment,
[0097] First, we need to clarify the format specification of the pronunciation dictionary. The pronunciation dictionary usually contains words and their corresponding pronunciation information, which may be represented by phoneme sequences or other forms of pronunciation markers. We align the generated pseudo-words with the word format of the pronunciation dictionary. The aligned format helps the system to more accurately recognize and use these pseudo-words in subsequent processing. Then, according to the format specification of the pronunciation dictionary, we organize all pseudo-words into a pseudo-word list. This list will become a new resource for the speech recognition system to replace or expand the original pronunciation dictionary. Through this process, we can not only handle polyphonic words and unregistered words, but also provide the system with a richer and more accurate pronunciation data foundation. Organize all pseudo-words into a pseudo-word list according to the standard format of the pronunciation dictionary and update the pronunciation dictionary. Organize these pseudo-words into a pseudo-word list according to the standard format of the pronunciation dictionary. The pronunciation dictionary usually contains the mapping relationship between words and their corresponding pronunciations, so we need to ensure that the pseudo-word list also follows this format. Specifically, we can create an entry for each pseudo-word, which includes the pseudo-word itself and the corresponding pronunciation marker (i.e., phoneme sequence).
[0098] The general pronunciation dictionary is constructed as follows:
[0099] SAUVOLLE S AO V AAL
[0100] SAUVRESY S OW VZ IY
[0101] SAUVRESY'S S OW VZ IY Z
[0102] SAUX S AO KS
[0103] SAVAGEST S AE V AH JH AH ST
[0104] After the pseudo-word list is sorted and updated, the pronunciation dictionary is as follows
[0105] G_AY_D G AY D
[0106] Y_UW Y UW
[0107] W_AO_K W AO K
[0108] TH_R_UW TH R UW
[0109] DH_AH DH AH
[0110] D_AO_R D AO R
[0111] S_IY S IY
[0112] R_EH_D R EH D
[0113] Fakeword is a file consisting of fakewords on the left side of the pronunciation dictionary, which is used to generate the pronunciation dictionary required for discriminative training. By organizing the pseudo-word list and updating the pronunciation dictionary, we can ensure that the subsequent speech recognition model can take into account all possible pronunciations of the word when recognizing the word. The original pronunciation dictionary usually contains multiple pronunciations for each word, which may cause the decoding graph (HCLG) to be inconsistent with the actual pronunciation (ground truth), affecting the recognition effect. The updated pronunciation dictionary solves the confusion caused by multi-pronunciation words by replacing them with pseudo-words, making the decoding graph consistent with the actual ground truth labels, and improving the accuracy of speech recognition.
[0114] In one embodiment, after the step of constructing a text corpus and converting a word sequence contained in the text corpus into a phoneme sequence, the following steps are included:
[0115] S50, based on the phoneme sequence, identifying the tone information contained in the phoneme sequence;
[0116] S51, deleting the recognized tone information, or mapping the phoneme sequence containing the tone information to the corresponding toneless phoneme through a predefined mapping relationship;
[0117] S52, correcting and arranging the processed phoneme sequence.
[0118] In this embodiment, based on the obtained phoneme sequence, the tone information contained therein is identified. The tone information may include representations of tone, stress or other tone changes. This step may use a speech processing algorithm or model to identify the tone information. According to actual needs, you may choose to delete the identified tone information row, or map the phoneme sequence containing the tone information to the corresponding non-tone phoneme through a predefined mapping relationship. In this way, the tone information can be removed from the phoneme sequence or converted into a non-tone phoneme. For example, the phoneme sequence of all possible pronunciations of the word "to" is as follows: The phoneme sequence is represented as "T UW1". In order to facilitate deployment on low-resource devices, the tone representation can be directly removed here to become "TUW". The processed phoneme sequence is then corrected and sorted. This step may include correcting incorrect alignment or missing between phonemes, normalizing the representation of phonemes, removing unnecessary spaces or punctuation marks, and ensuring the consistency and accuracy of the phoneme sequence.
[0119] In one embodiment, the step of using the updated pronunciation dictionary to perform discriminative training on the speech recognition model includes:
[0120] S60, loading a pre-trained speech recognition model;
[0121] S61, providing the updated pronunciation dictionary as input to the speech recognition model to train the model;
[0122] S62. Evaluate the performance of the model through cross-validation or test set, and stop training until the predetermined performance index is reached.
[0123] In this embodiment, by using the updated pronunciation dictionary for discriminative training, the speech recognition model can better adapt to the situation of multi-pronunciation words. The specific implementation may include using the updated pronunciation dictionary to construct a decoding graph. The decoding graph is a structure used to convert the phoneme sequence output by the acoustic model into text in speech recognition, which contains a language model, a pronunciation dictionary and grammatical information. In this solution, the updated pronunciation dictionary ensures the consistency of the decoding graph with the actual pronunciation, avoiding the decoding ambiguity caused by multi-pronunciation words. Then the model is trained using a training data set containing fakewords and an updated decoding graph. During the training process, the model will learn the mapping relationship between each fakeword and its corresponding phoneme sequence, thereby improving the recognition accuracy of multi-pronunciation words. During the training process, the model performance is regularly evaluated, such as using a cross entropy loss function to monitor the training progress, and using a validation set to evaluate the generalization ability of the model. According to the evaluation results, adjust the model parameters or training strategy. After the model training is completed, an independent test set is used for final evaluation to ensure that the model can perform well on unknown data. Then, the model is deployed in practical applications, such as voice assistants, telephone customer service systems, etc. Since the pronunciation dictionary has covered all possible pronunciations of a word, the model can learn the characteristics of these pronunciations during training, thereby improving recognition accuracy. Through discriminative training, the speech recognition model's ability to recognize multi-pronunciation words has been significantly improved. Since the model has learned all possible pronunciations of a word, no matter how the word actually pronounces, the model can find the corresponding pseudo-word and give accurate recognition results.
[0124] refer to Figure 2 , a device for processing multiple pronunciation problems in speech recognition, comprising:
[0125] A construction module 100 is used to construct a text corpus and convert a word sequence contained in the text corpus into a phoneme sequence;
[0126] A pseudo-word construction module 200 is used to construct a pseudo-word by concatenating phonemes based on the phoneme sequence;
[0127] A replacement module 300, for replacing words in a pronunciation dictionary with pseudo words;
[0128] A list arrangement module 400 is used to arrange all pseudo words into a pseudo word list according to the format of the pronunciation dictionary and update the pronunciation dictionary;
[0129] The training module 500 is used to perform discriminative training on the speech recognition model using the updated pronunciation dictionary.
[0130] Furthermore, the above-mentioned building block 100 includes:
[0131] The first construction subunit is used to construct a text corpus using an open source dataset as a basis;
[0132] The word segmentation unit is used to segment sentences in the text corpus and decompose sentences into word sequences;
[0133] The conversion unit is used to perform phoneme conversion processing on each word sequence using the g2p tool to obtain a corresponding phoneme sequence.
[0134] Furthermore, the pseudo-word construction module 200 comprises:
[0135] A sequence acquisition unit, used to acquire the phoneme sequence;
[0136] A phoneme recognition unit, used for recognizing phonemes in the phoneme sequence;
[0137] an arranging unit, used for arranging the phonemes in a specified order;
[0138] The concatenation unit is used to concatenate the arranged phonemes in order to form the pseudo-words.
[0139] Furthermore, the replacement module 300 further includes:
[0140] A word recognition unit for recognizing pronounced words in a pronunciation dictionary;
[0141] a matching unit for matching the pronounced words with the generated pseudo-word list;
[0142] The first replacement subunit is used to replace the corresponding pronounced words in the pronunciation dictionary with corresponding pseudo words according to the matching result.
[0143] Furthermore, the list sorting module 400 includes:
[0144] A specification analysis unit for analyzing the format specifications of the pronunciation dictionary;
[0145] Its units are used to align the generated pseudo-words with the word formats of the pronunciation dictionary;
[0146] The collating unit is used to sort all pseudo words into a pseudo word list according to the format specification of the pronunciation dictionary.
[0147] Furthermore, the above device also includes a tone deletion module, and the tone deletion module includes:
[0148] A second recognition subunit, configured to recognize tone information contained in the phoneme sequence based on the phoneme sequence;
[0149] A first deletion subunit, configured to delete the recognized tone information, or map the phoneme sequence containing the tone information to the corresponding toneless phoneme through a predefined mapping relationship;
[0150] The sorting unit is used to correct and sort the processed phoneme sequence.
[0151] Furthermore, the training module 500 includes:
[0152] Model loading unit, used to load the pre-trained speech recognition model;
[0153] A first training subunit is used to provide the updated pronunciation dictionary as input to the speech recognition model to train the model;
[0154] The validation unit is used to evaluate the performance of the model through cross-validation or test sets until the predetermined performance index is reached and training is stopped.
[0155] Reference Figure 3 In the embodiment of the present application, a computer device is also provided. The computer device may be a server, and its internal structure may be as follows: Figure 3 As shown. The computer device includes a processor, a memory, a network interface and a database connected by a bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores operations, computer programs and databases. The memory provides an environment for the operation of the operations and computer programs in the non-volatile storage medium. The database of the computer device is used to store data such as a method for processing multiple pronunciation problems in speech recognition. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for processing multiple pronunciation problems in speech recognition is implemented, including the steps of: constructing a text corpus, and converting the word sequence contained in the text corpus into a phoneme sequence; constructing a pseudo word by phoneme splicing based on the phoneme sequence; using the pseudo word to replace the words in the pronunciation dictionary; organizing all pseudo words into a pseudo word list according to the format of the pronunciation dictionary, and updating the pronunciation dictionary; using the updated pronunciation dictionary to perform discriminative training on the speech recognition model.
[0156] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, a method for processing multiple pronunciation problems in speech recognition is implemented, comprising the steps of: constructing a text corpus, and converting a word sequence contained in the text corpus into a phoneme sequence; constructing a pseudo-word by phoneme splicing based on the phoneme sequence; using the pseudo-words to replace words in a pronunciation dictionary; organizing all pseudo-words into a pseudo-word list according to the format of the pronunciation dictionary, and updating the pronunciation dictionary; and using the updated pronunciation dictionary to perform discriminative training on a speech recognition model.
[0157] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in the present application and used in the embodiments can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0158] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for dealing with multiple pronunciation problems in speech recognition, It is characterized in that include: Constructing a text corpus and converting a word sequence contained in the text corpus into a phoneme sequence; Based on the phoneme sequence, construct a pseudo word by phoneme concatenation; Replace words in the pronunciation dictionary with pseudo-words; Arrange all pseudo-words into a pseudo-word list according to the format of the pronunciation dictionary, and update the pronunciation dictionary; The speech recognition model is discriminatively trained using the updated pronunciation dictionary.
2. The method for processing the multi-pronunciation problem in speech recognition according to claim 1, It is characterized in that The step of constructing a text corpus and converting a word sequence contained in the text corpus into a phoneme sequence includes: Use open source datasets as a basis to build text corpora; Segment the sentences in the text corpus and decompose the sentences into word sequences; Use the g2p tool to perform phoneme conversion on each word sequence to obtain the corresponding phoneme sequence.
3. The method for processing the multi-pronunciation problem in speech recognition according to claim 1, It is characterized in that The step of constructing a pseudo-word by concatenating phonemes based on the phoneme sequence comprises: Obtaining the phoneme sequence; identifying phonemes in the phoneme sequence; Arranging the phonemes in a specified order; The arranged phonemes are concatenated in order to form the pseudo-words.
4. The method for processing the multi-pronunciation problem in speech recognition according to claim 1, It is characterized in that The step of replacing words in the pronunciation dictionary with pseudo words comprises: Identify pronounced words in a pronunciation dictionary; Match the pronounced words with the generated pseudo-word list; According to the matching results, the corresponding pronounced words in the pronunciation dictionary are replaced with the corresponding pseudo-words.
5. The method for processing the multi-pronunciation problem in speech recognition according to claim 1, It is characterized in that The step of arranging all pseudo words into a pseudo word list according to the format of a pronunciation dictionary comprises: Analyze the format specifications of pronunciation dictionaries; Align the generated pseudo-words with the word formats of the pronunciation dictionary; All pseudo-words are organized into a pseudo-word list according to the format specifications of the pronunciation dictionary.
6. The method for processing the multi-pronunciation problem in speech recognition according to claim 1, It is characterized in that After the step of constructing the text corpus and converting the word sequence contained in the text corpus into a phoneme sequence, the method further comprises: Based on the phoneme sequence, identifying the tone information contained in the phoneme sequence; Deleting the recognized tone information, or mapping the phoneme sequence containing the tone information to the corresponding toneless phoneme through a predefined mapping relationship; Correct and organize the processed phoneme sequence.
7. The method for processing the multi-pronunciation problem in speech recognition according to claim 1, It is characterized in that The step of using the updated pronunciation dictionary to perform discriminative training on the speech recognition model comprises: Load the pre-trained speech recognition model; Provide the updated pronunciation dictionary as input to the speech recognition model to train the model; The performance of the model is evaluated through cross-validation or test sets until the predetermined performance index is reached and training is stopped.
8. A device for processing multiple pronunciation problems in speech recognition, It is characterized in that include: A construction module, used for constructing a text corpus and converting a word sequence contained in the text corpus into a phoneme sequence; A pseudo-word construction module, used for constructing pseudo-words by concatenating phonemes based on the phoneme sequence; A replacement module for replacing words in the pronunciation dictionary with pseudo-words; A list sorting module is used to sort all pseudo words into a pseudo word list according to the format of the pronunciation dictionary and update the pronunciation dictionary; A training module is used to perform discriminative training on a speech recognition model using the updated pronunciation dictionary.
9. A device for processing multiple pronunciation problems in speech recognition, It is characterized in that include: processor; Memory for storing computer programs; Wherein, when the processor executes the computer program, the method for processing the multi-pronunciation problem in speech recognition according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for processing a multi-pronunciation problem in speech recognition according to any one of claims 1 to 7 is implemented.
