Pronunciation evaluation method, device, electronic device and readable storage medium
Through pre-trained acoustic models and phoneme alignment technology, the problem of inaccurate scores in existing English pronunciation evaluation methods during continuous and weak pronunciation is solved, achieving more accurate evaluation results and improving user experience.
Patent Information
- Application Number
- CN202110973191.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-24
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-08-24
AI Technical Summary
The existing English pronunciation evaluation methods have inaccurate scores when dealing with continuous pronunciation and weak pronunciation, which affects the user experience.
Through the pre-trained target acoustic model, combined with the audio features of the preset text and the audio to be evaluated, the phoneme alignment results are obtained, including the description information of the standard phonemes, which is used to evaluate the accuracy of continuous and weak reading of words.
The accuracy of evaluation in continuous reading and weak reading is improved, and the user experience is improved.
Smart Images

Figure CN113689882B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a pronunciation evaluation method, device, electronic device and readable storage medium. Background Art
[0002] There are a large number of people learning foreign languages in my country. In the K12 field alone, there are 120 million students learning English, and the number of preschool children is nearly 50 million. In the process of English learning and training, in order to relieve the burden of teachers and parents and increase students' interest in learning English, English pronunciation assessment technology is increasingly being used. In the current pronunciation assessment technology, the acoustic model is first obtained by standard pronunciation training, and then based on the acoustic model, combined with reference pronunciation text and decoder technology, the quality of students' pronunciation is evaluated and scored.
[0003] However, during the evaluation process, when the pronunciation appears in normal connected and weak pronunciation, since this pronunciation is significantly different from the standard pronunciation, the score obtained by the above pronunciation evaluation method will be low, affecting the user experience. That is, when the pronunciation evaluation method appears in normal connected and weak pronunciation, the evaluation score will be inaccurate. Summary of the invention
[0004] The embodiments of the present application provide a pronunciation evaluation method, device, electronic device and readable storage medium, which can improve the evaluation accuracy when normal word connection and / or weak word pronunciation occur, thereby improving the user experience.
[0005] The embodiments of the present application can be implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a pronunciation evaluation method, comprising:
[0007] Get the composition corresponding to the preset text;
[0008] Obtaining audio features of the audio to be evaluated corresponding to the preset text;
[0009] Based on the pre-trained target acoustic model, the composition and audio features, a phoneme alignment result is obtained, wherein the phoneme alignment result includes the phoneme description information of each standard phoneme corresponding to the audio to be evaluated, the phoneme description information is used to describe the pronunciation of the standard phoneme, and the sample audio corresponding to the sample audio features used in the training of the target acoustic model includes a first audio group of preset connected words and / or a second audio group of preset weakly read words, the first audio group includes the standard pronunciation of the preset connected words and the first pronunciation of the words when connected, and the second audio group includes the standard pronunciation of the preset weakly read words and the second pronunciation of the words when weakly read;
[0010] An evaluation result is determined according to the phoneme alignment result.
[0011] In a second aspect, an embodiment of the present application provides a pronunciation evaluation device, comprising:
[0012] A composition module, used to obtain a composition corresponding to a preset text;
[0013] An audio feature acquisition module, used to obtain audio features of the audio to be evaluated corresponding to the preset text;
[0014] An alignment module, for obtaining a phoneme alignment result based on a pre-trained target acoustic model, the composition and audio features, wherein the phoneme alignment result includes phoneme description information of each standard phoneme corresponding to the audio to be evaluated, the phoneme description information is used to describe the pronunciation of the standard phoneme, the sample audio corresponding to the sample audio feature used in the training of the target acoustic model includes a first audio group of preset connected words and / or a second audio group of preset weakly read words, the first audio group includes the standard pronunciation of the preset connected words and the first pronunciation of the words when connected, and the second audio group includes the standard pronunciation of the preset weakly read words and the second pronunciation of the words when weakly read;
[0015] An evaluation module is used to determine an evaluation result according to the phoneme alignment result.
[0016] In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor can execute the machine executable instructions to implement the pronunciation evaluation method described in the aforementioned embodiment.
[0017] In a fourth aspect, an embodiment of the present application provides a readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the pronunciation evaluation method as described in the aforementioned embodiment is implemented.
[0018] The pronunciation evaluation method, device, electronic device and readable storage medium provided in the embodiments of the present application first obtain the composition corresponding to the preset text and the audio features of the corresponding audio to be evaluated; then, based on the pre-trained target acoustic model, composition and audio features, obtain the phoneme alignment result, the phoneme alignment result includes the phoneme description information of each standard phoneme corresponding to the audio to be evaluated, the phoneme description information is used to describe the pronunciation corresponding to the standard phoneme, the sample audio corresponding to the sample audio features used in the training of the target acoustic model includes a first audio group of preset connected words and / or a second audio group of preset weakly read words, the first audio group includes the standard pronunciation of the preset connected words and the first pronunciation when the words are connected, the second audio group includes the standard pronunciation of the preset weakly read words and the second pronunciation when the words are weakly read; and then determine the evaluation result according to the phoneme alignment result. In this way, during the evaluation, the target acoustic model trained based on at least one of the pronunciation of words when read in a connected manner and the pronunciation of words when read in a weak manner and the corresponding standard pronunciation is used for analysis. This can avoid inaccurate evaluation caused by using an acoustic model trained only based on the standard pronunciation when normal connected reading and / or weak reading occurs, thereby improving the accuracy of the evaluation when normal connected reading and / or weak reading occurs and enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 A block diagram of an electronic device provided in an embodiment of the present application;
[0021] Figure 2 A flowchart of a pronunciation evaluation method provided in an embodiment of the present application;
[0022] Figure 3 A schematic diagram of a process for obtaining a target acoustic model provided in an embodiment of the present application;
[0023] Figure 4 for Figure 3 One of the flowchart diagrams of the sub-steps included in step S130;
[0024] Figure 5 for Figure 3 2 is a flow chart of the sub-steps included in step S130;
[0025] Figure 6A block diagram of a pronunciation evaluation device provided in an embodiment of the present application.
[0026] Icons: 100 - electronic device; 110 - memory; 120 - processor; 130 - communication unit; 200 - pronunciation evaluation device; 210 - composition module; 220 - audio feature acquisition module; 230 - alignment module; 240 - evaluation module. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0028] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0029] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0030] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0031] Please refer to Figure 1 , Figure 1A block diagram of an electronic device 100 provided in an embodiment of the present application. The electronic device 100 may be, but is not limited to, a smart phone, a computer, a server, etc. The electronic device 100 may include a memory 110, a processor 120, and a communication unit 130. The memory 110, the processor 120, and the communication unit 130 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other via one or more communication buses or signal lines.
[0032] The memory 110 is used to store programs or data. The memory 110 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc.
[0033] The processor 120 is used to read / write data or programs stored in the memory 110 and execute corresponding functions. For example, the memory 110 stores a pronunciation evaluation device 200, and the pronunciation evaluation device 200 includes at least one software function module that can be stored in the memory 110 in the form of software or firmware. The processor 120 executes various functional applications and data processing by running software programs and modules stored in the memory 110, such as the pronunciation evaluation device 200 in the embodiment of the present application, that is, realizing the pronunciation evaluation method in the embodiment of the present application.
[0034] The communication unit 130 is used to establish a communication connection between the electronic device 100 and other communication terminals through a network, and to send and receive data through the network.
[0035] It should be understood that Figure 1 The structure shown is only a schematic diagram of the structure of the electronic device 100. The electronic device 100 may also include Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown. Figure 1 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0036] Please refer to Figure 2 , Figure 2A flowchart of a pronunciation evaluation method provided in an embodiment of the present application. The method can be applied to the electronic device 100. The method can be used to evaluate the English pronunciation of children, and can also be used to evaluate the English pronunciation of adults, which is not specifically limited here. The specific process of the pronunciation evaluation method is described in detail below. The pronunciation evaluation method may include steps S210 to S240.
[0037] Step S210, obtaining a composition corresponding to a preset text.
[0038] In this embodiment, the preset text is the text corresponding to the audio to be evaluated. For example, if a child is reading an English text, and the pronunciation of the English audio of the child reading the English text needs to be evaluated, the English text is the preset text, and the English audio of the child reading the English text is the audio to be evaluated corresponding to the preset text.
[0039] In this embodiment, the composition corresponding to the preset text can be obtained through the following composition processing: through a pre-trained target acoustic model, combined with a pronunciation dictionary corresponding to the target acoustic model, based on the preset text, after HCLG operation, a graph that needs to be aligned and decoded is obtained as the composition.
[0040] The G in the HCLG operation represents the language model WFST (Weighted Finite-State Transducer). The input and output types of G are the same. In fact, it is a WFSA (acceptor). In order to facilitate the operation with the other three WFSTs, it is regarded as a WFST with the same input and output. Here, it can be understood as the preset text of the input.
[0041] The L in the HCLG operation represents the pronunciation dictionary WFST, the input symbol is monophone, and the output symbol is word. Here, the pronunciation dictionary can be understood. For example, when the preset text is English, the pronunciation dictionary may include: help: HH EH LP. That is, the pronunciation dictionary includes words and the phoneme sequences corresponding to the words.
[0042] The C in the HCLG operation represents context-dependent WFST, the input symbol is triphone (context-dependent), and the output symbol is monophnoe. The H in the HCLG operation represents HMM acoustic model WFST, the input symbol is HMM transitions-ids, and the output symbol is triphone.
[0043] C and H are both products of acoustic model training. The four are combined layer by layer to obtain the final image (i.e., composition). The file type of the composition can be HCLG.fst.
[0044] The acoustic model is used to calculate the posterior probability that the acoustic feature belongs to each phoneme. Generally, the acoustic model is trained with more than 100 hours of standard audio. The following is a brief description of the training process of the acoustic model: the audio is first divided into frames, and then the 40-dimensional Mel cepstral coefficient mfcc features are extracted; after the feature extraction is completed, the audio text is expanded into phonemes according to the dictionary, and the acoustic model is trained using the time-delay neural network tdnn.
[0045] The sample audio corresponding to the sample audio features (i.e., acoustic features) used in the training of the target acoustic model used in the embodiments of the present application includes a first audio group of preset connected words and / or a second audio group of preset weakly read words. Among them, the first audio group includes the standard pronunciation of the preset connected words and the first pronunciation of the words when read together, and the second audio group includes the standard pronunciation of the preset weakly read words and the second pronunciation of the words when read weakly. That is, the first pronunciation in the first audio group is the audio when a word group is read together normally, and the second pronunciation in the second audio group is the audio when a word is read weakly normally. The target acoustic model learns the pronunciation characteristics of connected reading and / or weak reading.
[0046] Correspondingly, the pronunciation dictionary corresponding to the target acoustic model may also include the standard phoneme sequence of the preset linked words (actually, it may be the standard phoneme sequence of each word in the preset linked words saved separately) and the corresponding phoneme sequence when being linked, and / or the standard phoneme sequence of the preset weakly pronounced words and the corresponding phoneme sequence when being weakly pronounced. In this way, in the pronunciation dictionary, the preset linked words and the preset weakly pronounced words can be regarded as polyphones.
[0047] For example, the standard phoneme sequence corresponding to the word combination help me under the standard pronunciation is HH EH LPM IY, and the new word help-me formed by the connected reading and the phoneme sequence HH EH L P_M IY corresponding to the new word help-me can be saved in the pronunciation dictionary. help-me is a polyphone.
[0048] For another example, the normal phoneme sequence corresponding to "would" in the standard pronunciation is W UH D, and the phoneme sequence in the weak pronunciation is WD. Then "would" and the phoneme sequence in the weak pronunciation can be saved in the pronunciation dictionary, and "would" is regarded as a polyphone.
[0049] Step S220, obtaining audio features of the audio to be evaluated corresponding to the preset text.
[0050] In this embodiment, the acoustic features of the audio to be evaluated can be obtained in any manner, and the acoustic features can be used as the audio features of the audio to be evaluated. The audio features of the audio to be evaluated can be obtained in the manner of extracting acoustic features when training a conventional acoustic model.
[0051] Step S230, obtaining a phoneme alignment result based on the pre-trained target acoustic model, the composition and the audio features.
[0052] In this embodiment, based on the audio features, combined with the target acoustic model, information such as likelihood and posterior probability can be obtained; then, the composition, the likelihood and posterior probability information obtained by the target acoustic model are decoded by the Viterbi algorithm to obtain the phoneme alignment result corresponding to the audio to be evaluated. The Viterbi algorithm is used to select the optimal path.
[0053] The phoneme alignment result may include the phoneme description information of each standard phoneme corresponding to the audio to be evaluated, and the phoneme description information is used to describe the pronunciation of the standard phoneme.
[0054] The audio to be evaluated can be divided into multiple phoneme segments according to the different phonemes corresponding to each audio segment. The standard phoneme corresponding to a phoneme segment indicates the phoneme corresponding to the phoneme segment when the preset text is read correctly based on the preset text. For example, based on the preset text and the pronunciation dictionary, it is determined that the correct phoneme that a certain phoneme segment should correspond to is H, then H is the standard phoneme of the phoneme segment. The phoneme description information of a standard phoneme may include: the phoneme score of the standard phoneme, the posterior probability of the standard phoneme, the duration of the standard phoneme, etc.
[0055] For example, the phoneme alignment result for help me may include: the phoneme sequence HH EH LPM IY, the phoneme score, posterior probability and duration of each phoneme in the phoneme sequence, etc. The phonemes in the phoneme sequence are standard phonemes corresponding to help me.
[0056] Step S240: determining an evaluation result according to the phoneme alignment result.
[0057] Optionally, the phoneme alignment result can be directly used as the evaluation result of the audio to be evaluated; the phoneme alignment result can also be analyzed, and the analysis result obtained can be used as the evaluation result, or the analysis result and the phoneme alignment result can be used together as the evaluation result. For example, a score for each word is obtained based on the phoneme alignment result, and then the score for each word is used as the evaluation result; or, a total score is determined based on the phoneme alignment result, and then the total score is used as the evaluation result. It can be understood that the above is only for illustrative purposes, and the evaluation result can also be determined based on the phoneme alignment result in other ways.
[0058] During evaluation, the embodiment of the present application uses a target acoustic model trained based on at least one of the pronunciation of words when read in a connected manner and the pronunciation of words when read in a weak manner and the corresponding standard pronunciation for analysis. This can avoid inaccurate evaluation caused by using an acoustic model trained only based on the standard pronunciation when normal connected reading and / or weak pronunciation occurs, thereby improving the accuracy of evaluation when normal connected reading and / or weak pronunciation occurs and enhancing the user experience.
[0059] In this embodiment, the target acoustic model may be pre-trained by the electronic device 100, or may be trained by other electronic devices and then sent to the electronic device 100.
[0060] Among them, optionally, when training to obtain the target acoustic model, preset connected words and / or preset weakly pronounced words can be manually selected, and then the target acoustic model can be trained based on the selected preset connected words and / or the preset weakly pronounced words.
[0061] Optionally, you can also Figure 3 The target acoustic model is obtained in the manner shown. Figure 3 , Figure 3 A schematic diagram of a process of obtaining a target acoustic model provided in an embodiment of the present application. The step of obtaining the target acoustic model may include steps S110 to S130.
[0062] Step S110: performing phoneme alignment processing on the second training set based on the first acoustic model to obtain sample alignment information corresponding to the sample text in the second training set.
[0063] Optionally, in this embodiment, the first acoustic model is trained based on a first training set of audio data including pronunciation standards. Among them, the first training set may include 100 hours of training data that has been manually detected without connected reading and reading. The device for training the first acoustic model and the device for training the target acoustic model can be the same device or a different device, which can be determined according to actual conditions. For example, the acoustic model in the current pronunciation evaluation method is directly used as the first acoustic model, so that the first acoustic model can be obtained without separate training.
[0064] The audio data of the second training set may include weak reading and / or connected reading, which may be determined according to actual needs. The first acoustic model may be used to perform phoneme alignment on the second training set through a phoneme alignment process to obtain sample alignment information corresponding to the sample text in the training set. The sample alignment information may include word alignment information corresponding to each word.
[0065] Step S120: selecting the preset connected words and / or the preset weakly pronounced words according to the sample alignment information.
[0066] In this embodiment, when the sample alignment information is obtained, word combinations that are the preset connected words and / or words that are the preset weakly pronounced words can be automatically mined.
[0067] Please refer to Figure 4 , Figure 4 for Figure 3 One of the flowcharts of the sub-steps included in step S120. Figure 4 The sub-steps shown automatically determine the preset linked words. In this embodiment, the step S120 may include sub-steps S1211 to S1215.
[0068] Sub-step S1211, based on the sample text, select target word groups in sequence.
[0069] In this embodiment, the sliding window can take two words read in succession as a target word group. The two words include a first word and a second word distributed in the order of reading. That is, when the target word group appears in the audio, the first word appears first and the second word appears later.
[0070] The inventors of the present application have found through research that connected words have obvious a priori properties. For example, the normal phoneme sequence corresponding to the help me word combination is HH EH LPM IY. If read in a connected manner, the posterior probability of the phoneme P at the end of help is relatively low, and the posterior probability of the phoneme M at the beginning of me is relatively low. In this case, a new word help-me can be formed, and the corresponding connected phoneme sequence is HH EH L P_M IY. At the same time, the normal phoneme sequence H EH LPM IY will also be retained, thereby treating help-me as a polyphone. Based on this discovery, whether a word group is a connected word can be determined by the following sub-steps S1212 to S1214.
[0071] Sub-step S1212, obtaining alignment information of the target word group according to the sample alignment information of the sample text.
[0072] In this embodiment, the sample alignment information of the sample text includes word alignment information corresponding to each word in the sample text. When the target word group is determined, the word alignment information of the first word and the word alignment information of the second word in the target word group can be obtained from the sample alignment information as the alignment information of the target word group.
[0073] The alignment information of the target word group includes the phoneme sequence corresponding to the target word group and the phoneme information corresponding to each standard phoneme in the phoneme sequence. The phoneme sequence corresponding to the target word group is composed of the standard phonemes corresponding to each word in the target word group, and one word corresponds to at least one standard phoneme. The phoneme information corresponding to a standard phoneme includes the first a posteriori probability of the standard phoneme and the second a posteriori probability that the phoneme segment corresponding to the standard phoneme corresponds to other phonemes (i.e., phonemes other than the standard phonemes corresponding to the phoneme segment).
[0074] Sub-step S1213, obtaining the first phoneme information of the final standard phoneme of the first word and the second phoneme information of the initial standard phoneme of the second word according to the alignment information of the target word group.
[0075] When the alignment information of the target word group is obtained, the first phoneme information of the final standard phoneme of the first word and the second phoneme information of the initial standard phoneme of the second word are obtained from the alignment information of the target word group. That is, the phoneme information of the last standard phoneme of the first word is used as the first phoneme information of the final standard phoneme of the first word, and the phoneme information of the first standard phoneme of the second word is used as the second phoneme information of the initial standard phoneme of the second word.
[0076] Next, based on the first phoneme information, determine whether the first a posteriori probability of the final standard phoneme of the first word is less than a preset value; and determine whether the phoneme corresponding to the maximum value of the second a posteriori probability corresponding to the final standard phoneme of the first word (i.e., the maximum second a posteriori probability of the second a posteriori probability of other phonemes corresponding to the phoneme segment corresponding to the final standard phoneme) is the final standard phoneme, that is, determine whether the optimal phoneme corresponding to the phoneme segment corresponding to the final standard phoneme is the current final standard phoneme. The preset value is set in combination with actual needs.
[0077] Also based on the second phoneme information, it is determined whether the first a posteriori probability of the starting standard phoneme of the second word is less than the preset value; and it is determined whether the phoneme corresponding to the maximum value in the second a posteriori probability corresponding to the starting standard phoneme of the second word (that is, the maximum second a posteriori probability among the second a posteriori probabilities of other phonemes corresponding to the phoneme segment corresponding to the starting standard phoneme) is the starting standard phoneme, that is, it is determined whether the optimal phoneme corresponding to the phoneme segment corresponding to the starting standard phoneme is the current starting standard phoneme.
[0078] Sub-step S1214, when it is determined based on the first phoneme information and the second phoneme information that the first posterior probabilities in the first phoneme information and the second phoneme information are both less than a preset value and the phonemes corresponding to the maximum second posterior probabilities are not standard phonemes, it is determined that the target word group is a connected word.
[0079] When the first a posteriori probability of the final standard phoneme of the first word is less than the preset value, and the phoneme corresponding to the maximum value in the second a posteriori probabilities corresponding to the final standard phoneme of the first word is not the final standard phoneme, and the first a posteriori probability of the initial standard phoneme of the second word is less than the preset value, and the phoneme corresponding to the maximum value in the second a posteriori probability corresponding to the initial standard phoneme of the second word is not the initial standard phoneme, that is, when the first a posteriori probabilities in the first phoneme information and the second phoneme information are both less than the preset value and the phonemes corresponding to the maximum second a posteriori probabilities are not standard phones, the target word group is determined to be a connected word.
[0080] When the first phoneme information and the phoneme information do not meet the following conditions: the first posterior probabilities in the first phoneme information and the second phoneme information are both less than a preset value and the phonemes corresponding to the maximum second posterior probabilities are not standard phonemes, the target word group is not used as the connected word.
[0081] A plurality of target word groups may be selected, and then the above process may be performed for each target word group to determine whether the target word group is a connected word, thereby determining the connected words from the second training set.
[0082] Sub-step S1215, obtaining the preset connected words from the determined connected words.
[0083] As a possible implementation, all the determined connected words can be used as the preset connected words, so as to ensure the recognition effect of the target acoustic model on the connected words.
[0084] As another possible implementation, a part of the connected words can be selected from the determined connected words as the preset connected words. In this way, the time for training to obtain the target acoustic model can be shortened.
[0085] Optionally, the preset connected words may be selected in the following manner: counting the first number of occurrences of each connected word in the second training set; and selecting the preset connected words according to the first number of occurrences.
[0086] In this embodiment, the number of occurrences of each linked word in the second training set may be counted to obtain the first number of occurrences of each linked word. Then, the preset linked words may be selected in descending order of the first number of occurrences. The first number of occurrences of each preset linked word is greater than the first number of occurrences of the linked words that are not selected as the preset linked words, and the number of the preset linked words is less than the number of the linked words.
[0087] Optionally, a first preset number of linked words can be selected as preset linked words in the order of the first number of occurrences from large to small. Linked words whose first number of occurrences is greater than the first preset number of occurrences can also be selected as the preset linked words. The first preset number and the first preset number of occurrences can be set in combination with actual needs. The specific method of selecting the preset linked words can be determined according to actual needs.
[0088] In this way, the connected words with higher occurrence frequency can be used as the preset connected words, so that the obtained preset connected words can basically cover the connected word combinations, ensuring the training effect of the target acoustic model; at the same time, it can also ensure that the phoneme sequence of the connected word combination has sufficient training corpus.
[0089] The following is an example of how to obtain the preset linked words.
[0090] For example, the target word group is help me, and the phoneme sequence of the target word group obtained from the sample alignment information is: HH EH LPM IY. When the first posterior probability of the last phoneme P of the first word help is less than the preset value, and the optimal phoneme corresponding to the phoneme segment corresponding to the last phoneme P of help (i.e., the phoneme corresponding to the maximum second posterior probability, the maximum second posterior probability is the maximum value of the second posterior probabilities of other phonemes corresponding to the last phoneme segment of help) is not phoneme P, and the first posterior probability of the phoneme M at the beginning of the second word me is less than the preset value, and the optimal phoneme corresponding to the phoneme segment corresponding to the phoneme M at the beginning of me is not phoneme M, then it can be considered that the target word group is a connected word, forming a new word help-me, and the corresponding phoneme sequence (i.e., the connected phoneme sequence) is HH EH L P_M IY. At the same time, the normal phoneme sequence H EH LPM IY will also be retained in the pronunciation dictionary, that is, help-me is a polyphone.
[0091] After it is determined that linked words appear, 500 linked words may be selected from the second training set in the order of the first number of occurrences as the preset linked words.
[0092] The inventor of this application has found through research that weakly pronounced words have obvious a priori properties. For example, the normal phoneme sequence corresponding to would is W UH D. If a phoneme is weakly pronounced, the phoneme score of the weakly pronounced phoneme will be relatively low and the duration will be relatively short. For example, would can be trained to correspond to WD (i.e., the weakly pronounced phoneme sequence), while the normal phoneme sequence of would will be retained, and would be treated as a polyphone. Based on this discovery, it can be Figure 5 The method shown automatically determines weakly pronounced words, and then obtains preset connected words.
[0093] Please refer to Figure 5 , Figure 5 for Figure 3 The second flowchart of the sub-steps included in step S120. Figure 5 The sub-steps shown automatically determine the preset weakly pronounced words. In this embodiment, the step S130 may include sub-steps S1231 to S1233.
[0094] Sub-step S1231, sequentially acquiring word alignment information of a target word from the sample alignment information.
[0095] In this embodiment, the single alignment information of a word can be obtained from the sample alignment information in sequence as the word alignment information of a target word. The word alignment information includes the word phoneme sequence corresponding to the target word and the phoneme information corresponding to each standard phoneme in the word phoneme sequence, and the phoneme information corresponding to a standard phoneme includes the phoneme score and duration of the standard phoneme.
[0096] Optionally, the phoneme scores of each standard phoneme of the target word can be compared to determine whether the target word has a single standard phoneme with a low phoneme score and other standard phonemes in the target word except the single standard phoneme with a high phoneme score. Other standard phonemes refer to the standard phonemes corresponding to the target word except the standard phonemes with low single phoneme scores.
[0097] Optionally, by comparing the phoneme scores, it can be determined whether the phoneme score of a standard phoneme of the target word is the lowest, and the difference between the phoneme scores of the standard phonemes of the target word and other standard phonemes (i.e., the standard phonemes other than the single standard phoneme in the target word) meets the preset requirements. If so, it can be determined that the phoneme score of the single standard phoneme of the target word is low, and the phoneme scores of the standard phonemes other than the single standard phoneme in the target word are high. The preset requirements can be set in combination with actual needs.
[0098] As a possible implementation, the preset requirement includes a preset difference. By comparing the phoneme scores, a minimum phoneme score and a second minimum phoneme score can be selected. Then the difference between the minimum phoneme score and the second minimum phoneme score is calculated. If the difference is greater than the preset difference, it can be considered that the phoneme score of a standard phoneme of the target word is the lowest, and the degree of difference between the phoneme scores of other standard phonemes meets the preset requirements; that is, the phoneme score of a certain phoneme of the target word is low, and the phoneme scores of other phonemes are high. If the difference is not greater than the preset difference, it is not considered that the phoneme score of a standard phoneme of the target word is low, and the phoneme scores of other standard phonemes are high. Of course, it can be understood that the above judgment method is only for example, and other judgment methods can also be used to determine whether the phoneme score of a certain phoneme of the target word is low and the phoneme scores of other phonemes are high.
[0099] The duration of the standard phoneme corresponding to the minimum phoneme score can also be compared with a preset duration to determine whether the duration of the low-scoring standard phoneme is short. The preset duration can be set in combination with the duration of the phoneme when it is weakly pronounced.
[0100] Sub-step S1232, when it is determined, based on the phoneme information of each standard phoneme in the word phoneme sequence corresponding to the target word, that a standard phoneme of the target word has the lowest phoneme score and the degree of difference between the phoneme scores of the standard phonemes and other standard phonemes meets the preset requirements, and the duration of the standard phoneme is less than the preset duration, the target word is determined to be a weakly pronounced word.
[0101] When the target word has a minimum phoneme score, and the degree of difference between the minimum phoneme score and other factor scores of the target word meets the preset requirements, and the duration of the standard phoneme corresponding to the minimum phoneme score is less than the preset duration, the target word is determined to be a weakly pronounced word.
[0102] If the target word does not meet the following conditions: the phoneme score of a standard phoneme of the target word is the lowest and the degree of difference between the phoneme scores of the standard phonemes and other standard phonemes meets the preset requirements, and the duration of the standard phoneme is less than the preset duration, the target word will not be regarded as a weakly pronounced word.
[0103] A plurality of target words may be selected, and then the above process may be performed for each target word to determine whether the target word is a weakly pronounced word, thereby determining the weakly pronounced words from the second training set.
[0104] Sub-step S1233, obtaining the preset weakly pronounced words from the determined weakly pronounced words.
[0105] As a possible implementation, all the determined weakly pronounced words can be used as the preset weakly pronounced words, so as to ensure the recognition effect of the target acoustic model on the weakly pronounced words.
[0106] As another possible implementation, a part of the weakly pronounced words can be selected from the determined weakly pronounced words as the preset weakly pronounced words. In this way, the time for obtaining the target acoustic model can be shortened.
[0107] Optionally, the preset weakly pronounced words may be selected in the following manner: counting the second number of occurrences of each weakly pronounced word in the second training set; and selecting the preset weakly pronounced words according to the second number of occurrences.
[0108] In this embodiment, the number of occurrences of each weakly pronounced word in the second training set can be counted to obtain the second number of occurrences of each weakly pronounced word. Then, the preset weakly pronounced words can be selected in descending order of the second number of occurrences. The second number of occurrences of each preset connected word is greater than the second number of occurrences of weakly pronounced words that are not selected as preset weakly pronounced words, and the number of the preset weakly pronounced words is less than the number of the weakly pronounced words.
[0109] Optionally, a second preset number of weakly pronounced words can be selected as preset weakly pronounced words in the order of the second number of occurrences from large to small. Weakly pronounced words whose second number of occurrences is greater than the second preset number of occurrences can also be used as the preset weakly pronounced words. Wherein, the second preset number and the second preset number of occurrences can be set in combination with actual needs. The specific method of selecting the preset linked words can be determined according to actual needs.
[0110] In this way, the weakly pronounced words with a higher frequency of occurrence can be used as the preset weakly pronounced words, so that the preset weakly pronounced words can basically cover the weakly pronounced words, ensuring the training effect of the target acoustic model; at the same time, it can also ensure that the phoneme sequence of the weakly pronounced words has sufficient training corpus.
[0111] Step S130, training to obtain the target acoustic model according to the selected preset connected words and / or the preset weakly pronounced words.
[0112] As an optional implementation, at least one of the audio of other words, the first audio group of the preset connected words, and the second audio group of the preset weakly read words can be obtained to perform acoustic model training, thereby obtaining the target acoustic model.
[0113] As another optional implementation, the target acoustic model can also be obtained in the following manner: adding the connected phoneme sequence corresponding to the preset connected words and / or the weakly pronounced phoneme sequence corresponding to the preset weakly pronounced words to the pronunciation dictionary; training the first acoustic model according to the pronunciation dictionary and the third training set corresponding to the preset connected words and / or the preset weakly pronounced words to obtain the target acoustic model. The third training set can be obtained from the second training set. In this way, the training process of the target acoustic model can be shortened and the speed of obtaining the target acoustic model can be increased.
[0114] In order to execute the corresponding steps in the above embodiments and various possible methods, a method for implementing a pronunciation evaluation device 200 is provided below. Optionally, the pronunciation evaluation device 200 may adopt the above Figure 1 The device structure of the electronic device 100 is shown. Figure 6 , Figure 6 A block diagram of a pronunciation evaluation device 200 provided in an embodiment of the present application. It should be noted that the pronunciation evaluation device 200 provided in this embodiment has the same basic principle and technical effects as those in the above-mentioned embodiment. For the sake of brief description, for parts not mentioned in this embodiment, reference can be made to the corresponding contents in the above-mentioned embodiment. The pronunciation evaluation device 200 may include: a composition module 210, an audio feature acquisition module 220, an alignment module 230 and an evaluation module 240.
[0115] The composition module 210 is used to obtain a composition corresponding to a preset text.
[0116] The audio feature acquisition module 220 is used to obtain the audio features of the audio to be evaluated corresponding to the preset text.
[0117] The alignment module 230 is used to obtain a phoneme alignment result based on a pre-trained target acoustic model, the composition and audio features. The phoneme alignment result includes the phoneme description information of each standard phoneme corresponding to the audio to be evaluated, and the phoneme description information is used to describe the pronunciation of the standard phoneme. The sample audio corresponding to the sample audio features used in the training of the target acoustic model includes a first audio group of preset connected words and / or a second audio group of preset weakly read words. The first audio group includes the standard pronunciation of the preset connected words and the first pronunciation of the words when connected, and the second audio group includes the standard pronunciation of the preset weakly read words and the second pronunciation of the words when weakly read.
[0118] The evaluation module 240 is used to determine an evaluation result according to the phoneme alignment result.
[0119] Optionally, in this embodiment, the target acoustic model can be obtained by training through a training module. The training module is used to: perform phoneme alignment processing on the second training set based on the first acoustic model to obtain sample alignment information corresponding to the sample text in the second training set, wherein the first acoustic model is trained based on the first training set including audio data of the pronunciation standard, and the sample alignment information includes word alignment information corresponding to each word; according to the sample alignment information, the preset connected words and / or the preset weakly pronounced words are selected; according to the selected preset connected words and / or the preset weakly pronounced words, the target acoustic model is trained.
[0120] Optionally, in this embodiment, the training module is specifically used to: select a target word group in sequence based on the sample text, wherein the target word group includes two consecutive words, and the two words include a first word and a second word distributed in a reading order; obtain alignment information of the target word group according to the sample alignment information of the sample text, wherein the alignment information of the target word group includes a corresponding phoneme sequence and phoneme information corresponding to each standard phoneme in the phoneme sequence, and the phoneme information corresponding to a standard phoneme includes a first posterior probability of the standard phoneme and a second posterior probability of other phonemes corresponding to the phoneme segment corresponding to the standard phoneme; obtain first phoneme information of the end standard phoneme of the first word and second phoneme information of the start standard phoneme of the second word according to the alignment information of the target word group; when it is determined according to the first phoneme information and the second phoneme information that the first posterior probabilities in the first phoneme information and the second phoneme information are both less than a preset value and the phonemes corresponding to the maximum second posterior probability are not standard phonemes, determine that the target word group is a connected word; and obtain the preset connected word from the determined connected words.
[0121] Optionally, in this embodiment, the training module is specifically used to: count the first number of occurrences of each connected word in the second training set; select the preset connected words according to the first number of occurrences, wherein the first number of occurrences of each preset connected word is greater than the first number of occurrences of connected words that are not selected as preset connected words, and the number of the preset connected words is less than the number of the connected words.
[0122] Optionally, in this embodiment, the training module is specifically used to: sequentially obtain word alignment information of a target word from the sample alignment information, wherein the word alignment information includes a word phoneme sequence corresponding to the target word and phoneme information corresponding to each standard phoneme in the word phoneme sequence, and the phoneme information corresponding to a standard phoneme includes the phoneme score and duration of the standard phoneme; when it is determined, based on the phoneme information of each standard phoneme in the word phoneme sequence corresponding to the target word, that a standard phoneme of the target word has the lowest phoneme score and the degree of difference between the phoneme scores of other standard phonemes meets preset requirements, and the duration of the standard phoneme is less than a preset duration, the target word is determined to be a weakly pronounced word; and the preset weakly pronounced word is obtained from the determined weakly pronounced words.
[0123] Optionally, in this embodiment, the training module is specifically used to: count the second number of occurrences of each weakly pronounced word in the second training set; select the preset weakly pronounced words based on the second number of occurrences, wherein the second number of occurrences of each preset connected word is greater than the second number of occurrences of weakly pronounced words that are not selected as preset weakly pronounced words, and the number of the preset weakly pronounced words is less than the number of the weakly pronounced words.
[0124] Optionally, in this embodiment, the training module is specifically used to: add the connected phoneme sequence corresponding to the preset connected words and / or the weakly pronounced phoneme sequence corresponding to the preset weakly pronounced words to the pronunciation dictionary; train the first acoustic model according to the pronunciation dictionary and a third training set corresponding to the preset connected words and / or the preset weakly pronounced words to obtain the target acoustic model.
[0125] Optionally, the above modules can be stored in the form of software or firmware. Figure 1 The memory 110 shown in the figure may be fixed in the operating system (OS) of the electronic device 100 and may be Figure 1 Meanwhile, the data and program codes required for executing the above modules may be stored in the memory 110.
[0126] The embodiment of the present application also provides a readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the pronunciation evaluation method is implemented.
[0127] In summary, the embodiments of the present application provide a pronunciation evaluation method, device, electronic device and readable storage medium. First, the composition corresponding to the preset text and the corresponding audio features of the audio to be evaluated are obtained; then, based on the pre-trained target acoustic model, composition and audio features, a phoneme alignment result is obtained, and the phoneme alignment result includes the phoneme description information of each standard phoneme corresponding to the audio to be evaluated, and the phoneme description information is used to describe the pronunciation corresponding to the standard phoneme. The sample audio corresponding to the sample audio features used in the training of the target acoustic model includes a first audio group of preset connected words and / or a second audio group of preset weakly read words, the first audio group includes the standard pronunciation of the preset connected words and the first pronunciation when the words are connected, and the second audio group includes the standard pronunciation of the preset weakly read words and the second pronunciation when the words are weakly read; and then the evaluation result is determined according to the phoneme alignment result. In this way, during the evaluation, the target acoustic model trained based on at least one of the pronunciation of words when read in a connected manner and the pronunciation of words when read in a weak manner and the corresponding standard pronunciation is used for analysis. This can avoid inaccurate evaluation caused by using an acoustic model trained only based on the standard pronunciation when normal connected reading and / or weak reading occurs, thereby improving the accuracy of the evaluation when normal connected reading and / or weak reading occurs and enhancing the user experience.
[0128] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing 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 consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0129] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0130] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0131] The above description is only an optional embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A pronunciation evaluation method, It is characterized in that include: Get the composition corresponding to the preset text; Obtaining audio features of the audio to be evaluated corresponding to the preset text; Based on the pre-trained target acoustic model, the composition and audio features, a phoneme alignment result is obtained, wherein the phoneme alignment result includes the phoneme description information of each standard phoneme corresponding to the audio to be evaluated, the phoneme description information is used to describe the pronunciation of the standard phoneme, and the sample audio corresponding to the sample audio features used in the training of the target acoustic model includes a first audio group of preset connected words and / or a second audio group of preset weakly read words, the first audio group includes the standard pronunciation of the preset connected words and the first pronunciation of the words when connected, and the second audio group includes the standard pronunciation of the preset weakly read words and the second pronunciation of the words when weakly read; Determine an evaluation result according to the phoneme alignment result; The target acoustic model is obtained in the following manner: based on the first acoustic model, performing phoneme alignment processing on the second training set to obtain sample alignment information corresponding to the sample text in the second training set, wherein the first acoustic model is trained according to the first training set of audio data including pronunciation standards, and the sample alignment information includes word alignment information corresponding to each word; according to the sample alignment information, the preset connected words and / or the preset weakly pronounced words are selected; according to the selected preset connected words and / or the preset weakly pronounced words, the target acoustic model is trained; The phoneme description information of a standard phoneme includes: the phoneme score of the standard phoneme, the posterior probability of the standard phoneme and the duration of the standard phoneme. The phoneme alignment result is obtained based on the pre-trained target acoustic model, the composition and the audio features, including: decoding through the Viterbi algorithm according to the audio features, the target acoustic model and the composition to obtain the phoneme alignment result.
2. The method according to claim 1, It is characterized in that The step of selecting the preset connected words and / or the preset weakly pronounced words according to the sample alignment information includes: Based on the sample text, sequentially selecting a target word group, wherein the target word group includes two consecutive words, and the two words include a first word and a second word distributed in a reading order; According to the sample alignment information of the sample text, the alignment information of the target word group is obtained, wherein the alignment information of the target word group includes a corresponding phoneme sequence and phoneme information corresponding to each standard phoneme in the phoneme sequence, and the phoneme information corresponding to a standard phoneme includes a first a posteriori probability of the standard phoneme and a second a posteriori probability of the phoneme segment corresponding to the standard phoneme corresponding to other phonemes; According to the alignment information of the target word group, obtaining the first phoneme information of the final standard phoneme of the first word and the second phoneme information of the initial standard phoneme of the second word; When it is determined according to the first phoneme information and the second phoneme information that the first posterior probabilities in the first phoneme information and the second phoneme information are both less than a preset value and the phonemes corresponding to the maximum second posterior probabilities are not standard phonemes, determining that the target word group is a connected word; The preset connected words are obtained from the determined connected words.
3. The method according to claim 2, It is characterized in that The step of obtaining the preset linked words from the determined linked words comprises: Counting the first occurrence number of each linked word in the second training set; The preset connected words are selected according to the first number of occurrences, wherein the first number of occurrences of each preset connected word is greater than the first number of occurrences of connected words that are not selected as preset connected words, and the number of the preset connected words is less than the number of the connected words.
4. The method according to claim 1, It is characterized in that The step of selecting the preset weakly pronounced word according to the sample alignment information includes: Sequentially acquiring word alignment information of a target word from the sample alignment information, wherein the word alignment information includes a word phoneme sequence corresponding to the target word and phoneme information corresponding to each standard phoneme in the word phoneme sequence, and the phoneme information corresponding to a standard phoneme includes a phoneme score and duration of the standard phoneme; According to the phoneme information of each standard phoneme in the word phoneme sequence corresponding to the target word, it is determined that a phoneme score of a standard phoneme of the target word is the lowest and the difference between the phoneme scores of the standard phonemes and other standard phonemes meets the preset requirements, and the duration of the standard phoneme is less than the preset duration, the target word is determined to be a weakly pronounced word; The preset weakly pronounced words are obtained from the determined weakly pronounced words.
5. The method according to claim 4, It is characterized in that The step of obtaining the preset weakly pronounced word from the determined weakly pronounced words comprises: Counting the second occurrence number of each weakly pronounced word in the second training set; According to the second number of occurrences, the preset weakly pronounced words are selected, wherein the second number of occurrences of each preset connected word is greater than the second number of occurrences of weakly pronounced words that are not selected as preset weakly pronounced words, and the number of the preset weakly pronounced words is less than the number of the weakly pronounced words.
6. The method according to any one of claims 2 to 5, It is characterized in that The step of training the target acoustic model according to the selected preset linked words and / or the preset weakly pronounced words comprises: Adding the connected phoneme sequence corresponding to the preset connected word and / or the weakly pronounced phoneme sequence corresponding to the preset weakly pronounced word to the pronunciation dictionary; The first acoustic model is trained according to the pronunciation dictionary and a third training set corresponding to the preset connected words and / or the preset weakly pronounced words to obtain the target acoustic model.
7. A pronunciation evaluation device, It is characterized in that include: A composition module, used to obtain a composition corresponding to a preset text; An audio feature acquisition module, used to obtain audio features of the audio to be evaluated corresponding to the preset text; An alignment module, for obtaining a phoneme alignment result based on a pre-trained target acoustic model, the composition and audio features, wherein the phoneme alignment result includes phoneme description information of each standard phoneme corresponding to the audio to be evaluated, the phoneme description information is used to describe the pronunciation of the standard phoneme, the sample audio corresponding to the sample audio feature used in the training of the target acoustic model includes a first audio group of preset connected words and / or a second audio group of preset weakly read words, the first audio group includes the standard pronunciation of the preset connected words and the first pronunciation of the words when connected, and the second audio group includes the standard pronunciation of the preset weakly read words and the second pronunciation of the words when weakly read; An evaluation module, used to determine an evaluation result according to the phoneme alignment result; The target acoustic model is obtained in the following manner: based on the first acoustic model, performing phoneme alignment processing on the second training set to obtain sample alignment information corresponding to the sample text in the second training set, wherein the first acoustic model is trained according to the first training set of audio data including pronunciation standards, and the sample alignment information includes word alignment information corresponding to each word; according to the sample alignment information, the preset connected words and / or the preset weakly pronounced words are selected; according to the selected preset connected words and / or the preset weakly pronounced words, the target acoustic model is trained; The phoneme description information of a standard phoneme includes: the phoneme score of the standard phoneme, the posterior probability of the standard phoneme and the duration of the standard phoneme. The alignment module is specifically used to: decode through the Viterbi algorithm according to the audio features, target acoustic model and composition to obtain the phoneme alignment result.
8. An electronic device, It is characterized in that The invention comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor can execute the machine executable instructions to implement the pronunciation evaluation method according to any one of claims 1 to 6.
9. A readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the pronunciation evaluation method according to any one of claims 1 to 6 is implemented.
