Accent recognition acoustic model training, accent recognition method, device and storage medium

By combining the training of accent area features and acoustic features, the problem of low accuracy of existing acoustic models in identifying speech with accents is solved, and higher accent speech recognition accuracy is achieved.

CN113593524BActive Publication Date: 2024-09-10TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110104567.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-26
Publication Date
2024-09-10
Estimated Expiration
2041-01-26

AI Technical Summary

Technical Problem

When existing acoustic models recognize speech with an accent, the accuracy drops significantly, resulting in inaccurate accented speech recognition results.

Method used

By obtaining training data, including training speech and its corresponding accent region features and phoneme labels, the acoustic features are extracted and input into the initial accent recognition acoustic model. Iterative training is performed to update the model until the training is completed, and the target accent recognition acoustic model is obtained. .

Benefits of technology

The accuracy of accented speech recognition is improved. By combining training with accent area features and acoustic features, the model is able to learn richer information, thereby improving accuracy during recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113593524B
    Figure CN113593524B
Patent Text Reader

Abstract

The present application relates to a method, device, computer equipment and storage medium for training an accent recognition acoustic model. The method comprises: obtaining training data; extracting acoustic features corresponding to training speech; inputting acoustic features and accent region features into an initial accent recognition acoustic model, wherein the initial accent recognition acoustic model transforms the accent region features to obtain initial transformation features, extracts speech features from the acoustic features to obtain initial speech features, merges the initial transformation features and the initial speech features to obtain initial merged features, and performs speech phoneme recognition on the initial merged features to obtain initial speech phoneme information; calculates loss information based on the initial speech phoneme information and the corresponding phoneme labels, updates the initial accent recognition acoustic model based on the loss information, and executes iteratively in a loop until the training is completed to obtain the target accent recognition acoustic model. The use of this method can improve the accuracy of accent recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an accent recognition acoustic model training, an accent recognition method, an apparatus, a computer device and a storage medium. Background Art

[0002] With the development of artificial intelligence technology, speech recognition technology has emerged. Speech recognition technology can be further divided into four parts:

[0003] 1. Front-end processing: including voice signal noise reduction, sound source localization, echo cancellation and other technologies.

[0004] 2. Acoustic model: Model the mapping relationship between speech signals and corresponding pronunciation units.

[0005] 3. Language model and dictionary: Model the mapping relationship between pronunciation units and Chinese characters.

[0006] 4. Decoder: Combines the acoustic model, language model, and dictionary to perform the entire speech-to-text search process.

[0007] In traditional technology, an acoustic model is usually used to identify speech signals and obtain corresponding pronunciation units. However, current acoustic models usually recognize speech without an accent, so as to ensure the accuracy of speech recognition results. However, when current acoustic models recognize pronunciation units for speech with an accent, the accuracy will drop significantly, which will lead to a significant drop in the accuracy of accented speech recognition results. Summary of the invention

[0008] Based on this, it is necessary to provide an accent recognition acoustic model training, accent recognition method, device, computer equipment and storage medium that can improve the accuracy of pronunciation units obtained by accent recognition, thereby improving the accent speech recognition results, in response to the above technical problems.

[0009] A method for training an accent recognition acoustic model, the method comprising:

[0010] Obtaining training data, the training data including training speech, accent area features corresponding to the training speech, and phoneme labels;

[0011] Extract the acoustic features corresponding to the training speech;

[0012] Inputting the acoustic features and the accent region features into the initial accent recognition acoustic model, the initial accent recognition acoustic model transforms the accent region features to obtain initial transformed features, extracting speech features from the acoustic features to obtain initial speech features, merging the initial transformed features with the initial speech features to obtain initial merged features, and performing speech phoneme recognition on the initial merged features to obtain initial speech phoneme information;

[0013] The loss information is calculated based on the initial speech phoneme information and the corresponding phoneme labels, the initial accent recognition acoustic model is updated based on the loss information, and the step of returning to input the acoustic features and accent area features into the initial accent recognition acoustic model is iteratively executed until the training is completed to obtain the target accent recognition acoustic model.

[0014] In one embodiment, the step of inputting the acoustic features into the initial feature extraction network to extract speech features to obtain the initial speech features includes:

[0015] The acoustic features are deformed by spectrum enhancement to obtain acoustic enhancement features, and the acoustic enhancement features are input into the initial feature extraction network to extract speech features to obtain the initial speech features.

[0016] In one embodiment, the initial phoneme recognition network includes an initial speech phoneme feature extraction network and an initial accent phoneme recognition network;

[0017] The step of inputting the initial speech feature into an initial phoneme recognition network to perform speech phoneme recognition to obtain initial speech phoneme information includes:

[0018] The initial speech feature is input into the initial speech phoneme feature extraction network to extract speech phoneme features to obtain the initial speech phoneme feature, and the initial speech phoneme feature is input into the initial accent phoneme recognition network to perform phoneme recognition to obtain the initial speech phoneme information.

[0019] In one embodiment, the initial speech phoneme feature extraction network includes at least one initial delay neural network and at least one initial gated recurrent network, and the initial delay neural network and the initial gated recurrent network are alternating network structures;

[0020] The step of inputting the initial speech feature into the initial speech phoneme feature extraction network to extract speech phoneme features to obtain the initial speech phoneme feature comprises:

[0021] The starting speech feature is input into the starting delay neural network for calculation to obtain the starting delay feature, and the starting delay feature is input into the starting gated recurrent network for calculation to obtain the starting speech phoneme feature.

[0022] In one embodiment, the establishing the basic accent recognition acoustic model based on the trained initial accent recognition acoustic model includes:

[0023] The trained initial feature extraction network is used as the basic feature extraction network, the trained initial time delay neural network is used as the basic time delay neural network, the trained initial gated recurrent network is used as the basic gated recurrent network, the trained initial accent phoneme recognition network is used as the basic accent phoneme recognition network, and a parameter-initialized conversion network is established to obtain the basic accent recognition acoustic model.

[0024] In one embodiment, after the steps of calculating the loss information based on the initial speech phoneme information and the corresponding phoneme labels, updating the initial accent recognition acoustic model based on the loss information, and returning to input the acoustic features and the accent area features into the initial accent recognition acoustic model are iteratively performed until the training is completed and the target accent recognition acoustic model is obtained, the method further includes:

[0025] Acquire target accent data corresponding to the target area, wherein the target accent data includes the target area speech and the corresponding target area speech phoneme label;

[0026] Acquiring target area features corresponding to the target area and extracting target area speech acoustic features corresponding to the target area speech;

[0027] Inputting the target area speech acoustic features and the target area features into the target accent recognition acoustic model, the target accent recognition acoustic model transforms the target area features to obtain target area transformation features, extracting speech features based on the target area acoustic features to obtain target area speech features, merging the target area transformation features and the target area speech features to obtain target area merged features, performing speech phoneme recognition based on the target area merged features to obtain target area speech phoneme information;

[0028] The target area speech loss information is calculated based on the target area speech phoneme information and the corresponding target area speech phoneme label, the phoneme recognition network corresponding to the target area in the target accent recognition acoustic model is updated based on the target area speech loss information, and the step of returning to input the target area speech acoustic features and the target area features into the target accent recognition acoustic model is iteratively executed until the target training is completed to obtain the optimized accent recognition acoustic model.

[0029] A device for training an acoustic model for accent recognition, the device comprising:

[0030] A data acquisition module, used to acquire training data, the training data including training speech, accent area features and phoneme labels corresponding to the training speech;

[0031] A feature extraction module is used to extract acoustic features corresponding to the training speech;

[0032] A model training module, for inputting acoustic features and accent region features into an initial accent recognition acoustic model, wherein the initial accent recognition acoustic model transforms the accent region features to obtain initial transformed features, performs speech feature extraction on the acoustic features to obtain initial speech features, merges the initial transformed features and the initial speech features to obtain initial merged features, and performs speech phoneme recognition on the initial merged features to obtain initial speech phoneme information;

[0033] The loop iteration module is used to calculate the loss information based on the initial speech phoneme information and the corresponding phoneme labels, update the initial accent recognition acoustic model based on the loss information, and return to the step of inputting the acoustic features and accent area features into the initial accent recognition acoustic model for iterative execution until the training is completed to obtain the target accent recognition acoustic model.

[0034] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0035] Obtaining training data, the training data including training speech, accent area features corresponding to the training speech, and phoneme labels;

[0036] Extract the acoustic features corresponding to the training speech;

[0037] Inputting the acoustic features and the accent region features into the initial accent recognition acoustic model, the initial accent recognition acoustic model transforms the accent region features to obtain initial transformed features, extracting speech features from the acoustic features to obtain initial speech features, merging the initial transformed features with the initial speech features to obtain initial merged features, and performing speech phoneme recognition on the initial merged features to obtain initial speech phoneme information;

[0038] The loss information is calculated based on the initial speech phoneme information and the corresponding phoneme labels, the initial accent recognition acoustic model is updated based on the loss information, and the step of returning to input the acoustic features and accent area features into the initial accent recognition acoustic model is iteratively executed until the training is completed to obtain the target accent recognition acoustic model.

[0039] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0040] Obtaining training data, the training data including training speech, accent area features corresponding to the training speech, and phoneme labels;

[0041] Extract the acoustic features corresponding to the training speech;

[0042] Inputting the acoustic features and the accent region features into the initial accent recognition acoustic model, the initial accent recognition acoustic model transforms the accent region features to obtain initial transformed features, extracting speech features from the acoustic features to obtain initial speech features, merging the initial transformed features with the initial speech features to obtain initial merged features, and performing speech phoneme recognition on the initial merged features to obtain initial speech phoneme information;

[0043] The loss information is calculated based on the initial speech phoneme information and the corresponding phoneme labels, the initial accent recognition acoustic model is updated based on the loss information, and the step of returning to input the acoustic features and accent area features into the initial accent recognition acoustic model is iteratively executed until the training is completed to obtain the target accent recognition acoustic model.

[0044] The above-mentioned accent recognition acoustic model training method, device, computer equipment and storage medium extract the acoustic features corresponding to the training speech, input the acoustic features and accent area features into the initial accent recognition acoustic model, the initial accent recognition acoustic model transforms the accent area features to obtain initial transformed features, extracts speech features from the acoustic features to obtain initial speech features, merges the initial transformed features and the initial speech features to obtain initial merged features, and performs speech phoneme recognition on the initial merged features to obtain initial speech phoneme information; calculates loss information based on the initial speech phoneme information and the corresponding phoneme labels, updates the initial accent recognition acoustic model based on the loss information, and returns to the step of inputting the acoustic features and accent area features into the initial accent recognition acoustic model for iterative execution until the training is completed to obtain the target accent recognition acoustic model. Since the target accent recognition acoustic model is trained by using accent area features and acoustic features together, the target accent recognition acoustic model can learn richer information, thereby improving the recognition accuracy of the target accent recognition acoustic model when performing accent speech recognition, thereby improving the accuracy of the accent speech recognition results.

[0045] A method for accent recognition, the method comprising:

[0046] Obtain the accented speech to be recognized and the corresponding area information to be recognized;

[0047] Extracting the acoustic features to be recognized corresponding to the accented speech to be recognized and obtaining the features of the region to be recognized corresponding to the information of the region to be recognized;

[0048] Inputting the acoustic features to be recognized and the regional features to be recognized into the target accent recognition acoustic model, the target accent recognition acoustic model transforms the regional features to be recognized to obtain transformed features to be recognized, extracting speech features from the acoustic features to be recognized to obtain speech features to be recognized, merging the transformed features to be recognized and the speech features to be recognized to obtain merged features to be recognized, and performing speech phoneme recognition on the merged features to be recognized to obtain speech phoneme information corresponding to the accented speech to be recognized;

[0049] Text recognition is performed based on the accent phoneme information to obtain the target text corresponding to the accented speech to be recognized.

[0050] An accent recognition device, comprising:

[0051] The module for acquiring speech to be recognized is used to acquire the speech with accent to be recognized and the corresponding information of the area to be recognized;

[0052] A feature extraction module to be identified, used to extract the acoustic features to be identified corresponding to the accented speech to be identified and obtain the features of the region to be identified corresponding to the information of the region to be identified;

[0053] A model recognition module, used for inputting the acoustic features to be recognized and the regional features to be recognized into the target accent recognition acoustic model, the target accent recognition acoustic model transforms the regional features to be recognized to obtain the transformed features to be recognized, performs speech feature extraction on the acoustic features to be recognized to obtain the speech features to be recognized, merges the transformed features to be recognized and the speech features to be recognized to obtain the merged features to be recognized, and performs speech phoneme recognition on the merged features to be recognized to obtain the speech phoneme information corresponding to the accent speech to be recognized;

[0054] The text acquisition module is used to perform text recognition based on accent phoneme information to obtain the target text corresponding to the accented speech to be recognized.

[0055] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0056] Obtain the accented speech to be recognized and the corresponding area information to be recognized;

[0057] Extracting the acoustic features to be recognized corresponding to the accented speech to be recognized and obtaining the features of the region to be recognized corresponding to the information of the region to be recognized;

[0058] Inputting the acoustic features to be recognized and the regional features to be recognized into the target accent recognition acoustic model, the target accent recognition acoustic model transforms the regional features to be recognized to obtain transformed features to be recognized, extracting speech features from the acoustic features to be recognized to obtain speech features to be recognized, merging the transformed features to be recognized and the speech features to be recognized to obtain merged features to be recognized, and performing speech phoneme recognition on the merged features to be recognized to obtain speech phoneme information corresponding to the accented speech to be recognized;

[0059] Text recognition is performed based on the accent phoneme information to obtain the target text corresponding to the accented speech to be recognized.

[0060] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0061] Obtain the accented speech to be recognized and the corresponding area information to be recognized;

[0062] Extracting the acoustic features to be recognized corresponding to the accented speech to be recognized and obtaining the features of the region to be recognized corresponding to the information of the region to be recognized;

[0063] Inputting the acoustic features to be recognized and the regional features to be recognized into the target accent recognition acoustic model, the target accent recognition acoustic model transforms the regional features to be recognized to obtain transformed features to be recognized, extracting speech features from the acoustic features to be recognized to obtain speech features to be recognized, merging the transformed features to be recognized and the speech features to be recognized to obtain merged features to be recognized, and performing speech phoneme recognition on the merged features to be recognized to obtain speech phoneme information corresponding to the accented speech to be recognized;

[0064] Text recognition is performed based on the accent phoneme information to obtain the target text corresponding to the accented speech to be recognized.

[0065] The above-mentioned accent recognition method, device, computer equipment and storage medium extract the acoustic features to be recognized corresponding to the accented speech to be recognized and obtain the features of the region to be recognized corresponding to the information of the region to be recognized, input the acoustic features to be recognized and the features of the region to be recognized into the target accent recognition acoustic model, the target accent recognition acoustic model transforms the features of the region to be recognized to obtain the transformed features to be recognized, extracts the voice features of the acoustic features to be recognized to obtain the voice features to be recognized, merges the transformed features to be recognized and the voice features to be recognized to obtain the merged features to be recognized, and performs voice phoneme recognition on the merged features to obtain the voice phoneme information corresponding to the accented speech to be recognized. Then, text recognition is performed based on the accent phoneme information to obtain the target text corresponding to the accented speech to be recognized. Since the target accent recognition acoustic model uses the features of the region to be recognized and the acoustic features to be recognized to recognize the voice phoneme information corresponding to the accented speech to be recognized, the voice phoneme information corresponding to the trained accented speech to be recognized is more accurate, thereby improving the accuracy of the recognized target text. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] Figure 1 A diagram of an application environment of an accent recognition acoustic model training method in one embodiment;

[0067] Figure 2 A schematic diagram of a flow chart of a method for training an accent recognition acoustic model in an embodiment;

[0068] Figure 3 A schematic diagram of a process for obtaining initial speech phoneme information in one embodiment;

[0069] Figure 4 A schematic diagram of a process of obtaining initial speech phoneme information in another embodiment;

[0070] Figure 5 A schematic diagram of a process for obtaining initial speech phoneme features in one embodiment;

[0071] Figure 6 is a schematic diagram of the architecture of an initial accent recognition acoustic model in a specific embodiment;

[0072] Figure 7 A schematic diagram of a process for obtaining a target accent recognition acoustic model in one embodiment;

[0073] Figure 8 A schematic diagram of a process for establishing an initial accent recognition acoustic model in an embodiment;

[0074] Fig. 9 A schematic diagram of a process for obtaining basic speech phoneme information in one embodiment;

[0075] Fig.10A schematic diagram of a process for obtaining an initial accent recognition acoustic model in an embodiment;

[0076] Fig.11 A schematic diagram of a process for obtaining basic speech phoneme features in one embodiment;

[0077] Fig.12 is a schematic diagram of the architecture of a basic accent recognition acoustic model in a specific embodiment;

[0078] Fig.13 A schematic diagram of a process for establishing a basic accent recognition acoustic model in an embodiment;

[0079] Fig.14 It is a schematic diagram of the architecture of an acoustic model for initial accent recognition in a specific embodiment;

[0080] Fig.15 A schematic diagram of a process for obtaining an optimized accent recognition acoustic model in an embodiment;

[0081] Fig.16 is a flow chart of an accent recognition method in one embodiment;

[0082] Fig.17 It is a flowchart of a method for training an acoustic model for accent recognition in a specific embodiment;

[0083] Fig.18 is a schematic diagram of the correspondence between regional features and regions in a specific embodiment;

[0084] Fig.19 A schematic diagram of an application scenario of accent recognition in a specific embodiment;

[0085] Fig. 20 is a structural block diagram of an accent recognition acoustic model training device in one embodiment;

[0086] Fig.21 is a structural block diagram of an accent recognition device in one embodiment;

[0087] Fig. 22 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0088] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0089] The key technologies of speech technology include automatic speech recognition technology (ASR), text-to-speech technology (TTS) and voiceprint recognition technology. Enabling computers to listen, see, speak and feel is the future development direction of human-computer interaction, among which speech has become one of the most promising human-computer interaction methods in the future.

[0090] The solution provided in the embodiment of the present application relates to artificial intelligence speech recognition technology, which is specifically described by the following embodiments:

[0091] The accent recognition acoustic model training method provided in this application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The terminal 102 sends a model training instruction to the server, and the server 104 receives the model training instruction sent by the terminal, obtains training data from the database, and the training data includes training speech, accent area features and phoneme labels corresponding to the training speech; the server 104 extracts the acoustic features corresponding to the training speech; the server 104 inputs the acoustic features and the accent area features into the initial accent recognition acoustic model, and the initial accent recognition acoustic model transforms the accent area features to obtain initial transformation features, performs speech feature extraction on the acoustic features to obtain initial speech features, merges the initial transformation features and the initial speech features to obtain initial merged features, and performs speech phoneme recognition on the initial merged features to obtain initial speech phoneme information; the server 104 calculates loss information based on the initial speech phoneme information and the corresponding phoneme labels, updates the initial accent recognition acoustic model based on the loss information, and returns to the step of inputting the acoustic features and the accent area features into the initial accent recognition acoustic model for iterative execution until the training is completed, and the target accent recognition acoustic model is obtained. Then, a reminder message indicating that the model training is completed may be returned to the terminal 102. The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0092] In one embodiment, Figure 2 As shown, a method for training an accent recognition acoustic model is provided, and the method is applied to Figure 1 The server in the example is used to illustrate the following steps:

[0093] Step 202: Acquire training data, where the training data includes training speech, accent area features corresponding to the training speech, and phoneme labels.

[0094] Among them, training data refers to the data used when training the initial accent recognition acoustic model. Training speech refers to the speech used when training the initial accent recognition acoustic model, and the training speech may include speech with different accents. Each training speech has a corresponding accent area feature and phoneme label. The accent area feature refers to the accent area corresponding to the training speech, and speech in different areas has different accents. Different areas correspond to different accent area features, and the accent area features can be pre-set or obtained by feature extraction based on the area. Phoneme label refers to the label of the phoneme corresponding to the training speech. Phoneme is the smallest speech unit divided according to the natural properties of speech. It is analyzed based on the pronunciation action in the syllable, and one action constitutes a phoneme.

[0095] Specifically, the server can directly obtain the training data from the database, and the training data includes the training speech, the accent area features corresponding to the training speech, and the phoneme labels. The server can also obtain the training data from a service provider that provides data services, or the server can collect the training data from the Internet. In one embodiment, the server obtains the training speech and the accent area corresponding to the training speech, and then obtains the accent area features corresponding to the area to obtain the training data.

[0096] Step 204: extracting acoustic features corresponding to the training speech.

[0097] Among them, acoustic features refer to features that represent the acoustic characteristics of speech, including at least one of fundamental frequency features, formant features, MFCC (Mel Frequency Cepstrum Coefficient) features, PNCC (improved MFCC) features and i-vector (voiceprint features) features. Preferably, PNCC features and i-vector features can be extracted as acoustic features corresponding to the training speech.

[0098] Specifically, the server can obtain the training speech corresponding to any accent area feature from the training data, and then use signal processing technology to extract the corresponding acoustic features from the training speech. For example, the PNCC algorithm can be used to extract PNCC features, and the i-vector feature can be used to extract i-vector features. The fundamental frequency feature can be obtained by detecting the fundamental period in the speech, and the formant feature can be extracted using the cepstrum method. The MFCC feature can be extracted using the MFCC extraction algorithm.

[0099] Step 206, input the acoustic features and the accent area features into the initial accent recognition acoustic model, the initial accent recognition acoustic model transforms the accent area features to obtain initial transformed features, performs speech feature extraction on the acoustic features to obtain initial speech features, merges the initial transformed features and the initial speech features to obtain initial merged features, and performs speech phoneme recognition on the initial merged features to obtain initial speech phoneme information.

[0100] Among them, the initial accent recognition acoustic model refers to an untrained multi-task accent recognition acoustic model, that is, the parameters in the initial accent recognition acoustic model can be initialized, for example, it can be all-zero initialization, or it can be randomly initialized, etc. The multi-task refers to the accent recognition tasks corresponding to multiple regional features. The initial transformation feature refers to the feature obtained by performing an initial transformation on the accent regional feature, and the transformation can be a linear transformation or a nonlinear transformation. The initial speech feature refers to the feature obtained after further performing speech feature extraction on the acoustic feature, so that the obtained initial speech feature has higher robustness. The initial merged feature refers to the feature obtained by merging the initial transformation feature and the initial speech feature. The initial speech phoneme information refers to the initial speech phoneme information recognized by the initial accent recognition acoustic model, and the speech phoneme information can be the phoneme corresponding to the training speech, or it can be the probability distribution of the corresponding state of the phoneme.

[0101] Specifically, the server pre-establishes an initial accent recognition acoustic model, and then during training, inputs the acoustic features and accent regional features into the initial accent recognition acoustic model. The initial accent recognition acoustic model transforms the accent regional features using initial transformation parameters to obtain initial transformation features, extracts voice features from the acoustic features using initial voice feature extraction parameters to obtain initial voice features, and merges the initial transformation features and the initial voice features to obtain initial merged features, wherein merging the initial transformation features and the initial voice features may be directly concatenating the initial transformation features and the initial voice features to obtain the initial merged features, or may be performing vector operations on the initial transformation features and the initial voice features to obtain the initial merged features, wherein the vector operations may include vector sum operations, vector product operations, scalar product operations, etc. Then, the initial merged features are subjected to voice phoneme recognition using the voice phoneme recognition parameters corresponding to the regional features to obtain initial voice phoneme information.

[0102] Step 208, calculating loss information based on the initial speech phoneme information and the corresponding phoneme tags, and updating the initial accent recognition acoustic model based on the loss information.

[0103] The loss information is used to represent the error between the initial speech phoneme information and the corresponding phoneme label.

[0104] Specifically, the server uses a loss function to calculate the error between the initial speech phoneme information and the corresponding phoneme label to obtain loss information, and then uses the loss information to reversely update the parameters in the initial accent recognition acoustic model based on the gradient descent algorithm.

[0105] Step 210, determining whether the training is completed, if the training is not completed, returning to the step of inputting the acoustic features and the accent region features into the initial accent recognition acoustic model for iterative execution. When the training is completed, executing step 212.

[0106] Step 212, obtaining a target accent recognition acoustic model.

[0107] Among them, judging whether the training is completed is judging whether the training meets the training completion condition, that is, judging whether the model converges. The training completion condition includes at least one of the following: the number of training iterations reaches the maximum number of iterations, the loss information obtained from the training is less than the preset loss threshold, and the model parameters obtained from the training no longer change. The target accent recognition acoustic model refers to the trained accent recognition acoustic model, which is used to recognize accented speech in different regions.

[0108] Specifically, the server determines whether the training is completed. If the training is not completed, the server returns to the step of inputting the acoustic features and the accent region features into the initial accent recognition acoustic model for iterative execution. When the training is completed, the target accent recognition acoustic model is obtained.

[0109] In the above-mentioned accent recognition acoustic model training method, by extracting the acoustic features corresponding to the training speech, the acoustic features and the accent area features are input into the initial accent recognition acoustic model, the initial accent recognition acoustic model transforms the accent area features to obtain the initial transformation features, performs speech feature extraction on the acoustic features to obtain the initial speech features, merges the initial transformation features and the initial speech features to obtain the initial merged features, and performs speech phoneme recognition on the initial merged features to obtain the initial speech phoneme information; based on the initial speech phoneme information and the corresponding phoneme labels, the loss information is calculated, the initial accent recognition acoustic model is updated based on the loss information, and the step of returning to input the acoustic features and the accent area features into the initial accent recognition acoustic model is iteratively executed until the training is completed to obtain the target accent recognition acoustic model. Since the target accent recognition acoustic model is trained by using the accent area features and the acoustic features together, the target accent recognition acoustic model can learn more abundant information, so that the target accent recognition acoustic model improves the recognition accuracy when performing accent speech recognition, thereby improving the accuracy of the accent speech recognition results.

[0110] In one embodiment, the initial accent recognition acoustic model includes: an initial conversion network, an initial feature extraction network, and an initial phoneme recognition network;

[0111] like Figure 3 As shown, step 206, that is, inputting the acoustic features and the accent region features into the initial accent recognition acoustic model, includes:

[0112] Step 302: input the accent region feature into the initial conversion network for conversion to obtain the initial conversion feature.

[0113] The initial conversion network is a network used for feature conversion. The network parameters in the initial conversion network can be obtained by initialization or by pre-training.

[0114] Specifically, the server inputs the accent region feature into the initial conversion network for conversion to obtain the initial conversion feature. In one embodiment, the initial conversion network may be an initial linear conversion network that can perform linear conversion, or an initial nonlinear conversion network that can perform nonlinear conversion.

[0115] Step 304: Input the acoustic features into the initial feature extraction network to extract speech features, and obtain initial speech features.

[0116] Specifically, the initial feature extraction network is a network used by the user to extract speech features, such as a CNN (Convolutional Neural Networks) network, an RNN (Recurrent Neural Network) network, and the like. The network parameters in the initial feature extraction network can be obtained by initialization or by pre-training. The server inputs the acoustic features into the initial feature extraction network to extract speech features and obtain initial speech features. The initial feature extraction network can extract features that better represent speech, thereby improving robustness.

[0117] Step 306: merge the initial conversion feature and the initial speech feature to obtain an initial merged feature.

[0118] Step 308: input the initial combined features into an initial phoneme recognition network to perform speech phoneme recognition to obtain initial speech phoneme information.

[0119] The initial phoneme recognition network refers to a network used for speech phoneme recognition. The initial phoneme recognition network may be a multi-task network, and each region has a corresponding regional speech phoneme recognition network.

[0120] Specifically, the server calculates the sum of the vector corresponding to the initial conversion feature and the vector corresponding to the initial speech feature to obtain the initial merged feature, and then inputs the initial merged feature into the phoneme recognition network corresponding to the regional feature in the initial phoneme recognition network for recognition to obtain the output initial speech phoneme information.

[0121] In the above embodiment, the initial conversion features are obtained by using the initial conversion network and the initial speech features are extracted by using the initial feature extraction network. Then, the initial conversion features and the initial speech features are merged, and the initial merged features are subjected to speech phoneme recognition using the initial phoneme recognition network to obtain initial speech phoneme information. Since the merged features are subjected to speech phoneme recognition, the recognized accented speech phoneme information can be made more accurate.

[0122] In one embodiment, step 304, inputting the acoustic features into the initial feature extraction network to extract speech features to obtain initial speech features includes:

[0123] The acoustic features are deformed through spectrum enhancement to obtain acoustic enhancement features, and the acoustic enhancement features are input into the initial feature extraction network to extract speech features to obtain initial speech features.

[0124] Spectral enhancement refers to masking in the time-frequency domain using SpecAugment (A Simple Data Augmentation Method for Automatic Speech Recognition). Acoustic enhancement features refer to features obtained after spectral enhancement.

[0125] Specifically, the server deforms the acoustic features through spectrum enhancement to obtain acoustic enhancement features, wherein the acoustic features can be deformed through time deformation, spectrum masking, and time masking operations to obtain acoustic enhancement features, and the acoustic enhancement features are input into the initial feature extraction network to extract speech features to obtain initial speech features. By simultaneously using the acoustic enhancement features to train the accent recognition acoustic model, the robustness of the trained model can be improved.

[0126] In one embodiment, the initial phoneme recognition network includes an initial speech phoneme feature extraction network, an initial target conversion network, and an initial accent phoneme recognition network corresponding to at least two different accent area features;

[0127] like Figure 4 As shown, step 308, that is, inputting the initial combined features into the initial phoneme recognition network to perform speech phoneme recognition, and obtaining initial speech phoneme information, includes:

[0128] Step 402: Input the initial combined features into an initial speech phoneme feature extraction network to extract speech phoneme features, thereby obtaining initial speech phoneme features.

[0129] The initial speech phoneme feature extraction network is a network used to extract the accent speech phoneme features. It can be a deep neural network. The initial speech phoneme features refer to the features of the extracted accent speech phonemes.

[0130] Specifically, the server inputs the initial merged features into the initial speech phoneme feature extraction network for calculation to obtain the output initial speech phoneme features.

[0131] Step 404: input the accent region feature into the initial target conversion network for conversion to obtain the initial target conversion feature.

[0132] The initial target conversion network is a network used to convert the accent area features, and the trained target conversion network and the conversion network have different network parameters. It can be a linear conversion or a nonlinear conversion. The initial target conversion feature refers to the feature obtained by the initial target conversion network.

[0133] Specifically, the server may input the accent area features into the initial target linear conversion network for linear conversion to obtain the initial target linear conversion features, or may input the accent area features into the initial target nonlinear conversion network for nonlinear conversion to obtain the initial target nonlinear conversion features.

[0134] Step 405, the initial speech phoneme feature and the initial target conversion feature are merged to obtain a target merged feature, and the target merged feature is input into an initial accent phoneme recognition network corresponding to the accent area feature for phoneme recognition to obtain initial speech phoneme information.

[0135] Among them, the target merged feature refers to the feature obtained by merging the initial speech phoneme feature with the feature output by the target conversion network.

[0136] Specifically, the initial phoneme recognition network includes at least two initial accent phoneme recognition networks corresponding to different accent regional features. That is, there are multiple initial accent phoneme recognition networks, and different initial accent phoneme recognition networks are used to use the accent phonemes of the corresponding regions. For example, it can be English accent phoneme recognition networks corresponding to different national regions, for example, English accent phoneme recognition networks in the Chinese region, the American region, the British region, the Japanese region, etc. When the regional feature corresponding to the training speech is the Chinese regional feature, the server inputs the target merged feature into the initial Chinese English accent phoneme recognition network corresponding to the Chinese regional feature for phoneme recognition, and obtains the initial Chinese English accent speech phoneme information. It can also be dialects of different regions. For example, Chinese has different dialects in different regions. The dialect speech is input into the accent phoneme recognition network of the corresponding dialect region for phoneme recognition to obtain the initial speech phoneme information. Then, when the loss information calculated using the initial speech phoneme information is used to update the parameters, the network parameters of the initial accent phoneme recognition network corresponding to the regional feature in the initial phoneme recognition network are updated, and the network parameters of the initial accent phoneme recognition network corresponding to other regional features remain unchanged.

[0137] In the above embodiment, during training, the initial speech phoneme features and the initial target conversion features are merged to obtain the target merged features, and the target merged features are input into the initial accent phoneme recognition network corresponding to the accent regional features for phoneme recognition to obtain the initial speech phoneme information. Since the initial speech phoneme features corresponding to the regional features are recognized in the initial accent phoneme recognition network corresponding to the regional features, the accuracy of the recognized initial speech phoneme information can be improved.

[0138] In one embodiment, the initial speech phoneme feature extraction network includes at least one initial time-delay neural network, at least one initial gated recurrent network and at least one initial intermediate conversion network, and the initial time-delay neural network and the initial gated recurrent network are alternating network structures;

[0139] like Figure 5 As shown, step 402, that is, inputting the initial combined features into the initial speech phoneme feature extraction network to extract speech phoneme features, and obtaining the initial speech phoneme features, includes:

[0140] Step 502: Input the initial combined features into the initial time delay neural network for calculation to obtain the initial time delay features.

[0141] Among them, the time delay neural network refers to TDNN (Time Delay Neural Network), which is a convolutional neural network applied to speech recognition problems. It uses FFT preprocessed speech signals as input, and its hidden layer consists of two one-dimensional convolution kernels to extract translation-invariant features in the frequency domain. The initial time delay neural network refers to the time delay neural network with parameters initialized in the initial accent recognition acoustic model. The initial time delay features refer to the translation-invariant features in the frequency domain extracted using the initial time delay neural network. The alternating network structure refers to the initial time delay neural network connected to the next initial gated recurrent network, and the initial gated recurrent network connected to the next initial time delay neural network, that is, the initial time delay neural network and the initial gated recurrent network are alternately connected.

[0142] Specifically, the server inputs the initial merged features into the initial time delay neural network, extracts the translation invariant features in the frequency domain, and obtains the initial time delay features. In one embodiment, multiple initial time delay neural networks can be used to extract the initial merged features. When the output of each initial time delay neural network is to be input into the next initial time delay neural network, it needs to be merged with the features converted by the conversion network to obtain the merged features, and then the merged features are input into the next initial time delay neural network for calculation, so that the calculated initial time delay features contain regional information, thereby improving the accuracy of subsequent phoneme recognition.

[0143] Step 504: input the accent region features into the initial intermediate conversion network for conversion to obtain initial intermediate conversion features.

[0144] Among them, the intermediate conversion network refers to the conversion network between the initial time-delay neural network and the initial gated recurrent network, which is used to convert the accent area features, which can be linear conversion or nonlinear conversion. The initial intermediate conversion feature refers to the feature obtained by converting the accent area feature using the initial intermediate conversion network. That is, when the initial time-delay feature is to be input into the initial gated recurrent network, it needs to be merged with the initial intermediate conversion feature before it can be input into the initial gated recurrent network for calculation.

[0145] Step 506, merge the initial time delay feature and the initial intermediate conversion feature to obtain an initial intermediate merged feature, input the initial intermediate merged feature into the initial gated recurrent network for calculation, and obtain the initial speech phoneme feature.

[0146] Among them, the initial intermediate merged feature refers to the feature obtained by merging the initial delay feature and the initial intermediate conversion feature. The gated recurrent network refers to GRU (Gated Recurrent Unit), which does not use the unit state but uses the hidden state to transmit information. It also has only two gates, a reset gate and an update gate, which can save information in long-term sequences and will not be cleared over time or removed because it is irrelevant to the prediction, avoiding the gradient disappearance problem. The gated recurrent network refers to an improved version of the standard recurrent neural network. The initial gated recurrent network is used to extract the initial speech phoneme features.

[0147] Specifically, the server merges the initial time delay feature and the initial intermediate conversion feature to obtain an initial intermediate merged feature, and inputs the initial intermediate merged feature into an initial gated recurrent network for calculation to obtain an initial speech phoneme feature.

[0148] In the above embodiment, the initial time delay feature is obtained by using a time delay neural network, and the initial intermediate conversion feature is obtained by using an initial intermediate conversion network, the initial time delay feature and the initial intermediate conversion feature are merged to obtain an initial intermediate merged feature, and the initial intermediate merged feature is input into an initial gated recurrent network for calculation to obtain an initial speech phoneme feature, that is, the speech timing signal is modeled by using a network composed of a time delay neural network and a gated recurrent network alternately, thereby improving the efficiency of model training, and the merged feature is obtained by using a conversion network, and the merged feature is used for calculation, thereby improving the accuracy of the trained model.

[0149] In a specific embodiment, Figure 6 The following is a schematic diagram of the architecture of the initial accent recognition acoustic model. Specifically:

[0150] The server obtains training data, which includes training dialect speech, accent area features and phoneme labels corresponding to the training dialect speech, extracts acoustic features corresponding to the training speech, inputs the acoustic features and accent area features into the initial accent recognition acoustic model, and the initial accent recognition acoustic model performs data enhancement on the acoustic features through SpecAugment to obtain acoustic enhancement features. The acoustic enhancement features are input into the CNN1 network and the CNN2 network for speech feature extraction to obtain initial speech features. More abstract and robust features can be extracted through two layers of CNN1 and CNN2. Then the initial speech features are input into the network part which is interwoven with multiple layers of TDNN (time-delay neural network) and GRU (Gated Recurrent Unit), which is mainly used to model the time series signal, wherein the initial speech features are input into the Tdnn1 network for calculation to obtain the output, the regional features (1-hot vector, one-dimensional vector) are linearly transformed through the Affine1 (affine transformation) network to obtain the initial conversion features, the initial conversion features are merged with the output to obtain the initial merged features, the initial merged features are input into the Tdnn2 (-1, 0, 1) network for calculation to obtain the output, and then the regional features are linearly transformed through the Affine2 network to obtain the initial conversion features, the initial conversion features are merged with the output to obtain the initial merged features, and the calculations are performed in sequence, wherein two layers of Tdnn networks and one layer of Opgru network are calculated alternately, and the output of each network is merged with the conversion features calculated by the corresponding Affine network as the input of the next network. Finally, the output of the Opgru3 network is obtained, and the output is merged with the initial conversion features obtained by calculating the regional features through the Affine10 network to obtain the initial merged features. The initial merged features are input into the Affine network corresponding to the dialect regional features in the dialect phoneme recognition layer for phoneme recognition, and the initial accent phoneme information output by the output layer is obtained. Then the loss information is calculated, and the initial accent recognition acoustic model is updated according to the loss information. When the training is completed, the target accent recognition acoustic model is obtained.

[0151] In one embodiment, Figure 7 As shown, the loss information is calculated based on the initial speech phoneme information and the corresponding phoneme labels, the initial accent recognition acoustic model is updated based on the loss information, and the step of returning to input the acoustic features and the accent area features into the initial accent recognition acoustic model is iteratively executed until the training is completed to obtain the target accent recognition acoustic model, including:

[0152] Step 702: The initial speech phoneme information and the corresponding phoneme labels are used to calculate loss information using a maximum mutual information optimization function. When the loss information does not meet the training completion condition, the parameters of the initial accent recognition acoustic model are reversely updated based on the loss information to obtain an updated accent recognition acoustic model.

[0153] Step 704, the updated accent recognition acoustic model is used as the initial accent recognition acoustic model, and the steps of inputting the acoustic features and accent area features into the initial accent recognition acoustic model are iteratively executed until the loss information meets the training completion conditions, and the initial accent recognition acoustic model that meets the training completion conditions is used as the target accent recognition acoustic model.

[0154] Specifically, the training criteria uses LFMMI (lattice-free maximum mutual information) and uses the gradient descent method for training. That is, the server uses the maximum mutual information optimization function to calculate the error between the initial speech phoneme information and the corresponding phoneme label, obtains the loss information, and determines whether the loss information reaches the preset loss threshold. When the loss threshold is not reached, the parameters of the initial accent recognition acoustic model are reversely updated based on the loss information to obtain the updated accent recognition acoustic model, and then the updated accent recognition acoustic model is used as the initial accent recognition acoustic model, and the step of inputting the acoustic features and accent area features into the initial accent recognition acoustic model is returned to iterative execution until the loss information meets the training completion conditions, and the initial accent recognition acoustic model that meets the training completion conditions is used as the target accent recognition acoustic model. In one embodiment, when the acquired training data is training speech corresponding to a first accent regional feature, the training speech corresponding to the first accent regional feature is used for training to obtain an updated accent recognition acoustic model, which is a model in which the parameters of the phoneme recognition network corresponding to the first accent regional feature are updated, and the parameters of the phoneme recognition networks corresponding to other accent regional features remain unchanged. The updated accent recognition acoustic model is then used as the initial accent recognition acoustic model, and the step of acquiring training data, which may be training speech corresponding to other accent regional features, is returned and executed until the loss information meets the training completion condition, and the initial accent recognition acoustic model that meets the training completion condition is used as the target accent recognition acoustic model.

[0155] In the above embodiment, by using the maximum mutual information optimization function in the model training process, the trained target accent recognition acoustic model can improve the accuracy of accent recognition.

[0156] In one embodiment, Figure 8 As shown, before step 202, that is, before obtaining training data, the following steps are also included:

[0157] Step 802 , obtaining basic training data, where the basic training data includes basic training speech, basic accent regional features corresponding to the basic training speech, and basic phoneme labels.

[0158] Among them, the basic training data refers to the data used when training the basic accent recognition acoustic model, and the basic accent recognition acoustic model refers to an untrained single-task accent recognition acoustic model, and the single task refers to the accent recognition task. The basic accent recognition acoustic model can be a pre-trained model of the initial accent recognition acoustic model, that is, the parameters of the trained basic accent recognition acoustic model are used as the initial parameters of the initial accent recognition acoustic model. The basic training data can be the same as the training data, or different, or can be a part of the training data. For example, the initial training data can be 20,000 hours of speech data, and the training data can be 4,000 hours of speech data with regional information selected from the 20,000 hours of speech data, and the basic training data also starts with 4,000 hours of speech data with regional information selected from the 20,000 hours of speech data. The basic training speech refers to the speech in the basic training data. The basic accent regional feature refers to the feature of the corresponding region of the basic training speech, that is, the basic training speech is the accent speech of the region. The basic phoneme label refers to the label of the phoneme corresponding to the basic training speech.

[0159] Specifically, the server may obtain basic training data from a database, or may select basic training data with regional information from training data. The server may also obtain basic training data collected from the Internet.

[0160] Step 804: extract basic acoustic features corresponding to the basic training speech.

[0161] Specifically, the basic acoustic features refer to the acoustic features corresponding to the basic training speech. The server can use signal processing technology to extract the corresponding acoustic features from the basic training speech. For example, the PNCC algorithm can be used to extract PNCC features, and the i-vector feature can be used to extract i-vector features. The fundamental frequency feature can be obtained by detecting the fundamental frequency period in the speech, and the resonance peak feature can be extracted using the cepstrum method. The MFCC feature can be extracted using the MFCC extraction algorithm.

[0162] Step 806, input the basic acoustic features and the basic accent regional features into the basic accent recognition acoustic model; the basic accent recognition acoustic model inputs the basic accent regional features into the basic conversion network for conversion to obtain basic conversion features; inputs the basic acoustic features into the basic feature extraction network for speech feature extraction to obtain basic speech features; merges the basic conversion features and the basic speech features to obtain basic merged features; inputs the basic merged features into the basic phoneme recognition network for speech phoneme recognition to obtain basic speech phoneme information.

[0163] Among them, the basic accent recognition acoustic model is used for pre-training as a pre-training model of the initial accent recognition acoustic model, and the basic accent recognition acoustic model includes a basic conversion network, a basic feature extraction network and a basic phoneme recognition network. The basic conversion network is used to convert the basic accent regional features, which can be a linear conversion or a nonlinear conversion. The basic conversion feature refers to the conversion feature corresponding to the basic accent regional feature. The basic feature extraction network is used to extract more abstract and robust features. The basic speech feature refers to the feature corresponding to the basic training speech. The basic merged feature is the feature obtained by merging the basic conversion feature and the basic speech feature. The basic phoneme recognition network is used to identify the basic speech phoneme information corresponding to the basic training speech. The basic speech phoneme information refers to the speech phoneme information corresponding to the basic training speech. The basic speech phoneme information can be the phoneme corresponding to the basic training speech, or it can be the probability distribution of the corresponding state of the phoneme.

[0164] Specifically, the server inputs the basic acoustic features and the basic accent regional features into the basic accent recognition acoustic model. The basic accent recognition acoustic model receives the input basic acoustic features and the basic accent regional features, inputs the basic accent regional features into the basic conversion network for conversion to obtain basic conversion features, inputs the basic acoustic features into the basic feature extraction network for speech feature extraction to obtain basic speech features, and merges the basic conversion features and the basic speech features to obtain basic merged features, wherein the merger can be direct concatenation or vector operation. The basic merged features are input into the basic phoneme recognition network for speech phoneme recognition to obtain basic speech phoneme information. In one embodiment, the basic acoustic features can also be deformed by spectral enhancement to obtain basic acoustic enhancement features, and the basic acoustic enhancement features are input into the basic feature extraction network for speech feature extraction to obtain basic speech features. That is, the basic acoustic enhancement features are obtained by performing masking operations in the time-frequency domain through the SpecAugmen technology.

[0165] Step 808, calculating basic loss information based on the basic speech phoneme information and the corresponding basic phoneme tags, and updating the basic accent recognition acoustic model based on the basic loss information.

[0166] Step 810, determining whether the basic training is completed. When the basic training is completed, executing step 812. When the basic training is not completed, returning to step 806 to continue iterative execution.

[0167] Among them, the basic loss information refers to the loss information obtained during the training of the basic accent recognition acoustic model.

[0168] Specifically, the server uses a pre-set loss function to calculate the error between the basic speech phoneme information and the corresponding basic phoneme label to obtain basic loss information, and uses the basic loss information to reversely update the parameters of the basic conversion network, the basic feature extraction network and the basic phoneme recognition network in the basic accent recognition acoustic model through the gradient descent algorithm to obtain the updated basic accent recognition acoustic model, and then judges whether the basic training is completed, which can be judged by whether the number of training times reaches the maximum number of iterations, or whether the loss information reaches the preset loss threshold, or whether the parameters of the updated basic accent recognition acoustic model have changed. When it is judged that the basic training is not completed, the updated basic accent recognition acoustic model is used as the basic accent recognition acoustic model, and the step of inputting the basic acoustic features and the basic accent regional features into the basic accent recognition acoustic model is returned to iterative execution. In one embodiment, it is also possible to return to the step of obtaining basic training data for iterative execution, that is, to obtain any basic training speech from the basic training data for iterative execution. When it is judged that the basic training is completed, the updated basic accent recognition acoustic model is used as the basic accent recognition acoustic model that has been trained.

[0169] Step 812: obtain the trained basic accent recognition acoustic model, and establish an initial accent recognition acoustic model based on the trained basic accent recognition acoustic model.

[0170] Specifically, the server uses the trained basic accent recognition acoustic model to establish an initial accent recognition acoustic model. The parameters of the target basic conversion network, the target basic feature extraction network and the target basic phoneme recognition network in the basic accent recognition acoustic model can be used as the initial parameters in the initial accent recognition acoustic model to obtain the initial accent recognition acoustic model.

[0171] In the above embodiment, a basic accent recognition acoustic model is obtained by training with basic training data, and then an initial accent recognition acoustic model is established using the trained basic accent recognition acoustic model. Then, the initial accent recognition acoustic model is trained to obtain a target accent recognition acoustic model. Since the parameters of the initial accent recognition acoustic model are obtained using the parameters of the trained basic accent recognition acoustic model, faster convergence can be achieved when training the initial accent recognition acoustic model, thereby improving the training efficiency of the model and improving the accuracy of training the target accent recognition acoustic model.

[0172] In one embodiment, Fig. 9 As shown, the basic phoneme recognition network includes a basic speech phoneme feature extraction network, a basic target conversion network and a basic accent phoneme recognition network;

[0173] Step 806, inputting the basic merged features into the basic phoneme recognition network to perform speech phoneme recognition, and obtaining basic speech phoneme information, including:

[0174] Step 902: Input the basic merged features into the basic speech phoneme feature extraction network to extract speech phoneme features, and obtain basic speech phoneme features.

[0175] The basic speech phoneme feature extraction network is a network used to extract the basic training speech phoneme features, which may be a deep neural network, such as a TDNN network, an RNN network, etc. The basic speech phoneme features refer to the features of the extracted basic training speech phonemes.

[0176] Specifically, the server inputs the basic merged features into the basic phoneme recognition network to perform speech phoneme recognition to obtain basic speech phoneme information.

[0177] Step 904: input the basic accent region features into the basic target conversion network for conversion to obtain basic target conversion features.

[0178] The basic target conversion network is a network used to convert the basic accent area features. The basic target conversion network and the basic conversion network have different network parameters, and can perform linear conversion or nonlinear conversion. The basic target conversion feature refers to the feature obtained by converting the basic target conversion network.

[0179] Specifically, the server may input the basic accent region feature into the basic target conversion network for linear conversion to obtain the basic target linear conversion feature, or may perform nonlinear conversion to obtain the basic target nonlinear conversion feature. The linear conversion may be an affine transformation.

[0180] Step 906, the basic speech phoneme feature and the basic target conversion feature are merged to obtain the basic target merged feature, and the basic target merged feature is input into the basic accent phoneme recognition network for phoneme recognition to obtain the basic speech phoneme information.

[0181] The basic target merged feature refers to the feature obtained by merging the basic speech phoneme feature and the basic target conversion feature. The basic accent phoneme recognition network is used to recognize the accent phonemes corresponding to the basic training speech. For example, the basic accent phoneme recognition network can be a linear conversion network. The basic speech phoneme information refers to the accent phoneme information corresponding to the basic training speech.

[0182] Specifically, the server calculates the vector sum of the basic speech phoneme feature and the basic target conversion feature to obtain the basic target merged feature, inputs the basic target merged feature into the basic accent phoneme recognition network for phoneme recognition, and obtains the basic speech phoneme information.

[0183] In the above embodiment, by using the combined features of the basic speech phoneme features and the basic target conversion features for recognition during accent phoneme recognition, the accuracy of the recognized basic speech phoneme information can be improved.

[0184] In one embodiment, Fig.10 As shown, step 812, establishing an initial accent recognition acoustic model based on the trained basic accent recognition acoustic model, includes:

[0185] Step 1002: Use the basic conversion network in the trained basic accent recognition acoustic model as the initial conversion network in the initial accent recognition acoustic model.

[0186] Step 1004: Use the basic feature extraction network in the trained basic accent recognition acoustic model as the initial feature extraction network in the initial accent recognition acoustic model.

[0187] Step 1006: Use the basic speech phoneme feature extraction network in the trained basic accent recognition acoustic model as the initial speech phoneme feature extraction network in the initial accent recognition acoustic model.

[0188] Step 1008: Use the basic target conversion network in the trained basic accent recognition acoustic model as the initial target conversion network in the initial accent recognition acoustic model.

[0189] Specifically, the server uses the basic target conversion network, basic feature extraction network, basic speech phoneme feature extraction network, and basic target conversion network in the trained basic accent recognition acoustic model as the initial conversion network, initial feature extraction network, initial speech phoneme feature extraction network, and initial target conversion network in the initial accent recognition acoustic model, that is, shares the network parameters in the basic accent recognition acoustic model with the network in the initial accent recognition acoustic model.

[0190] Step 1010, an initial accent phoneme recognition network corresponding to at least two different accent regional features is established to obtain an initial accent recognition acoustic model.

[0191] The initial accent phoneme recognition network refers to the accent phoneme recognition network with network parameters initialized.

[0192] Specifically, the server establishes an initial accent phoneme recognition network corresponding to each accent regional feature according to the number of accent regional features, and the initial accent phoneme recognition network corresponding to each accent regional feature is used to recognize the accent phonemes of the speech corresponding to the accent regional feature. The server obtains an initial accent recognition acoustic model according to the basic target conversion network, the basic feature extraction network, the basic speech phoneme feature extraction network, the basic target conversion network, and the initial accent phoneme recognition networks corresponding to at least two different accent regional features.

[0193] In the above embodiment, by using the trained basic accent recognition acoustic model to establish the initial accent recognition acoustic model, the training efficiency and accuracy of the initial accent recognition acoustic model can be improved.

[0194] In one embodiment, the basic speech phoneme feature extraction network includes at least one basic time-delay neural network, at least one basic gated recurrent network and at least one basic intermediate conversion network, and the basic time-delay neural network and the basic gated recurrent network are alternating network structures;

[0195] like Fig.11 As shown, in step 902, the basic merged features are input into the basic speech phoneme feature extraction network to extract speech phoneme features to obtain basic speech phoneme features, including:

[0196] Step 1102, input the basic merged features into the basic time delay neural network for calculation to obtain the basic time delay features.

[0197] Step 1104, input the basic accent region features into the basic intermediate conversion network for conversion to obtain basic intermediate conversion features.

[0198] Among them, the basic time-delay neural network refers to the time-delay neural network in the basic accent recognition acoustic model, which is used to extract the translation-invariant features in the frequency domain from the input features. The basic time-delay features refer to the features extracted by the basic time-delay neural network. The basic intermediate conversion network refers to the conversion network between the basic time-delay neural network and the basic gated recurrent network. The basic intermediate conversion network is used to convert the basic accent area features, which can be a nonlinear conversion or a linear conversion.

[0199] Specifically, the server uses the basic merged features as input into the basic time-delay neural network for calculation, and obtains the output basic time-delay features. At the same time, the basic accent area features are input into the basic intermediate conversion network for conversion, and the basic intermediate conversion features are obtained. The basic intermediate conversion features refer to the conversion features obtained through the basic intermediate conversion network.

[0200] Step 1106, merge the basic time delay feature and the basic intermediate conversion feature to obtain a basic intermediate merged feature, input the basic intermediate merged feature into a basic gated recurrent network for calculation, and obtain a basic speech phoneme feature.

[0201] Among them, the basic gated recurrent network refers to a network that obtains basic speech phoneme features through basic intermediate merging feature extraction.

[0202] Specifically, when the server wants to input the basic delay feature into the basic gated recurrent network, it needs to first merge the basic delay feature and the basic intermediate conversion feature to obtain the basic intermediate merged feature, and then input the basic intermediate merged feature into the basic gated recurrent network for calculation to obtain the basic speech phoneme feature.

[0203] In the above two embodiments, the speech time series signal is modeled by a basic time-delay neural network and a basic gated recurrent network, so as to extract the basic speech phoneme features, thereby improving the accuracy of the obtained basic speech phoneme features.

[0204] In a specific embodiment, Fig.12 As shown in FIG. 1 , the schematic diagram of the architecture of the basic accent recognition acoustic model is shown. Except for the speech phoneme recognition layer, the other architecture parts of the schematic diagram of the architecture of the basic accent recognition acoustic model are basically consistent with the schematic diagram of the architecture of the initial accent recognition acoustic model. Specifically:

[0205] The server inputs the basic acoustic features and basic accent regional features into the basic accent recognition acoustic model. The basic accent recognition acoustic model performs data enhancement on the basic acoustic features and then extracts features through the CNN network to obtain basic speech features. The basic speech features are first input into the Tdnn1 network to obtain output features. At the same time, the basic accent acoustic features are input into the affine network for linear transformation to obtain transformation features. The basic speech features and the output of the Tdnn1 network are merged to obtain basic merged features. The basic merged features are then input into the alternating network of Tdnn and GRU to obtain the output basic speech phoneme features. In the alternating network of Tdnn and GRU, if the output of the Lth layer is H L , the dimension size is h*1, the vector corresponding to the regional feature is V, the dimension size is v*1, and when the parameter matrix of the affine network is W L, the dimension is v*h, then the input of the L+1th layer (which can also be understood as the output of the Lth layer) is as shown in the following formula (1).

[0206] H' L =H L +W L V Formula (1

[0207] Among them, H' L The output of the Lth layer is also the input of the L+1th layer.

[0208] Then the output basic speech phoneme features and the transformed features obtained by inputting the regional features into the Affine10 network are merged and input into the speech phoneme recognition layer for recognition to obtain the output basic speech phoneme information, and then the loss information is calculated. When the loss information is not less than the preset threshold, the iterative execution continues until the loss information is less than the preset threshold to obtain the trained basic accent recognition acoustic model, and the initial accent recognition acoustic model is established based on the trained basic accent recognition acoustic model.

[0209] In one embodiment, Fig.13 As shown, before step 802, that is, before obtaining basic training data, the following steps are also included:

[0210] Step 1302: Acquire initial training data, where the initial training data includes initial training speech and corresponding initial phoneme labels.

[0211] Among them, the initial training data is data used to train the initial accent recognition acoustic model, and the initial accent recognition acoustic model is a pre-trained model of the basic accent recognition acoustic model, that is, the trained initial accent recognition acoustic model is used as a parameter in the basic accent recognition acoustic model. The network architecture of the initial accent recognition acoustic model is consistent with the network architecture of the basic accent recognition acoustic model that does not include a linear conversion network. The trained initial accent recognition acoustic model is used to identify the phonemes corresponding to the accented speech. The model parameters in the initial accent recognition acoustic model are initialized, which can be random initialization, zero initialization, etc. The initial training speech is the speech in the initial training data, which can be speech with different accents. The initial phoneme label refers to the label of the phoneme corresponding to the initial training speech.

[0212] Specifically, the server may directly obtain the initial training data from a database, collect the initial training data from the Internet, or obtain the initial training data from a service provider that provides data services.

[0213] Step 1304, extract the initial acoustic features corresponding to the initial training speech, input the initial acoustic features into the initial accent recognition acoustic model with initialized parameters, the initial accent recognition acoustic model inputs the initial acoustic features into the initial feature extraction network for feature extraction to obtain the initial speech features, and inputs the initial speech features into the initial phoneme recognition network for speech phoneme recognition to obtain the initial speech phoneme information.

[0214] Among them, the initial acoustic features refer to the acoustic features corresponding to the initial training speech. The server can use signal processing technology to extract the corresponding acoustic features from the initial training speech. For example, the PNCC algorithm can be used to extract PNCC features, and the i-vector features can be used to extract i-vector features. The fundamental frequency features can be obtained by detecting the fundamental frequency period in the speech, and the resonance peak features can be extracted using the inverse spectrum method. The MFCC features can be extracted using the MFCC extraction algorithm, and so on. The initial feature extraction network refers to a network used to extract features from the initial acoustic features, which can extract more abstract and robust features. The initial speech features refer to the speech features corresponding to the initial training speech. The initial speech phoneme information refers to the speech phoneme information corresponding to the initial training speech.

[0215] Specifically, when training the initial accent recognition acoustic model, the server first extracts the initial acoustic features corresponding to the initial training speech, and then inputs the initial acoustic features into the initial accent recognition acoustic model with initialized parameters. The initial accent recognition acoustic model inputs the initial acoustic features into the initial feature extraction network for feature extraction to obtain initial speech features, and then inputs the initial speech features into the initial phoneme recognition network for speech phoneme recognition to obtain initial speech phoneme information. In one embodiment, the initial acoustic features are masked in the time-frequency domain by the SpecAugmen technology before being input into the initial feature extraction network to obtain initial acoustic enhancement features, and then the initial acoustic enhancement features are input into the initial feature extraction network for feature extraction to obtain initial speech features.

[0216] Step 1306, calculating the initial loss information based on the initial speech phoneme information and the corresponding initial speech phoneme label, and updating the parameters in the initial accent recognition acoustic model based on the initial loss information.

[0217] The initial loss information refers to the loss information obtained when training the initial accent recognition acoustic model.

[0218] Specifically, the server uses a loss function to calculate the error between the initial speech phoneme information and the corresponding initial speech phoneme label to obtain loss information, and then uses the initial loss information to update the parameters in the initial accent recognition acoustic model, that is, to update the parameters of the initial feature extraction network and the parameters in the initial phoneme recognition network.

[0219] Step 1308, determine whether the initial training is completed. When the training is completed, execute step 1310. When the training is not completed, return to step 1304 for execution.

[0220] 1210, obtaining a trained initial accent recognition acoustic model, and establishing a basic accent recognition acoustic model based on the trained initial accent recognition acoustic model.

[0221] The completion of the initial training means that the initial training meets the initial training completion condition. The initial training completion condition may be that the number of trainings reaches the maximum number of iterations, or the initial loss information reaches a preset threshold, or the updated parameters no longer change, etc.

[0222] Specifically, the server determines whether the initial training completion condition is met. If the training completion condition is not met, the server returns to the step of inputting the initial acoustic features into the initial accent recognition acoustic model with initialized parameters and iteratively executes the step until the initial training is completed, thereby obtaining a trained initial accent recognition acoustic model. When the training is completed, a trained initial accent recognition acoustic model is obtained, and a basic accent recognition acoustic model is established using the trained initial feature extraction network and the initial phoneme recognition network.

[0223] In the above embodiment, the basic accent recognition acoustic model is established by using the initial accent recognition acoustic model obtained through training, so that the basic accent recognition acoustic model can converge faster during training and the accuracy of the trained basic accent recognition acoustic model can be higher.

[0224] In one embodiment, the initial phoneme recognition network includes an initial speech phoneme feature extraction network and an initial accent phoneme recognition network;

[0225] Step 1304, that is, inputting the initial speech feature into the initial phoneme recognition network to perform speech phoneme recognition to obtain the initial speech phoneme information, includes the steps of:

[0226] The initial speech feature is input into the initial speech phoneme feature extraction network to extract the speech phoneme feature to obtain the initial speech phoneme feature, and the initial speech phoneme feature is input into the initial accent phoneme recognition network to perform phoneme recognition to obtain the initial speech phoneme information.

[0227] Specifically, the initial speech phoneme feature extraction network is used to extract phoneme features from the initial training speech. The initial speech phoneme feature refers to the phoneme feature corresponding to the initial training speech. The initial accent phoneme recognition network is used to recognize the phonemes corresponding to the initial training speech. The initial speech phoneme information refers to the phoneme information corresponding to the initial training speech. The server inputs the initial speech feature into the initial speech phoneme feature extraction network to extract the speech phoneme feature to obtain the initial speech phoneme feature, and then inputs the initial speech phoneme feature into the initial accent phoneme recognition network to perform phoneme recognition to obtain the initial speech phoneme information.

[0228] In one embodiment, the initial speech phoneme feature extraction network includes at least one initial delay neural network and at least one initial gated recurrent network, and the initial delay neural network and the initial gated recurrent network are alternating network structures;

[0229] Step 1304, that is, inputting the initial speech feature into the initial speech phoneme feature extraction network to extract the speech phoneme feature, and obtaining the initial speech phoneme feature, includes the steps of:

[0230] The starting speech feature is input into the starting delay neural network for calculation to obtain the starting delay feature, and the starting delay feature is input into the starting gated recurrent network for calculation to obtain the starting speech phoneme feature.

[0231] Among them, the starting delay neural network refers to the delay neural network in the starting accent recognition acoustic model. The starting delay feature refers to the extracted delay feature. The starting gated recurrent network refers to the gated recurrent network in the starting accent recognition acoustic model. The starting speech phoneme feature refers to the extracted phoneme feature corresponding to the revelation speech. The server inputs the starting speech feature into the starting delay neural network to extract the translation invariant feature in the frequency domain to obtain the starting delay feature. The starting delay feature is then input into the starting gated recurrent network for calculation to obtain the starting speech phoneme feature. In one embodiment, multiple s gated recurrent networks can be connected, and then connected to a gated recurrent network, and the gated recurrent network is then connected to multiple gated recurrent networks, and the connections are continuously alternating. Thereby, the extracted starting speech phoneme feature can be more accurate.

[0232] In one embodiment, establishing a basic accent recognition acoustic model based on the trained initial accent recognition acoustic model includes the following steps:

[0233] The trained initial feature extraction network is used as the basic feature extraction network, the trained initial time delay neural network is used as the basic time delay neural network, the trained initial gated recurrent network is used as the basic gated recurrent network, the trained initial accent phoneme recognition network is used as the basic accent phoneme recognition network, and a parameter-initialized conversion network is established to obtain a basic accent recognition acoustic model.

[0234] Specifically, the server uses the parameters in the trained initial accent recognition acoustic model as the parameters in the basic accent recognition acoustic model, and establishes a parameter-initialized conversion network, which is used to convert regional features to obtain conversion features, and then merges them with the outputs in the basic time-delay neural network, the basic gated recurrent network, and the basic accent phoneme recognition network to obtain basic merged features. The basic accent recognition acoustic model is obtained based on the obtained basic feature extraction network, the basic time-delay neural network, the basic gated recurrent network, the basic accent phoneme recognition network, and the parameter-initialized conversion network. That is, by using the trained initial accent recognition acoustic model to establish the basic accent recognition acoustic model, the efficiency and accuracy of training the basic accent recognition acoustic model can be improved.

[0235] In a specific embodiment, Fig.14 As shown, it is a schematic diagram of the architecture of the initial accent recognition acoustic model. When training the initial accent recognition acoustic model, the initial training data is obtained. The initial training speech can be an accent speech with regional information or an accent speech without regional information. Specifically, the server inputs the acoustic features corresponding to the initial training speech into the initial accent recognition acoustic model. The acoustic features can be 40-dimensional PNCC and 200-dimensional i-vector features. The architecture diagram is used for recognition to obtain the output 8464 factor states, and then the loss information is calculated. The loss information is used to update the parameters initialized in the initial accent recognition acoustic model to obtain the updated accent recognition acoustic model. The updated accent recognition acoustic model is then used as the initial accent recognition acoustic model for continuous iteration until the training is completed, and the trained initial accent recognition acoustic model is obtained. The trained initial accent recognition acoustic model is then used as part of the basic accent recognition acoustic model to establish the basic accent recognition acoustic model.

[0236] In one embodiment, Fig.15 As shown, after calculating loss information based on the initial speech phoneme information and the corresponding phoneme labels, updating the initial accent recognition acoustic model based on the loss information, and returning to the step of inputting the acoustic features and the accent area features into the initial accent recognition acoustic model for iterative execution until the training is completed and the target accent recognition acoustic model is obtained, it also includes:

[0237] Step 1502, obtaining target accent data corresponding to the target area, wherein the target accent data includes the target area speech and the corresponding target area speech phoneme label.

[0238] The target area refers to the area where the accent recognition effect needs to be optimized. The target accent data refers to the accent speech data corresponding to the target area. The target area speech refers to the accent speech corresponding to the target area. The target area speech phoneme label refers to the label of the target area speech phoneme.

[0239] Specifically, when it is necessary to optimize the accent recognition effect of any area, that is, to improve the accuracy of accent recognition, the server can obtain the target accent data corresponding to the target area from the database, or collect the target accent data corresponding to the target area from the Internet.

[0240] Step 1504, obtaining target area features corresponding to the target area and extracting target area speech acoustic features corresponding to the target area speech.

[0241] Specifically, the target area feature refers to the feature corresponding to the target area, and the target area feature corresponding to the target area can be obtained according to the pre-set correspondence between the area and the regional feature. The target area speech acoustic feature refers to the acoustic feature corresponding to the target area speech, that is, the server uses signal processing technology to extract the target area speech acoustic feature corresponding to the target area speech.

[0242] Step 1506: Input the target area speech acoustic features and the target area features into the target accent recognition acoustic model; the target accent recognition acoustic model transforms the target area features to obtain target area transformation features; performs speech feature extraction based on the target area acoustic features to obtain target area speech features; merges the target area transformation features and the target area speech features to obtain target area merged features; performs speech phoneme recognition based on the target area merged features to obtain target area speech phoneme information.

[0243] Among them, the target area transformation feature refers to the feature obtained by transforming the target area feature, which can be a linear feature or a nonlinear feature. The target area speech feature refers to the speech feature corresponding to the target area speech. The target area merge feature refers to the feature obtained by merging the target area transformation feature and the target area speech feature.

[0244] Specifically, the server uses the target accent data corresponding to the target area to optimize the target accent recognition acoustic model. That is, the server inputs the target area speech acoustic features and the target area features into the target accent recognition model to obtain the output target area speech phoneme information.

[0245] Step 1508, calculate the target area speech loss information based on the target area speech phoneme information and the corresponding target area speech phoneme label, update the phoneme recognition network corresponding to the target area in the target accent recognition acoustic model based on the target area speech loss information, and return to the step of inputting the target area speech acoustic features and the target area features into the target accent recognition acoustic model for iterative execution until the target training is completed to obtain the optimized accent recognition acoustic model.

[0246] Specifically, the phoneme recognition network corresponding to the target area refers to the network corresponding to the target area in the multi-task phoneme recognition network. At this time, the server uses a pre-set loss function to calculate the error between the target area speech phoneme information and the corresponding target area speech phoneme label to obtain the target area speech loss information. The target area speech loss information is used to update only the phoneme recognition network corresponding to the target area, keeping other parameters in the target accent recognition acoustic model unchanged. Then return to the step of inputting the target area speech acoustic features and the target area features into the target accent recognition acoustic model for iterative execution until the target training is completed, and the optimized accent recognition acoustic model is obtained.

[0247] In the above embodiment, the target accent data corresponding to the target area is used to optimize the target accent recognition acoustic model, thereby further improving the accuracy of accent recognition corresponding to the target area while ensuring the accuracy of accent recognition in other areas.

[0248] In one embodiment, Fig.16 As shown, a method for accent recognition is provided, which is applied to Figure 1 The server in the example is used to illustrate the following steps:

[0249] Step 1602, acquiring the accented speech to be recognized and the corresponding area information to be recognized.

[0250] The accented speech to be recognized refers to the accented speech to be recognized. The region information to be recognized refers to the region corresponding to the accented speech to be recognized. Different accented speech corresponds to different region information.

[0251] Specifically, the server can obtain the accented speech to be recognized and the corresponding area information to be recognized from the database. The server can also obtain the accented speech to be recognized collected by the microphone, and then obtain the area information to be recognized corresponding to the accented speech to be recognized. The server can also obtain the accented speech to be recognized and the corresponding area information to be recognized uploaded by the terminal.

[0252] Step 1602, extracting the acoustic features to be recognized corresponding to the accented speech to be recognized and obtaining the region features to be recognized corresponding to the region information to be recognized.

[0253] Among them, the acoustic features to be identified refer to the acoustic features corresponding to the accented speech to be identified, and the regional features to be identified refer to the features of the region corresponding to the accented speech to be identified.

[0254] Specifically, the server extracts the acoustic features to be recognized corresponding to the accented speech to be recognized and then obtains the regional features to be recognized corresponding to the regional information to be recognized. In one embodiment, the regional text corresponding to the regional information to be recognized can be vectorized to obtain the regional features to be recognized.

[0255] Step 1602: Input the acoustic features to be recognized and the regional features to be recognized into the target accent recognition acoustic model; the target accent recognition acoustic model transforms the regional features to be recognized to obtain transformed features to be recognized; performs speech feature extraction on the acoustic features to be recognized to obtain speech features to be recognized; merges the transformed features to be recognized and the speech features to be recognized to obtain merged features to be recognized; and performs speech phoneme recognition on the merged features to be recognized to obtain speech phoneme information corresponding to the accent speech to be recognized.

[0256] The transformation feature to be identified refers to the feature obtained by transforming the feature of the region to be identified. The speech feature to be identified refers to the feature corresponding to the speech to be identified. The merged feature to be identified refers to the feature obtained by merging the transformation feature to be identified and the speech feature to be identified.

[0257] Specifically, the server inputs the acoustic features to be recognized and the regional features to be recognized into the target accent recognition acoustic model, the target accent recognition acoustic model transforms the regional features to be recognized to obtain the transformed features to be recognized, performs speech feature extraction on the acoustic features to be recognized to obtain the speech features to be recognized, merges the transformed features to be recognized and the speech features to be recognized to obtain the merged features to be recognized, and performs speech phoneme recognition on the merged features to be recognized to obtain the speech phoneme information corresponding to the accent speech to be recognized output by the target accent recognition acoustic model. In one embodiment, the target accent recognition acoustic model may be an accent recognition acoustic model trained in any embodiment of the above-mentioned accent recognition acoustic model training method. In a specific embodiment, the server may use Figure 6 The accent recognition acoustic model shown is used to recognize the speech to be recognized, and the speech phoneme information corresponding to the accent speech to be recognized is obtained.

[0258] Step 1602: Perform text recognition based on the accent phoneme information to obtain a target text corresponding to the accented speech to be recognized.

[0259] The target text refers to the text corresponding to the accented speech to be recognized.

[0260] Specifically, the server uses the accent phoneme information to perform text recognition, that is, it can use a dictionary and a speech model to perform text recognition on the accent phoneme information to obtain a target text corresponding to the accent speech to be recognized.

[0261] In the above-mentioned accent recognition method, by extracting the acoustic features to be recognized corresponding to the accented speech to be recognized and obtaining the features of the region to be recognized corresponding to the information of the region to be recognized, the acoustic features to be recognized and the features of the region to be recognized are input into the target accent recognition acoustic model, the target accent recognition acoustic model transforms the features of the region to be recognized to obtain the transformed features to be recognized, performs speech feature extraction on the acoustic features to be recognized to obtain the speech features to be recognized, merges the transformed features to be recognized and the speech features to be recognized to obtain the merged features to be recognized, and performs speech phoneme recognition on the merged features to obtain the speech phoneme information corresponding to the accented speech to be recognized. Then, text recognition is performed based on the accent phoneme information to obtain the target text corresponding to the accented speech to be recognized. Since the target accent recognition acoustic model uses the features of the region to be recognized and the acoustic features to be recognized to recognize the speech phoneme information corresponding to the accented speech to be recognized, the speech phoneme information corresponding to the trained accented speech to be recognized is more accurate, thereby improving the accuracy of the recognized target text.

[0262] In a specific embodiment, Fig.17 As shown, a method for training an accent recognition acoustic model is provided, which specifically includes the following steps:

[0263] Step 1702: Acquire initial training data, where the initial training data includes initial training speech and corresponding initial phoneme labels, and extract initial acoustic features corresponding to the initial training speech.

[0264] Step 1704, input the initial acoustic features into the initial accent recognition acoustic model with initialized parameters, the initial accent recognition acoustic model inputs the initial acoustic features into the initial feature extraction network for feature extraction to obtain initial speech features, and inputs the initial speech features into the initial phoneme recognition network for speech phoneme recognition to obtain initial speech phoneme information.

[0265] Step 1706, calculate the initial loss information based on the initial speech phoneme information and the corresponding initial speech phoneme label, update the parameters in the initial accent recognition acoustic model based on the initial loss information, and return to the step of inputting the initial acoustic features into the initial accent recognition acoustic model with initialized parameters, and iterate until the initial training is completed, thereby obtaining a trained initial accent recognition acoustic model.

[0266] Step 1708, establish a basic accent recognition acoustic model based on the trained initial accent recognition acoustic model, and obtain basic training data from the initial training data, the basic training data including basic training speech, basic accent regional features and basic phoneme labels corresponding to the basic training speech, and extract basic acoustic features corresponding to the basic training speech.

[0267] Step 1710, input the basic acoustic features and the basic accent regional features into the basic accent recognition acoustic model, the basic accent recognition acoustic model inputs the basic accent regional features into the basic conversion network for conversion to obtain basic conversion features, inputs the basic acoustic features into the basic feature extraction network for speech feature extraction to obtain basic speech features, merges the basic conversion features and the basic speech features to obtain basic merged features, inputs the basic merged features into the basic phoneme recognition network for speech phoneme recognition to obtain basic speech phoneme information.

[0268] Step 1712, calculate the basic loss information based on the basic speech phoneme information and the corresponding basic phoneme labels, update the basic accent recognition acoustic model based on the basic loss information, and return to the step of inputting the basic acoustic features and basic accent area features into the basic accent recognition acoustic model for iterative execution until the basic training is completed, thereby obtaining a trained basic accent recognition acoustic model.

[0269] Step 1714: Establish an initial accent recognition acoustic model based on the trained basic accent recognition acoustic model. Use the basic training data as training data, which includes training speech, accent area features and phoneme labels corresponding to the training speech, and extract the acoustic features corresponding to the training speech.

[0270] Step 1716, input the acoustic features and accent area features into the initial accent recognition acoustic model, the initial accent recognition acoustic model transforms the accent area features to obtain initial transformed features, performs speech feature extraction on the acoustic features to obtain initial speech features, merges the initial transformed features and the initial speech features to obtain initial merged features, and performs speech phoneme recognition on the initial merged features to obtain initial speech phoneme information.

[0271] Step 1718, calculate the loss information based on the initial speech phoneme information and the corresponding phoneme labels, update the initial accent recognition acoustic model based on the loss information, and return to the step of inputting the acoustic features and accent area features into the initial accent recognition acoustic model for iterative execution until the training is completed to obtain the target accent recognition acoustic model.

[0272] In a specific embodiment, the target accent recognition acoustic model is tested, specifically:

[0273] Chinese dialect data is used to conduct comparative tests on the various accent recognition acoustic models trained in this application. First, China is divided into ten regions, and the regional features corresponding to each region are set. The specific division of each regional feature and the training data and test data used are shown in Table 1 below.

[0274] Table 1 Dataset table

[0275]

[0276]

[0277] Among them, each region has corresponding regional features. The corresponding relationship between specific regional features and regions can be as follows: Fig.18 Then the recognition results are obtained by testing the test data, and then the text error rate corresponding to the dialect speech is calculated. The text error rate comparison results are shown in Table 2 below. The smaller the text error rate, the higher the model recognition accuracy and the better the recognition effect.

[0278] Table 2 Test results word error rate comparison table

[0279] Regional division A0 A1 A2 1 4.93 4.73 4.63 2 6.41 5.96 5.60 3 5.23 4.93 4.80 4 4.64 3.96 3.89 5 4.98 4.91 4.86 6 6.07 6.05 5.60 7 6.21 6.03 5.71 8 6.61 6.69 6.56 9 4.01 3.79 3.73 10 5.75 5.73 5.87 all 5.37 5.14 5.02

[0280] Among them, A0 represents the trained acoustic model for initial accent recognition, A1 represents the trained acoustic model for basic accent recognition, and A2 represents the acoustic model for target accent recognition. It can be clearly seen that the recognition effects of the A1 model and the A2 model are significantly improved compared to the A0 model, that is, the accuracy of the A2 model and the accuracy of the A1 model are significantly improved, and the error rate of the recognized words is significantly reduced.

[0281] Furthermore, the A1 model was trained again with the data of area 1 for 270 hours, and a new model A1+ was obtained after the training was completed. The A2 model was trained again with the data of area 1 for 270 hours, and a new model A2+ was obtained after the training was completed. Then the A1+ model and the A2+ model were tested with the test data, and the text error rates of the test results are shown in Table 3 below. The smaller the text error rate, the higher the model recognition accuracy and the better the recognition effect.

[0282] Table 3 Test results text error rate comparison table

[0283] Regional division A1 A1+ A2 A2+ 1 4.73 4.59 4.63 4.45 2 5.96 6.03 5.60 5.60 3 4.93 5.15 4.80 4.80 4 3.96 4.05 3.89 3.89 5 4.91 4.90 4.86 4.86 6 6.05 5.89 5.60 5.60 7 6.03 6.14 5.71 5.71 8 6.69 7.30 6.56 6.56 9 3.79 3.76 3.73 3.73 10 5.73 5.74 5.87 5.87 all 5.14 5.20 5.02 4.99

[0284] It is obvious that the A2+ model improves the recognition accuracy of regional dialect speech compared to the A2 model, and does not affect the recognition effect of other regional dialect speech. That is, the A2 model can be more convenient and flexible to optimize the speech of the specified regional accent category, while not causing loss in the recognition of accents of other regional types, thus improving the stability and flexibility of recognition.

[0285] The present application also provides an application scenario, in which the above-mentioned accent recognition method is applied. Specifically, the application of the accent recognition method in the application scenario is as follows:

[0286] like Fig.19 As shown in FIG. 1 , a schematic diagram of a specific application scenario of the accent recognition method is shown. The target accent recognition acoustic model is pre-trained and deployed to a cloud server. The language model is also pre-trained and deployed to a cloud server. Specifically:

[0287] The speech to be recognized is collected through the microphone array, and the speech to be recognized is processed by the acoustic front-end algorithm. For example, the processed speech to be recognized is obtained through noise suppression, reverberation printing, echo cancellation, sound source localization, etc. The processed speech to be recognized is sent to the cloud server and recognized by the cloud recognition algorithm. For example, the cloud recognition result corresponding to the speech to be recognized is obtained through the target accent recognition acoustic model and language model recognition. At the same time, the processed speech to be recognized can also be recognized offline through the offline recognition algorithm. Finally, the cloud recognition result and the offline recognition result are fused with the offline and cloud semantic information through the fusion algorithm to obtain the recognition result corresponding to the speech to be recognized, and the recognition result is displayed.

[0288] It should be understood that although Figure 2-17 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-17 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0289] In one embodiment, Fig. 20As shown, an accent recognition acoustic model training device 2000 is provided. The device can adopt a software module or a hardware module, or a combination of the two to become a part of a computer device. The device specifically includes: a data acquisition module 2002, a feature extraction module 2004, a model training module 2006 and a loop iteration module 2008, wherein:

[0290] The data acquisition module 2002 is used to acquire training data, where the training data includes training speech, accent area features and phoneme labels corresponding to the training speech;

[0291] A feature extraction module 2004 is used to extract acoustic features corresponding to the training speech;

[0292] The model training module 2006 is used to input the acoustic features and the accent region features into the initial accent recognition acoustic model, the initial accent recognition acoustic model transforms the accent region features to obtain initial transformed features, performs speech feature extraction on the acoustic features to obtain initial speech features, merges the initial transformed features and the initial speech features to obtain initial merged features, and performs speech phoneme recognition on the initial merged features to obtain initial speech phoneme information;

[0293] The loop iteration module 2008 is used to calculate the loss information based on the initial speech phoneme information and the corresponding phoneme labels, update the initial accent recognition acoustic model based on the loss information, and return to the step of inputting the acoustic features and accent area features into the initial accent recognition acoustic model for iterative execution until the training is completed to obtain the target accent recognition acoustic model.

[0294] In one embodiment, the initial accent recognition acoustic model includes: an initial conversion network, an initial feature extraction network and an initial phoneme recognition network; the model training module 2006 includes:

[0295] A conversion unit, used for inputting the accent area feature into the initial conversion network for conversion to obtain an initial conversion feature;

[0296] A speech feature extraction unit, used for inputting the acoustic features into the initial feature extraction network to extract speech features and obtain initial speech features;

[0297] An initial merging unit, used to merge the initial conversion feature and the initial speech feature to obtain an initial merged feature;

[0298] The recognition unit is used to input the initial combined features into the initial phoneme recognition network to perform speech phoneme recognition and obtain initial speech phoneme information.

[0299] In one embodiment, the speech feature extraction unit is further used to deform the acoustic features through spectrum enhancement to obtain acoustic enhancement features, and input the acoustic enhancement features into the initial feature extraction network to extract speech features to obtain initial speech features.

[0300] In one embodiment, the initial phoneme recognition network includes an initial speech phoneme feature extraction network, an initial target conversion network, and an initial accent phoneme recognition network corresponding to at least two different accent area features;

[0301] Identification unit, including:

[0302] A phoneme feature extraction subunit, used for inputting the initial combined features into an initial speech phoneme feature extraction network to extract speech phoneme features, thereby obtaining initial speech phoneme features;

[0303] A target conversion subunit, used for inputting the accent area feature into the initial target conversion network for conversion to obtain the initial target conversion feature;

[0304] The phoneme recognition subunit is used to merge the initial speech phoneme features and the initial target conversion features to obtain the target merged features, input the target merged features into the initial accent phoneme recognition network corresponding to the accent area features to perform phoneme recognition and obtain the initial speech phoneme information.

[0305] In one embodiment, the initial speech phoneme feature extraction network includes at least one initial time-delay neural network, at least one initial gated recurrent network and at least one initial intermediate conversion network, and the initial time-delay neural network and the initial gated recurrent network are alternating network structures;

[0306] The phoneme feature extraction subunit is also used to input the initial merged features into the initial time delay neural network for calculation to obtain the initial time delay features; input the accent area features into the initial intermediate conversion network for conversion to obtain the initial intermediate conversion features; merge the initial time delay features and the initial intermediate conversion features to obtain the initial intermediate merged features, and input the initial intermediate merged features into the initial gated recurrent network for calculation to obtain the initial speech phoneme features.

[0307] In one embodiment, the loop iteration module 2008 is also used to calculate loss information using the maximum mutual information optimization function for the initial speech phoneme information and the corresponding phoneme labels. When the loss information does not meet the training completion conditions, the parameters of the initial accent recognition acoustic model are reversely updated based on the loss information to obtain an updated accent recognition acoustic model; the updated accent recognition acoustic model is used as the initial accent recognition acoustic model, and the acoustic features and accent area features are input into the initial accent recognition acoustic model, and the steps are iteratively executed until the loss information meets the training completion conditions, and the initial accent recognition acoustic model that meets the training completion conditions is used as the target accent recognition acoustic model.

[0308] In one embodiment, the accent recognition acoustic model training device 2000 further includes:

[0309] A basic data acquisition module is used to acquire basic training data, where the basic training data includes basic training speech, basic accent area features corresponding to the basic training speech, and basic phoneme labels;

[0310] A basic feature extraction module is used to extract basic acoustic features corresponding to basic training speech;

[0311] A basic model training module, used for inputting basic acoustic features and basic accent regional features into a basic accent recognition acoustic model, the basic accent recognition acoustic model inputting the basic accent regional features into a basic conversion network for conversion to obtain basic conversion features, inputting the basic acoustic features into a basic feature extraction network for speech feature extraction to obtain basic speech features, merging the basic conversion features and the basic speech features to obtain basic merged features, and inputting the basic merged features into a basic phoneme recognition network for speech phoneme recognition to obtain basic speech phoneme information;

[0312] A basic loop module, used for calculating basic loss information based on basic speech phoneme information and corresponding basic phoneme labels, updating a basic accent recognition acoustic model based on the basic loss information, and returning to the step of inputting basic acoustic features and basic accent regional features into the basic accent recognition acoustic model for iterative execution until basic training is completed, thereby obtaining a trained basic accent recognition acoustic model;

[0313] The initial model building module is used to build an initial accent recognition acoustic model based on the trained basic accent recognition acoustic model.

[0314] In one embodiment, the basic phoneme recognition network includes a basic speech phoneme feature extraction network, a basic target conversion network and a basic accent phoneme recognition network; the basic model training module is also used to input the basic merged features into the basic speech phoneme feature extraction network to extract speech phoneme features to obtain basic speech phoneme features; input the basic accent area features into the basic target conversion network for conversion to obtain basic target conversion features; merge the basic speech phoneme features and the basic target conversion features to obtain basic target merged features, and input the basic target merged features into the basic accent phoneme recognition network for phoneme recognition to obtain basic speech phoneme information.

[0315] In one embodiment, the initial model establishment module is further used to use the basic conversion network in the trained basic accent recognition acoustic model as the initial conversion network in the initial accent recognition acoustic model; use the basic feature extraction network in the trained basic accent recognition acoustic model as the initial feature extraction network in the initial accent recognition acoustic model; use the basic speech phoneme feature extraction network in the trained basic accent recognition acoustic model as the initial speech phoneme feature extraction network in the initial accent recognition acoustic model; use the basic target conversion network in the trained basic accent recognition acoustic model as the initial target conversion network in the initial accent recognition acoustic model; and establish at least two initial accent phoneme recognition networks corresponding to different accent area features to obtain an initial accent recognition acoustic model.

[0316] In one embodiment, a basic speech phoneme feature extraction network includes at least one basic time-delay neural network, at least one basic gated recurrent network and at least one basic intermediate conversion network, wherein the basic time-delay neural network and the basic gated recurrent network are alternating network structures; the basic model training module is also used to input the basic merged features into the basic time-delay neural network for calculation to obtain the basic time-delay features; input the basic accent area features into the basic intermediate conversion network for conversion to obtain the basic intermediate conversion features; merge the basic time-delay features and the basic intermediate conversion features to obtain the basic intermediate merged features, and input the basic intermediate merged features into the basic gated recurrent network for calculation to obtain the basic speech phoneme features.

[0317] In one embodiment, the accent recognition acoustic model training device 2000 further includes:

[0318] An initial data acquisition module is used to acquire initial training data, where the initial training data includes an initial training voice and a corresponding initial phoneme label;

[0319] The starting model training module is used to extract the starting acoustic features corresponding to the starting training speech, input the starting acoustic features into the starting accent recognition acoustic model with initialized parameters, the starting accent recognition acoustic model inputs the starting acoustic features into the starting feature extraction network for feature extraction to obtain the starting speech features, and inputs the starting speech features into the starting phoneme recognition network for speech phoneme recognition to obtain the starting speech phoneme information;

[0320] A starting model loop module, used for calculating starting loss information based on starting speech phoneme information and corresponding starting speech phoneme labels, updating parameters in the starting accent recognition acoustic model based on the starting loss information, and returning to the step of inputting the starting acoustic features into the starting accent recognition acoustic model with initialized parameters, and iteratively executing until the starting training is completed, thereby obtaining a trained starting accent recognition acoustic model;

[0321] The basic model building module is used to build a basic accent recognition acoustic model based on the trained initial accent recognition acoustic model.

[0322] In one embodiment, the starting phoneme recognition network includes a starting speech phoneme feature extraction network and a starting accent phoneme recognition network; the starting model training module is also used to input the starting speech feature into the starting speech phoneme feature extraction network to extract speech phoneme features to obtain the starting speech phoneme feature, and input the starting speech phoneme feature into the starting accent phoneme recognition network to perform phoneme recognition to obtain the starting speech phoneme information.

[0323] In one embodiment, the initial speech phoneme feature extraction network includes at least one initial delay neural network and at least one initial gated recurrent network, and the initial delay neural network and the initial gated recurrent network are alternating network structures; the initial model training module is also used to input the initial speech feature into the initial delay neural network for calculation to obtain the initial delay feature, and input the initial delay feature into the initial gated recurrent network for calculation to obtain the initial speech phoneme feature.

[0324] In one embodiment, the basic model building module is also used to use the trained starting feature extraction network as the basic feature extraction network, the trained starting time delay neural network as the basic time delay neural network, the trained starting gated recurrent network as the basic gated recurrent network, the trained starting accent phoneme recognition network as the basic accent phoneme recognition network, and establish a parameter-initialized conversion network to obtain a basic accent recognition acoustic model.

[0325] In one embodiment, the accent recognition acoustic model training device 2000 further includes:

[0326] The target area optimization module is used to obtain the target accent data corresponding to the target area, the target accent data includes the target area speech and the corresponding target area speech phoneme label; obtain the target area features corresponding to the target area and extract the target area speech acoustic features corresponding to the target area speech; input the target area speech acoustic features and the target area features into the target accent recognition acoustic model, the target accent recognition acoustic model transforms the target area features to obtain the target area transformation features, extracts speech features based on the target area acoustic features to obtain the target area speech features, merges the target area transformation features and the target area speech features to obtain the target area merged features, performs speech phoneme recognition based on the target area merged features to obtain the target area speech phoneme information; calculates the target area speech loss information based on the target area speech phoneme information and the corresponding target area speech phoneme label, updates the phoneme recognition network corresponding to the target area in the target accent recognition acoustic model based on the target area speech loss information, and returns to the step of inputting the target area speech acoustic features and the target area features into the target accent recognition acoustic model for iterative execution until the target training is completed to obtain the optimized accent recognition acoustic model.

[0327] In one embodiment, Fig.21 As shown, an accent recognition device 2100 is provided. The device can adopt a software module or a hardware module, or a combination of the two to form a part of a computer device. The device specifically includes: a speech acquisition module 2102 to be recognized, a feature extraction module 2104 to be recognized, a model recognition module 2106 and a text acquisition module 2108, wherein:

[0328] The to-be-recognized speech acquisition module 2102 is used to acquire the to-be-recognized accented speech and the corresponding to-be-recognized region information;

[0329] The feature extraction module 2104 is used to extract the acoustic features to be recognized corresponding to the accented speech to be recognized and obtain the regional features to be recognized corresponding to the regional information to be recognized;

[0330] The model recognition module 2106 is used to input the acoustic features to be recognized and the regional features to be recognized into the target accent recognition acoustic model, the target accent recognition acoustic model transforms the regional features to be recognized to obtain the transformed features to be recognized, performs speech feature extraction on the acoustic features to be recognized to obtain the speech features to be recognized, merges the transformed features to be recognized and the speech features to be recognized to obtain the merged features to be recognized, and performs speech phoneme recognition on the merged features to be recognized to obtain the speech phoneme information corresponding to the accent speech to be recognized;

[0331] The text acquisition module 2108 is used to perform text recognition based on the accent phoneme information to obtain the target text corresponding to the accented speech to be recognized.

[0332] For the specific limitations of the accent recognition acoustic model training device and the accent recognition device, please refer to the limitations of the accent recognition acoustic model training method and the accent recognition method in the above text, which will not be repeated here. The various modules in the above-mentioned accent recognition acoustic model training device and the accent recognition device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0333] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig. 22 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store various training data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an accent recognition acoustic model training method and an accent recognition method are implemented.

[0334] Those skilled in the art will understand that Fig. 22 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0335] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0336] In one embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0337] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-mentioned method embodiments.

[0338] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0339] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0340] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for training an acoustic model for accent recognition, characterized in that: The method comprises: Acquire training data, the training data including training speech, accent area features and phoneme labels corresponding to the training speech; Extracting acoustic features corresponding to the training speech; Inputting the acoustic features and the accent region features into an initial accent recognition acoustic model, the initial accent recognition acoustic model transforms the accent region features to obtain initial transformed features, extracting speech features from the acoustic features to obtain initial speech features, merging the initial transformed features with the initial speech features to obtain initial merged features, and performing speech phoneme recognition on the initial merged features to obtain initial speech phoneme information; The loss information is calculated based on the initial speech phoneme information and the corresponding phoneme labels, the initial accent recognition acoustic model is updated based on the loss information, and the step of returning to input the acoustic features and the accent area features into the initial accent recognition acoustic model is iteratively executed until the training is completed, and a target accent recognition acoustic model is obtained. The target accent recognition acoustic model is used to identify with a preset language model to obtain a cloud-based recognition result corresponding to the speech to be recognized, and at the same time, an offline recognition result of the speech to be recognized is obtained. The cloud-based recognition result and the offline recognition result are fused in combination with the offline and cloud-based semantic information to obtain a recognition result corresponding to the speech to be recognized.

2. The method according to claim 1, characterized in that The initial accent recognition acoustic model includes: an initial conversion network, an initial feature extraction network and an initial phoneme recognition network; Inputting the acoustic features and the accent region features into an initial accent recognition acoustic model includes: Inputting the accent area feature into the initial conversion network for conversion to obtain an initial conversion feature; Inputting the acoustic features into the initial feature extraction network to extract speech features, thereby obtaining the initial speech features; Merging the initial conversion feature and the initial speech feature to obtain an initial merged feature; The initial combined features are input into the initial phoneme recognition network to perform speech phoneme recognition to obtain the initial speech phoneme information.

3. The method according to claim 2, characterized in that The step of inputting the acoustic features into the initial feature extraction network to extract speech features to obtain the initial speech features comprises: The acoustic features are deformed by spectrum enhancement to obtain acoustic enhancement features, and the acoustic enhancement features are input into the initial feature extraction network to extract speech features to obtain the initial speech features.

4. The method according to claim 2, characterized in that: The initial phoneme recognition network includes an initial speech phoneme feature extraction network, an initial target conversion network and at least two initial accent phoneme recognition networks corresponding to different accent area features; The inputting the initial combined features into the initial phoneme recognition network to perform speech phoneme recognition to obtain the initial speech phoneme information comprises: Inputting the initial combined features into the initial speech phoneme feature extraction network to extract speech phoneme features to obtain initial speech phoneme features; Inputting the accent area feature into the initial target conversion network for conversion to obtain an initial target conversion feature; The initial speech phoneme feature and the initial target conversion feature are merged to obtain a target merged feature, and the target merged feature is input into an initial accent phoneme recognition network corresponding to the accent area feature for phoneme recognition to obtain the initial speech phoneme information.

5. The method according to claim 4, characterized in that The initial speech phoneme feature extraction network includes at least one initial time-delay neural network, at least one initial gated recurrent network and at least one initial intermediate conversion network, wherein the initial time-delay neural network and the initial gated recurrent network are alternating network structures; The step of inputting the initial combined features into the initial speech phoneme feature extraction network to extract speech phoneme features to obtain initial speech phoneme features comprises: Inputting the initial combined feature into the initial time delay neural network for calculation to obtain an initial time delay feature; Inputting the accent area feature into the initial intermediate conversion network for conversion to obtain an initial intermediate conversion feature; The initial time delay feature and the initial intermediate conversion feature are merged to obtain an initial intermediate merged feature, and the initial intermediate merged feature is input into the initial gated recurrent network for calculation to obtain the initial speech phoneme feature.

6. The method according to any one of claims 1 to 5, characterized in that: The steps of calculating loss information based on the initial speech phoneme information and the corresponding phoneme labels, updating the initial accent recognition acoustic model based on the loss information, and returning to input the acoustic features and the accent area features into the initial accent recognition acoustic model are iteratively performed until the training is completed to obtain a target accent recognition acoustic model, including: The initial speech phoneme information and the corresponding phoneme labels are used to calculate loss information using a maximum mutual information optimization function, and when the loss information does not meet the training completion condition, the parameters of the initial accent recognition acoustic model are reversely updated based on the loss information to obtain an updated accent recognition acoustic model; The steps of taking the updated accent recognition acoustic model as the initial accent recognition acoustic model and inputting the acoustic features and the accent area features into the initial accent recognition acoustic model are iteratively performed until the loss information meets the training completion condition, and then taking the initial accent recognition acoustic model that meets the training completion condition as the target accent recognition acoustic model.

7. The method according to claim 1, characterized in that Before obtaining the training data, the method further includes: Acquire basic training data, wherein the basic training data includes basic training speech, basic accent regional features corresponding to the basic training speech, and basic phoneme labels; Extracting basic acoustic features corresponding to the basic training speech; Inputting the basic acoustic features and the basic accent regional features into a basic accent recognition acoustic model, the basic accent recognition acoustic model inputting the basic accent regional features into a basic conversion network for conversion to obtain basic conversion features, inputting the basic acoustic features into a basic feature extraction network for speech feature extraction to obtain basic speech features, merging the basic conversion features and the basic speech features to obtain basic merged features, inputting the basic merged features into a basic phoneme recognition network for speech phoneme recognition to obtain basic speech phoneme information; Calculating basic loss information based on the basic speech phoneme information and the corresponding basic phoneme labels, updating the basic accent recognition acoustic model based on the basic loss information, and returning to the step of inputting the basic acoustic features and the basic accent regional features into the basic accent recognition acoustic model for iterative execution until basic training is completed, thereby obtaining a trained basic accent recognition acoustic model; The initial accent recognition acoustic model is established based on the trained basic accent recognition acoustic model.

8. The method according to claim 7, characterized in that The basic phoneme recognition network includes a basic speech phoneme feature extraction network, a basic target conversion network and a basic accent phoneme recognition network; The step of inputting the basic combined features into a basic phoneme recognition network to perform speech phoneme recognition to obtain basic speech phoneme information includes: Inputting the basic combined features into the basic speech phoneme feature extraction network to extract speech phoneme features to obtain basic speech phoneme features; Inputting the basic accent area feature into the basic target conversion network for conversion to obtain a basic target conversion feature; The basic speech phoneme feature and the basic target conversion feature are merged to obtain a basic target merged feature, and the basic target merged feature is input into the basic accent phoneme recognition network for phoneme recognition to obtain the basic speech phoneme information.

9. The method according to claim 7, characterized in that: The step of establishing the initial accent recognition acoustic model based on the trained basic accent recognition acoustic model comprises: Using the basic conversion network in the trained basic accent recognition acoustic model as the initial conversion network in the initial accent recognition acoustic model; Using the basic feature extraction network in the trained basic accent recognition acoustic model as the initial feature extraction network in the initial accent recognition acoustic model; Using the basic speech phoneme feature extraction network in the trained basic accent recognition acoustic model as the initial speech phoneme feature extraction network in the initial accent recognition acoustic model; Using the basic target conversion network in the trained basic accent recognition acoustic model as the initial target conversion network in the initial accent recognition acoustic model; And establish at least two initial accent phoneme recognition networks corresponding to different accent regional features to obtain the initial accent recognition acoustic model.

10. The method according to claim 8, characterized in that The basic speech phoneme feature extraction network includes at least one basic time-delay neural network, at least one basic gated recurrent network and at least one basic intermediate conversion network, wherein the basic time-delay neural network and the basic gated recurrent network are alternating network structures; The step of inputting the basic combined features into the basic speech phoneme feature extraction network to extract speech phoneme features to obtain basic speech phoneme features comprises: Inputting the basic combined feature into the basic time delay neural network for calculation to obtain a basic time delay feature; Inputting the basic accent area feature into the basic intermediate conversion network for conversion to obtain a basic intermediate conversion feature; The basic time delay feature and the basic intermediate conversion feature are combined to obtain a basic intermediate combined feature, and the basic intermediate combined feature is input into the basic gated recurrent network for calculation to obtain the basic speech phoneme feature.

11. The method according to claim 7, characterized in that Before obtaining the basic training data, the method further includes: Acquire initial training data, wherein the initial training data includes an initial training speech and a corresponding initial phoneme label; Extracting the initial acoustic features corresponding to the initial training speech, inputting the initial acoustic features into a parameter-initialized initial accent recognition acoustic model, the initial accent recognition acoustic model inputting the initial acoustic features into an initial feature extraction network for feature extraction to obtain initial speech features, and inputting the initial speech features into an initial phoneme recognition network for speech phoneme recognition to obtain initial speech phoneme information; Calculating the initial loss information based on the initial speech phoneme information and the corresponding initial speech phoneme label, updating the parameters in the initial accent recognition acoustic model based on the initial loss information, and returning to the step of inputting the initial acoustic features into the initial accent recognition acoustic model initialized with the parameters, and iteratively executing until the initial training is completed, thereby obtaining a trained initial accent recognition acoustic model; The basic accent recognition acoustic model is established based on the trained initial accent recognition acoustic model.

12. The method according to claim 11, characterized in that The initial phoneme recognition network includes an initial speech phoneme feature extraction network and an initial accent phoneme recognition network; The step of inputting the initial speech feature into an initial phoneme recognition network to perform speech phoneme recognition to obtain initial speech phoneme information includes: The initial speech feature is input into the initial speech phoneme feature extraction network to extract speech phoneme features to obtain the initial speech phoneme feature, and the initial speech phoneme feature is input into the initial accent phoneme recognition network to perform phoneme recognition to obtain the initial speech phoneme information.

13. The method according to claim 12, characterized in that The initial speech phoneme feature extraction network includes at least one initial delay neural network and at least one initial gated recurrent network, wherein the initial delay neural network and the initial gated recurrent network are alternating network structures; The step of inputting the initial speech feature into the initial speech phoneme feature extraction network to extract speech phoneme features to obtain the initial speech phoneme feature comprises: The starting speech feature is input into the starting delay neural network for calculation to obtain the starting delay feature, and the starting delay feature is input into the starting gated recurrent network for calculation to obtain the starting speech phoneme feature.

14. The method according to claim 13, characterized in that The step of establishing the basic accent recognition acoustic model based on the trained initial accent recognition acoustic model comprises: The trained initial feature extraction network is used as the basic feature extraction network, the trained initial time delay neural network is used as the basic time delay neural network, the trained initial gated recurrent network is used as the basic gated recurrent network, the trained initial accent phoneme recognition network is used as the basic accent phoneme recognition network, and a parameter-initialized conversion network is established to obtain the basic accent recognition acoustic model.

15. The method according to claim 1, characterized in that After the steps of calculating the loss information based on the initial speech phoneme information and the corresponding phoneme labels, updating the initial accent recognition acoustic model based on the loss information, and returning to input the acoustic features and the accent area features into the initial accent recognition acoustic model are iteratively executed until the training is completed and the target accent recognition acoustic model is obtained, the method further includes: Acquire target accent data corresponding to the target area, wherein the target accent data includes the target area speech and the corresponding target area speech phoneme label; Acquiring target area features corresponding to the target area and extracting target area speech acoustic features corresponding to the target area speech; Inputting the target area speech acoustic features and the target area features into the target accent recognition acoustic model, the target accent recognition acoustic model transforms the target area features to obtain target area transformation features, extracting speech features based on the target area acoustic features to obtain target area speech features, merging the target area transformation features and the target area speech features to obtain target area merged features, performing speech phoneme recognition based on the target area merged features to obtain target area speech phoneme information; The target area speech loss information is calculated based on the target area speech phoneme information and the corresponding target area speech phoneme label, the phoneme recognition network corresponding to the target area in the target accent recognition acoustic model is updated based on the target area speech loss information, and the step of returning to input the target area speech acoustic features and the target area features into the target accent recognition acoustic model is iteratively executed until the target training is completed to obtain the optimized accent recognition acoustic model.

16. A method for accent recognition, characterized in that: The method comprises: Obtain the accented speech to be recognized and the corresponding area information to be recognized; Extracting the acoustic features to be recognized corresponding to the accented speech to be recognized and obtaining the features of the region to be recognized corresponding to the region information to be recognized; The acoustic features to be recognized and the regional features to be recognized are input into a target accent recognition acoustic model, the target accent recognition acoustic model transforms the regional features to be recognized to obtain transformed features to be recognized, performs speech feature extraction on the acoustic features to be recognized to obtain speech features to be recognized, merges the transformed features to be recognized and the speech features to be recognized to obtain merged features to be recognized, and performs speech phoneme recognition on the merged features to be recognized to obtain speech phoneme information corresponding to the accent speech to be recognized; the target accent recognition acoustic model is trained based on the accent recognition acoustic model training method according to any one of claims 1 to 15; The target accent recognition acoustic model is used to identify with the preset language model to obtain the cloud recognition result corresponding to the speech to be recognized, and at the same time obtain the offline recognition result of the speech to be recognized. The cloud recognition result and the offline recognition result are combined with the offline and cloud semantic information to obtain the recognition result corresponding to the speech to be recognized.

17. An accent recognition acoustic model training device, characterized in that: The device comprises: A data acquisition module, used to acquire training data, wherein the training data includes training speech, accent area features corresponding to the training speech, and phoneme labels; A feature extraction module, used to extract acoustic features corresponding to the training speech; a model training module, configured to input the acoustic features and the accent region features into an initial accent recognition acoustic model, wherein the initial accent recognition acoustic model transforms the accent region features to obtain initial transformed features, performs speech feature extraction on the acoustic features to obtain initial speech features, merges the initial transformed features with the initial speech features to obtain initial merged features, and performs speech phoneme recognition on the initial merged features to obtain initial speech phoneme information; A loop iteration module is used to calculate loss information based on the initial speech phoneme information and the corresponding phoneme labels, update the initial accent recognition acoustic model based on the loss information, and return to the step of inputting the acoustic features and the accent area features into the initial accent recognition acoustic model for iterative execution until the training is completed, thereby obtaining a target accent recognition acoustic model. The target accent recognition acoustic model is used to identify with a preset language model to obtain a cloud-based recognition result corresponding to the speech to be recognized, and at the same time, an offline recognition result of the speech to be recognized is obtained. The cloud-based recognition result and the offline recognition result are combined with offline and cloud-based semantic information for fusion to obtain a recognition result corresponding to the speech to be recognized.

18. The device according to claim 17, characterized in that The initial accent recognition acoustic model includes: an initial conversion network, an initial feature extraction network and an initial phoneme recognition network; The model training module includes: A conversion unit, configured to input the accent area feature into the initial conversion network for conversion to obtain an initial conversion feature; A speech feature extraction unit, used for inputting the acoustic feature into the initial feature extraction network to extract the speech feature, so as to obtain the initial speech feature; An initial merging unit, used to merge the initial conversion feature and the initial speech feature to obtain an initial merged feature; The recognition unit is used to input the initial combined features into the initial phoneme recognition network to perform speech phoneme recognition to obtain the initial speech phoneme information.

19. The device according to claim 18, characterized in that The speech feature extraction unit is further used to deform the acoustic feature through spectrum enhancement to obtain an acoustic enhancement feature, and input the acoustic enhancement feature into the initial feature extraction network to extract speech features to obtain the initial speech feature.

20. The device according to claim 18, characterized in that The initial phoneme recognition network includes an initial speech phoneme feature extraction network, an initial target conversion network and at least two initial accent phoneme recognition networks corresponding to different accent area features; The identification unit comprises: A phoneme feature extraction subunit, used for inputting the initial combined feature into the initial speech phoneme feature extraction network to extract speech phoneme features, so as to obtain initial speech phoneme features; A target conversion subunit, configured to input the accent area feature into the initial target conversion network for conversion to obtain an initial target conversion feature; The phoneme recognition subunit is used to merge the initial speech phoneme features and the initial target conversion features to obtain a target merged feature, and input the target merged feature into the initial accent phoneme recognition network corresponding to the accent area feature to perform phoneme recognition to obtain the initial speech phoneme information.

21. The device according to claim 20, characterized in that The initial speech phoneme feature extraction network includes at least one initial time-delay neural network, at least one initial gated recurrent network and at least one initial intermediate conversion network, wherein the initial time-delay neural network and the initial gated recurrent network are alternating network structures; The phoneme feature extraction subunit is further used to input the initial merged feature into the initial time delay neural network for calculation to obtain the initial time delay feature; input the accent area feature into the initial intermediate conversion network for conversion to obtain the initial intermediate conversion feature; The initial time delay feature and the initial intermediate conversion feature are merged to obtain an initial intermediate merged feature, and the initial intermediate merged feature is input into the initial gated recurrent network for calculation to obtain the initial speech phoneme feature.

22. The device according to any one of claims 17 to 21, characterized in that: The loop iteration module is also used to calculate loss information using the maximum mutual information optimization function for the initial speech phoneme information and the corresponding phoneme labels. When the loss information does not meet the training completion conditions, the parameters of the initial accent recognition acoustic model are reversely updated based on the loss information to obtain an updated accent recognition acoustic model; the updated accent recognition acoustic model is used as the initial accent recognition acoustic model, and the acoustic features and the accent area features are input into the initial accent recognition acoustic model, and the steps are iteratively executed until the loss information meets the training completion conditions, and the initial accent recognition acoustic model that meets the training completion conditions is used as the target accent recognition acoustic model.

23. The device according to claim 17, characterized in that The device further comprises: A basic data acquisition module, used to acquire basic training data, wherein the basic training data includes basic training speech, basic accent area features corresponding to the basic training speech, and basic phoneme labels; A basic feature extraction module, used to extract basic acoustic features corresponding to the basic training speech; A basic model training module, used for inputting the basic acoustic features and the basic accent regional features into a basic accent recognition acoustic model, the basic accent recognition acoustic model inputting the basic accent regional features into a basic conversion network for conversion to obtain basic conversion features, inputting the basic acoustic features into a basic feature extraction network for speech feature extraction to obtain basic speech features, merging based on the basic conversion features and the basic speech features to obtain basic merged features, inputting the basic merged features into a basic phoneme recognition network for speech phoneme recognition to obtain basic speech phoneme information; A basic loop module, configured to calculate basic loss information based on the basic speech phoneme information and the corresponding basic phoneme labels, update the basic accent recognition acoustic model based on the basic loss information, and return to the step of inputting the basic acoustic features and the basic accent regional features into the basic accent recognition acoustic model for iterative execution until basic training is completed, thereby obtaining a trained basic accent recognition acoustic model; The initial model building module is used to build the initial accent recognition acoustic model based on the trained basic accent recognition acoustic model.

24. The device according to claim 23, characterized in that The basic phoneme recognition network includes a basic speech phoneme feature extraction network, a basic target conversion network and a basic accent phoneme recognition network; The basic model training module is also used to input the basic merged features into the basic speech phoneme feature extraction network for speech phoneme feature extraction to obtain basic speech phoneme features; input the basic accent area features into the basic target conversion network for conversion to obtain basic target conversion features; merge the basic speech phoneme features and the basic target conversion features to obtain basic target merged features, and input the basic target merged features into the basic accent phoneme recognition network for phoneme recognition to obtain the basic speech phoneme information.

25. The device according to claim 23, characterized in that The initial model building module is further used to use the basic conversion network in the trained basic accent recognition acoustic model as the initial conversion network in the initial accent recognition acoustic model; and use the basic feature extraction network in the trained basic accent recognition acoustic model as the initial feature extraction network in the initial accent recognition acoustic model; Using the basic speech phoneme feature extraction network in the trained basic accent recognition acoustic model as the initial speech phoneme feature extraction network in the initial accent recognition acoustic model; The basic target conversion network in the trained basic accent recognition acoustic model is used as the initial target conversion network in the initial accent recognition acoustic model; and initial accent phoneme recognition networks corresponding to at least two different accent area features are established to obtain the initial accent recognition acoustic model.

26. The device according to claim 24, characterized in that The basic speech phoneme feature extraction network includes at least one basic time-delay neural network, at least one basic gated recurrent network and at least one basic intermediate conversion network, wherein the basic time-delay neural network and the basic gated recurrent network are alternating network structures; The basic model training module is also used to input the basic combined features into the basic time delay neural network for calculation to obtain basic time delay features; The basic accent area feature is input into the basic intermediate conversion network for conversion to obtain a basic intermediate conversion feature; the basic time delay feature and the basic intermediate conversion feature are merged to obtain a basic intermediate merged feature; the basic intermediate merged feature is input into the basic gated recurrent network for calculation to obtain the basic speech phoneme feature.

27. The device according to claim 23, characterized in that The device further comprises: An initial data acquisition module, used to acquire initial training data, wherein the initial training data includes an initial training speech and a corresponding initial phoneme label; A starting model training module, used for extracting the starting acoustic features corresponding to the starting training speech, inputting the starting acoustic features into a parameter-initialized starting accent recognition acoustic model, the starting accent recognition acoustic model inputting the starting acoustic features into a starting feature extraction network for feature extraction to obtain starting speech features, and inputting the starting speech features into a starting phoneme recognition network for speech phoneme recognition to obtain starting speech phoneme information; A starting model loop module, used for calculating starting loss information based on the starting speech phoneme information and the corresponding starting speech phoneme label, updating the parameters in the starting accent recognition acoustic model based on the starting loss information, and returning to the step of inputting the starting acoustic features into the starting accent recognition acoustic model initialized with the parameters, and iteratively executing until the starting training is completed, thereby obtaining a trained starting accent recognition acoustic model; The basic model building module is used to build the basic accent recognition acoustic model based on the trained initial accent recognition acoustic model.

28. The device according to claim 27, characterized in that The initial phoneme recognition network includes an initial speech phoneme feature extraction network and an initial accent phoneme recognition network; The starting model training module is also used to input the starting speech features into the starting speech phoneme feature extraction network to extract speech phoneme features to obtain starting speech phoneme features, and input the starting speech phoneme features into the starting accent phoneme recognition network to perform phoneme recognition to obtain the starting speech phoneme information.

29. The device according to claim 28, characterized in that The initial speech phoneme feature extraction network includes at least one initial delay neural network and at least one initial gated recurrent network, wherein the initial delay neural network and the initial gated recurrent network are alternating network structures; The starting model training module is also used to input the starting speech feature into the starting delay neural network for calculation to obtain the starting delay feature, and input the starting delay feature into the starting gated recurrent network for calculation to obtain the starting speech phoneme feature.

30. The device according to claim 29, characterized in that The basic model establishment module is also used to use the trained starting feature extraction network as the basic feature extraction network, the trained starting time delay neural network as the basic time delay neural network, the trained starting gated recurrent network as the basic gated recurrent network, the trained starting accent phoneme recognition network as the basic accent phoneme recognition network, and establish a parameter-initialized conversion network to obtain the basic accent recognition acoustic model.

31. The device according to claim 17, characterized in that The device further comprises: The target area optimization module is used to obtain target accent data corresponding to the target area, wherein the target accent data includes target area speech and corresponding target area speech phoneme labels; obtain target area features corresponding to the target area and extract target area speech acoustic features corresponding to the target area speech; input the target area speech acoustic features and target area features into the target accent recognition acoustic model, wherein the target accent recognition acoustic model transforms the target area features to obtain target area transformation features, extracts speech features based on the target area acoustic features to obtain target area speech features, and extracts speech features based on the target area transformation features. The target area speech feature is merged with the target area speech feature to obtain the target area merged feature, speech phoneme recognition is performed based on the target area merged feature to obtain the target area speech phoneme information; the target area speech loss information is calculated based on the target area speech phoneme information and the corresponding target area speech phoneme label, the phoneme recognition network corresponding to the target area in the target accent recognition acoustic model is updated based on the target area speech loss information, and the step of returning to input the target area speech acoustic feature and the target area feature into the target accent recognition acoustic model is iteratively executed until the target training is completed to obtain the optimized accent recognition acoustic model.

32. An accent recognition device, characterized in that: The device comprises: The module for acquiring speech to be recognized is used to acquire the speech with accent to be recognized and the corresponding information of the area to be recognized; A feature extraction module to be identified, used to extract the acoustic features to be identified corresponding to the accented speech to be identified and obtain the region features to be identified corresponding to the region information to be identified; A model recognition module, used for inputting the acoustic features to be recognized and the regional features to be recognized into a target accent recognition acoustic model, wherein the target accent recognition acoustic model transforms the regional features to be recognized to obtain transformed features to be recognized, performs speech feature extraction on the acoustic features to be recognized to obtain speech features to be recognized, merges the transformed features to be recognized and the speech features to be recognized to obtain merged features to be recognized, and performs speech phoneme recognition on the merged features to be recognized to obtain speech phoneme information corresponding to the accented speech to be recognized, wherein the target accent recognition acoustic model is trained based on the accent recognition acoustic model training device according to any one of claims 17 to 31; The target accent recognition acoustic model is used to identify with the preset language model to obtain the cloud recognition result corresponding to the speech to be recognized, and at the same time obtain the offline recognition result of the speech to be recognized. The cloud recognition result and the offline recognition result are combined with the offline and cloud semantic information to obtain the recognition result corresponding to the speech to be recognized.

33. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 16 are implemented.

34. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 16 are implemented.