Zipform-based end-to-end pronunciation evaluation method

The end-to-end pronunciation evaluation method based on Zipformer solves the problems of low automation and poor adaptability in the existing technology, and achieves efficient and accurate assessment of students' Chinese pronunciation. Through the combination of phoneme-level speech recognition and alignment algorithms, Incorporating target text information improves evaluation performance.

CN118737124APending Publication Date: 2024-10-01SHIHEZI UNIVERSITY
View PDF 0 Cites 5 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing technology has the problems of low automation and poor adaptability in Chinese reading and pronunciation evaluation. It fails to fully capture the pronunciation details and does not consider the prior information of the target text in the spoken language evaluation.

Method used

An end-to-end pronunciation evaluation method based on Zipformer is used to obtain Chinese public data sets and reading data sets, perform data annotation and feature extraction, build a phoneme-level speech recognition model, and embed the Needleman-Wunscha alignment algorithm into the decoder, combined with phonemes The dictionary builds a phoneme error detection model and integrates the scoring rules of phoneme misreading degree, polyphoneme, oligophoneme and prosody to achieve a comprehensive assessment of students' pronunciation.

Benefits of technology

It significantly improves the accuracy and efficiency of speech evaluation. Through the effective integration of prior information of the target text, it improves the performance of pronunciation evaluation and achieves a comprehensive assessment of students' pronunciation level.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118737124A_ABST
    Figure CN118737124A_ABST
Patent Text Reader

Abstract

The invention provides a Zipform-based end-to-end pronunciation evaluation method, which performs deep improvement and fusion on a traditional pronunciation evaluation method based on a speech recognition model, adopts a Zipform model as a basic framework for oral evaluation, integrates an alignment algorithm into an acoustic model, and takes a target text as an additional input condition of the model, so that the oral evaluation accuracy is improved. The problem of misreading of each phoneme in end-to-end prediction can be solved. According to the method, the efficient and high-precision phoneme-level recognition model is introduced, the target text prior information is effectively fused into the decoding process of the recognition model, the efficiency of the model in the aspect of utilizing the target text prior information is remarkably improved, then the optimization potential of the voice evaluation performance is improved, meanwhile, the mandarin pronunciation scoring rule is designed, and the voice evaluation efficiency is improved. And comprehensive evaluation of the pronunciation level of the student is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of natural language processing, and in particular to an end-to-end pronunciation evaluation method based on Zipformer. Background Art

[0002] As an important carrier of cultural inheritance and social development, language is not only a combination of symbols and sounds, but also a tool for understanding the world, a link for emotional communication, and a transmitter of social norms. Among many languages, Mandarin, the official language of China, has a special and important position. Especially in the basic education stage, students' learning of Mandarin is crucial to the cultivation of their language ability and comprehensive literacy. However, for the four basic skills of language learning, "listening, speaking, reading, and writing", school teaching often focuses on grammar, writing and other aspects due to class time constraints, and relatively less investment is made in the teaching of oral reading. At the same time, my country has a vast territory and a wide variety of dialects. Some areas still use dialect teaching, making it difficult to evaluate and feedback the learning of reading pronunciation. To this end, researchers have done a lot of research on the evaluation of Chinese reading pronunciation, and have developed an evaluation system including spelling, word choice, sentence grammar, and comprehension of listening dialogues to provide accurate and comprehensive pronunciation evaluation. Although this evaluation system can objectively evaluate students' learning level in theory, its promotion and application still face multiple challenges in actual operation, including the need for a large amount of manpower, the relatively low degree of automation of evaluation technology and methods, and poor adaptability in different teaching environments. Therefore, future research should focus on improving the automation and adaptability of reading and pronunciation evaluation to optimize practical applications.

[0003] In order to improve the shortcomings of the traditional classroom language teaching model, computer-assisted language learning (CALL) technology has gradually been applied to pronunciation learning. In recent years, with the continuous development of speech recognition technology, the application scope and performance of CALL technology in pronunciation learning have been significantly improved. Especially in the field of pronunciation evaluation, algorithms based on speech recognition models have made significant progress. Such algorithms are not only comprehensively optimized from the perspectives of recognition accuracy and evaluation speed, but also integrate advanced technologies such as deep learning and machine learning, enabling them to analyze students' pronunciation more accurately. However, current evaluation technology still faces inherent challenges, such as insufficient capture of pronunciation details and insufficient consideration of the prior information of the target text in oral evaluation. Summary of the invention

[0004] In order to overcome the deficiencies of the prior art, the object of the present invention is to provide an end-to-end pronunciation evaluation method based on Zipformer.

[0005] To achieve the above object, the present invention provides the following solutions:

[0006] An end-to-end pronunciation evaluation method based on Zipformer, comprising:

[0007] Obtaining a Chinese public dataset and collecting a reading dataset of students in a target age group; both the Chinese public dataset and the reading dataset include an audio file, a target text, and a phoneme dictionary;

[0008] Using a phoneme dictionary as a replacement rule, data annotation is performed on the Chinese public data set and the reading data set, and text replacement and feature transformation technology are used to perform data expansion processing on the Chinese public data set and the reading data set to obtain processed Chinese public data set and reading data set;

[0009] Extracting Fbank features from the processed audio data of the Chinese public data set and the reading data set, and generating a first data json object set and a second data json object set according to the Fbank features;

[0010] Building an end-to-end phoneme-level speech recognition model based on Zipformer based on the first data json object set;

[0011] Taking the second data json object set as input, embedding the Needleman-Wunscha alignment algorithm into the decoder of the constructed end-to-end phoneme-level speech recognition model, and retaining the prediction confidence of each syllable in the output result, thereby constructing a phoneme error detection model;

[0012] According to the output sequence of the phoneme error detection model and the phoneme dictionary, construct a scoring rule integrating the degree of phoneme misreading, polyphones, oligophones and prosody;

[0013] The reading audio of the subject to be evaluated is input into the phoneme error detection model to obtain an output result, and the syllable misreading of the subject to be evaluated is judged based on the scoring rule and the output result.

[0014] Preferably, the Chinese public dataset and the reading dataset are annotated using the phoneme dictionary as a replacement rule, including:

[0015] Obtaining the audio files and target text of the Chinese public dataset and the reading dataset;

[0016] Using a phoneme dictionary as a replacement rule, replacing the target texts of the Chinese public dataset and the reading dataset with target phonemes;

[0017] Manually annotating the audio data of the reading data set to obtain the actual pronunciation text;

[0018] Convert the actual pronunciation text into pronunciation phonemes;

[0019] The pronunciation phonemes of the reading data set are compared with the target phonemes using the sequence comparison function of the python library. The comparison units are initial consonants and finals with tones, with "0" representing the correct pronunciation and "1" representing the incorrect pronunciation, so as to generate a supervision signal, and obtain a Chinese public data set with audio information and pronunciation phonemes for training an end-to-end phoneme-level speech recognition model, and a reading data set with audio information, target phonemes and supervision signals for training a phoneme error detection model.

[0020] Preferably, the Chinese public data set and the reading data set are expanded by using text replacement and feature transformation technology to obtain the processed Chinese public data set and reading data set, including:

[0021] Using a random function in Python programming language to perform random processing on the reading data set to obtain a randomized reading data set;

[0022] Expanding the out-of-order reading data set by using two technologies, text replacement and feature transformation, to obtain an expanded reading data set;

[0023] A pair (d, t) defining a text replacement rule; where d is the phoneme to be replaced and t is the replacement phoneme;

[0024] Constructing text replacement rules using a preset replacement method and the bigram; the preset replacement method includes: random replacement, replacement based on phonetics, and replacement based on data statistics;

[0025] The SpecAugment speech enhancement method is used to perform feature transformation processing on the original speech signals in the Chinese public data set and the reading data set to obtain the processed Chinese public data set and the reading data set.

[0026] Preferably, the random replacement is for the target phoneme text, extracting the syllables and tones of the target phoneme text, and then selecting the replacement initials, finals and tones by random sampling, and establishing random replacement bigram sets of initials, finals and tones respectively with the replaced initials, finals and tones; the phonetic-based replacement is based on phonetic knowledge, the commonalities and differences of phoneme pronunciation, to construct a bigram set of replacement rules that integrates the similarity of phoneme pronunciation and the complexity of polyphones; the data statistics-based replacement is to count the frequency of misreading of the target phonemes in the reading data set, select phonemes with a misreading frequency of more than 5% as phonemes to be replaced, and the corresponding misread phonemes as replacement phonemes, and construct a replacement bigram set based on data statistics.

[0027] Preferably, extracting Fbank features from the processed audio data of the Chinese public data set and the reading data set, and generating a first data json object set and a second data json object set according to the Fbank features, including:

[0028] Obtain processed Chinese public datasets and reading datasets;

[0029] Preprocessing the original speech signals in the input processed Chinese public data set and the reading data set to obtain preprocessed signals;

[0030] Using discrete Fourier transform, converting the time domain signal of the preprocessed signal into a frequency domain signal;

[0031] A Mel filter bank is added to the processed Chinese public dataset and reading dataset to obtain the energy distribution at different Mel frequencies for the feature expression of speech signals.

[0032] The Fbank feature with a frame rate of 100 Hz is obtained by using logarithmic energy calculation, feature selection and CMVN mean variance normalization method. The file contains the audio file name and its corresponding feature value.

[0033] Traverse the feature files and phoneme texts of the Chinese public data set, obtain the storage address and corresponding phoneme sequence of each feature sequence, and structure the storage address and the corresponding phoneme sequence into a first data json object set to train an end-to-end phoneme-level speech recognition model;

[0034] Traverse the feature file, target phoneme file, and supervisory signal file of the reading data set, obtain the address of each feature sequence, and structure the address of the feature sequence into a second data json object set to train the phoneme error detection model.

[0035] Preferably, the training step of the Zipformer-based end-to-end phoneme-level speech recognition model includes:

[0036] Initialize the model parameters and set 6 encoder stacks, where the number of attention heads is set to {4, 4, 4, 8, 4, 4} and the size of the convolution kernel is set to {31, 31, 15, 15, 15, 31}; in each attention head, the query dimension and value dimension are set to 32 and 12 respectively, and a total of 150 rounds of training are performed;

[0037] Input a first data JSON object set, and create a training data set according to the first data JSON object set;

[0038] The sequence of Fbank features with a frame rate of 100Hz is input into the Zipformer encoder, and the frame rate is reduced to 50Hz by the convo-embed module to obtain the embedded sequence;

[0039] The embedded sequence is input into a six-level series stack, and the frame rates are set to 50Hz, 25Hz, 12.5Hz, 6.25Hz, 12.5Hz and 25Hz for training. The second to sixth level stacks adopt a downsampling architecture. The output of each stack is cropped or zero-filled to adapt to the input dimension requirements of the next level stack. Finally, the sequence of Fbank features is converted to 25Hz through the Downsample module to obtain the output of the encoder.

[0040] The feature sequence output by the encoder is input into the RNN-T decoding module, and the input sequence is converted into an embedding vector through the Embedding layer, and then passes through the LSTM network and the fully connected layer to generate the final output sequence;

[0041] In the last layer of the decoder, the softmax function is used to obtain the character probability;

[0042] The focal loss function is used to measure the difference between the predicted phonemes and the labeled phonemes, and the model parameters are updated through the back-propagation algorithm.

[0043] Preferably, the steps of the training and decoding phase of the phoneme error detection model include:

[0044] Use the trained Zipformer-based end-to-end phoneme-level speech recognition model and embed the Needleman-Wunscha alignment algorithm after calculating the character probabilities in the decoding phase to integrate the alignment process into the back-propagation optimization.

[0045] Input the second data json object set to train the phoneme error detection model; in the decoding stage, obtain the predicted phoneme sequence and the predicted confidence sequence by calculating the character probability; obtain the label phoneme sequence and the supervision signal state sequence in the second data json object set;

[0046] Inputting the predicted phoneme sequence and the label phoneme sequence into the Needleman-Wunscha alignment algorithm, and initializing the alignment matrix, initializing the first row and the first column of the alignment matrix to 0;

[0047] The scores of the elements above and to the left are calculated by gradually adding up the missing penalties; for the elements in the first row and column, the missing penalties are added up, and for the remaining elements, the scores are calculated according to the following rules:

[0048] Matching score: add the score of the upper left element to the matching score of the current position and use it as the score of the current element;

[0049] Missing penalty: add the missing penalty to the score of the previous element and use it as the score of the current element;

[0050] Insertion penalty: add the missing penalty to the score of the left element and use it as the score of the current element;

[0051] The iterative calculation step "calculates the scores of the elements above and to the left by gradually accumulating missing penalties; for the elements in the first row and the first column, the missing penalties are accumulated, and for the remaining elements, the scores are calculated according to the following rules" to obtain a complete score matrix. Starting from the lower right corner of the score matrix, according to the scores of the elements above, to the left, and to the upper left, the direction with the highest score is selected for step-by-step backtracking to construct an alignment path that reflects the best matching relationship between the two sequences;

[0052] According to the alignment path of the best matching relationship, the two sequences are aligned. If each element on the path comes from the diagonal direction, it means that the character at that position matches; if it comes from the top or left, it means that a sequence is missing at that position, and then an alignment sequence is generated;

[0053] The focal loss function is used to measure the difference between the supervision signal state sequence and the alignment sequence, and the model parameters are updated through the back-propagation algorithm.

[0054] In the decoding phase after training, the output character sequence is aligned with the input feature sequence to obtain alignment information containing the start and end frame lengths of each character.

[0055] The frame length of the current character is obtained by calculating the difference between the end frame and the start frame of the current character; the frame length between characters is obtained by subtracting the end frame of the current character from the start frame of the next character.

[0056] Preferably, according to the output sequence of the phoneme error detection model and the phoneme dictionary, a scoring rule integrating the degree of phoneme misreading, polyphones, oligophones and prosody is constructed, including:

[0057] Obtaining a predicted value sequence, a predicted phoneme sequence, a target factor sequence, a phoneme frame length sequence, a phoneme interval frame length sequence, and a prediction confidence sequence output by the phoneme error detection model;

[0058] The sequence alignment function is used to calculate the number of extra phonemes and the number of missing phonemes in the predicted phoneme sequence relative to the target phoneme sequence, and then the completeness score is calculated;

[0059] According to the phoneme dictionary, the predicted phoneme sequence is segmented to obtain the segmentation result;

[0060] Set the phrase interval standard frame length value O respectively s , the standard frame length value of the phoneme interval within the phrase I s , single phoneme standard frame length value P s ;

[0061] According to the frame length sequence of each phoneme interval and the word segmentation result, the actual frame length sequence S of the phrase interval is extracted. o ={O1,O2···O n}、The actual frame length sequence S between the single phoneme and each phoneme in the phrase (p,i) ={(P1,I1),(P2,I2)···(P n ,I n )}; where P n is the actual frame length of the single phoneme in the phrase, I n is the actual frame length of each phoneme interval in the phrase;

[0062] The outer loop traverses the sequence S o , calculate O n With O s The difference is calculated and the absolute value of the difference is obtained to obtain the phrase interval frame length difference O d ={D1,D2···D n}; The inner loop traverses the sequence S (p,i) , calculate P n With P s The difference, I n with I s The difference between the two, and the absolute value of the difference is obtained to obtain P d ={D1,D2···D n} and I d ={D1,D2···D n}; where D n is the difference between the standard frame length and the actual frame length;

[0063] Fit the three difference sequences into one sequence C d ={D1,D2···D n}(D n ≥0), and substitute it into the following formula to calculate the prosodic score based on the phrase:

[0064]

[0065] Among them, D i is the difference, length is the sequence C d Length;

[0066] Calculate the predicted phoneme sequence length and the predicted phoneme sequence length of the final vowel with tone respectively;

[0067] Substitute the predicted phoneme sequence length, predicted final phoneme sequence length with tone, predicted value sequence, and predicted confidence sequence into the following formula to calculate the overall pronunciation score and tone pronunciation score respectively:

[0068]

[0069] Among them, P i is the prediction confidence, l i is the predicted value (, length is the predicted phoneme sequence length or the predicted final phoneme sequence length with tone.

[0070] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0071] The present invention provides an end-to-end pronunciation evaluation method based on Zipformer, comprising: obtaining a Chinese public data set, and collecting a reading data set of students of a target age group; the Chinese public data set and the reading data set both include an audio file, a target text and a phoneme dictionary; using the phoneme dictionary as a replacement rule, performing data annotation on the Chinese public data set and the reading data set, and using text replacement and feature transformation technology to perform data expansion processing on the Chinese public data set and the reading data set to obtain processed Chinese public data set and reading data set; extracting Fbank features from audio data of the processed Chinese public data set and the reading data set, and generating a first data json object set and a second data j according to the Fbank features. son object set; construct an end-to-end phoneme-level speech recognition model based on Zipformer based on the first data json object set; embed the Needleman-Wunscha alignment algorithm into the decoder of the constructed end-to-end phoneme-level speech recognition model with the input of the second data json object set, and retain the prediction confidence of each syllable in the output result, thereby constructing a phoneme error detection model; construct a scoring rule integrating the degree of phoneme misreading, polyphones, oligophones and rhythm according to the output sequence of the phoneme error detection model and the phoneme dictionary; input the reading audio of the object to be evaluated into the phoneme error detection model to obtain the output result, and judge the syllable misreading of the object to be evaluated based on the scoring rule and the output result. The present invention proposes an end-to-end pronunciation evaluation model based on Zipformer. The model deeply improves and integrates the traditional method of pronunciation evaluation based on speech recognition model, adopts Zipformer model as the basic framework of oral evaluation, integrates alignment algorithm into acoustic model, and takes target text as additional input condition of the model, which can solve the problem of end-to-end prediction of each phoneme misreading. Traditional speech evaluation models based on speech recognition usually treat phoneme recognition model and alignment algorithm as independent units, which leads to the evaluation performance of the model focusing on improving the accuracy of speech recognition, and fails to fully integrate the information between the two, and its alignment process is not integrated into the back propagation optimization of the model, which leads to the method not being completely end-to-end. In contrast, the present invention introduces an efficient and high-precision phoneme-level recognition model, effectively integrates the target text prior information into the decoding process of the recognition model, significantly improves the efficiency of the model in utilizing the target text prior information, and thus improves the optimization potential of speech evaluation performance, and designs Mandarin pronunciation scoring rules to achieve a comprehensive evaluation of students' pronunciation level. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0073] Figure 1 A flow chart of a method provided by an embodiment of the present invention;

[0074] Figure 2 A technical framework for end-to-end pronunciation evaluation based on Zipformer provided in an embodiment of the present invention;

[0075] Figure 3 This is an example diagram of target phoneme replacement provided by an embodiment of the present invention.

[0076] Figure 4 The present invention provides a phoneme-level speech recognition model training process.

[0077] Figure 5 The present invention provides a pronunciation assessment model training process.

[0078] Figure 6 The present invention provides a phoneme alignment process.

[0079] Figure 7 A management interface for reading articles provided in an embodiment of the present invention.

[0080] Figure 8 The reading task publishing management interface provided by the embodiment of the present invention

[0081] Fig. 9 This is a task publishing interface provided by an embodiment of the present invention.

[0082] Fig.10 This is an interface for viewing the task completion status of the evaluator provided in an embodiment of the present invention.

[0083] Fig.11 This is the evaluator login system interface provided by the embodiment of the present invention.

[0084] Fig.12 This is an interface for an evaluator to view a reading task provided by an embodiment of the present invention.

[0085] Fig.13 This is a recording interface for an evaluator to read an article provided in an embodiment of the present invention.

[0086] Fig.14 This is an interface for listening to the recording and viewing the evaluation results after the evaluator has finished reading aloud provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0087] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0088] Based on linguistic theory, phonetics knowledge and machine learning algorithms, this paper builds an end-to-end phoneme-level evaluation model by deeply analyzing the relationship between speech signals and text information. This model makes full use of text prior information and introduces advanced Zipformer coding structure to accurately identify and efficiently evaluate phoneme misreading in pronunciation, significantly improving the accuracy and efficiency of speech evaluation.

[0089] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0090] Figure 1 A flow chart of a method provided by an embodiment of the present invention, such as Figure 1 As shown, the present invention provides an end-to-end pronunciation evaluation method based on Zipformer, comprising:

[0091] Step 100: Obtain a Chinese public dataset and collect a reading dataset of students in a target age group; both the Chinese public dataset and the reading dataset include audio files, target texts, and phoneme dictionaries;

[0092] Step 200: using the phoneme dictionary as a replacement rule, annotating the Chinese public data set and the reading data set, and using text replacement and feature transformation technology to perform data expansion processing on the Chinese public data set and the reading data set to obtain the processed Chinese public data set and the reading data set;

[0093] Step 300: extracting Fbank features from the processed audio data of the Chinese public dataset and the reading dataset, and generating a first data json object set and a second data json object set according to the Fbank features;

[0094] Step 400: constructing a Zipformer-based end-to-end phoneme-level speech recognition model based on the first data json object set;

[0095] Step 500: With the input of the second data json object set, the Needleman-Wunscha alignment algorithm is embedded into the decoder of the constructed end-to-end phoneme-level speech recognition model, and the prediction confidence of each syllable is retained in the output result, thereby constructing a phoneme error detection model;

[0096] Step 600: constructing a scoring rule integrating the degree of phoneme misreading, polyphones, oligophones and prosody according to the output sequence of the phoneme error detection model and the phoneme dictionary;

[0097] Step 700: input the reading audio of the subject to be evaluated into the phoneme error detection model to obtain an output result, and judge the syllable misreading of the subject to be evaluated based on the scoring rules and the output result.

[0098] like Figure 2 As shown, the construction of the end-to-end pronunciation evaluation model based on Zipformer in this embodiment includes the following steps:

[0099] Step 1: Obtain a Chinese public dataset and collect a speech dataset of low-level students reading Chinese texts, including audio files, target texts, phoneme dictionaries and other basic data;

[0100] Step 2: Use the phoneme dictionary as the replacement rule to annotate the data, and then use text replacement and feature transformation technology to expand the data set;

[0101] Step 3: Use the speech processing tool kaldi to extract the Fbank features in the audio data and generate a json format data file containing key elements such as the feature file storage location, target phoneme information, and supervisory signals. The above json data will be used as input for subsequent models to support the model training and verification process;

[0102] Step 4: Based on the Chinese public dataset, build an end-to-end phoneme-level speech recognition model based on Zipformer;

[0103] Step 5: Use the JSON format data in the reading dataset as the input of the model, embed the Needleman-Wunscha alignment algorithm into the decoder of the built end-to-end phoneme-level speech recognition model, and retain the prediction confidence of each syllable in the output result, thereby building a phoneme error detection model;

[0104] Step 6: Based on the model output sequence and the phoneme dictionary, construct a scoring rule that integrates the degree of phoneme misreading, polyphones, oligophones, and rhythm;

[0105] Step 7: Input the reading audio of the evaluation subject and determine the subject's syllable misreading based on the results output by the model.

[0106] The specific steps of data annotation involved in step 2 include:

[0107] Step 21: Prepare the audio files and target texts of the Chinese public dataset and the reading dataset. The audio files are in wav format and the target texts are the Chinese reading content.

[0108] Step 22: Using the phoneme dictionary as the replacement rule, replace the Chinese target texts of the two datasets with the target phonemes;

[0109] Step 23: Using manual annotation, transcribe the audio data of the reading dataset to obtain the actual pronunciation text;

[0110] Step 24: Using the method of step 22, the actual pronunciation text is converted into pronunciation phonemes;

[0111] Step 25: Use the Python library sequence comparison function to compare the pronunciation phonemes of the reading dataset with the target phonemes. The comparison units are initial consonants and finals with tones. "0" represents the correct pronunciation and "1" represents the incorrect pronunciation, thereby generating a supervision signal.

[0112] Step 26: Through the above steps, two data sets are obtained, namely, a Chinese public data set with audio information and pronunciation phonemes for training a phoneme recognition model, and a reading data set with audio information, target phonemes and supervision signals for training a pronunciation error detection model;

[0113] Furthermore, if Figure 3 As shown, the specific steps of data expansion involved in step 2 include:

[0114] Step 21: First, in order to eliminate the systematic bias that may be caused by data sorting, the random function in the Python programming language is used to shuffle the reading data set to ensure the randomness of the data set;

[0115] Step 22: Use text replacement and feature transformation techniques to expand the reading dataset. Split the reading dataset in a 7:3 ratio, with 70% used for text replacement and 30% for feature transformation;

[0116] Step 23: define a pair (d, t) of text replacement rules, where d is the phoneme to be replaced and t is the replacement phoneme;

[0117] Step 24: Construct a set of two-tuples of text replacement rules, including random replacement, phonetic-based replacement, and data-based replacement:

[0118] Random replacement: extract the syllables and tones of the target phoneme text, and then use random sampling to select the replacement initials, finals and tones, and use this to establish random replacement binary sets of initials, finals and tones respectively;

[0119] Pronunciation-based replacement: Based on phonetic knowledge, the commonalities and differences of phoneme pronunciations, etc., a set of replacement rule pairs that integrate phoneme pronunciation similarity and polyphonetic complexity is constructed;

[0120] Replacement based on data statistics: Count the frequency of mispronunciation of the target phonemes in the reading dataset, select phonemes with a mispronunciation frequency of more than 5% as the phonemes to be replaced, and their corresponding mispronounced phonemes as replacement phonemes, and construct a set of replacement bigrams based on data statistics.

[0121] Step 25: Use the SpecAugment speech enhancement method to perform feature transformation processing on the original speech signal. First, extract the log mel spectrum of the original speech signal to achieve effective conversion of the speech signal from the time domain to the frequency domain, and then perform frequency domain masking, time domain offset and time domain masking on the log mel spectrum.

[0122] Optionally, in order to expand the collected data set, this embodiment chooses to introduce speech enhancement technology. Currently common data enhancement algorithms simulate misreading by modifying the relationship between the target text and the speech features. By introducing advanced speech enhancement technology, the original speech signal can be modified and enhanced to simulate the pronunciation style, speech speed change, and phoneme misreading that are closer to the real scene.

[0123] Taking the SpecAugment speech enhancement method as an example, we will perform feature transformation processing on the original speech signal. First, we extract the log mel spectrum of the original speech signal to achieve effective conversion of the speech signal from the time domain to the frequency domain, and then perform the following processing on the log mel spectrum:

[0124] Frequency domain masking: M(f,t)=X(f,t)*mask(f)

[0125] Where M(f,t) represents the masked spectrum, t(f,t) represents the original spectrum, and mask(f) represents the frequency band masking function, which sets the amplitude of the selected frequency band to 0.

[0126] Time domain offset: M(f,t)=X(f,t*warp(t))

[0127] Where M(f,t) represents the shifted spectrum, X(f,t*warp(t)) represents the original spectrum, and warp(t) represents the time axis transformation function, which adjusts the time value according to the stretching factor.

[0128] Time domain masking: M(f,t)=X(f,t)*mask(t)

[0129] Specifically, the specific steps of speech Fbank feature extraction involved in step 3 include:

[0130] Step 31: Obtain a public Chinese speech dataset and an expanded reading dataset, including audio files, target phoneme texts, and supervisory signals;

[0131] Step 32: preprocessing the original speech signals in the input processed Chinese public data set and reading data set, including pre-emphasis, framing and windowing;

[0132] Step 33: Using discrete Fourier transform to convert the time domain signal into a frequency domain signal;

[0133] Step 34: Add the Mel filter bank to the processed Chinese public data set and the reading data set to obtain the energy distribution at different Mel frequencies for the feature expression of the speech signal;

[0134] Step 35: Then, logarithmic energy calculation, feature selection and CMVN mean variance normalization method are used to obtain an Fbank feature file with a frame rate of 100 Hz, which contains the audio file name and its corresponding feature value;

[0135] Step 36: Traverse the feature files and phoneme texts of the public data set, obtain the storage address of each feature sequence and the corresponding phoneme sequence, and structure the two into a public data json object set to train the phoneme recognition model;

[0136] Step 37: Traverse the feature file, target phoneme file, and supervisory signal file of the reading data set, obtain the address of each feature sequence, and finally structure it into a reading data json object collection to facilitate the training of the pronunciation error detection model.

[0137] Furthermore, if Figure 4 As shown, the specific steps of training the Zipformer-based phoneme recognition model involved in step 4 include:

[0138] Step 41: Initialize model parameters: Set 6 encoder stacks, where the number of attention heads is set to {4, 4, 4, 8, 4, 4}, and the size of the convolution kernel is set to {31, 31, 15, 15, 15, 31}. In each attention head, the query dimension and value dimension are set to 32 and 12 respectively, and a total of 150 rounds of training are performed;

[0139] Step 42: Input the public data json object set, and create a training data set (tr_dataset) based on the json object set;

[0140] Step 43: Input the speech feature sequence with a frame rate of 100 Hz into the Zipformer encoder, first reduce the frame rate to 50 Hz through the convo-embed module, and obtain the embedded sequence;

[0141] Step 44: Input the embedded sequence into a six-stage stack in series, and set the frame rates to 50Hz, 25Hz, 12.5Hz, 6.25Hz, 12.5Hz and 25Hz for training. The second to sixth stage stacks adopt a downsampling architecture to process the sequence at a lower frame rate. The output of each stack is appropriately cropped or zero-filled to adapt to the input dimension requirements of the next stage stack. Finally, the sequence is converted to 25Hz through the Downsample module to obtain the output of the encoder;

[0142] Step 45: Input the feature sequence output by the encoder into the RNN-T decoding module, convert the input sequence into an embedding vector through the Embedding layer, and then pass it through the LSTM network and the fully connected layer to generate the final output sequence;

[0143] Step 47: In the last layer of the decoder, use the softmax function to obtain the character probability;

[0144] Step 48: A focal loss function is used to measure the difference between the predicted phoneme and the labeled phoneme, and the model parameters are updated through a back-propagation algorithm.

[0145] Furthermore, if Figure 5 and Figure 6 As shown, the specific steps of the phoneme error detection model training and decoding stage involved in step 5 include:

[0146] Step 51: Use the trained Zipformer-based phoneme recognition acoustic model and embed the Needleman-Wunscha alignment algorithm after calculating the character probability in the decoding stage, aiming to integrate the alignment process into the back-propagation optimization;

[0147] Step 52: Input the JSON object set of the reading data and train the phoneme error detection model. In the decoding stage, by calculating the character probability, the predicted phoneme sequence can be obtained. and prediction confidence sequence; in the json object collection of the reading data, you can get the label phoneme sequence P tgt ={p1,p2···p3} and supervisory signal state sequence E ={e1,e2···e3};

[0148] Step 53: With P tgtInput into the Needleman-Wunscha alignment algorithm and initialize the alignment matrix, initializing the first row and the first column of the alignment matrix to 0;

[0149] Step 54: Calculate the scores of the elements above and to the left by gradually accumulating the missing penalty. For the elements in the first row and the first column, perform cumulative calculations based on the missing penalty, and for the remaining elements, calculate the scores according to the following rules:

[0150] Matching score: add the score of the upper left element to the matching score of the current position and use it as the score of the current element;

[0151] Missing penalty: add the missing penalty to the score of the previous element and use it as the score of the current element;

[0152] Insertion penalty: Add the missing penalty to the score of the left element and use it as the score of the current element.

[0153] Step 55: By iteratively calculating step 55, a complete score matrix is ​​obtained. Starting from the lower right corner of the score matrix, according to the scores of the elements above, to the left, and to the upper left, the direction with the highest score is selected for stepwise backtracking to construct an alignment path that can reflect the best matching relationship between the two sequences;

[0154] Step 56: Align the two sequences according to the optimal path, where each element on the path, if coming from the diagonal direction, indicates that the character at that position matches; if coming from the top or left, it indicates that one sequence is missing at that position, thereby generating an aligned sequence

[0155] Step 57: Use the focal loss function to measure the supervision signal state sequence E = {e1, e2...e3} and the alignment sequence The difference between them is calculated and the model parameters are updated through the back propagation algorithm.

[0156] Step 58: The above process is a phoneme error detection model training process. In the decoding stage after the training is completed, the output character sequence is aligned with the input feature sequence to obtain alignment information storing the start and end frame lengths of each character;

[0157] Step 59: By calculating the difference between the end frame and the start frame of the current character, the frame length of the current character can be obtained; by subtracting the end frame of the current character from the start frame of the next character, the frame length between characters can be obtained.

[0158] In addition, the specific steps of constructing the scoring rule involved in step 6 of this embodiment include:

[0159] Step 61: Obtain the predicted value sequence, predicted phoneme sequence, target factor sequence, phoneme frame length sequence, phoneme interval frame length sequence and prediction confidence sequence output by the model;

[0160] Step 62: using a sequence comparison function to calculate the number of extra phonemes and the number of missing phonemes in the predicted phoneme sequence relative to the target phoneme sequence, and then calculating a completeness score;

[0161] Step 63: Segment the predicted phoneme sequence according to the phoneme dictionary to obtain a segmentation result;

[0162] Step 64: Set the phrase interval standard frame length value 0 respectively s , the standard frame length value of the phoneme interval within the phrase I s , single phoneme standard frame length value P s ;

[0163] Step 65: Extract the actual frame length sequence S of the phrase interval according to the frame length sequence of each phoneme interval and the word segmentation result o ={O1,O2···O n}、The actual frame length sequence S between the single phoneme and each phoneme in the phrase (p,i) ={(P1,I1),(P2,I2)···(P n ,I n )};

[0164] Step 66: Outer loop traverses sequence S o , calculate O n With O s The difference is calculated and the absolute value of the difference is obtained to obtain the phrase interval frame length difference O d ={D1,D2···D n}; The inner loop traverses the sequence S (p,i) , calculate P n With P s The difference, I n with I s The difference between the two, and the absolute value of the difference is obtained to obtain P d ={D1,D2···D n} and I d ={D1,D2···D n};

[0165] Step 67: Fit the three difference sequences into one sequence C d ={D1,D2···D n}(D n ≥0), and substitute it into the following formula to calculate the prosodic score based on the phrase:

[0166]

[0167] Among them, D i is the difference, length is the sequence C d Length.

[0168] Step 68: respectively calculating the predicted phoneme sequence length and the predicted final phoneme sequence length with tone;

[0169] Step 69: Substitute the predicted phoneme sequence length, the predicted final phoneme sequence length with tone, the predicted value sequence, and the predicted confidence sequence into the following formulas to calculate the overall pronunciation score and the tone pronunciation score, respectively:

[0170]

[0171] Among them, P i is the prediction confidence, l i is the predicted value (0 or 1), and length is the predicted phoneme sequence length or the predicted phoneme sequence length of the final vowel with tone.

[0172] As an optional implementation, the goal of the phoneme-level speech recognition technology of this embodiment is to divide the continuous speech signal into discrete phoneme units and then match these phonemes with the speech model of the speech recognition system to recognize and transcribe the speech content in the speech.

[0173] Taking the Zipformer model as an example, it can be used as training for building a phoneme-level speech recognition model. The key technologies involved include: BiasNorm, SwooshR, SwooshL, and ScaledAdam optimizer:

[0174] BiasNorm is used to replace the traditional LayerNorm layer normalization:

[0175]

[0176] Where b is the learnable channel deviation, RMS[xb] is the root mean square value, and γ is a constant.

[0177] In order to avoid the situation where the input value is always negative and to ensure that the denominator in the optimizer formula does not become extremely small and cause numerical instability, the SwooshR and SwooshL activation functions are used:

[0178] swooshR(x)=log(1+exp(x-1))-0.08x-0.313261687

[0179] swooshL(x)=log(1+exp(x-4))-0.08x-0.035

[0180] In swooshR, the offset of 0.313261687 is to make it pass through the origin, and in swooshL, the offset is adjusted to 0.035 to make it slightly higher than the value of the curve passing through the origin.

[0181] In order to achieve faster convergence, the ScaledAdam optimizer is used:

[0182]

[0183] in, is the bias correction term, and β1 and β2 are used to calculate the moving average coefficients.

[0184] Furthermore, the sequence alignment algorithm of this embodiment is used to match and arrange two or more sequences according to certain rules to find out the similarities and differences between them. The algorithm is based on dynamic programming, starting from the initial state of the sequence, gradually traversing each cell of the matrix, evaluating the matching degree between characters, and calculating the score according to a preset scoring mechanism, and gradually determining the best alignment path by maximizing the accumulated score.

[0185] Taking the Needleman-Wunsch alignment algorithm as an example, the specific formula is as follows:

[0186] Define the Needleman-Wunsch alignment function

[0187] A character composition: A=a1a2···a n

[0188] B character composition: B = b1b2···b m

[0189] Common length: LCS(i,j)=LCS(a1a2···a i ,b1b2···b j )0≤i≤n,0≤i≤n

[0190] Among them, A and B represent strings, a i , b i Represents a character.

[0191] Scoring Matrix:

[0192] Among them, f(i,j) represents the element in the i-th row and j-th column in the score matrix, indel represents the score when the sequence is inserted or deleted, and match / mismatch represents the score.

[0193] Furthermore, this embodiment first obtains a Chinese public data set and collects a speech data set of low-level students reading Chinese texts, including audio files, target texts, phoneme dictionaries and other basic data; secondly, the phoneme dictionary is used as a replacement rule for data annotation, and then the data set is expanded by using text replacement and feature transformation technology; thirdly, the speech processing tool Kaldi is used to extract Fbank features in the audio data, and a json format data file containing key elements such as feature file storage location, target phoneme information and supervision signals is generated. The above json data will be used as the input of subsequent models to support the training and verification process of the model; then, based on the Chinese public dataset, the processed json format data is used as the input source to build an end-to-end phoneme-level speech recognition model based on Zipformer; then, the json format data in the reading dataset is used as the input of the model, the Needleman-Wunscha alignment algorithm is embedded in the decoder of the constructed end-to-end phoneme-level speech recognition model, and the prediction confidence of each syllable is retained in the output result, thereby building a phoneme error detection model; then, based on the model output sequence and the phoneme dictionary, a scoring rule that integrates the degree of phoneme misreading, polyphones, oligophones and rhythm is constructed; finally, the reading audio of the evaluation object is passed in, and the syllable misreading of the object is judged according to the results output by the model.

[0194] First, we obtain Chinese public data sets and collect speech data sets of low-level students reading Chinese texts, including audio files, target texts, phoneme dictionaries and other basic data;

[0195] Secondly, the data is annotated using the phoneme dictionary as the replacement rule, and then the data set is expanded using text replacement and feature transformation techniques;

[0196] Thirdly, the speech processing tool Kaldi is used to extract Fbank features from the audio data and generate a json format data file containing key elements such as the feature file storage location, target phoneme information, and supervisory signals. The above json data will be used as input for subsequent models to support the model training and verification process;

[0197] Then, based on the Chinese public dataset, the processed JSON format data is used as the input source to build an end-to-end phoneme-level speech recognition model based on Zipformer;

[0198] Then, the JSON format data in the reading dataset is used as the input of the model, the Needleman-Wunscha alignment algorithm is embedded into the decoder of the constructed end-to-end phoneme-level speech recognition model, and the prediction confidence of each syllable is retained in the output result, thereby constructing a phoneme error detection model;

[0199] Next, based on the model output sequence and the phoneme dictionary, a scoring rule is constructed that integrates the degree of phoneme misreading, polyphones, oligophones, and rhythm.

[0200] Finally, the reading audio of the evaluation subject is input, and the syllable misreading of the subject is judged based on the results output by the model.

[0201] like Figures 7 to 14 In the specific software application of this embodiment, the software is mainly aimed at two major user groups, teachers and students, and its deployment method covers the Web end and the mini program end. On the Web end, teachers are mainly responsible for student information management, setting the content of article reading, and issuing brown reading assignments to specific classes and counting students' completion status. On the mini program end, after students log in to their personal accounts, they can complete the reading assignments issued by teachers and enjoy the function of self-evaluation and self-testing. The specific operation process is that students select specific assignments or self-test articles, click the recording button to start reading, and click Stop after reading, so that they can listen to their own reading recordings and view the corresponding evaluation results.

[0202] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0203] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. An end-to-end pronunciation evaluation method based on Zipformer, characterized in that: include: Obtaining a Chinese public dataset and collecting a reading dataset of students in a target age group; both the Chinese public dataset and the reading dataset include an audio file, a target text, and a phoneme dictionary; Using a phoneme dictionary as a replacement rule, data annotation is performed on the Chinese public data set and the reading data set, and text replacement and feature transformation technology are used to perform data expansion processing on the Chinese public data set and the reading data set to obtain processed Chinese public data set and reading data set; Extracting Fbank features from the processed audio data of the Chinese public data set and the reading data set, and generating a first data json object set and a second data json object set according to the Fbank features; Building an end-to-end phoneme-level speech recognition model based on Zipformer based on the first data json object set; Taking the second data json object set as input, embedding the Needleman-Wunscha alignment algorithm into the decoder of the constructed end-to-end phoneme-level speech recognition model, and retaining the prediction confidence of each syllable in the output result, thereby constructing a phoneme error detection model; According to the output sequence of the phoneme error detection model and the phoneme dictionary, construct a scoring rule integrating the degree of phoneme misreading, polyphones, oligophones and prosody; The reading audio of the subject to be evaluated is input into the phoneme error detection model to obtain an output result, and the syllable misreading of the subject to be evaluated is judged based on the scoring rule and the output result.

2. The end-to-end pronunciation evaluation method based on Zipformer according to claim 1, characterized in that: Using the phoneme dictionary as a replacement rule, data annotation is performed on the Chinese public dataset and the reading dataset, including: Obtaining the audio files and target text of the Chinese public dataset and the reading dataset; Using a phoneme dictionary as a replacement rule, replacing the target texts of the Chinese public dataset and the reading dataset with target phonemes; Manually annotating the audio data of the reading data set to obtain the actual pronunciation text; Convert the actual pronunciation text into pronunciation phonemes; The pronunciation phonemes of the reading data set are compared with the target phonemes using the sequence comparison function of the python library. The comparison units are initial consonants and finals with tones. "0" represents the correct pronunciation and "1" represents the incorrect pronunciation to generate a supervision signal, and a Chinese public data set with audio information and pronunciation phonemes for training an end-to-end phoneme-level speech recognition model, as well as a reading data set with audio information, target phonemes and supervision signals for training a phoneme error detection model are obtained.

3. The end-to-end pronunciation evaluation method based on Zipformer according to claim 1, characterized in that: The Chinese public dataset and the reading dataset are expanded by using text replacement and feature transformation technology to obtain the processed Chinese public dataset and reading dataset, including: Using a random function in Python programming language to perform random processing on the reading data set to obtain a randomized reading data set; Expanding the out-of-order reading data set by using two technologies, text replacement and feature transformation, to obtain an expanded reading data set; A pair (d, t) defining a text replacement rule; where d is the phoneme to be replaced and t is the replacement phoneme; Constructing text replacement rules using a preset replacement method and the bigram; the preset replacement method includes: random replacement, replacement based on phonetics, and replacement based on data statistics; The SpecAugment speech enhancement method is used to perform feature transformation processing on the original speech signals in the Chinese public data set and the reading data set to obtain the processed Chinese public data set and the reading data set.

4. The end-to-end pronunciation evaluation method based on Zipformer according to claim 3, characterized in that: The random replacement is to extract the syllables and tones of the target phoneme text, and then select the replacement initials, finals and tones by random sampling, and establish a random replacement bigram set of initials, finals and tones with the replaced initials, finals and tones respectively; the phonetic-based replacement is to construct a bigram set of replacement rules that integrates the similarity of phoneme pronunciation and the complexity of polyphones based on phonetic knowledge, commonalities and differences in phoneme pronunciation; the data statistics-based replacement is to count the frequency of misreading of the target phonemes in the reading data set, select phonemes with a misreading frequency of more than 5% as phonemes to be replaced, and the corresponding misread phonemes as replacement phonemes, and construct a replacement bigram set based on data statistics.

5. The end-to-end pronunciation evaluation method based on Zipformer according to claim 1, characterized in that: Extracting Fbank features from the processed audio data of the Chinese public data set and the reading data set, and generating a first data json object set and a second data json object set according to the Fbank features, including: Obtain processed Chinese public datasets and reading datasets; Preprocessing the original speech signals in the input processed Chinese public data set and the reading data set to obtain preprocessed signals; Using discrete Fourier transform, converting the time domain signal of the preprocessed signal into a frequency domain signal; A Mel filter bank is added to the processed Chinese public dataset and reading dataset to obtain the energy distribution at different Mel frequencies for the feature expression of speech signals. The Fbank feature with a frame rate of 100 Hz is obtained by using logarithmic energy calculation, feature selection and CMVN mean variance normalization method. The file contains the audio file name and its corresponding feature value. Traverse the feature files and phoneme texts of the Chinese public data set, obtain the storage address and corresponding phoneme sequence of each feature sequence, and structure the storage address and the corresponding phoneme sequence into a first data json object set to train an end-to-end phoneme-level speech recognition model; Traverse the feature file, target phoneme file, and supervisory signal file of the reading data set, obtain the address of each feature sequence, and structure the address of the feature sequence into a second data json object set to train the phoneme error detection model.

6. The end-to-end pronunciation evaluation method based on Zipformer according to claim 1, characterized in that: The training steps of the Zipformer-based end-to-end phoneme-level speech recognition model include: Initialize the model parameters and set 6 encoder stacks, where the number of attention heads is set to {4, 4, 4, 8, 4, 4} and the size of the convolution kernel is set to {31, 31, 15, 15, 15, 31}; in each attention head, the query dimension and value dimension are set to 32 and 12 respectively, and a total of 150 rounds of training are performed; Input a first data JSON object set, and create a training data set according to the first data JSON object set; The sequence of Fbank features with a frame rate of 100Hz is input into the Zipformer encoder, and the frame rate is reduced to 50Hz by the convo-embed module to obtain the embedded sequence; The embedded sequence is input into a six-level series stack, and the frame rates are set to 50Hz, 25Hz, 12.5Hz, 6.25Hz, 12.5Hz and 25Hz for training. The second to sixth level stacks adopt a downsampling architecture. The output of each stack is cropped or zero-filled to adapt to the input dimension requirements of the next level stack. Finally, the sequence of Fbank features is converted to 25Hz through the Downsample module to obtain the output of the encoder. The feature sequence output by the encoder is input into the RNN-T decoding module, and the input sequence is converted into an embedding vector through the Embedding layer, and then passes through the LSTM network and the fully connected layer to generate the final output sequence; In the last layer of the decoder, the softmax function is used to obtain the character probability; The focal loss function is used to measure the difference between the predicted phonemes and the labeled phonemes, and the model parameters are updated through the back-propagation algorithm.

7. The end-to-end pronunciation evaluation method based on Zipformer according to claim 1, characterized in that: The steps of the training and decoding phase of the phoneme error detection model include: Use the trained Zipformer-based end-to-end phoneme-level speech recognition model and embed the Needleman-Wunscha alignment algorithm after calculating the character probabilities in the decoding phase to integrate the alignment process into the back-propagation optimization. Input the second data json object set to train the phoneme error detection model; in the decoding stage, obtain the predicted phoneme sequence and the predicted confidence sequence by calculating the character probability; obtain the label phoneme sequence and the supervision signal state sequence in the second data json object set; Inputting the predicted phoneme sequence and the label phoneme sequence into the Needleman-Wunscha alignment algorithm, and initializing the alignment matrix, initializing the first row and the first column of the alignment matrix to 0; The scores of the elements above and to the left are calculated by gradually adding up the missing penalties; for the elements in the first row and column, the missing penalties are added up, and for the remaining elements, the scores are calculated according to the following rules: Matching score: add the score of the upper left element to the matching score of the current position and use it as the score of the current element; Missing penalty: add the missing penalty to the score of the previous element and use it as the score of the current element; Insertion penalty: add the missing penalty to the score of the left element and use it as the score of the current element; The iterative calculation step "calculates the scores of the elements above and to the left by gradually accumulating missing penalties; for the elements in the first row and the first column, the missing penalties are accumulated, and for the remaining elements, the scores are calculated according to the following rules" to obtain a complete score matrix. Starting from the lower right corner of the score matrix, according to the scores of the elements above, to the left, and to the upper left, the direction with the highest score is selected for step-by-step backtracking to construct an alignment path that reflects the best matching relationship between the two sequences; According to the alignment path of the best matching relationship, the two sequences are aligned. If each element on the path comes from the diagonal direction, it means that the character at that position matches; if it comes from the top or left, it means that a sequence is missing at that position, and then an alignment sequence is generated; The focal loss function is used to measure the difference between the supervision signal state sequence and the alignment sequence, and the model parameters are updated through the back-propagation algorithm. In the decoding phase after training, the output character sequence is aligned with the input feature sequence to obtain alignment information containing the start and end frame lengths of each character. The frame length of the current character is obtained by calculating the difference between the end frame and the start frame of the current character; the frame length between characters is obtained by subtracting the end frame of the current character from the start frame of the next character.

8. The end-to-end pronunciation evaluation method based on Zipformer according to claim 1, characterized in that: According to the output sequence of the phoneme error detection model and the phoneme dictionary, a scoring rule integrating the degree of phoneme misreading, polyphones, oligophones and rhythm is constructed, including: Obtaining a predicted value sequence, a predicted phoneme sequence, a target factor sequence, a phoneme frame length sequence, a phoneme interval frame length sequence, and a prediction confidence sequence output by the phoneme error detection model; The sequence alignment function is used to calculate the number of extra phonemes and the number of missing phonemes in the predicted phoneme sequence relative to the target phoneme sequence, and then the completeness score is calculated; According to the phoneme dictionary, the predicted phoneme sequence is segmented to obtain the segmentation result; Set the phrase interval standard frame length value O respectively s , the standard frame length value of the phoneme interval within the phrase I s , single phoneme standard frame length value P s ; According to the frame length sequence of each phoneme interval and the word segmentation result, the actual frame length sequence S of the phrase interval is extracted. o = {O1, O2…O n }、The actual frame length sequence S between the single phoneme and each phoneme in the phrase (p,i) ={(P1, I1), (P2, I2)…(P n , I n )}; where P n is the actual frame length of the single phoneme in the phrase, I n is the actual frame length of each phoneme interval in the phrase; The outer loop traverses the sequence S o , calculate O n With O s The difference is calculated and the absolute value of the difference is obtained to obtain the phrase interval frame length difference O d = {D1, D2…D n }; The inner loop traverses the sequence S (p,i) , calculate P n With P s The difference, I n with I s The difference between the two, and the absolute value of the difference is obtained to obtain P d = {D1, D2…D n } and I d = {D1, D2…D n }; where D n is the difference between the standard frame length and the actual frame length; Fit the three difference sequences into one sequence C d = {D1, D2…D n }(D n ≥0), and substitute it into the following formula to calculate the prosodic score based on the phrase: Among them, D i is the difference, length is the sequence C d Length; Calculate the predicted phoneme sequence length and the predicted phoneme sequence length of the final vowel with tone respectively; Substitute the predicted phoneme sequence length, predicted final phoneme sequence length with tone, predicted value sequence, and predicted confidence sequence into the following formula to calculate the overall pronunciation score and tone pronunciation score respectively: Among them, P i is the prediction confidence, l i is the predicted value (, length is the predicted phoneme sequence length or the predicted final phoneme sequence length with tone.

Citation Information

Cited By

  • Model training method and device, phoneme identification method and equipment and medium

    CN119091858A

  • Voice text alignment model training method and device, electronic equipment and storage medium

    CN119418690A

  • Speech text alignment model training method and device, electronic equipment and storage medium

    CN119418690B

  • Chinese accent bias error evaluation method and system based on bias error dictionary and sequence alignment

    CN119418691A

  • Wenzhou dialect speech recognition and pronunciation scoring system and method

    CN122369430A