Pronunciation evaluation method, device, equipment, storage medium and computer program product

By fusing audio frames and phoneme features into multilingual speech data, the problems of low efficiency and low accuracy in multilingual pronunciation evaluation are solved, achieving efficient and accurate multilingual pronunciation evaluation.

CN117012233BActive Publication Date: 2026-11-27TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211170416.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-23
Publication Date
2026-11-27
Estimated Expiration
2042-09-23

AI Technical Summary

Technical Problem

Existing technologies are inefficient and inaccurate in multilingual pronunciation assessment, requiring the construction of different models for different languages.

Method used

By performing audio frame encoding and phoneme encoding on speech data containing at least two languages, audio frame features and phoneme features are obtained, and feature fusion is performed to obtain target features, so as to comprehensively evaluate the pronunciation of multiple languages.

Benefits of technology

It improves the efficiency and accuracy of pronunciation evaluation of multilingual speech data, and achieves efficient and accurate evaluation of multiple languages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117012233B_ABST
    Figure CN117012233B_ABST
Patent Text Reader

Abstract

The application provides a pronunciation evaluation method and device, electronic equipment, computer readable storage medium and computer program product, comprising: obtaining speech data to be evaluated including at least two languages, the speech data including at least two continuous audio frame sequences, each audio frame sequence corresponds to a language, and each audio frame sequence includes at least two audio frames;Audio frame coding is carried out on the speech data, and the audio frame features of each audio frame in the speech data are obtained;At least two phonemes of the speech data are respectively coded, and the phoneme features of the speech data are obtained;The audio frame features of the speech data and the phoneme features of the speech data are fused to obtain target features;Based on the target features, the pronunciation of the speech data is evaluated to obtain the comprehensive evaluation result of the pronunciation of at least two languages. Through the application, the efficiency and accuracy of pronunciation evaluation of multi-language speech data can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet technology, and in particular to a pronunciation evaluation method, apparatus, electronic device, computer-readable storage medium, and computer program product. Background Technology

[0002] Current pronunciation assessment technologies primarily rely on Goodness of Pronunciation (GOP) or deep network-based approaches, and often only assess a single language. When assessing multiple languages, different models are needed for each language. However, this approach, requiring different models for each language, leads to low assessment efficiency and negatively impacts the accuracy of the results. Summary of the Invention

[0003] This application provides a pronunciation evaluation method, apparatus, electronic device, computer-readable storage medium, and computer program product, which can improve the efficiency and accuracy of pronunciation evaluation of multilingual speech data.

[0004] The technical solution of this application embodiment is implemented as follows: This application provides a pronunciation evaluation method, including: Acquire speech data to be evaluated, including at least two languages, wherein the speech data includes at least two consecutive audio frame sequences, each audio frame sequence corresponding to one language, and each audio frame sequence includes at least two audio frames; The speech data is encoded into audio frames to obtain the audio frame features of each audio frame in the speech data; At least two phonemes of the speech data are phoneme encoded to obtain the phoneme features of the speech data; wherein, the phonemes are obtained by combining at least two audio frame features; The target features are obtained by fusing the audio frame features and phoneme features of the speech data. Based on the target features, the speech data is evaluated for pronunciation to obtain the evaluation result of the speech data. The evaluation result is a comprehensive evaluation result of the pronunciation of the at least two languages.

[0005] This application provides a pronunciation evaluation device, including: The acquisition module is used to acquire speech data to be evaluated, including at least two languages. The speech data includes at least two consecutive audio frame sequences, each audio frame sequence corresponding to a language, and each audio frame sequence includes at least two audio frames. An audio encoding module is used to encode the speech data into audio frames to obtain the audio frame features of each audio frame in the speech data. A phoneme encoding module is used to encode at least two phonemes of the speech data to obtain the phoneme features of the speech data; wherein, the phonemes are obtained by combining at least two audio frame features; The feature fusion module is used to fuse the audio frame features and phoneme features of the speech data to obtain target features. The pronunciation evaluation module is used to evaluate the pronunciation of the speech data based on the target features, and obtain the evaluation result of the speech data. The evaluation result is a comprehensive evaluation result of the pronunciation of the at least two languages.

[0006] In the above scheme, the feature fusion template is further used to obtain the weights of the features of each audio frame, and to perform a weighted summation of the features of each audio frame based on the weights to obtain the audio features of the speech data; and to perform feature fusion on the audio features and phoneme features of the speech data to obtain the target features.

[0007] In the above scheme, the feature fusion template is further used to, based on an attention mechanism, interact the phoneme features corresponding to each phoneme with the audio frame features of the speech data to obtain the audio features corresponding to each phoneme; and to perform feature fusion on the audio features corresponding to each phoneme and the phoneme features of the speech data to obtain the target features.

[0008] In the above scheme, the feature fusion template is further used to interact with the phoneme features corresponding to the phoneme and the audio frame features of the speech data respectively based on the attention mechanism to obtain the weight of each audio frame feature for any phoneme feature; based on the weight, the audio frame features corresponding to the same phoneme feature are weighted and summed to obtain the audio features corresponding to each phoneme.

[0009] In the above scheme, the feature fusion template is further used to perform feature fusion on the audio features corresponding to each phoneme and the phoneme features of the corresponding phoneme to obtain the fused features of each phoneme; to perform feature concatenation on the fused features of each phoneme to obtain the target feature; or, to perform feature concatenation on the audio features corresponding to each phoneme to obtain the target audio feature; to perform feature concatenation on the phoneme features of each phoneme to obtain the target phoneme feature; and to perform feature fusion on the target audio feature and the target phoneme feature to obtain the target feature.

[0010] In the above scheme, the device further includes a combination module, which is used to acquire phoneme alignment information, the phoneme alignment information including the correspondence between the phoneme and the audio frame; and to combine the features of the audio frame based on the phoneme alignment information to obtain at least two phonemes of the speech data.

[0011] In the above scheme, the speech data is obtained by collecting audio of the target object reading text including at least two languages; the pronunciation evaluation module is further used to evaluate the speech data based on the target features to obtain a pronunciation score corresponding to the speech data, the pronunciation score being used to indicate the accuracy of the target object's pronunciation when reading the text; and the pronunciation score is used as the evaluation result of the speech data.

[0012] In the above scheme, the pronunciation evaluation module is further used to evaluate the pronunciation of the content corresponding to each language in the speech data based on the target features, and obtain the pronunciation score of the content corresponding to each language.

[0013] In the above scheme, the acquisition module is further configured to receive a pronunciation evaluation request for the voice data sent by the terminal, the pronunciation evaluation request being sent by the terminal in response to a pronunciation evaluation instruction for the voice data; parse the pronunciation evaluation request to obtain the voice data carried in the pronunciation evaluation request; the device further includes a sending module, the sending module being configured to send the evaluation result of the voice data to the terminal so that the terminal can display the evaluation result.

[0014] In the above scheme, the device is applied to a pronunciation evaluation model, which includes an audio encoding layer, a phoneme encoding layer, a feature fusion layer, and an output layer. The audio encoding module is further configured to perform audio frame encoding on the speech data through the audio encoding layer to obtain audio frame features of each audio frame in the speech data. The phoneme encoding module is further configured to perform phoneme encoding on at least two phonemes of the speech data through the phoneme encoding layer to obtain phoneme features of the speech data. The feature fusion module is further configured to perform feature fusion on the audio frame features and phoneme features of the speech data through the feature fusion layer to obtain target features. The pronunciation evaluation module is further configured to perform pronunciation evaluation on the speech data based on the target features through the output layer to obtain the evaluation result of the speech data.

[0015] In the above scheme, the device further includes a training module, which is used to acquire multilingual speech samples carrying a first label, a second label, and a third label. The first label indicates the true evaluation result of the multilingual speech sample, the second label indicates at least two real languages ​​corresponding to the multilingual speech sample, and the third label indicates the speech-to-text corresponding to the multilingual speech sample. The device performs audio frame encoding on the multilingual speech samples through the audio encoding layer to obtain the audio frame features of each audio frame in the multilingual speech samples. Finally, the device performs phoneme encoding on at least two phonemes of the multilingual speech samples through the phoneme encoding layer to obtain the multilingual speech samples. The phoneme features of the multilingual speech sample are analyzed. The feature fusion layer fuses the audio frame features and phoneme features of the multilingual speech sample to obtain target features. The output layer, based on the target features, performs pronunciation evaluation on the multilingual speech sample to obtain a sample evaluation result, which includes the language prediction result, score prediction result, and phoneme recognition sequence of the multilingual speech sample. Based on the first label, the second label, the third label, and the sample evaluation result, the model parameters of the pronunciation evaluation model are updated to perform pronunciation evaluation on the speech data to be evaluated based on the updated pronunciation evaluation model.

[0016] This application provides an electronic device, including: Memory, used to store executable instructions; The processor, when executing executable instructions stored in the memory, implements the pronunciation evaluation method provided in the embodiments of this application.

[0017] This application provides a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are executed by a processor, the processor will execute the pronunciation evaluation method provided in this application.

[0018] This application provides a computer program product comprising a computer program or computer-executable instructions stored in a computer-readable storage medium. The processor of an electronic device reads the computer-executable instructions from the computer-readable storage medium and executes the computer-executable instructions, causing the electronic device to perform the pronunciation evaluation method provided in this application.

[0019] The embodiments of this application have the following beneficial effects: By fusing audio frame features obtained from audio frame encoding of speech data containing at least two languages ​​with phoneme features obtained from separate phoneme encoding of at least two phonemes in the speech data, a target feature is obtained. Based on this target feature, the speech data containing at least two languages ​​is evaluated, yielding an evaluation result. Thus, by using target features determined from the audio frame features and phoneme features of multilingual speech data to evaluate multilingual speech data, not only can the efficiency of pronunciation evaluation of multilingual speech data be effectively improved, but the accuracy of pronunciation evaluation of multilingual speech data can also be improved. Attached Figure Description

[0020] Figure 1 This is a schematic diagram of the architecture of the pronunciation evaluation system 100 provided in the embodiments of this application; Figure 2 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application; Figure 3 This is a schematic flowchart of the pronunciation evaluation method provided in the embodiments of this application; Figure 4 This is a schematic diagram of the interface for collecting voice data to be evaluated provided in an embodiment of this application; Figure 5 This is a schematic diagram of the interface for collecting voice data to be evaluated provided in an embodiment of this application; Figure 6 This is a schematic diagram of the interface for collecting voice data to be evaluated provided in an embodiment of this application; Figure 7 This is a schematic diagram of the interface for collecting voice data to be evaluated provided in an embodiment of this application; Figure 8 This is a schematic diagram of the structure of the pronunciation evaluation model provided in the embodiments of this application; Figure 9 This is a schematic diagram illustrating the evaluation results provided in the embodiments of this application; Figure 10 This is a flowchart illustrating the training process of the pronunciation evaluation model provided in the embodiments of this application; Figure 11 This is a schematic flowchart of the pronunciation evaluation method provided in the embodiments of this application; Figure 12 This is a technical architecture diagram of the pronunciation evaluation method provided in the embodiments of this application; Figure 13 This is a schematic diagram comparing the effects of the models provided in the embodiments of this application. Detailed Implementation

[0021] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0022] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0023] In the following description, the terms "first, second, third" are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first, second, third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.

[0024] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0025] Before providing a further detailed description of the embodiments of this application, the nouns and terms involved in the embodiments of this application will be explained, and the nouns and terms involved in the embodiments of this application shall be interpreted as follows.

[0026] 1) Automatic Speech Recognition (ASR) is a process that converts audio into text.

[0027] 2) Client: Also known as user terminal, it refers to the program that provides local services to users in contrast to the server. Except for some applications that can only run locally, it is generally installed on ordinary client machines and needs to cooperate with the server to run. That is, there needs to be a corresponding server and service program in the network to provide the corresponding services. Thus, a specific communication connection needs to be established between the client and the server to ensure the normal operation of the application.

[0028] 3) LSTM (Long Short-Term Memory) model, a type of time-recurrent neural network that can be used for sequence modeling.

[0029] 4) Hidden Markov Model (HMM) is a statistical model used to describe a Markov process with hidden unknown parameters. It is used to determine the hidden parameters of the process from the observable parameters, and then use these parameters for further analysis, such as pattern recognition.

[0030] 5) Convolutional Neural Network (CNN): A type of feedforward neural network whose artificial neurons can respond to a portion of the surrounding units within their coverage area, exhibiting excellent performance in large-scale image processing. A CNN consists of one or more convolutional layers and a fully connected layer at the top (corresponding to a classic neural network), and also includes associated weights and pooling layers.

[0031] 6) Attention mechanism, a special structure embedded in machine learning models, is used to automatically learn and calculate the contribution of input data to output data.

[0032] 7) An encoder, which takes a sequence of variable length as input and converts it into an encoded state with a fixed shape.

[0033] 8) Native data, in this invention, refers to the pronunciation data of native English speakers.

[0034] 9) Second language learner, in this invention, refers to a person who learns two languages, such as learners of Chinese and English.

[0035] 10) CTC (Connectionist Temporal Classification) is a method that avoids manual alignment of input and output, suitable for applications such as speech recognition or OCR. In this invention, it is mainly applied to phoneme recognition.

[0036] 11) Gaussian Mixture Model (GMM) is a clustering algorithm that uses a Gaussian distribution as the parameter model and employs the Expectation Maximization (EM) algorithm for training.

[0037] 12) Fbank, a speech feature extraction method, is the most common and effective speech feature extraction algorithm because its unique cepstral-based extraction method is more in line with human auditory principles. Fbank feature extraction is equivalent to MFCC without the final discrete cosine transform (lossy transform). Compared to MFCC features, Fbank features retain more of the original speech data.

[0038] 13) Mel-frequency cepstral coefficients (MFCC) are a type of spectral feature used for speech data feature extraction and reduction of computational dimensionality. Mel frequency is proposed based on the characteristics of human hearing and has a non-linear correspondence with Hertz frequency. Mel-frequency cepstral coefficients are Hertz spectral features calculated using the correspondence between Mel frequency and Hertz frequency.

[0039] 14) The Pearson correlation coefficient is used to measure whether two data sets are on the same line. It is used to measure the linear relationship between interval variables.

[0040] See Figure 1 , Figure 1 This is a schematic diagram of the architecture of the pronunciation evaluation system 100 provided in this application embodiment. To realize the application scenario of pronunciation evaluation (for example, the application scenario of pronunciation evaluation can be that after the user opens the pronunciation evaluation client, an interface including multilingual text is presented so that the user can read aloud according to the text, and the user's reading is recorded to obtain the corresponding multilingual speech data, thereby performing pronunciation evaluation on the multilingual speech data and obtaining the evaluation result), the terminal (terminal 400 is shown as an example) is connected to the server 200 through the network 300. The network 300 can be a wide area network or a local area network, or a combination of both. The terminal 400 is used for the user to use the client 401 and display on the display interface (display interface 401-1 is shown as an example). The terminal 400 and the server 200 are connected to each other through a wired or wireless network.

[0041] The terminal 400 is used to: acquire speech data to be evaluated, including at least two languages, wherein the speech data includes at least two consecutive audio frame sequences, each audio frame sequence corresponds to one language, and each audio frame sequence includes at least two audio frames; and send the speech data to the server 200. Server 200 is used to: receive voice data sent by terminal 400; perform audio frame encoding on the voice data to obtain audio frame features of each audio frame in the voice data; perform phoneme encoding on at least two phonemes of the voice data to obtain phoneme features of the voice data; wherein, a phoneme is obtained by combining at least two audio frame features; perform feature fusion on the audio frame features and phoneme features of the voice data to obtain target features; perform pronunciation evaluation on the voice data based on the target features to obtain evaluation results of the voice data; and send the evaluation results of the voice data to terminal 400. Terminal 400 is used to receive the evaluation results of voice data sent by server 200 and present the evaluation results of voice data. The evaluation results are a comprehensive evaluation of the pronunciation of at least two languages.

[0042] In some embodiments, server 200 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. Terminal 400 can be a smartphone, tablet, laptop, desktop computer, set-top box, smart voice interaction device, smart home appliance, vehicle terminal, aircraft, and mobile devices (e.g., mobile phones, portable music players, personal digital assistants, dedicated messaging devices, portable gaming devices, smart speakers, and smartwatches), but is not limited to these. Terminal devices and servers can be directly or indirectly connected via wired or wireless communication, which is not limited in this embodiment.

[0043] See Figure 2 , Figure 2 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. In practical applications, the electronic device can be... Figure 1 The server 200 or terminal 400 shown are described in the following document. Figure 2 , Figure 2 The illustrated electronic device includes at least one processor 410, a memory 450, at least one network interface 420, and a user interface 430. The various components in terminal 400 are coupled together via a bus system 440. It is understood that the bus system 440 is used to implement communication between these components. In addition to a data bus, the bus system 440 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in… Figure 2 The general labeled all buses as Bus System 440.

[0044] Processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0045] User interface 430 includes one or more output devices 431 that enable the presentation of media content, including one or more speakers and / or one or more visual displays. User interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0046] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state storage, hard disk drives, optical disk drives, etc. The memory 450 may optionally include one or more storage devices physically located away from the processor 410.

[0047] The memory 450 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), and the volatile memory may be random access memory (RAM). The memory 450 described in this application embodiment is intended to include any suitable type of memory.

[0048] In some embodiments, memory 450 is capable of storing data to support various operations, examples of which include programs, modules, and data structures or subsets or supersets thereof, as illustrated below.

[0049] Operating system 451 includes system programs for handling various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, driver layer, etc., for implementing various basic business functions and handling hardware-based tasks; The network communication module 452 is used to reach other electronic devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 including: Bluetooth, WiFi, and Universal Serial Bus (USB), etc. Presentation module 453 is configured to enable the presentation of information (e.g., a user interface for operating peripheral devices and displaying content and information) via one or more output devices 431 associated with user interface 430 (e.g., a display screen, a speaker, etc.). The input processing module 454 is used to detect and translate one or more user inputs or interactions from one or more input devices 432.

[0050] In some embodiments, the apparatus provided in this application can be implemented in software. Figure 2A pronunciation evaluation device 455 stored in memory 450 is shown. This device can be software in the form of programs and plugins, and includes the following software modules: an acquisition module 4551, an audio encoding module 4552, a phoneme encoding module 4553, a feature fusion module 4554, and a pronunciation evaluation module 4555. These modules are logically connected and can therefore be arbitrarily combined or further separated according to their implemented functions. The functions of each module will be described below.

[0051] In other embodiments, the apparatus provided in this application can be implemented in hardware. As an example, the pronunciation evaluation apparatus provided in this application can be a processor in the form of a hardware decoding processor, which is programmed to execute the pronunciation evaluation method provided in this application. For example, the processor in the form of a hardware decoding processor can be one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.

[0052] In some embodiments, the terminal or server can implement the pronunciation evaluation method provided in this application by running a computer program. For example, the computer program can be a native program or software module in an operating system; it can be a native application (APP), that is, a program that needs to be installed in the operating system to run, such as an instant messaging APP or a web browser APP; it can also be a mini-program, that is, a program that only needs to be downloaded into a browser environment to run; or it can be a mini-program that can be embedded in any APP. In short, the above-mentioned computer program can be any form of application, module or plugin.

[0053] Based on the above description of the pronunciation evaluation system and electronic device provided in the embodiments of this application, the pronunciation evaluation method provided in the embodiments of this application is described below. In actual implementation, the pronunciation evaluation method provided in the embodiments of this application can be implemented by a terminal or a server alone, or by a terminal and a server working together, so that... Figure 1 The following description uses the example of server 200 executing the pronunciation evaluation method provided in this application embodiment alone. See also... Figure 3 , Figure 3 This is a schematic flowchart of the pronunciation evaluation method provided in the embodiments of this application, which will be combined with... Figure 3 The steps shown are explained.

[0054] Step 101: The server obtains speech data to be evaluated, which includes at least two languages. The speech data includes at least two consecutive audio frame sequences, each audio frame sequence corresponding to one language, and each audio frame sequence includes at least two audio frames.

[0055] It should be noted that at least two languages ​​are required, such as English and Chinese.

[0056] In practice, the server first acquires the voice data to be evaluated sent by the terminal. This voice data can be pre-stored locally on the terminal or obtained from external sources (such as the internet). Alternatively, it can be collected in real-time by the terminal, for example, through its recording device. Specifically, the terminal first displays a voice data acquisition function, and then, in response to trigger operations such as clicks or long presses, acquires the voice data to be evaluated. It should be noted that when the terminal displays text to be read aloud, the acquired voice data can be the target object's reading of the displayed text; when the terminal does not display text, the acquired voice data can be the target object's direct speech.

[0057] As an example, see Figure 4 , Figure 4 This is a schematic diagram of the interface for collecting voice data to be evaluated provided in an embodiment of this application, based on Figure 4 The dashed box 401 represents the data collection function. In response to a click action by the target object on this function, recording of the target object's input begins. Figure 4 The audio data of the text being read aloud, see further, see Figure 5 , Figure 5 This is a schematic diagram of the interface for collecting voice data to be evaluated provided in an embodiment of this application, based on Figure 5 The dashed box 501 contains the data acquisition end function. Here, when the voice data recording process begins, Figure 4 The data collection function will be converted into Figure 5 The system includes a "Acquisition End" function, which responds to trigger operations such as clicking the "Acquisition End" function to end the acquisition of voice data and send the acquired voice data to the server.

[0058] It should be noted that the data collection function and the end data collection function can be displayed simultaneously, such as... Figure 6 As shown, Figure 6 This is a schematic diagram of the interface for collecting voice data to be evaluated provided in an embodiment of this application, based on Figure 6The dashed box 601 contains the data acquisition function and the data acquisition end function, respectively. This allows the recording of the target object's actions in response to a click on the data acquisition function to begin recording the target object's actions. Figure 6 The system reads aloud the text. When the reading ends, in response to a trigger operation such as a click operation on the end-of-collection function, the acquisition of the voice data is terminated and the acquired voice data is sent to the server.

[0059] As another example, see Figure 7 , Figure 7 This is a schematic diagram of the interface for collecting voice data to be evaluated provided in an embodiment of this application, based on Figure 7 The dashed box 701 represents the data collection function. In response to a long press operation by the target object on this function, recording of the target object's input begins. Figure 7 The voice data of the text being read aloud is terminated in response to the voice data acquisition termination command, so that the acquired voice data is sent to the server. Here, the voice data acquisition termination command can be triggered by the target object ending the long press operation of the acquisition function item, such as releasing the operation.

[0060] In practice, after the collection of voice data is completed, the collected voice data can be sent directly to the server. It can also present evaluation function items for evaluating the voice data, and respond to the trigger operation such as the click operation for the evaluation function item, and then send the collected voice data to the server again.

[0061] It should be noted that in this application embodiment, user voice data and other related data are involved. When this application embodiment is applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0062] Step 102: Perform audio frame encoding on the speech data to obtain the audio frame features of each audio frame in the speech data.

[0063] In some embodiments, after obtaining the audio frame features of each audio frame in the speech data, phoneme alignment information can also be obtained. Here, the phoneme alignment information includes the correspondence between the phonemes and the audio frames, so that the audio frame features are combined based on the phoneme alignment information to obtain at least two phonemes of the speech data.

[0064] In some embodiments, the audio features of the speech data can also be determined using a pronunciation evaluation model. This pronunciation evaluation model includes an audio coding layer, a phoneme coding layer, a feature fusion layer, and an output layer. See [link to relevant documentation]. Figure 8 , Figure 8This is a schematic diagram of the structure of the pronunciation evaluation model provided in the embodiments of this application, based on Figure 8 The audio encoding layer encodes the audio frames of the speech data to be evaluated, thereby obtaining the audio frame features of each audio frame in the speech data.

[0065] Step 103: For at least two phonemes of the speech data, phoneme encoding is performed to obtain the phoneme features of the speech data; wherein, the phonemes are obtained by combining the features of at least two audio frames.

[0066] In practice, after obtaining at least two phonemes of the speech data based on the audio frame features, each phoneme is encoded separately to obtain the phoneme features of the speech data.

[0067] In some embodiments, phonetic features of speech data can also be determined using a pronunciation evaluation model, see here. Figure 8 ,based on Figure 8 By using a phoneme coding layer, at least two phonemes of the speech data are encoded separately to obtain the phoneme features of the speech data.

[0068] Step 104: Perform feature fusion on the audio frame features and phoneme features of the speech data to obtain the target features.

[0069] In practice, after obtaining the audio frame features and phoneme features of the speech data, it is necessary to fuse these features. The following section explains the process of fusing the audio frame features and phoneme features of the speech data.

[0070] In some embodiments, the process of feature fusion of audio frame features and phoneme features of speech data specifically includes obtaining the weights of each audio frame feature, and performing a weighted summation of the audio frame features based on the weights to obtain the audio features of the speech data, i.e. ...Formula (1); Among them, in formula (1) Here, k represents the weight of each audio frame feature, and k is the number of audio frames. The audio frame features are then used as the basis for feature fusion. The audio features and phoneme features of the speech data are then fused to obtain the target features.

[0071] In other embodiments, for each phoneme, based on an attention mechanism, the phoneme features corresponding to the phoneme are interacted with the audio frame features of the speech data to obtain the audio features corresponding to each phoneme; the audio features corresponding to each phoneme and the phoneme features of the speech data are fused to obtain the target features.

[0072] In practical implementation, based on the attention mechanism, the phoneme features corresponding to each phoneme interact with the features of each audio frame of the speech data to obtain the audio features corresponding to each phoneme. Specifically, this includes, based on the attention mechanism, interacting with the phoneme features corresponding to each phoneme with the features of each audio frame of the speech data to obtain the weight of each audio frame feature for any phoneme feature, i.e. ...Formula (2); In formula (2), Q is the query vector, which is the deep feature representation of each phoneme, i.e., the phoneme feature; K is the key vector, which is the deep feature representation of each audio frame, i.e., the audio frame feature; and d k Let K and Q be the vector dimensions. Then, based on the weights, the features of each audio frame corresponding to the same phoneme feature are weighted and summed to obtain the audio feature corresponding to each phoneme, i.e. ...Formula (3); In formula (2), V is the value vector, which represents the depth features of each audio frame, i.e., the audio frame features. Thus, the audio features corresponding to each phoneme can be determined through formulas (2) and (3).

[0073] In practice, after determining the audio features corresponding to each phoneme, feature fusion is performed on the audio features corresponding to each phoneme and the phoneme features of the speech data, i.e. ...Formula (4); Among them, in formula (4) The audio features corresponding to each phoneme, Given the phoneme features of the speech data, the target features are obtained based on formula (4). There are multiple processes for fusing the audio features corresponding to each phoneme and the phoneme features of the speech data to obtain the target features. Next, the process of fusing the audio features corresponding to each phoneme and the phoneme features of the speech data to obtain the target features will be explained.

[0074] In some embodiments, the process of fusing the audio features corresponding to each phoneme and the phoneme features of the speech data to obtain the target features specifically includes fusing the audio features corresponding to each phoneme with the phoneme features of the corresponding phoneme to obtain the fused features corresponding to each phoneme; and concatenating the fused features corresponding to each phoneme to obtain the target features.

[0075] In other embodiments, the process of fusing the audio features corresponding to each phoneme and the phoneme features of the speech data to obtain the target features specifically includes: concatenating the audio features corresponding to each phoneme to obtain the target audio features; concatenating the phoneme features of each phoneme to obtain the target phoneme features; and fusing the target audio features and the target phoneme features to obtain the target features.

[0076] In some embodiments, target features can also be determined using a pronunciation assessment model, see here. Figure 8 ,based on Figure 8 The feature fusion layer fuses the audio frame features and phoneme features of the speech data to obtain the target features.

[0077] Step 105: Based on the target features, perform pronunciation evaluation on the speech data to obtain the evaluation results of the speech data. The evaluation results are a comprehensive evaluation of the pronunciation of at least two languages.

[0078] It should be noted that speech data can be obtained by collecting audio recordings of the target object reading text in at least two languages. Based on this, and based on target features, the speech data is evaluated for pronunciation to obtain the evaluation results. Specifically, this includes evaluating the speech data for pronunciation based on target features to obtain a pronunciation score for the corresponding speech data. The pronunciation score is used to indicate the accuracy of the target object's pronunciation when reading the text; the pronunciation score is used as the evaluation result of the speech data. In practical implementation, the process of evaluating the speech data for pronunciation based on target features to obtain a pronunciation score for the corresponding speech data specifically involves evaluating the pronunciation of the content in the speech data for each language based on the target features, and obtaining pronunciation scores for the content in each language.

[0079] For example, when the speech data is a mixture of Chinese and English, the pronunciation of the Chinese and English parts of the speech data is evaluated separately to obtain pronunciation scores for each language. Then, based on these pronunciation scores, the pronunciation score of the corresponding speech data is determined. Here, the method for determining the pronunciation score of the corresponding speech data based on the pronunciation scores for each language can be either a weighted sum of the pronunciation scores for each language or an average of the pronunciation scores for each language. The methods for determining the pronunciation score of the corresponding speech data based on the pronunciation scores for each language include, but are not limited to, the two methods described above. This application does not limit the specific methods used in this embodiment.

[0080] In some embodiments, the evaluation results of speech data can also be determined using a pronunciation evaluation model, see here. Figure 8 ,based on Figure 8 The output layer performs pronunciation evaluation on the speech data based on the target features, and obtains the evaluation results of the speech data.

[0081] In some embodiments, before audio frame encoding is performed on the speech data to be evaluated to obtain the audio frame features of each audio frame in the speech data, a pronunciation evaluation request for the speech data is sent by the receiving terminal. The pronunciation evaluation request is sent by the terminal in response to a pronunciation evaluation instruction for the speech data. The pronunciation evaluation request is parsed to obtain the speech data carried in the pronunciation evaluation request, and pronunciation evaluation is performed on the speech data carried in the pronunciation evaluation request. The evaluation result of the speech data is then sent to the terminal so that the terminal can display the evaluation result. For example, see [link to example]. Figure 9 , Figure 9 This is a schematic diagram illustrating the evaluation results provided in the embodiments of this application, based on... Figure 9 After the evaluation results of the voice data are sent to the terminal, the terminal will display the evaluation results as shown in the dashed box 901.

[0082] It should be noted that the pronunciation evaluation request for the voice data sent by the terminal can be sent automatically when voice data acquisition ends, or it can be sent in response to a triggering operation such as a click operation on the terminal when voice data acquisition ends, where an evaluation function for evaluating the acquired voice data is presented on the terminal. Thus, if the target audience is not satisfied with the acquired voice data, they can re-record; if the target audience is satisfied with the acquired voice data, pronunciation evaluation can then be performed on the acquired voice data based on the presented evaluation function.

[0083] In some embodiments, when evaluating speech data based on a pronunciation evaluation model, the pronunciation evaluation model also needs to be trained. Here, taking the pronunciation evaluation model running on a server as an example, see [link to relevant documentation]. Figure 10 , Figure 10 This is a flowchart illustrating the training process of the pronunciation evaluation model provided in the embodiments of this application, based on... Figure 10 Before step 101, the following can also be performed: Step 201: Obtain multilingual speech samples carrying the first label, the second label, and the third label.

[0084] In practice, the multilingual speech samples obtained can be speech data with better pronunciation among second speakers (e.g., out of 100 points, a score of 80 or higher is considered good pronunciation). Specifically, a score threshold of 80 points for good pronunciation can be set in advance, so that speech data with actual scores greater than or equal to this score threshold can be used as multilingual speech samples.

[0085] It should be noted that the first label here is used to indicate the actual evaluation result of the multilingual speech sample, such as the actual score; the second label is used to indicate at least two actual languages ​​corresponding to the multilingual speech sample, such as English or Chinese; and the third label is used to indicate the speech-to-text corresponding to the multilingual speech sample, such as the corresponding reading text.

[0086] Step 202: Through the audio coding layer, audio frames are encoded in the multilingual speech samples to obtain the audio frame features of each audio frame in the multilingual speech samples.

[0087] In practice, when encoding audio frames of multilingual speech samples through the audio coding layer, at least two phonemes of the multilingual speech samples are also determined. Specifically, phoneme alignment information is obtained, which includes the correspondence between phonemes and audio frames. Based on the phoneme alignment information, the audio frame features are combined to obtain at least two phonemes of the speech data.

[0088] It should be noted that the phoneme alignment information here is determined based on a pre-constructed phoneme table, which is obtained by merging phonemes from multiple languages. For example, the basic unit of pronunciation in Chinese is the initial consonant and final vowel, while the basic unit of pronunciation in English is the phoneme. Therefore, the initial consonant and final vowel table and the English phoneme table are merged. For those phonemes with the same pronunciation, one of them needs to be removed. For example, the initial consonant 'b' in Chinese and the phoneme 'B' in English have the same pronunciation, so they need to be merged into one sound. In this way, the phoneme discrimination capability when determining the phonemes of speech data is improved based on this phoneme table.

[0089] Step 203: Through the phoneme coding layer, at least two phonemes of the multilingual speech sample are phoneme coded respectively to obtain the phoneme features of the multilingual speech sample.

[0090] Step 204: Through the feature fusion layer, the audio frame features and phoneme features of the multilingual speech samples are fused to obtain the target features.

[0091] Step 205: Through the output layer, based on the target features, the pronunciation of the multilingual speech samples is evaluated to obtain the sample evaluation results of the multilingual speech samples.

[0092] The sample evaluation results include language prediction results, score prediction results, and phoneme recognition sequences for multilingual speech samples.

[0093] It should be noted that the phoneme recognition sequence here is obtained based on a phoneme table. Specifically, when the multilingual speech sample is a sentence, the probability of obtaining the corresponding phoneme recognition sequence for that multilingual speech sample through this pronunciation evaluation model is determined, i.e. ...Formula (5); In formula (5), X represents the audio frame features corresponding to the multilingual speech samples, and y _t Let Y be the predicted phoneme result for frame t, Y be the transcribed text corresponding to the multilingual speech sample, and A be the predicted phoneme result for frame t. x,y This represents the phoneme recognition sequence corresponding to the multilingual speech sample obtained through the pronunciation evaluation model. For example, when the multilingual speech sample is the speech data of the word "great," Y represents the text corresponding to the word "great," X represents the audio frame features when the word "great" is pronounced, and A... x,y For all possible phoneme recognition sequences that correspond to the features of this audio frame, such as ggrreeeaat or ggrrrreatt, etc.

[0094] Then, the phoneme recognition sequence with the highest probability, that is, the closest to Y, is determined as the final output phoneme recognition sequence.

[0095] Step 206: Based on the first label, the second label, the third label, and the sample evaluation results, update the model parameters of the pronunciation evaluation model, so as to perform pronunciation evaluation on the speech data to be evaluated based on the updated pronunciation evaluation model.

[0096] In actual implementation, the first loss function, the second loss function, and the third loss function are first obtained, namely... ...Formula (6); ...Formula (7); ...Formula (8); Wherein, formula (6) is the first loss function, formula (7) is the second loss function, and formula (8) is the third loss function; in formula (6), y score To ensure accurate evaluation results, p score For the score prediction result, y in formula (7) lan For real languages, p lan For the language prediction result, p(Y|X) in formula (8) is the same as p(Y|X) in formula (5).

[0097] Then, based on the first label, the score prediction result, and the first loss function, the first loss is determined; based on the second label, the language prediction result, and the second loss function, the second loss is determined; and based on the third label, the phoneme recognition sequence, and the third loss function, the third loss is determined. Combining the first loss, the second loss, and the third loss, the target loss for the corresponding sample evaluation result is determined. Based on the target loss, the model parameters of the pronunciation evaluation model are updated.

[0098] In practical implementation, the process of determining the target loss for the corresponding sample evaluation result by combining the first loss, second loss, and third loss specifically includes: obtaining the constant coefficients corresponding to the first loss, the second loss, and the third loss; multiplying the first loss, second loss, and third loss by their respective constant coefficients to obtain the product results corresponding to the first loss, the second loss, and the third loss; and summing these product results to obtain the target loss for the corresponding sample evaluation result. ...Formula (9); in, For the constant coefficients corresponding to the first loss, For the constant coefficients corresponding to the second loss, For the constant coefficients corresponding to the third loss, , as well as All of these are pre-set hyperparameters ranging from 0 to 1.

[0099] The pronunciation evaluation method provided in the embodiments of this application will be further described below. See below. Figure 11 , Figure 11 This is a flowchart illustrating the pronunciation evaluation method provided in the embodiments of this application, based on... Figure 11 Taking the pronunciation evaluation model running on a terminal as an example, the pronunciation evaluation method provided in this application embodiment is implemented collaboratively by the client and the server.

[0100] Step 301: The client responds to the upload operation of the multilingual speech samples by obtaining the multilingual speech samples carrying the first tag, the second tag, and the third tag.

[0101] The first label indicates the actual evaluation result of the multilingual speech sample, such as the actual score; the second label indicates the at least two actual languages ​​corresponding to the multilingual speech sample, such as English or Chinese; and the third label indicates the speech-to-text corresponding to the multilingual speech sample, such as the corresponding reading text.

[0102] In practice, the client can be a pronunciation evaluation client installed on the terminal. Multilingual speech samples can be uploaded by the user through the client's human-computer interaction interface (HCI interface). The user can then upload the multilingual speech samples from their local device, allowing the client to obtain them. Alternatively, multilingual speech samples can be recorded by a recording device connected to the terminal. Specifically, a multilingual script is prepared, and the user reads it aloud. The recording device records the user's reading, resulting in a multilingual speech sample. This sample is then scored manually, and the score is used as the first label for the multilingual speech sample.

[0103] Step 302: The client sends multilingual voice samples carrying the first tag, the second tag, and the third tag to the server.

[0104] Step 303: The server inputs the received multilingual speech samples carrying the first label, the second label, and the third label into the pronunciation evaluation model.

[0105] Step 304: Output the sample evaluation results of the multilingual speech samples.

[0106] The sample evaluation results include language prediction results, score prediction results, and phoneme recognition sequences for multilingual speech samples.

[0107] Step 305: Update the model parameters of the pronunciation evaluation model based on the first label, the second label, the third label, and the sample evaluation results.

[0108] In practice, the server iterates through the above training process until the loss function converges, thus completing the training of the pronunciation evaluation model.

[0109] Step 306: The server generates a notification message indicating that the pronunciation evaluation model training is complete.

[0110] Step 307: The server sends a notification message and the completed pronunciation evaluation model to the client.

[0111] Step 308: The client responds to the upload operation for the target voice data and obtains the voice data to be evaluated.

[0112] The target speech data includes at least two languages.

[0113] In practice, the target voice data can be pre-stored locally on the terminal, obtained by the terminal from external sources (such as the Internet), collected in real time, or sent to the client by other devices that communicate with the terminal.

[0114] Step 309: The client responds to the pronunciation evaluation command for the target speech data, and uses the received trained pronunciation evaluation model to evaluate the pronunciation of the target speech data, and obtains the evaluation result of the target speech data.

[0115] In practice, the target pronunciation evaluation command can be automatically generated by the client under certain triggering conditions. For example, the client can automatically generate a pronunciation evaluation command for the target speech data after acquiring the target speech data. Alternatively, it can be sent to the client by other devices that communicate with the terminal. Or it can be generated by the user based on the client's human-computer interaction interface after triggering the corresponding confirmation function.

[0116] Step 310: The client outputs the evaluation results of the target speech data.

[0117] In practice, the client can present the evaluation results of the target speech data in the client's human-computer interaction interface, save the evaluation results of the target speech data to the terminal locally, and send the evaluation results of the target speech data to other devices that are connected to the terminal.

[0118] By applying the embodiments described above, audio frame features obtained by encoding audio frames of speech data containing at least two languages, and phoneme features obtained by encoding at least two phonemes of the speech data separately, are fused to obtain target features. Based on these target features, speech data containing at least two languages ​​is evaluated to obtain evaluation results. Thus, by using target features determined from the audio frame features and phoneme features of multilingual speech data to evaluate multilingual speech data, not only can the efficiency of pronunciation evaluation of multilingual speech data be effectively improved, but the accuracy of pronunciation evaluation of multilingual speech data can also be improved.

[0119] The following will describe an exemplary application of the embodiments of this application in a real-world application scenario.

[0120] Spoken language assessment in related technologies primarily uses Group of Phonetic Objects (GOPs) calculated based on the ASR acoustic model as pronunciation features. These GOPs are mainly calculated using the GMM-HMM ASR acoustic model. With the development of deep learning, many studies have replaced GMM with DNNs to better construct ASR acoustic models. However, GOP calculation has limitations. First, it is computationally complex and approximates pronunciation confidence. Second, GOPs are single features extracted at the phoneme level, resulting in insufficient feature representation. Therefore, some works have focused on improving GOPs, such as fusing transition probability matrices and contextual information, to perform assessments based on the calculated GOPs. For example, a GOP threshold can be set to judge phonemes, ultimately fitting a human score; or the GOP of each phoneme within a word can be averaged to obtain a score for each word, and then the sentence score can be obtained by averaging the GOP of each word.

[0121] Furthermore, with the development of neural networks, many works are based on acoustic models to extract deep pronunciation features, perform deep feature extraction of pronunciation, and conduct end-to-end speech evaluation. For example, bidirectional long short-term memory networks and Siamese networks are used to extract distance features for evaluation, or bidirectional long short-term memory networks are combined with features extracted by feature engineering for pronunciation evaluation, or acoustic features of acoustic models are used for feature transfer learning to better adapt to different pronunciation tasks, or end-to-end models are used, consisting of a text encoder and an audio encoder, to extract text and audio representations and obtain the final score, etc.

[0122] However, the aforementioned schemes based on pronunciation confidence parameters or deep networks often only evaluate a single language. When evaluating multiple languages, different models are typically required for each language, necessitating extensive feature engineering. Specifically, language features are first extracted, followed by language classification. Based on the classification results, a corresponding speech recognition model is selected for pronunciation feature extraction and scoring. This approach, requiring different models for different languages ​​to achieve multilingual evaluation, leads to low evaluation efficiency and negatively impacts the accuracy of the evaluation results.

[0123] Based on this, embodiments of this application provide a pronunciation evaluation method, apparatus, electronic device, computer-readable storage medium, and computer program product. The acoustic model is optimized by three tasks: phoneme recognition, language classification, and automatic scoring. Ultimately, it can effectively evaluate multiple languages, which can not only effectively improve the evaluation efficiency of multiple languages, but also improve the evaluation accuracy of multiple languages.

[0124] Next, the technical solution of this application will be described in detail from the product side. For example, in a specific application scenario such as oral language assessment, specifically, as... Figure 4 As shown, the terminal responds to a click on the "follow-up reading" button (data acquisition function) and records the target object pair. Figure 4 The audio data of the text to be read aloud is then used as follows: Figure 5 As shown, the terminal responds to the click of the "End Reading" button (the "End Data Acquisition" function) to end the acquisition of the audio data from the reading aloud, and then... Figure 9 As shown, the terminal receives the returned evaluation results and displays them to the user.

[0125] Next, the technical solution of this application will be described in detail from a technical perspective. See [link / reference] Figure 12 , Figure 12 This is a technical architecture diagram of the pronunciation evaluation method provided in the embodiments of this application, based on Figure 12 The terminal responds to a trigger operation on the pronunciation assessment client, runs the pronunciation assessment client, and displays the text to be read aloud on the screen. Then, in response to a click operation on the read-along button (collection function), it records the user's audio of reading aloud the displayed text (the voice data to be assessed) and sends the audio and text to the server. The server then sends the audio and text to the automatic multilingual oral assessment module. The oral assessment module inputs the audio and text into the pronunciation assessment model, assesses the pronunciation, outputs a score, and returns the score to the server. The server then sends the final score (assessment result) to the terminal, allowing the user to view the final score on the terminal.

[0126] Next, the model structure of the pronunciation assessment model will be explained. For example... Figure 8 As shown, the pronunciation evaluation model consists of two encoders: a phoneme encoder (phoneme coding layer) and an audio encoder (audio coding layer). The phoneme encoder encodes the phoneme sequence corresponding to the text being read aloud, while the audio encoder extracts the deep feature representation of the audio from the waveform features of the input speech. Each phoneme and its corresponding waveform undergo an attention mechanism calculation to obtain the audio representation for each phoneme. The audio representation obtained based on the attention mechanism is then concatenated with the phoneme representation to obtain the final score. Here, the entire network is optimized using three loss mechanisms: score fitting loss, language classification loss, and phoneme recognition loss.

[0127] In practical implementation, the phoneme encoder encodes different phonemes into different vector representations, and then uses a self-attention mechanism to fuse these phoneme encoding representations with context, resulting in a context-sensitive phoneme representation. The audio encoder can be a pre-trained acoustic model like wav2vec2.0 or other pre-trained acoustic models. Here, Wav2vec2.0 is a model that is self-supervised pre-trained based on a large amount of unlabeled data. It consists of multiple convolutional feature encoding layers and multiple transformer layers. Specifically, by inputting the raw audio signal into the audio encoder, the audio representation of each frame can be obtained, ultimately forming an audio vector of frame size. Here, the wav2vec2.0 in this application is not the most basic pre-trained model, but rather a base model that is retrained based on a large amount of multilingual unlabeled speech data.

[0128] It should be noted that, in order to make the model suitable for multiple languages ​​simultaneously, this application can utilize multilingual speech data for phoneme recognition retraining. First, in order to train multiple languages ​​in the same CTC phoneme recognition network, it is necessary to construct a multilingual phoneme table. Specifically, the phonemes of multiple languages ​​are merged into a large phoneme table. For example, the basic unit of pronunciation in Chinese is the initial consonant and final vowel, while the basic unit of pronunciation in English is the phoneme. Therefore, the initial consonant and final vowel table and the English phoneme table are merged. For those with the same pronunciation, one of the phonemes needs to be removed. For example, the initial consonant 'b' in Chinese and the phoneme 'B' in English have the same pronunciation, so they need to be merged into one sound. Then, based on this new phoneme table, multilingual mixed audio, and the corresponding transcribed text of the audio, phoneme recognition training is performed based on the CTC loss function to retrain the pronunciation evaluation model, thereby further improving the phoneme discrimination ability of the audio features extracted by the pronunciation evaluation model.

[0129] In practical implementation, based on the audio features obtained from retraining, the phoneme representation (phoneme features) is calculated with these audio features using an attention mechanism to fuse the audio features and phoneme representation. Here, the attention mechanism is defined as shown in formulas (2) and (3), used to model the relationship between query, key, and value, where Q is the query vector, K is the key vector, V is the value vector, and the vector dimensions of K and Q are dk. In this application, query is the deep feature representation of each phoneme, i.e., the output of the phoneme encoder in the figure, and key and value are the deep feature representations of the audio, which are the feature representations of each frame of the filtered audio. In practical implementation, as shown in formula (4), the phoneme representation of each phoneme is interacted with the representations of all frames in the audio using an attention mechanism to finally obtain the corresponding fused representation of the i-th phoneme. Then, the phoneme fused representations in a sentence are averaged and, after linear transformation, the final score is obtained.

[0130] Next, the model training process of the pronunciation evaluation model of this application will be described. Here, the model training is divided into two stages. First, the CTC multilingual retraining acoustic model is performed, and then the CTC, language classification, and score fitting multi-task learning stage is performed. Specifically, in the first stage, CTC is trained based on a multilingual dataset. The CTC loss is defined as minimizing the negative log-likelihood loss. First, the probability of a sentence in CTC is defined as shown in formula (5). In the second stage, the network is adjusted using second language user scoring data. First, in order to make the pronunciation evaluation model better adapt to the pronunciation characteristics of second language users, this application first obtains data with better pronunciation among second language users (e.g., a perfect score of 100, and scores greater than or equal to 80 are considered good pronunciation data). Based on the obtained data, CTC is used for retraining. The CTC loss in this stage can be defined as formula (8), where thresh is the pre-set score threshold for good pronunciation. Here, the phoneme feature representation is simultaneously subjected to two different linear transformations for scoring and language classification.

[0131] It should be noted that the entire network is ultimately optimized using multi-task loss, combined with CTC and rating regression fitting loss. Specifically, the rating loss is defined by formula (6), which is the mean square error between y (human rating) and p (model predicted score), and the language classification loss is defined by formula (7), which is the cross-entropy loss between y (language label) and p (language prediction result). Then, as shown in (9), the final loss consists of three components, including fitting score loss, CTC phoneme recognition loss, and language classification loss, thereby updating the model parameters of the pronunciation evaluation model based on the final loss.

[0132] In actual implementation, such as Figure 8 As shown, the input audio waveform is encoded (after multiple transformations) to obtain the corresponding audio representation. The phoneme encoder takes the phonemes corresponding to the text being read as input, encodes them to obtain the corresponding phoneme representations, and then interacts through an attention mechanism to obtain the audio representations corresponding to each phoneme. These representations are then connected and fused, and after a fully connected layer transformation (linear transformation), the final score and language classification result are obtained. Here, the corresponding CTC can output the recognized phoneme sequence. For example, as... Figure 13 As shown, Figure 13 This is a schematic diagram comparing the model effects provided in the embodiments of this application, based on... Figure 13 Three test sets were used here. One dataset consisted of 1000 English data entries recorded by Chinese second speakers and scored by three experts. Another dataset consisted of 1000 Chinese data entries recorded by Chinese speakers and scored by three experts. The last dataset consisted of 500 mixed English and Chinese data entries, scored by three experts. Then, the Pearson correlation coefficient, representing the correlation between human and machine scoring, was used as the metric for the three datasets. Figure 13Compared with a monolingual system that uses different evaluation models for different languages, the multilingual pronunciation evaluation algorithm shows a slight improvement in relevance on English and Chinese data compared to the monolingual evaluation model, and a greater improvement on mixed data.

[0133] By applying the embodiments described above, multi-dimensional related features are obtained by concatenating the material features of promotional materials and the object features of the target audience. Further feature processing of these related features yields shallow and deep features. Combining these shallow and deep features, the likelihood of the target audience performing a negative operation in response to the promotional information is determined. This approach not only avoids the drawback of maintaining a keyword system when identifying anomalies in promotional information, effectively reducing resource consumption, but also improves the accuracy of predicting anomalies in promotional materials by determining anomaly detection results through multi-dimensional features.

[0134] The following description continues to illustrate the exemplary structure of the pronunciation evaluation device 455 provided in the embodiments of this application as a software module. In some embodiments, such as Figure 2 As shown, the software modules stored in the pronunciation evaluation device 455 in the memory 440 may include: The acquisition module 4551 is used to acquire speech data to be evaluated, including at least two languages. The speech data includes at least two consecutive audio frame sequences, each audio frame sequence corresponding to a language, and each audio frame sequence includes at least two audio frames. The audio encoding module 4552 is used to perform audio frame encoding on the speech data to obtain the audio frame features of each audio frame in the speech data. The phoneme encoding module 4553 is used to encode at least two phonemes of the speech data to obtain the phoneme features of the speech data; wherein, the phonemes are obtained by combining at least two audio frame features; The feature fusion module 4554 is used to perform feature fusion on the audio frame features and the phoneme features of the speech data to obtain target features. The pronunciation evaluation module 4555 is used to evaluate the pronunciation of the speech data based on the target features, and obtain the evaluation result of the speech data. The evaluation result is a comprehensive evaluation result of the pronunciation of the at least two languages.

[0135] In some embodiments, the feature fusion template 4554 is further configured to obtain the weights of each audio frame feature, and based on the weights, perform a weighted summation of each audio frame feature to obtain the audio features of the speech data; and perform feature fusion on the audio features and phoneme features of the speech data to obtain the target features.

[0136] In some embodiments, the feature fusion template 4554 is further configured to, for each phoneme, based on an attention mechanism, interact with the phoneme features corresponding to the phoneme and the audio frame features of the speech data respectively to obtain the audio features corresponding to each phoneme; and perform feature fusion on the audio features corresponding to each phoneme and the phoneme features of the speech data to obtain the target features.

[0137] In some embodiments, the feature fusion template 4554 is further configured to, based on an attention mechanism, interact with the phoneme features corresponding to the phoneme and the audio frame features of the speech data respectively to obtain the weight of each audio frame feature for any phoneme feature; based on the weight, perform a weighted summation of each audio frame feature corresponding to the same phoneme feature to obtain the audio feature corresponding to each phoneme.

[0138] In some embodiments, the feature fusion template 4554 is further configured to perform feature fusion on the audio features corresponding to each phoneme and the phoneme features of the corresponding phoneme to obtain fused features corresponding to each phoneme; perform feature concatenation on the fused features corresponding to each phoneme to obtain target features; or perform feature concatenation on the audio features corresponding to each phoneme to obtain target audio features; perform feature concatenation on the phoneme features of each phoneme to obtain target phoneme features; and perform feature fusion on the target audio features and the target phoneme features to obtain target features.

[0139] In some embodiments, the apparatus further includes a combination module, which is configured to acquire phoneme alignment information, the phoneme alignment information including the correspondence between the phoneme and the audio frame; and to combine the features of the audio frame based on the phoneme alignment information to obtain at least two phonemes of the speech data.

[0140] In some embodiments, the speech data is obtained by collecting audio of a target object reading text in at least two languages; the pronunciation evaluation module 4555 is further configured to perform pronunciation evaluation on the speech data based on the target features to obtain a pronunciation score corresponding to the speech data, the pronunciation score being used to indicate the accuracy of the target object's pronunciation when reading the text; and the pronunciation score being used as the evaluation result of the speech data.

[0141] In some embodiments, the pronunciation evaluation module 4555 is further configured to evaluate the pronunciation of the content corresponding to each language in the speech data based on the target features, and obtain a pronunciation score for the content corresponding to each language.

[0142] In some embodiments, the acquisition module is further configured to receive a pronunciation evaluation request for the voice data sent by the terminal, the pronunciation evaluation request being sent by the terminal in response to a pronunciation evaluation instruction for the voice data; parse the pronunciation evaluation request to obtain the voice data carried in the pronunciation evaluation request; the device further includes a sending module, the sending module being configured to send the evaluation result of the voice data to the terminal so that the terminal can display the evaluation result.

[0143] In some embodiments, the apparatus further includes a pronunciation evaluation model, which includes an audio encoding layer, a phoneme encoding layer, a feature fusion layer, and an output layer. The audio encoding module 4552 is further configured to perform audio frame encoding on the speech data through the audio encoding layer to obtain audio frame features of each audio frame in the speech data. The phoneme encoding module 4553 is further configured to perform phoneme encoding on at least two phonemes of the speech data through the phoneme encoding layer to obtain phoneme features of the speech data. The feature fusion module 4554 is further configured to perform feature fusion on the audio frame features and phoneme features of the speech data through the feature fusion layer to obtain target features. The pronunciation evaluation module 4555 is further configured to perform pronunciation evaluation on the speech data based on the target features through the output layer to obtain the evaluation result of the speech data.

[0144] In the above scheme, the device further includes a training module, which is used to acquire multilingual speech samples carrying a first label, a second label, and a third label. The first label indicates the true evaluation result of the multilingual speech sample, the second label indicates at least two real languages ​​corresponding to the multilingual speech sample, and the third label indicates the speech-to-text corresponding to the multilingual speech sample. The device performs audio frame encoding on the multilingual speech samples through the audio encoding layer to obtain the audio frame features of each audio frame in the multilingual speech samples. Finally, the device performs phoneme encoding on at least two phonemes of the multilingual speech samples through the phoneme encoding layer to obtain the multilingual speech samples. The phoneme features of the multilingual speech sample are analyzed. The feature fusion layer fuses the audio frame features and phoneme features of the multilingual speech sample to obtain target features. The output layer, based on the target features, performs pronunciation evaluation on the multilingual speech sample to obtain a sample evaluation result, which includes the language prediction result, score prediction result, and phoneme recognition sequence of the multilingual speech sample. Based on the first label, the second label, the third label, and the sample evaluation result, the model parameters of the pronunciation evaluation model are updated to perform pronunciation evaluation on the speech data to be evaluated based on the updated pronunciation evaluation model.

[0145] This application provides a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the pronunciation evaluation method described above in this application.

[0146] This application provides a computer-readable storage medium storing executable instructions. When these executable instructions are executed by a processor, they cause the processor to execute the pronunciation evaluation method provided in this application. For example, ... Figure 3 The pronunciation assessment method is shown.

[0147] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or it may be a variety of devices including one or any combination of the above-mentioned memories.

[0148] In some embodiments, executable instructions may take the form of a program, software, software module, script, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a standalone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.

[0149] As an example, executable instructions may, but do not necessarily, correspond to files in a file system. They may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a Hyper Text Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple collaborating files (e.g., a file that stores one or more modules, subroutines, or code sections).

[0150] As an example, executable instructions can be deployed to execute on a single electronic device, or on multiple electronic devices located in one location, or on multiple electronic devices distributed across multiple locations and interconnected via a communication network.

[0151] In summary, the embodiments of this application have the following beneficial effects: By evaluating multilingual speech data using target features determined from audio frame features and phoneme features, the efficiency and accuracy of pronunciation evaluation of multilingual speech data can be effectively improved.

[0152] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of this application are included within the scope of protection of this application.

Claims

1. A pronunciation assessment method, characterized in that, The method includes: Acquire speech data to be evaluated, including at least two languages, wherein the speech data includes at least two consecutive audio frame sequences, each audio frame sequence corresponding to one language, and each audio frame sequence includes at least two audio frames; The speech data is encoded into audio frames to obtain the audio frame features of each audio frame in the speech data; Obtain phoneme alignment information, which includes the correspondence between phonemes and audio frames; wherein the phoneme alignment information is determined based on a pre-constructed phoneme table, which is obtained by merging phonemes from multiple languages; Based on the phoneme alignment information, the audio frame features are combined to obtain at least two phonemes of the speech data; At least two phonemes of the speech data are phoneme encoded to obtain the phoneme features of the speech data; wherein, the phonemes are obtained by combining at least two audio frame features; The target features are obtained by fusing the audio frame features and phoneme features of the speech data. Based on the target features, the speech data is evaluated for pronunciation to obtain the evaluation result of the speech data. The evaluation result is a comprehensive evaluation result of the pronunciation of the at least two languages.

2. The method as described in claim 1, characterized in that, The feature fusion of the audio frame features and phoneme features of the speech data to obtain the target features includes: The weights of the features of each audio frame are obtained, and the features of each audio frame are weighted and summed based on the weights to obtain the audio features of the speech data. The audio features and phoneme features of the speech data are fused to obtain the target features.

3. The method as described in claim 1, characterized in that, The feature fusion of the audio frame features and phoneme features of the speech data to obtain the target features includes: For each of the phonemes, based on an attention mechanism, the phoneme features corresponding to the phoneme are interacted with the audio frame features of the speech data respectively to obtain the audio features corresponding to each of the phonemes. The target features are obtained by fusing the audio features corresponding to each phoneme and the phoneme features of the speech data.

4. The method as described in claim 3, characterized in that, The attention-based mechanism involves interacting the phoneme features corresponding to the phoneme with the audio frame features of the speech data to obtain the audio features corresponding to each phoneme, including: Based on the attention mechanism, the phoneme features corresponding to the phoneme are interacted with the audio frame features of the speech data respectively to obtain the weight of each audio frame feature for any phoneme feature. Based on the weights, the audio frame features corresponding to the same phoneme feature are weighted and summed to obtain the audio features corresponding to each phoneme.

5. The method as described in claim 3, characterized in that, The step of fusing the audio features corresponding to each phoneme and the phoneme features of the speech data to obtain target features includes: For each of the aforementioned phonemes, the audio features corresponding to the phoneme are fused with the phoneme features of the corresponding phoneme to obtain the fused features of each of the aforementioned phonemes; the fused features of each of the aforementioned phonemes are then concatenated to obtain the target features; or, The audio features corresponding to each of the phonemes are concatenated to obtain the target audio features; the phoneme features of each of the phonemes are concatenated to obtain the target phoneme features; the target audio features and the target phoneme features are fused to obtain the target features.

6. The method as described in claim 1, characterized in that, The voice data is obtained by collecting audio from the target object when it reads text in at least two languages; The step of evaluating the speech data based on the target features to obtain the evaluation result of the speech data includes: Based on the target features, the speech data is evaluated for pronunciation to obtain a pronunciation score corresponding to the speech data. The pronunciation score is used to indicate the accuracy of the target object's pronunciation when reading the text. The pronunciation score is used as the evaluation result of the speech data.

7. The method as described in claim 6, characterized in that, The step of evaluating the pronunciation of the speech data based on the target features to obtain a pronunciation score corresponding to the speech data includes: Based on the target features, pronunciation evaluation is performed on the content of each language in the speech data to obtain pronunciation scores for the content of each language.

8. The method as described in claim 1, characterized in that, The acquisition of speech data to be evaluated, including at least two languages, includes: The receiving terminal sends a pronunciation evaluation request for the speech data, wherein the pronunciation evaluation request is sent by the terminal in response to a pronunciation evaluation instruction for the speech data; The pronunciation evaluation request is parsed to obtain the speech data carried in the pronunciation evaluation request; After evaluating the speech data based on the target features to obtain the evaluation result of the speech data, the method further includes: The evaluation results of the voice data are sent to the terminal so that the terminal can display the evaluation results.

9. The method as described in claim 1, characterized in that, The method is applied to a pronunciation evaluation model, which includes an audio coding layer, a phoneme coding layer, a feature fusion layer, and an output layer. The step of encoding audio frames in the speech data to obtain the audio frame features of each audio frame in the speech data includes: The audio encoding layer is used to encode audio frames of the speech data to be evaluated, thereby obtaining the audio frame features of each audio frame in the speech data. The process of encoding at least two phonemes of the speech data to obtain the phoneme features of the speech data includes: Through the phoneme coding layer, at least two phonemes of the speech data are phoneme coded respectively to obtain the phoneme features of the speech data; The feature fusion of the audio frame features and phoneme features of the speech data to obtain the target features includes: The feature fusion layer is used to fuse the audio frame features and phoneme features of the speech data to obtain the target features. The step of evaluating the speech data based on the target features to obtain the evaluation result of the speech data includes: The speech data is evaluated by the output layer based on the target features to obtain the evaluation result of the speech data.

10. The method as described in claim 9, characterized in that, Before encoding audio frames of the speech data to be evaluated through the audio coding layer to obtain the audio frame features of each audio frame in the speech data, the method further includes: Acquire multilingual speech samples carrying a first label, a second label, and a third label. The first label is used to indicate the actual evaluation result of the multilingual speech sample, the second label is used to indicate at least two real languages ​​corresponding to the multilingual speech sample, and the third label is used to indicate the speech-to-text corresponding to the multilingual speech sample. The audio encoding layer is used to encode audio frames of the multilingual speech samples to obtain the audio frame features of each audio frame in the multilingual speech samples. Through the phoneme coding layer, at least two phonemes of the multilingual speech sample are phoneme coded respectively to obtain the phoneme features of the multilingual speech sample; The feature fusion layer is used to fuse the audio frame features and phoneme features of the multilingual speech samples to obtain the target features. Through the output layer, based on the target features, the pronunciation evaluation of the multilingual speech samples is performed to obtain the sample evaluation results of the multilingual speech samples. The sample evaluation results include the language prediction results, score prediction results, and phoneme recognition sequences of the multilingual speech samples. Based on the first label, the second label, the third label, and the sample evaluation results, the model parameters of the pronunciation evaluation model are updated, so as to evaluate the pronunciation of the speech data to be evaluated based on the updated pronunciation evaluation model.

11. A pronunciation evaluation device, characterized in that, The device includes: The acquisition module is used to acquire speech data to be evaluated, including at least two languages. The speech data includes at least two consecutive audio frame sequences, each audio frame sequence corresponding to a language, and each audio frame sequence includes at least two audio frames. An audio encoding module is used to encode the speech data into audio frames to obtain the audio frame features of each audio frame in the speech data. A phoneme encoding module is used to encode at least two phonemes of the speech data to obtain the phoneme features of the speech data; wherein, the phonemes are obtained by combining at least two audio frame features; The feature fusion module is used to fuse the audio frame features and phoneme features of the speech data to obtain target features. The pronunciation evaluation module is used to evaluate the pronunciation of the speech data based on the target features, and obtain the evaluation result of the speech data, wherein the evaluation result is a comprehensive evaluation result of the pronunciation of the at least two languages; The device further includes a combination module, which is used to acquire phoneme alignment information, the phoneme alignment information including the correspondence between phonemes and the audio frame; wherein the phoneme alignment information is determined based on a pre-constructed phoneme table, the phoneme table being obtained by merging phonemes from multiple languages; based on the phoneme alignment information, the features of the audio frame are combined to obtain at least two phonemes of the speech data.

12. An electronic device, characterized in that, include: Memory, used to store executable instructions; A processor, when executing executable instructions stored in the memory, implements the pronunciation evaluation method according to any one of claims 1 to 10.

13. A computer-readable storage medium storing computer-executable instructions, characterized in that, When the computer-executable instructions are executed by the processor, they implement the pronunciation evaluation method according to any one of claims 1 to 10.

14. A computer program product comprising a computer program or computer-executable instructions, characterized in that, When the computer program or computer-executable instructions are executed by the processor, the pronunciation evaluation method according to any one of claims 1 to 10 is implemented.

Citation Information

Patent Citations

  • Voice evaluation and voice recognition method and device, equipment and storage medium

    CN112151018A

  • Audio processing method and device, equipment, program product and storage medium

    CN114360504A