A Japanese pronunciation evaluation method and system based on speech

Through the dual-layer deep neural network model combined with CTC and attention mechanism, the accuracy problem of automatic speech recognition technology in Japanese pronunciation evaluation is solved, the accurate evaluation of Japanese pronunciation of Japanese learners is achieved, and the objectivity and accuracy of scoring are improved. sex.

CN114387959BActive Publication Date: 2024-10-11BEIJING IYUBA TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202011115349.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-19
Publication Date
2024-10-11
Estimated Expiration
2040-10-19

AI Technical Summary

Technical Problem

Existing automatic speech recognition technology is difficult to detect and diagnose errors in Japanese pronunciation of Japanese language learners, and it is easy to affect the accuracy of scoring due to differences in pronunciation habits and accents, and cannot effectively evaluate pronunciation at the word and phoneme level.

Method used

Using a two-layer deep neural network model, combined with the connection time classification (CTC) algorithm and attention mechanism, the first layer of deep neural network is used to align the speech sequence and the target text, and the second layer of deep neural network is used for phoneme level recognition and evaluation. , using TensorFlow for in-depth training to achieve accurate scoring of Japanese pronunciation.

Benefits of technology

It improves the accuracy of automatic scoring, can accurately detect and evaluate Japanese pronunciation at the word and phoneme level, reduces the error recognition rate, and provides more objective and accurate pronunciation feedback.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114387959B_ABST
    Figure CN114387959B_ABST
Patent Text Reader

Abstract

The present invention provides a Japanese pronunciation evaluation method and system based on speech, which completes the Japanese pronunciation evaluation of the input audio file by inputting the pronunciation audio of the target user to a known sentence text into a trained two-layer deep neural network model. The audio file of the target user collected by the speech collection system is first input into the first layer of the deep neural network for realizing the alignment between the input speech text and the known target text, and the aligned speech text is split into audio files in units of words for output. The audio file in units of words is input into the second layer of the deep neural network for speech recognition and evaluation operations to obtain the pronunciation accuracy of the target sentence words; the Japanese pronunciation of the target user is scored based on the pronunciation accuracy of the words to obtain the target score. The subjective influence of the pronunciation habits of the target user such as stress and connected reading is eliminated, and the accuracy of the scoring is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of speech recognition, in particular to a speech-based Japanese pronunciation scoring method and system. Background Art

[0002] With the progress of globalization, more and more people are learning foreign languages. And oral practice is of great significance in foreign language learning. However, hiring foreign teachers or creating an atmosphere for foreign language oral practice is relatively expensive and unrealistic for most foreign language learners. Therefore, it is considered to find a more convenient, fast and cheap way to practice oral pronunciation for foreign language learning. Mobile phones and computers, as popular Internet tools, are ideal training tools for oral pronunciation practice. Therefore, more and more researchers have begun to conduct research on speech recognition based on computer-assisted speech learning (CALL) based on Internet tools. Studies have shown that Japanese is a language widely used in Asia, and many Chinese are learning Japanese. If the Japanese pronunciation of Japanese learners can be conveniently and accurately detected, scored, and early pronunciation correction can be performed, the efficiency and effectiveness of Japanese learning can be greatly improved. Therefore, oral pronunciation learning for Japanese learners is of great significance.

[0003] The currently commonly used automatic speech recognition (ASR) technology is only responsible for directly outputting the results of speech recognition and can correct certain pronunciation errors through language models and corpora. Therefore, ASR cannot point out which positions of the subject's pronunciation have problems and diagnose and score these problems. At the same time, considering that the pronunciation habits and accents of different subjects, including differences in stress, connected reading and voice intonation, may cause problems in pronunciation detection diagnosis and scoring, thereby affecting the quality of speech diagnosis. Traditional ASR technology directly recognizes speech at the sentence level, but when learning a foreign language, the main task is to pronounce correctly at the word and phoneme level, so as to achieve the correctness of communication pronunciation. Therefore, the computer-assisted language training (CAPT) technology used in this paper mainly considers the detection and diagnosis of pronunciation errors. The detection of speech pronunciation errors is mainly based on the subject's pronunciation to find the pronunciation errors. The diagnosis of speech pronunciation errors will generate correct feedback based on the detection, so that the subject's pronunciation level can be improved. Summary of the invention

[0004] To solve the problems existing in the technical background, when the existing speech recognition technology (ASR) detects the Japanese pronunciation of the subject, it is difficult to detect the diagnostic errors during speech evaluation, and it is easy to lose context information due to the pronunciation habits of the subject, resulting in the ASR technology being difficult to quickly and effectively evaluate the Japanese pronunciation of the subject. The present invention proposes a Japanese pronunciation scoring method and system based on speech input, which can automatically comprehensively score the target user based on the word-level alignment of the speech file and the phoneme-level speech recognition model of the text speech input file of the subject when the target text is known, thereby eliminating the subjective influence of the pronunciation habit factor and greatly improving the accuracy of automatic scoring.

[0005] The first aspect of the embodiment of the present invention provides a method for evaluating Japanese pronunciation based on speech, the method comprising: based on the different beneficial features of the connection time classification (CTC) algorithm and the attention mechanism, using a two-layer deep neural network model (DDNN) to evaluate the pronunciation accuracy of the Japanese pronunciation audio of the subject; the first layer of the deep neural network uses CTC and the viterbi speech model to align the input speech sequence and the target text sequence. After completing the above sequence alignment operation, the attention model is used in the second layer of the deep neural network to perform phoneme-level Japanese word recognition and accuracy evaluation. The use of DDNN can maximize the advantages of the CTC and attention models, thereby reducing the error recognition rate. The above-mentioned two-layer deep neural network models are all deeply trained based on the software TensorFlow. The first layer of the deep neural network of the present invention first performs an encoder-decoder and alignment operation on the audio file of the Japanese pronunciation of the target user to the known Japanese target text to realize the alignment operation of the input speech text.

[0006] Before the MFCC feature extraction, the signal is first preprocessed, mainly completing the following steps:

[0007] Performing pre-emphasis processing on the high frequency part of the target user input voice signal;

[0008] Adding a window to the signal after the high-frequency part is pre-emphasized, and performing a smoothing process on the signal;

[0009] Performing discrete Fourier transform on the smoothed speech signal;

[0010] Then perform MFCC feature extraction, mainly completing the following steps:

[0011] The target user's voice signal after the preprocessing is input and the frequency domain information of the target user's voice signal is filtered using a time domain Mel filter bank. The energy output of each bandpass filter is calculated to obtain an energy spectrum on the Mel coordinate as the basic feature of the target user input signal.

[0012] Taking logarithm of the basic features obtained after passing through the filter bank, and then performing cepstrum analysis to obtain feature coefficients, and then performing discrete cosine change and difference processing on the feature coefficients;

[0013] After completing the MFCC feature coefficient extraction and feature spectrum drawing of the speech signal of the target sentence, the feature spectrum is input into the bidirectional BiLSTM for processing.

[0014] Since the speech evaluation at this time is not a real-time speech recognition, the present invention uses BiLSTM to perform a bidirectional encoding operation on the input feature spectrum to achieve encoding of the speech signal feature spectrum into the hidden layer of the network.

[0015] After the encoding of the input speech signal is completed, connection time classification (CTC) decoding and viterbi forced alignment are performed to finally complete the output of the speech signal in units of words of the first layer of the deep neural network model. The main steps are:

[0016] According to the pronunciation rules of Japanese, the input speech sequence after BiLSTM encoding is processed by inserting blank characters before and after the entire input sequence, and inserting a blank character between each kana character. That is to say, assuming that the length of the input speech sequence after BiLSTM encoding is N, after the operation of inserting blank characters, the length of the input sequence becomes 2N+1.

[0017] The input sequence after the insertion of blank characters is processed using the forward or backward algorithm of CTC, and the probability values ​​corresponding to different output sequence paths are calculated using an iterative method.

[0018] The whitespace and text kana characters are distinguished in the path connections of the output sequence:

[0019] If the output character at the current moment on the output sequence path is a blank character, there are two possibilities for character output at the next moment: one is to still output the current blank character, and the other is to output the next kana character corresponding to the current blank character on the input sequence.

[0020] If the output character on the output sequence path at the current moment is a kana character, there are three possibilities for the output at the next moment: one is to still output the current output kana character, the second is the next blank character corresponding to the current output kana character on the input sequence, and the third is the next kana character on the input sequence corresponding to the current output kana character.

[0021] The BiLSTM and CTC algorithms calculate the probability values ​​at each moment and each node position, perform a softmax operation on the weights to obtain output probability values, and the viterbi algorithm performs dynamic decoding and output on the output results after the completion of the CTC algorithm based on the output probability values.

[0022] After completing the probability calculation of all possible output sequence paths through the CTC algorithm, the Viterbi algorithm is then used to find the output path with the highest probability among all the output speech sequence paths based on the known target text path, thereby achieving alignment between the input speech sequence and the known target text.

[0023] The Viterbi algorithm is used to first find the longest output path with the highest probability of achieving the output of all sequence elements. According to the principle of the Viterbi algorithm, for any element on the longest output path, the path with the highest probability from the starting position of the sequence to any element must be a subpath on the longest output path, thereby obtaining an alignment model of the output sequence when the target user has not completed the pronunciation of the entire target text.

[0024] The output speech sequence aligned with the target text is segmented, and the speech of the entire target text sentence is segmented into shorter speech sequences in units of words, and then output to the second layer of the deep neural network for subsequent speech evaluation of speech recognition operations.

[0025] In summary, the present invention searches for the most similar output path with the highest probability to the known target text in the input sequence after BiLSTM encoding when the target text is known. Using CTC decoder and Viterbi alignment algorithm, the input speech signal and the known target text are aligned at the level of word falsetto pronunciation. The aligned output sequence is output in units of words for subsequent speech operations.

[0026] The second layer of deep neural network described in the present invention is an end-to-end speech recognition model based on attention. For the speech file aligned by the first layer of deep neural network, a speech recognition model based on the word level is performed. The encoder-decoder used in the second layer of deep neural network is: the encoder model uses CNN and BiLSTM, and the decoder model is an RNN output based on the attention mechanism. The output is output in units of words.

[0027] The second-layer deep neural network speech recognition model uses multiple standard components of vision and natural language processing, and uses a complete grid encoder for the input aligned wav file, which not only supports data from coarse to fine, but also can complete the left-to-right encoding of the data according to the characteristics of the speech file.

[0028] The second-layer deep neural network speech recognition model processes the aligned speech file processed by the first-layer deep neural network as follows:

[0029] First, the wav. file input by the first layer of deep neural network is converted into an MFCC feature vector to draw the image features of the input wav. file. The method used is consistent with the MFCC feature extraction used in the first layer of deep neural network: the frequency domain information of the input speech signal is filtered using a time domain Mel filter group. The energy output of each bandpass filter is calculated to obtain an energy spectrum on the Mel coordinate as the basic feature of the input signal. The basic feature is logarithmized, and then a cepstrum analysis is performed to obtain feature coefficients, and then discrete cosine changes and differential processing are performed on the feature coefficients, thereby completing the MFCC feature coefficient extraction and feature image drawing of the word segmented speech signal.

[0030] The image features drawn by the MFCC conversion are then input into a multi-layer convolutional neural network (CNN) interleaved with a maximum pooling layer, which performs standard CNN convolution and pooling operations to extract the image features and arrange the features in a grid.

[0031] After the MFCC feature image is processed using the CNN, a series of rectangular vectors are output from the non-fully connected layer of the network, and the order of the rectangular vectors is also from left to right, which is consistent with the MFCC input.

[0032] The length and width of the output vector of the CNN encoding are consistent, so that the rough speech signal can be converted into a regular feature vector.

[0033] Next, the grid feature spectrum obtained after the MFCC visual feature extraction and CNN convolution operation is input into the BiLSTM for encoding. Since the visual feature spectrum grid input into the BiLSTM encoder contains important relative order information, it is necessary to use the BiLSTM encoder to re-encode each row in the visual feature grid. The BiLSTM encoder is used to recursively map the visual feature spectrum and hidden state to a new hidden state.

[0034] It should be noted that the difference between the BiLSTM used in the second-layer deep neural network speech recognition and the BiLSTM used in the first-layer deep neural network alignment model is that the BiLSTM used in the first-layer deep neural network alignment model is encoded at the sentence level, while the BiLSTM used in the second-layer deep neural network speech recognition model is encoded at the word level. Therefore, the BiLSTM in the first-layer deep neural network alignment model and the BiLSTM in the second-layer deep neural network speech recognition model used in the present invention need to be trained separately.

[0035] After the BiLSTM completes the encoding, the encoding result of the hidden layer is input into the decoder of the attention mechanism, and the encoding result is recorded as the semantic representation h of the source text. 1 ,h 2 ,…,h T-1 ,h T , then the semantic representation h is decoded by the attention mechanism i Decoding is performed to obtain a sequence of kana phonemes at the word level. The decoder decodes one word at a time in an iterative manner.

[0036] The attention mechanism actually calculates the matching between the current output from the BiLSTM encoder and the input of the attention-based RNN decoder. The similarity between the two vectors is represented by u. The similarity u is input into the softmax for normalization to obtain the similarity α, which is used to indicate the weight given by the attention mechanism to the state of the i-th hidden layer encoder of the BiLSTM.

[0037] The normalized similarity α output by softmax is used to establish an attention mask based on the current state of the hidden layer of the BiLSTM encoder to give attention weight.

[0038] The entire decoding process is a process of continuously updating the input of the decoder RNN. The iterative calculation method is as follows

[0039]

[0040]

[0041]

[0042] Among them, v, W 1 and W 2 It is the trainable parameter of the decoding model based on the attention mechanism. The length is T (the length of the sequence is T), and the i value represents the value of the RNN decoder for the i-th hidden encoder state h of the BiLSTM i The attention value given (operation weight), c t is the output of the RNN decoder at the current moment. Timing output z t By z t-1 and the c t-1 Joint decision, 0 is the initial vector of the RNN decoder. Each time an iteration is performed, the z t Instead of the z t-1 Re-do c t until the loop ends.

[0043] When performing the iterative solution to the output of the attention mechanism, use z 0 Represents <start>, use z T Represents <end>, the z 0 and z t They will not be included in the calculation of pronunciation accuracy in the official output results.

[0044] When the iteration loop reaches the z t , it represents the end of the speech recognition task. The kana pronunciation symbol sequence recognized by each word speech segment is finally output through the attention model. The accuracy of the kana phonetic symbol pronunciation is obtained by calculating the edit distance between the kana phonetic symbol sequence of the speech and the reference kana phonetic symbol sequence. The accuracy of the kana phonetic pronunciation of the entire word is comprehensively calculated to obtain the correct pronunciation rate of the word.

[0045] The target user is scored based on the correct pronunciation rate of the obtained words to obtain a pronunciation evaluation result, and the evaluation result is used for the pronunciation practice of the target user.

[0046] In summary, the input Japanese aligned audio file in units of words is output as a sequence of Japanese kana phonetic symbols after completing speech recognition through the second layer of the neural network, which is used to evaluate the pronunciation of the target user.

[0047] The second aspect of the embodiment of the present invention provides a speech-based Japanese pronunciation evaluation system, which includes: a speech collection device for collecting speech data of a target user; a speech alignment device for preprocessing and aligning the collected speech; and a speech evaluation device for evaluating the pronunciation correctness of the aligned speech to obtain different score levels for the target user's Japanese pronunciation.

[0048] The third aspect of the embodiment of the present invention provides a computer product for speech pronunciation evaluation, wherein the computer product includes a non-transient computer-readable storage medium storing a computer program, and the computer program further operates a computer to perform any part or all of the steps described in the first aspect of the embodiment of the present invention. The computer program can operate a computer to perform any or all of the system steps described in the second aspect of the embodiment of the present invention. The computer program product can be a software installation package or a small program system.

[0049] One or more technical solutions are provided in the embodiment of the present invention, which have at least the following beneficial effects: based on TensorFlow, the training of the first layer deep neural network and the second layer deep neural network are respectively completed; in the speech evaluation process, based on the fully trained model, for the input speech audio file of the target user, the trained first layer deep neural network is used to realize the alignment of the speech text and the target text, and the input sentence sequence is divided into audio files of single words in units of words; the trained second layer deep neural network is used to perform pronunciation recognition of kana phonemes on the audio of the input single word, the pronunciation accuracy of the real-time sound data is evaluated, the accuracy of the output word level is processed, and the total score and detailed score are output. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The present invention will be further described below in conjunction with the accompanying drawings and embodiments;

[0051] Figure 1 is a system architecture diagram based on the Japanese speech evaluation method provided in an embodiment of the present application;

[0052] Figure 2 is a flow chart of a Japanese speech evaluation method provided by an embodiment of the present invention;

[0053] Figure 3 It is a flow chart of implementing the alignment of speech text and target text by the first layer of deep neural network for Japanese speech evaluation provided by an embodiment of the present invention;

[0054] Figure 4 It is a flow chart of implementing kana phoneme recognition of words by the second-layer deep neural network of the Japanese speech evaluation provided by an embodiment of the present invention; DETAILED DESCRIPTION

[0055] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present invention will be described in detail and in full in combination with the accompanying drawings 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.

[0056] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are not only used to distinguish different object models, but also to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method or system including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps and units inherent to these processes, methods or systems.

[0057] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present invention. The phrase appearing in various places in the description does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described in the present invention may be combined with other embodiments.

[0058] Next, combine Figure 1 The system architecture of the Japanese pronunciation evaluation method based on speech in the embodiment of the present invention is described in detail. Figure 1The system architecture diagram of the Japanese pronunciation evaluation method based on speech provided by the embodiment of the present invention includes an input signal collector 110, an MFCC feature extraction module 120, and a processor 130, wherein the input signal collector 110 may include a speech collection unit 111 and a target text collection unit 112, the speech collection unit 111 may be a microphone array, and after receiving a start instruction, the speech data of the target user is collected, and the target text collection unit 112 may be a communication interface, and after receiving the start instruction, the target text in the database is used as an input file. The signal collector 110 is interconnected with the MFCC feature extraction module 120, and the MFCC feature extraction module 120 can extract MFCC feature data according to the speech signal sent by the speech collection unit 111, and the processor 130 is interconnected with the MFCC feature extraction module 120, and scores are performed according to the feature data output by the MFCC feature extraction module 120. The processor 130 may include a first-layer deep neural network model 131, a second-layer deep neural network model 132, and a scoring unit 133. The first-layer deep neural network model 131 is used to align the feature data input by the MFCC feature extraction module 120 between the speech text and the known target text, and finally output a speech file in units of words. The second-layer deep neural network model 132 is used to perform speech recognition operations on the speech files in units of words input by the first-layer deep neural network model 131, and finally output the accuracy of the kana pronunciation of each word. The scoring unit 133 is used to comprehensively consider the correctness of the pronunciation of the words input by the second-layer deep neural network model 132, and finally output an evaluation score for the speech pronunciation input by the target user.

[0059] Reference Figure 2 A method for Japanese pronunciation evaluation based on speech according to an embodiment of the present invention comprises the following steps:

[0060] S1: Obtain the target user's voice audio for known text and perform preprocessing;

[0061] S2: Input the speech audio into the trained first-layer deep neural network model, complete the alignment of the speech text and the known target text, truncate the sentence in units of words, and output the speech audio file in units of words;

[0062] S3: Input the speech audio file in units of words into the trained second-layer deep neural network model, perform speech recognition on the word speech audio file at the level of kana phonemes, obtain the accuracy of word pronunciation, and realize the pronunciation evaluation of the target user's Japanese audio.

[0063] It should be noted that the Japanese database used for training the model of the present invention is a word book from the Japanese Language Proficiency Test (JLPT), including thousands of words and examples thereof. And six classic standard Japanese textbooks, including words with sentences and sentences in courses. Therefore, the database has a total of 26,950 words and 19,398 sentences for the training of the double-layer neural network model of the present invention. The words and sentences are pronounced in standard Japanese.

[0064] The speech database set used for training of the present invention includes two parts: the correct pronunciation of words and example sentences by the announcer; and the pronunciation of words and sentences of the test subject every day which are judged to be correct speech data samples after being scored by the HMM model. The target user uses the electronic device system applied for by the present invention to generate Japanese pronunciation of about 20,000 sentences every day for model training through the speech collection system.

[0065] The present invention uses 80 kana pronunciations in the standard Japanese 50-sound chart when performing kana phoneme pronunciation diagnosis in the double-layer deep neural network model.

[0066] Through the training of deep neural networks, we first select the most reasonable deep neural network model and conduct deep training based on Tensorflow. In the evaluation process, based on the fully trained model, we evaluate the pronunciation accuracy of the real-time Japanese word pronunciation data of the target user, and evaluate the pronunciation accuracy level of the rectified sentences.

[0067] A Japanese pronunciation evaluation method based on speech in an embodiment of the present invention uses a two-layer neural network model, wherein the first-layer neural network model uses BiLSTM, CTC and Viterbi alignment models to achieve alignment of input speech text and known target text, and outputs speech audio files in units of words. The second-layer neural network model uses BiLSTM and attention mechanisms to achieve pronunciation recognition and accuracy evaluation of the aligned word speech audio files at the phoneme level.

[0068] Before starting to evaluate the pronunciation of the speech input by the target user, the present invention uses sentences in 10,000 databases to pre-train the first-layer deep neural network model. First, the first-layer deep neural network model is trained, and each input speech sentence is decoded using the CTC algorithm. The path with the highest probability between the largest speech text and the consistent target text is obtained by using the viterbi text alignment method. According to the obtained output path, the speech alignment text is segmented in units of words, and finally output in the form of speech of words. The setting of the Mel scale filter group coefficients and the recommended pitch features of the first-layer deep neural network is completed by training, and the setting of the parameters of the relevant incremental features of the BiLSTM encoder is completed. Then, the alignment model of the first-layer deep neural network that has been trained is used to realize the alignment operation and the output of the word speech unit for the input speech of the target user. Then, 7901254 training learning parameters are used to train the second-layer deep neural network model. This is about the data used by users for second language learning within one day. When the sentence training is completed, the sentence is truncated at the word level using the trained first-layer deep neural network model, and then 109716 Japanese word audios are generated. Based on this data set and the correct pronunciation of the announcer in the database, the present invention uses GPU G2080Ti to train about 40 generations of CTC model and attention model. Through training, v, W of the attention mechanism decoder model are determined. 1 and W 2 etc. trainable parameters.

[0069] Among them, the BiLSTM used in the first layer of deep neural network and the BiLSTM used in the second layer of deep neural network have certain differences in processing objects: the BiLSTM used in the first layer of neural network is encoded at the sentence level, while the BiLSTM used in the second layer of neural network model is encoded at the word level. Therefore, the BiLSTM in the first layer of neural network and the BiLSTM in the second layer of neural network model used in the present invention need to be trained separately.

[0070] Then, the trained two-layer deep neural network model is used to perform voice evaluation on the input voice signal of the target user. The evaluation method is as follows: Figure 2 . Take "わたしはにほんじんです" as the target text as an example.

[0071] First, the target user pronounces the target text "わたしはにほんじんです". This patent uses a speech acquisition system to record the target user's speech pronunciation of the target text "わたしはにほんじんです", and the acquired speech audio is used as the input speech to be evaluated. Before inputting the input language into the two-layer deep neural network model for speech pronunciation evaluation, the input speech needs to be pre-processed S1 first, and the high-frequency part of the target user's input speech audio signal is pre-emphasized to reduce the system's suppression of the high-frequency part of the target user's input audio, thereby highlighting the resonance peak in the high-frequency range; the pre-emphasized signal is windowed using a Hanning window to smooth the signal; finally, the smoothed speech signal is discrete Fourier transformed to convert the input audio signal of the target user from the time domain to the frequency domain to facilitate subsequent frequency analysis;

[0072] Combine the following Figure 3 The method S2 for performing text alignment operation on the input speech audio file based on the first layer deep neural network model in the embodiment of the present invention is described in detail. Figure 2 A flowchart of an alignment operation of speech text based on a CTC and Viterbi alignment model in a first layer of a deep neural network provided in an embodiment of the present invention specifically includes the following steps:

[0073] The pre-processed input speech signal is subjected to MFCC transformation S22, and the corresponding characteristic spectrum image is drawn. The MFCC extraction of speech signal features mainly includes: using the time domain Mel filter group to filter the pre-processed input speech signal in the frequency domain S221. The Mel filter group is a group of bandpass filters arranged from dense to sparse in the frequency band from low frequency to high frequency of the signal according to the different critical bandwidths of the signal in different frequency domains, so as to filter the input speech signal of the target user. The filter group includes 40 linearly arranged filters, and the energy output of each bandpass filter is calculated to obtain the energy spectrum on the Mel coordinates as the basic features of the input speech signal of the target user for the text "わたしはにほんじんです". The basic features after filtering by the Mel filter group are not affected by the pitch and frequency properties of the speech signal itself, so there is no restriction on the collected audio signal of the target user, which improves the applicability of the speech recognition of the present invention.

[0074] After completing the input feature extraction based on the Mel filter S221, the basic feature is logarithmized, and then cepstrum analysis is performed to obtain feature coefficients S222. Then, discrete cosine transformation S223 is performed on the feature coefficients after cepstrum analysis to concentrate the energy in the low-frequency part, which is convenient for subsequent image compression. At the same time, in order to ensure that the feature coefficients better reflect their continuity in the time domain, it is also necessary to perform differential processing S223 on the feature coefficients after discrete cosine transformation.

[0075] In summary, the MFCC feature extraction is performed on the audio signal file of the target user's response to the sentence "わたしはにほんじんです", and the extracted feature coefficients are used to draw a feature spectrum image.

[0076] After the feature coefficient extraction and feature spectrum drawing of the target user's speech audio of the sentence "わたしはにほんじんです" are completed, the feature spectrum is subjected to a bidirectional BiLSTM. Figure 2 The one in the middle is S24.

[0077] The BiLSTM is a bidirectional long short-term memory network (LSTM), which is a special RNN mainly used to solve the gradient vanishing and gradient exploding problems in the long sequence training process. Since the speech evaluation at this time is not a real-time speech recognition, the present invention uses BiLSTM to perform a bidirectional encoding operation to encode the characteristic spectrum of the input speech signal of the target user into the hidden layer of the neural network.

[0078] After completing the encoding of the input speech signal S24, the last step of the first layer of the deep neural network to align the input speech audio text with the target text "わたしはにほんじんです" is to complete the output S25 and S26 based on connection time classification (CTC) decoding and viterbi forced alignment. The main steps are:

[0079] The encoded speech text is subjected to CTC decoding S25, the main purpose of which is to find a path that is maximally consistent with the target text "わたしはにほんじんです" from the output result of the hidden layer after the BiLSTM encoding based on the known target text "わたしはにほんじんです".

[0080] The CTC method focuses on the results of the input sequence input from the BiLSTM to the CTC and the output sequence output from the CTC, and only pays attention to whether the output sequence predicted according to the input sequence is close to the known true text sequence "わたしはにほんじんです", but does not pay attention to whether each output sequence of the input sequence is completely aligned with the text sequence "わたしはにほんじんです" at a time point.

[0081] According to the pronunciation rules of Japanese, the input speech sequence after BiLSTM encoding is processed: insert blank characters before and after the entire input sequence, and insert a blank character between each kana character. That is to say, when the length of the target text sequence is N, after the operation of inserting blank characters, the length of the target text sequence becomes 2N+1. For example, when the target text at this time is "わたしはにほんじんです", the sequence length at this time is 11. After the operation of inserting blank characters, the sequence at this time becomes "∈わ∈た∈し∈は∈に∈ほ∈ん∈じ∈ん∈で∈す∈" (where ∈ represents a blank character), the sequence length at this time is 23, and the sequence number after inserting blank characters is x 1 , x 2 , …, x 23 .

[0082] The input sequence input by BiLSTM to CTC uses the forward or backward algorithm of CTC to calculate the probabilities corresponding to different output sequence paths by an iterative method.

[0083] The difference between the forward and backward algorithms is that the forward algorithm performs iterative updates along the direction of the sequence output path, while the backward algorithm performs iterative updates along the reverse direction of the sequence output path.

[0084] The blank character ∈ and the kana character are distinguished in the connection path of the output sequence:

[0085] If the output at the current moment on the output sequence path is a blank character ∈, then there are two possibilities for the output at the next moment: one is to still output the current blank character ∈, and the other is to output the next kana character corresponding to the current blank character ∈ on the input sequence.

[0086] If the output at the current moment on the output sequence path is a kana character, there are three possibilities for the output at the next moment: one is to still output the current kana character, one is to output the next blank character ∈ corresponding to the current kana character on the input sequence, and the other is to output the next kana character corresponding to the current kana character on the input sequence.

[0087] By performing logarithmic operations on the probability values ​​calculated by the forward algorithm and the backward algorithm, the multiplication operation in calculating the output path probability is changed into an addition operation, which not only avoids underflow but also simplifies the calculation.

[0088] After the probability calculation of all possible output text paths is completed by the CTC algorithm, the Viterbi alignment algorithm is then used to find the output path with the highest probability among all known target text output paths, thereby achieving alignment of the input speech sequence and the text S26.

[0089] The BiLSTM and CTC algorithms calculate the weights at each moment and each node position, perform a softmax operation on the weights to obtain normalized output weights, and the viterbi algorithm performs dynamic decoding and output on the output results after the CTC algorithm is completed based on the output weights.

[0090] The Viterbi algorithm is used to first obtain the longest output path with the highest probability of achieving the output of all sequence elements. According to the Viterbi algorithm, for any element on the longest output path, the path from the start position of the sequence to the any element must be a subpath on the longest output path. Therefore, when aligning, the remaining paths with lower probabilities to the any element are deleted, which can effectively improve the calculation efficiency.

[0091] To sum up, when the target text "わたしはにほんじんです" is known, the present invention searches for the most likely output path consistent with the target text "わたしはにほんじんです" in the input sequence encoded by BiLSTM. Using the CTC decoder and viterbi alignment algorithm, the input speech signal and the target text "わたしはにほんじんです" are aligned at the level of kana pronunciation.

[0092] After alignment, the output speech sequence text is divided into speech segments in units of words S27. For example, in the embodiment, the target text "わたしは" "にほんじんです" is divided into four Japanese word voice wav. files: "わたし", "は", "にほんじん" and "です".

[0093] Then combine Figure 4 , the output word voice file after alignment of the first layer of deep neural network S2 is subjected to speech recognition based on the kana pronunciation at the word level. Figure 4 The figure shows a flowchart of the second-layer deep neural network processing data. The second-layer deep neural network model S3 uses an encoder-decoder based on sequence-to-sequence learning technology to solve the problem of unequal lengths between input sequences and output sequences. The encoder model uses CNN and BiLSTM, and the decoder model is an RNN based on the attention mechanism. The final output is in units of words.

[0094] The second-layer deep neural network speech recognition model uses multiple standard components of vision and natural language processing, and uses a complete grid encoder for the input aligned wav. file, which not only supports data from coarse to fine, but also can complete the left-to-right encoding of the data according to the characteristics of the speech file.

[0095] The second-layer deep neural network speech recognition model S3 processes the aligned speech files in units of words input by the first-layer deep neural network S2 in the following way: each time the speech file of only one Japanese word is recognized, such as the speech recognition of "にほんじん":

[0096] The input word audio file is first preprocessed into a 16000Hz wav. file, and the wav. file output after the alignment operation is subjected to MFCC feature extraction and converted into vector data S32, with a vector length of 13, for example: extracting the feature vector of the input voice file of the target user for the word "にほんじん", and drawing a feature spectrum image, the feature spectrum image is input into a multi-layer convolutional neural network (CNN) interlaced with a maximum pooling layer, and performing standard CNN convolution and pooling operations S33. The process of converting the MFCC feature vector is consistent with the MFCC process used by the first layer of the neural network.

[0097] When the extracted MFCC feature vector is convolved and max-pooled by CNN, the convolution result is generated in the non-fully connected layer of the network, which can retain the locality of the CNN function and realize the visualization of the historical process of the attention mechanism. When the CNN performs convolution operation on the feature vector, the local convolution, pooling, and activation function operation machine transitivity used are consistent with the standard CNN. After the CNN convolution operation, a series of rectangular vectors from left to right are output to form the grid feature spectrum S34 of the input word voice file, and the direction of the vector is consistent with the vector direction of the MFCC input CNN. The experiment was run on TensorFlow, with a maximum output size of 780×30, a maximum number of output kana elements of 60, and a gradient optimization algorithm using Adadelta.

[0098] The length and width of the output vector after CNN encoding are consistent, so that the rough speech signal can be converted into regular data information.

[0099] Next, the grid feature spectrum of the CNN hidden layer after convolution processing is input into BiLSTM (special RNN) for encoding operation S35. Since the grid feature spectrum input into the BiLSTM encoder contains important relative order information, the grid feature spectrum cannot be directly input into the BiLSTM encoder module, but the BiLSTM encoder needs to re-encode each row vector in the grid. The BiLSTM encoder recursively encodes the input grid feature spectrum and the hidden state of the model to the new hidden state of the model.

[0100] The encoding result of the hidden layer after BiLSTM encoding is output, and for the word "にほんじん", it is recorded as the semantic representation of the source text [h 1 ,h 2 ,h 3 ,h 4 ,h 5 ], at this time, the decoder based on the attention mechanism is used to represent the semantic i Decode and obtain the kana sequence at the word level. The processing method is to generate one kana each time and iterate.

[0101] The attention mechanism is actually the matching between the current output from the BiLSTM encoder and the input of the attention-based RNN decoder. The similarity between the two vectors is represented by u. The similarity u is input into the softmax for normalization to obtain the similarity α, which is used to indicate the weight given by the attention mechanism to the state of the i-th hidden layer encoder of the BiLSTM.

[0102] The normalized similarity α output by softmax is used to establish an attention mask (the dimension of the hidden layer is 256) based on the current state of the hidden layer of the BiLSTM encoder to give attention weight.

[0103] The entire decoding process is to continuously update the input z of the decoder RNN t In the process of solving the output of the attention mechanism, from z 0 <Start> Iterate uniformly to z T <End>, realize the semantic representation of the target user's speech text of the word "にほんじん" [h 1 ,h 2 ,h 3 ,h 4 ,h 5 ]Decode the output and output the target user’s word recognition speech symbols from the attention.

[0104] When performing the iterative solution to the attention mechanism output, use the z 0 and z t They will not be included in the calculation of pronunciation accuracy in the official output results.

[0105] At this time, the accuracy of the kana phoneme pronunciation is obtained by calculating the edit distance between the kana phonetic symbol sequence of the target user's voice input of the word "にほんじん" and the correct reference kana phonetic symbol sequence, and the accuracy of the kana phoneme pronunciation of the entire word is comprehensively calculated to obtain the correct pronunciation rate of the word.

[0106] Based on the obtained correct pronunciation rates of the four words "わたし", "は", "にほんじん" and "です", the correct pronunciation rates of the four words are then combined to complete the scoring of the target user's correct pronunciation of the sentence "わたしはにほんじんです" to obtain a pronunciation evaluation result, which is used for the target user's pronunciation practice.

[0107] In summary, the input Japanese aligned audio file in units of words is output as a sequence of Japanese kana phonetic symbols after completing speech recognition through the second layer of the neural network, which is used to evaluate the pronunciation of the target user.

[0108] An embodiment of the present invention HIA provides a computer medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any method recorded in the above method embodiment, and the above computer includes an electronic device.

[0109] The embodiment of the present invention further provides a computer program product, the computer program product includes a non-transitory computer-readable medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps of any method described in the method embodiment. The computer program product may be a software installation package or a small program, and the computer includes an electronic device.

[0110] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity of description, they are all marked as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described order of actions, because according to the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.

[0111] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0112] In the several embodiments of the present invention, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units in the above process, which is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be typical or other forms.

[0113] A person skilled in the art can understand that all or part of the steps in each method of the above embodiments can be completed by hardware related to program instructions. The program can be stored in a computer-readable memory, and the memory can include: a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0114] The embodiments of the present application are described in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. 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 method and application scope. In summary, the content of this specification should not be understood as a limitation of the present invention.

Claims

1. A Japanese pronunciation assessment method based on speech, It is characterized in that The method comprises: Pre-process the Japanese pronunciation audio of the target user for the known Japanese text as an input voice file; Build a two-layer deep neural network model and train the trainable parameters in RNN for speech recognition; Based on the trained two-layer deep neural network model, the preprocessed input voice file is input into the trained first-layer deep neural network model, and an alignment operation is performed between the input voice file and the known target text, and the aligned voice file is divided into voice files in units of words; The voice file in units of words continues to be input into the trained second-layer deep neural network model, and the voice recognition of kana phoneme pronunciation is performed on the input voice file in units of words to complete the accuracy calculation of kana pronunciation; After calculating the pronunciation accuracy of all the words, scoring the input voice file of the target user to obtain a target score, wherein the target score is used to evaluate the pronunciation accuracy of the target user; The two-layer deep neural network model consists of the first-layer deep neural network model that performs an alignment operation and the second-layer deep neural network model that performs a speech recognition operation; The first layer of the deep neural network model uses BiLSTM as the encoder, and the CTC algorithm and Viterbi alignment algorithm as the decoder. The second-layer deep neural network model uses CNN for convolution operations, BiLSTM as the encoder, and RNN based on the attention mechanism as the decoder. The first-layer deep neural network model and the second-layer deep neural network model are trained on TensorFlow; The preprocessed input voice file is input into the first layer of the deep neural network model to implement an alignment operation between the voice file and the known target text, specifically comprising the following steps: The characteristic spectrum image drawn after completing speech feature extraction through MFCC is input into a bidirectional BiLSTM encoder for encoding, and after encoding, the characteristic spectrum of the speech signal input by the target user can be encoded into the hidden layer of the neural network; Then, the CTC model is used to decode the encoded hidden layer speech vector, which specifically includes the following operations: First, the probabilities of all possible output paths are calculated based on the encoded results and the known target text; Then, the viterbi alignment model is used to find the output path with the highest probability among all possible paths output in the CTC model, so as to achieve alignment between the input voice file and the known target text; The aligned speech files are segmented into words, and finally the first layer of the deep neural network model is output as word speech files.

2. A Japanese pronunciation evaluation method based on speech according to claim 1, Features: The speech file in units of words is input into the second-layer deep neural network model to perform speech recognition and evaluation operations, which specifically includes the following steps: Similarly, the speech file in units of words is converted into MFCC, feature values ​​are extracted, and a feature spectrum image is drawn; The characteristic spectrum image is input into the convolution operation in the CNN to obtain a grid characteristic spectrum; The grid feature spectrum is input into a bidirectional BiLSTM encoder, and each row is re-encoded to achieve mapping the grid feature spectrum to the hidden layer encoding into a new hidden state, thereby completing the encoding operation; The encoded hidden layer result is input into the RNN of the attention mechanism to realize decoding, and obtain the kana sequence of the input word speech; According to the edit distance between the kana in the kana sequence output by the attention mechanism and the kana in the reference word sequence, the pronunciation accuracy of each kana phoneme is obtained, thereby obtaining the pronunciation accuracy of the word, and finally obtaining the pronunciation accuracy of the target user's input speech and the Japanese pronunciation evaluation.

3. A Japanese pronunciation evaluation method based on speech according to claim 1, Features: The first-layer deep neural network model and the second-layer deep neural network model need to be trained separately, using the correct pronunciation of a standard Japanese announcer and the correct pronunciation of an ordinary user scored by the HMM model as the training database of the model. All words and pronunciations use standard Japanese Hiragana pronunciations. When using the database for training, each sentence uses a Japanese word segmentation system to complete the word segmentation of Japanese sentences and the segmentation of the corresponding Hiragana sequence. The double-layer deep neural network model is trained for 10,000 sentences. The target user can produce more than 3,000 sentences and 15,000 words of pronunciation every day. The collection of the sentence and word data can also be used for training the two-layer deep neural network model to improve the speech recognition effect of the model.

4. A Japanese pronunciation evaluation method based on speech according to claim 1, Features: Before the input voice file of the target user is input into the double-layer deep neural network for processing, it is necessary to pre-process the input signal, which mainly includes the following steps: The high-frequency part of the input voice file of the target user is pre-emphasized; the signal after the pre-emphasis of the high-frequency part is windowed and the signal is smoothed; and the smoothed voice signal is discrete Fourier transformed.

5. A Japanese pronunciation evaluation system based on speech, Features: The method comprises a memory and a processor, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed and called by the processor, and the programs include instructions for executing the steps in the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Pronunciation evaluation method

    CN108766415A

  • Medical interaction method and system based on voice recognition

    CN110570868A

  • Speech evaluation method and device

    CN110600052A

  • Voice evaluation method and device, storage medium and electronic device

    CN110782921A

  • Customizable speech recognition system

    US20200327884A1