Speech recognition method, device, equipment and storage medium
By using audio data with the same semantics to train and fine-tune the speech recognition model, the problem that the transfer learning method does not consider the speech semantic information is solved and the accuracy of speech recognition is improved.
Patent Information
- Application Number
- CN202111667219.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-12-31
AI Technical Summary
In the field of speech recognition technology, the semantic information of speech is not fully considered when using transfer learning methods, resulting in low speech recognition accuracy of the trained model.
By using first language and second language audio data with the same semantics to train the encoding module in the speech recognition model, and using the second language audio data to fine-tune the trained encoding and decoding modules, fully considering the implicit meaning in the audio semantic information.
It improves the semantic recognition accuracy of the speech recognition model and enhances the recognition ability of speech information in the second language.
Smart Images

Figure CN114171013B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a speech recognition method, apparatus, device and storage medium. Background Art
[0002] Speech recognition technology refers to the technology of converting speech information into corresponding text information, for example, recognizing the words spoken by the user into corresponding language and text.
[0003] With the rapid development of deep learning technology, end-to-end speech recognition methods based on deep neural networks have performed outstandingly in terms of word accuracy, sentence accuracy, word output speed, etc. Therefore, in the field of speech recognition technology, end-to-end deep neural networks are currently used to replace traditional speech recognition methods.
[0004] In order to improve the training speed of deep neural network models, transfer learning methods are used to train models. However, in the field of speech recognition technology, when using transfer learning methods to train models, the semantic information of speech is not fully considered, which results in low speech recognition accuracy of the trained models. Summary of the invention
[0005] The embodiments of the present application provide a speech recognition method, apparatus, device and storage medium to improve the accuracy of speech recognition.
[0006] In a first aspect, an embodiment of the present application provides a speech recognition method, comprising:
[0007] Acquiring speech information to be recognized in a second language;
[0008] Inputting the speech information to be recognized into a speech recognition model to obtain a recognition result of the speech information to be recognized;
[0009] The speech recognition model includes an encoding module and a decoding module. The encoding module is trained with a data pair and then trained with the second language audio training data together with the decoding module. The data pair includes a pair of first language audio data and second language audio data with the same semantics.
[0010] In a second aspect, an embodiment of the present application provides a speech recognition device, comprising:
[0011] An acquisition unit, used for acquiring speech information to be recognized in a second language;
[0012] A recognition unit, used for inputting the speech information to be recognized into a speech recognition model to obtain a recognition result of the speech information to be recognized;
[0013] The speech recognition model includes an encoding module and a decoding module. The encoding module is trained with a data pair and then trained with the second language audio training data together with the decoding module. The data pair includes a pair of first language audio data and second language audio data with the same semantics.
[0014] In some embodiments, the apparatus further comprises a first training unit, a determination unit, and a second training unit;
[0015] A first training unit is used to obtain, for each data pair in the plurality of data pairs, first semantic information corresponding to the first language audio data in the data pair and second semantic information corresponding to the second language audio data in the data pair through an encoding module in the speech recognition model;
[0016] a determining unit, configured to determine a semantic deviation between the first semantic information and the second semantic information, and to train the encoding module using the semantic deviation;
[0017] The second training unit is used to train the trained encoding module and the decoding module in the speech recognition model using the second language audio training data to obtain the trained speech recognition model.
[0018] In some embodiments, the first training unit is specifically used to input the data pair into the encoding module to obtain third semantic information corresponding to the first language audio data output by the encoding module, and fourth semantic information corresponding to the second language audio data; input the third semantic information and the fourth semantic information into a semantic consistency regression module respectively to obtain the first semantic information and the second semantic information output by the semantic consistency regression module.
[0019] Optionally, the semantic consistency regression module includes M fully connected layers, where M is a positive integer greater than 2.
[0020] Optionally, in the M fully connected layers, the number of neurons in at least one intermediate layer is different from the number of neurons in the input layer.
[0021] In some embodiments, the speech recognition model is trained with the first language audio training data before being trained with the data pairs and the second language audio training data.
[0022] In some embodiments, the determining unit is specifically configured to determine a distance between the first semantic information and the second semantic information; and determine the distance as the semantic deviation.
[0023] Optionally, the distance is Euclidean distance.
[0024] In some embodiments, the first training unit is specifically used to train the encoding module and the semantic consistency regression module using the semantic deviation as loss.
[0025] In some embodiments, the second training unit is specifically used to train the trained encoding module and the decoding module using the second language audio training data to obtain a trained speech recognition model.
[0026] In some embodiments, if the speech recognition model also includes a semantic consistency regression module, the second training unit is specifically used to use the second language audio training data to train the trained encoding module and semantic consistency regression module, as well as the decoding module to obtain a trained speech recognition model.
[0027] In some embodiments, the recognition unit is specifically used to input the speech information to be recognized into the encoding module to obtain the fifth semantic information output by the encoding module; input the fifth semantic information into the decoding module to obtain the recognition result output by the decoding module.
[0028] In some embodiments, if the speech recognition model also includes a semantic consistency regression module, the recognition unit is specifically used to input the speech information to be recognized into the encoding module to obtain the fifth semantic information output by the encoding module; input the fifth semantic information into the semantic consistency regression module to obtain the sixth semantic information output by the semantic consistency regression module; input the sixth semantic information into the decoding module to obtain the recognition result output by the decoding module.
[0029] In a third aspect, an embodiment of the present application provides a computing device, including a processor and a memory;
[0030] The memory is used to store computer programs;
[0031] The processor is used to execute the computer program to implement the method described in the first aspect above.
[0032] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the storage medium includes computer instructions. When the instructions are executed by a computer, the computer implements the method described in the first aspect.
[0033] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program, and the computer program is stored in a readable storage medium. At least one processor of a computer can read the computer program from the readable storage medium, and the at least one processor executes the computer program so that the computer implements the method described in the first aspect.
[0034] The speech recognition method, device, equipment and storage medium provided in the embodiment of the present application obtain the speech information to be recognized in the second language; and input the speech information to be recognized into the speech recognition model to obtain the recognition result of the speech information to be recognized, wherein the speech recognition model includes an encoding module and a decoding module, and the encoding module is trained with the second language audio training data together with the decoding module after the data pair training, and the data pair includes a pair of first language audio data and second language audio data with the same semantics. That is, in the embodiment of the present application, the encoding module is trained using two language audio data with the same semantic information, which fully considers the semantic information implied in the audio, thereby improving the semantic recognition accuracy of the speech recognition model. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0036] Figure 1 This is an illustration of an application scenario in the field of speech recognition technology;
[0037] Figure 2 A schematic diagram of a system architecture involved in an embodiment of the present application;
[0038] Figure 3 A schematic diagram of a model training method flow chart provided in one embodiment of the present application;
[0039] Figure 4 A schematic diagram of a network structure of a speech recognition model involved in an embodiment of the present application;
[0040] Figure 5 A training diagram of the encoding module involved in the embodiment of the present application;
[0041] Figure 6 Another training schematic diagram of the encoding module involved in the embodiment of the present application;
[0042] Figure 7 A network diagram of a semantic consistency regression module involved in an embodiment of the present application;
[0043] Figure 8 A training diagram of a speech recognition model involved in an embodiment of the present application;
[0044] Fig. 9 Another training diagram of the speech recognition model involved in the embodiment of the present application;
[0045] Fig.10 A flowchart of a speech recognition method provided in one embodiment of the present application;
[0046] Fig.11 A schematic diagram of speech recognition involved in an embodiment of the present application;
[0047] Fig.12 This is another speech recognition schematic diagram involved in an embodiment of the present application;
[0048] Fig.13 A schematic diagram of the structure of a speech recognition device provided in one embodiment of the present application;
[0049] Fig.14 A schematic diagram of the structure of a speech recognition device provided in one embodiment of the present application;
[0050] Fig.15 A block diagram of a computing device involved in an embodiment of the present application. DETAILED DESCRIPTION
[0051] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0052] It should be understood that in the embodiment of the present invention, "B corresponding to A" means that B is associated with A. In one implementation, B can be determined based on A. However, it should also be understood that determining B based on A does not mean determining B based only on A, and B can also be determined based on A and / or other information.
[0053] In the description of the present application, unless otherwise specified, “plurality” means two or more than two.
[0054] In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.
[0055] The technical solution proposed in this application is mainly applied to speech recognition technology.
[0056] Figure 1 It is a schematic diagram of an application scenario in the field of speech recognition technology, such as Figure 1 As shown, it includes a microphone, a front-end acoustic processing module and a speech recognition system. The sound emitted by the user is picked up by the microphone and processed into a digital signal. After the front-end signal processing such as enhancement and noise reduction by the front-end acoustic processing module, it is sent to the speech recognition system (ASR) to finally obtain the corresponding text.
[0057] The speech recognition model provided in the embodiments of the present application can be applied to the above-mentioned speech recognition system.
[0058] Figure 2This is a schematic diagram of a system architecture involved in an embodiment of the present application, including a user device 101, a data collection device 102, a training device 103, an execution device 104, a database 105 and a content library 106.
[0059] The data acquisition device 102 is used to read the training data from the content library 106 and store the read training data in the database 105 .
[0060] The training data involved in the embodiment of the present application includes multiple data pairs and second language audio data, wherein each data pair includes a pair of first language audio data and second language audio data with the same semantics.
[0061] In some embodiments, the user device 101 is used to perform a labeling operation on the training data in the database 105, for example, marking semantic information of the second language audio training data.
[0062] The training device 103 trains the model based on the training data maintained in the database 105, so that the trained speech recognition model can accurately recognize the semantic information of the speech information in the second language. The speech recognition model obtained by the training device 103 can be applied to different systems or devices, for example, Figure 1 In the speech recognition system shown.
[0063] In the attached Figure 2 In the embodiment, the execution device 104 is configured with an I / O interface 107 to exchange data with external devices. For example, the voice information to be recognized sent by the user device 101 is received through the I / O interface. The calculation module 109 in the execution device 104 uses the trained voice recognition model to recognize the input voice information to be recognized and obtains a semantic recognition result. Optionally, the recognized semantic result can also be sent to the user device 101 through the I / O interface.
[0064] In some embodiments, the user may annotate the training data in the database 105 through the user device 101. The training device 103 uses the annotated training data to train the speech recognition model.
[0065] The user device 101 may include a mobile phone, a tablet computer, a laptop computer, a PDA, a mobile internet device (MID) or other terminal devices with a browser function installed.
[0066] The execution device 104 may be a server, or other electronic devices with data processing functions, such as a smart terminal.
[0067] Exemplarily, the server may be a computing device such as a rack server, a blade server, a tower server or a cabinet server, etc. The server may be an independent test server or a test server cluster composed of multiple test servers.
[0068] In this embodiment, the execution device 104 is connected to the user device 101 through a network. The network can be a wireless or wired network such as an intranet, the Internet, the Global System of Mobilecommunication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, or a call network.
[0069] It should be noted that the attached Figure 2 It is only a schematic diagram of a system architecture provided in an embodiment of the present application. The positional relationship between the devices, components, modules, etc. shown in the figure does not constitute any limitation.
[0070] In some embodiments, the data collection device 102, user device 101, training device 103 and execution device 104 may be the same device.
[0071] In some embodiments, the acquisition device 102, training device 103 and execution device 104 may be the same device, such as the same server, and the user device 101 may be another device.
[0072] The above-mentioned database 105 can be distributed on one server or on multiple servers, and the above-mentioned content library 106 can be distributed on one server or on multiple servers.
[0073] At present, the transfer learning method used in the field of speech recognition is usually a general transfer learning method for deep learning. For example, for a model α that has completed optimization iterations in domain A, in order to make it applicable to another domain B, on the basis of the unchanged structure of model α, model α is usually used as the initial model, and the training data (dataB) in domain B is used to fine-tune model α. After iterative convergence, model β applicable to domain B is obtained. The process can be expressed by formula (1).
[0074]
[0075] Taking speech recognition of Chinese dialects as an example, to obtain a recognition model for a certain dialect, we usually use the audio data of this dialect and the corresponding annotated text. The trained Chinese model is used as the initial model, and the Chinese model is fine-tuned with a small learning rate (this step is called finetune). After the model converges, we can obtain the recognition model of this dialect.
[0076] The transfer learning method mentioned above is a common domain transfer method for deep neural networks. However, in the field of speech recognition, this transfer learning method does not take into account the characteristics of speech recognition, that is, what people say is not a simple speech signal, but speech contains implicit semantic information. However, the above-mentioned general transfer learning method does not make full use of this semantic information, making it impossible for the trained model to achieve accurate speech recognition.
[0077] In order to solve the above technical problems, in an embodiment of the present application, the encoding module in the speech recognition model is first trained using two language audio data with the same semantic information, and then the trained encoding module and decoding module are trained using the second language audio training data, fully considering the semantic information implied in the audio, thereby improving the semantic recognition accuracy of the speech recognition model.
[0078] The technical solutions of the embodiments of the present application are described in detail below through some embodiments. The following embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0079] First combine Figure 3 The model training method involved in the embodiment of the present application is introduced.
[0080] Figure 3 A flow chart of a model training method provided in an embodiment of the present application. The execution subject of the embodiment of the present application is a device with a model training function, such as a model training device, which can be a computing device, or a part of a computing device, such as a processor in a computing device. Exemplarily, the above-mentioned model training device can be Figure 2 Training equipment in Figure 2 The training device in the example can be understood as a computing device, or a processor in a computing device.
[0081] For ease of description, the following embodiments are introduced by taking the execution subject as a computing device as an example.
[0082] like Figure 3 As shown, the method of the embodiment of the present application includes the following steps:
[0083] S301, obtaining multiple data pairs and second language audio training data.
[0084] Each data pair includes a pair of first language audio data and second language audio data having the same semantics.
[0085] It can be understood that the training data of the present application includes two parts, the first part is a data set consisting of multiple data pairs, and the other part is a data set consisting of audio data of the second language.
[0086] Among them, each data pair includes a pair of first language audio data and second language audio data with the same semantics, that is, the semantics of the two audio data in different languages in a data pair are the same. For example, the descriptions of "Have you eaten yet" in different languages may be different. In this way, the first language audio data and the second language audio data that both express the semantics of "Have you eaten yet" can be regarded as a data pair.
[0087] In the embodiment of the present application, there is no restriction on the items of first language audio data and the items of second language audio data included in the data pair, that is, a data pair includes at least one first language audio data and at least one second language audio data with the same semantics.
[0088] The second language audio training data can be understood to include a plurality of second language audio data, and the semantics of the second language audio data are annotated.
[0089] The speech recognition model of the embodiment of the present application is mainly used to recognize speech information of a second language, for example, to recognize Shandong dialect. Therefore, the speech recognition model is first trained using multiple data pairs so that the speech recognition model can fully learn semantic information. In order to further improve the recognition accuracy of the speech recognition model for speech information in the second language, the speech recognition model is fine-tuned using the second language audio training data annotated with semantic information to improve the training effect of the speech recognition model.
[0090] The embodiment of the present application does not limit the types of the first language and the second language, and the first language and the second language are different.
[0091] For example, the first language is Mandarin and the second language is a dialect of a certain region.
[0092] For another example, the first language is a dialect of a first region, and the second language is a dialect of a second region, and the first region is different from the second region.
[0093] S302. For each data pair in the plurality of data pairs, obtain, by means of an encoding module in a speech recognition model, first semantic information corresponding to the first language audio data in the data pair and second semantic information corresponding to the second language audio data in the data pair.
[0094] The speech recognition model of the embodiment of the present application is a deep neural network model, including an encoding module and a decoding module.
[0095] The embodiments of the present application do not limit the specific network structure of the speech recognition model, such as an autoencoder network or a Transformer.
[0096] For example, the speech recognition model in the embodiment of the present application is Transformer. The network structure of Transformer is as follows: Figure 4 As shown in the figure, it includes an encoder and a decoder, where the encoder is also called an encoding module and the decoder is also called a decoding module. The encoder in the Transformer is used to encode the speech signal and extract the feature vector containing the main semantic information, while the decoder is used to decode the semantic feature vector extracted by the encoder and finally obtain the recognition result. The encoder and the decoder together form the Transformer network, thereby realizing end-to-end speech recognition.
[0097] That is to say, the embodiments of the present application do not limit the specific network structure of the speech recognition model, as long as it includes an encoding module and a decoding module and can implement a deep neural network for speech recognition.
[0098] In order to improve the recognition accuracy of the speech recognition model, the embodiment of the present application uses the first language audio data and the second language audio data with the same semantics to separately train the encoding module in the model.
[0099] In the embodiment of the present application, the training process of the encoding module using each data pair of multiple data pairs is consistent. For the convenience of description, the embodiment of the present application takes one data pair of multiple data pairs as an example for explanation.
[0100] Specifically, Figure 5 As shown, the data pair is input into the encoding module, and the encoding module processes the first language audio data and the second language audio data in the data pair to obtain the first semantic information corresponding to the first language audio data and the second semantic information corresponding to the second language audio data. Since the semantics of the first language audio data and the second language audio data are the same, the deviation between the first semantic information and the second semantic information output by the encoding module can be used to train the encoding module until the training end condition is met. The training end condition can be that the number of training times reaches a preset number of times, or that the training effect reaches a preset value.
[0101] In some embodiments, the speech recognition model of the embodiment of the present application is first trained with the first language audio training data before being trained with the above data pair and the second language audio training data. That is, the above speech recognition model is a model trained with the audio training data of the first language, and the speech recognition model is fine-tuned by the method of the embodiment of the present application to obtain a speech recognition model for recognizing speech information in the second language.
[0102] In some embodiments, the speech recognition model of the embodiment of the present application is a model trained using audio training data in a third language. The speech recognition model is fine-tuned using the method of the embodiment of the present application to obtain a speech recognition model for recognizing speech information in a second language.
[0103] In some embodiments, the speech recognition model of the embodiment of the present application is an untrained initial model. In the embodiment of the present application, the encoding module in the speech recognition model is first trained using the first language audio data and the second language audio data with the same specific semantics. Then, the speech recognition model trained with the encoding module is fine-tuned using the second language audio training data to obtain a speech recognition model that is ultimately used to recognize speech information in the second language.
[0104] In some embodiments, the semantic information output by the encoding module regarding the first language audio data is referred to as first semantic information, and the semantic information output by the encoding module regarding the second language audio data is referred to as second semantic information.
[0105] In some embodiments, in order to facilitate the subsequent calculation of the loss between the first semantic information and the second semantic information, Figure 6 As shown, in the embodiment of the present application, a semantic consistency regression module is connected after the encoding module. The semantic consistency regression module is used to explicitly call the semantic information of the first language audio data and the second language audio data. In this embodiment, the semantic information output by the semantic consistency regression module about the first language audio data is called the first semantic information, and the semantic information output by the semantic consistency regression module about the second language audio data is called the second semantic information.
[0106] On this basis, in some embodiments, the above S302 includes the following steps:
[0107] S302-A1, inputting the data pair into an encoding module, obtaining third semantic information corresponding to the first language audio data and fourth semantic information corresponding to the second language audio data output by the encoding module;
[0108] S302-A2: Input the third semantic information and the fourth semantic information into a semantic consistency regression module respectively, and obtain the first semantic information and the second semantic information output by the semantic consistency regression module.
[0109] Specifically, Figure 6 As shown, in the embodiment of the present application, the first language audio data and the second language audio data with the same semantics are input into the encoding module to obtain the third semantic information corresponding to the first language audio data output by the encoding module, and the fourth semantic information corresponding to the second language audio data. Then, the third semantic information and the fourth semantic information are input into the semantic consistency regression module to obtain the first semantic information corresponding to the first language audio data, and the second semantic information corresponding to the second language audio data.
[0110] When training the encoding module, the embodiment of the present application adds a semantic consistency regression module after the encoding module to obtain the semantic features of the first language audio data and the second language audio data in different spaces, and then explicitly extracts the semantic information of the audio, thereby increasing the interpretability of the model.
[0111] The semantic consistency regression module of the embodiment of the present application is a network model.
[0112] The embodiment of the present application does not limit the network structure of the semantic consistency regression module.
[0113] In one example, the semantic consistency regression module is composed of multiple convolutional layers, such as a convolutional network.
[0114] In another example, the semantic consistency regression module includes M fully connected layers, where M is a positive integer greater than 2. That is, the semantic consistency regression module includes at least 3 fully connected layers.
[0115] The feature dimensions of the input layer and the output layer of the semantic consistency regression module in the embodiment of the present application are the same, for example, both are equal to the output feature dimensions of the encoding module.
[0116] In addition, among the M fully connected layers of the semantic consistency regression module, the number of neurons in at least one intermediate layer is different from the number of neurons in the input layer. Figure 7 As shown, the semantic consistency regression module includes 3 fully connected layers, and the number of neurons in the middle layer needs to be slightly larger than the number of neurons in the input layer. For example, the ratio of the number of neurons in the middle layer to the number of neurons in the input layer is 3 / 4, for example Figure 7 As shown, the middle layer includes 4 neurons and the input layer includes 3 neurons.
[0117] S303: Determine the semantic deviation between the first semantic information and the second semantic information, and use the semantic deviation to train the encoding module.
[0118] In the embodiment of the present application, since the semantics of the first language audio data and the second language audio data are the same, if the encoding module, or the encoding module and the semantic consistency regression module are fully trained, the first semantic information and the second semantic information output by the encoding module, or the encoding module and the semantic consistency regression module should be the same. In this way, the embodiment of the present application can train the encoding module according to the deviation between the first semantic information and the second semantic information.
[0119] Specifically, the semantic deviation between the first semantic information and the second semantic information is determined, and the encoding module is trained according to the semantic deviation.
[0120] The embodiment of the present application does not limit the method of determining the semantic deviation between the first semantic information and the second semantic information.
[0121] In an example, since both the first semantic information and the second language information are feature matrices, the semantic deviation between the first semantic information and the second semantic information can be determined by calculating the difference or ratio between the first semantic information and the second language information.
[0122] In a possible implementation manner, a distance between the first semantic information and the second semantic information is determined; and the distance is determined as the semantic deviation.
[0123] The distance between the first semantic information and the second semantic information may be Euclidean distance or Manhattan distance, etc.
[0124] Taking the Euclidean distance as an example, the semantic deviation between the first semantic information and the second semantic information can be determined by the following formula (2):
[0125]
[0126] Wherein, Loss(l) is the semantic deviation between the first semantic information and the second semantic information, is the i-th dimension vector in the first semantic information corresponding to the first language audio data in the l-th data pair. Similarly, is the i-th dimension vector in the second semantic information corresponding to the second language audio data in the l-th data pair. That is, the first semantic information and the second semantic information in the embodiment of the present application are n-dimensional feature vectors, for example, n=3.
[0127] After the semantic deviation between the first semantic information and the second semantic information is determined according to the above formula (2), the semantic deviation is used as the return loss to train the encoding module.
[0128] In some embodiments, the encoding module is trained based on the following formula (3) as the subject.
[0129] subject to:y z (l,θ)=y s (l,θ)(3)
[0130] Among them, the above formula (3) is the output target of the model composed of the encoding module and the semantic consistency regression module, that is, the output of the model composed of the encoding module and the semantic consistency regression module on any data pair should be the same, that is, the audio corresponding semantic information in the same data pair should be consistent.
[0131] In the embodiment of the present application, the Euclidean distance of the semantic information of the audio in two different languages in the data pair is calculated by the above formula (2) in a specific space, and the Euclidean distance is used as a loss function to train the encoding module. In other words, the present application updates the encoding module by strongly binding the semantic information corresponding to the audio data in different languages with the same semantics, so that it can better encode the semantic information in the speech, thereby improving the decoding effect of the subsequent decoding module.
[0132] In some embodiments, the semantic consistency regression module of the embodiment of the present application is pre-trained, and the embodiment of the present application uses semantic deviation to train the encoding module.
[0133] In some embodiments, the embodiments of the present application use semantic deviation as loss to train the encoding module and the semantic consistency regression module.
[0134] According to the above steps, after the encoding module in the speech recognition model is trained, the following step S304 is performed.
[0135] S304: Use the second language audio training data to train the trained encoding module and the decoding module in the speech recognition model to obtain the trained speech recognition model.
[0136] Among them, the speech recognition model of the present application is used to recognize speech information in a second language.
[0137] In the embodiment of the present application, first, according to the above steps, the encoding module in the speech recognition model is trained using the first language audio data and the second language audio data with the same semantics in the data pair. Since the speech recognition model in the embodiment of the present application is used to recognize speech information in the second language, the speech recognition model is fine-tuned using the second language audio training data. This step can be understood as training the decoding module in the speech recognition model so that the decoding module accurately recognizes the speech information in the second language.
[0138] As can be seen from the above, in some embodiments, when training the encoding module, a semantic consistency regression module is introduced. The semantic consistency regression module of the embodiment of the present application is a pluggable module, that is, it can be inserted into the encoding module and the decoding module as needed, and can also be unplugged from the encoding module and the decoding module.
[0139] Depending on whether the speech recognition model includes a semantic consistency regression module, the above S304 implementation process includes the following two cases.
[0140] Case 1: The semantic consistency regression module of the embodiment of the present application is used in the training process of the encoding module, but not in the training process of the decoding module. Figure 8 As shown, the speech recognition model of the embodiment of the present application includes an encoding module and a decoding module. Correspondingly, the above S304 includes the following steps:
[0141] S304-A: Use the second language audio training data to train the trained encoding module and decoding module to obtain a trained speech recognition model.
[0142] In this case 1, the speech recognition model only includes the encoding module and the decoding module, but does not include the semantic consistency regression module. That is, during the training process of the encoding module, after the semantic consistency regression module is inserted into the encoding module, it is used together with the encoding module to predict the first semantic information of the first language audio data and the second semantic information of the second language audio data in the data pair, and the encoding module is trained according to the semantic deviation between the first semantic information and the second semantic information. After the training of the encoding module is completed, the semantic consistency regression module is unplugged, and the trained encoding module is connected to the decoding module to obtain the following Figure 8 Next, the trained encoding module and decoding module are trained using the second language audio training data to obtain the trained speech recognition model.
[0143] Case 2: The semantic consistency regression module of the embodiment of the present application is used not only in the training process of the encoding module, but also in the training process of the decoding module. That is to say, the semantic consistency regression module of the embodiment of the present application is part of the speech recognition model. Fig. 9 As shown, the speech recognition model of the embodiment of the present application includes an encoding module, a semantic consistency regression module and a decoding module. Correspondingly, the above S304 includes the following steps:
[0144] S304-B, using the second language audio training data, training the trained encoding module, semantic consistency regression module, and decoding module to obtain a trained speech recognition model.
[0145] In this embodiment, the speech recognition model includes an encoding module, a semantic consistency regression module and a decoding module. That is, in this embodiment, the semantic consistency regression module is used as a part of the speech recognition model. During the training process of the encoding module, the encoding module and the semantic consistency regression module are used to predict the first semantic information of the first language audio data and the second semantic information of the second language audio data in the data pair. Then, the encoding module and the semantic consistency regression module are trained according to the semantic deviation between the first semantic information and the second semantic information. After the encoding module training is completed, the decoding module is inserted into the semantic consistency regression module to obtain the following Fig. 9 Next, the trained encoding module, semantic consistency regression module, and decoding module are trained using the second language audio training data to obtain a trained speech recognition model.
[0146] In this embodiment, after adding a semantic consistency regression module to the speech recognition model on the basis of the existing encoding module and decoding module, when the migration method proposed in this application is used to perform model domain migration, better results can be obtained than the general migration method.
[0147] In some embodiments, in the embodiment of the present application, during the training process of the above-mentioned encoding module, as well as the training process of the encoding module and the decoding module, the stochastic gradient descent method is used for model training.
[0148] The model training method provided in the embodiment of the present application obtains multiple data pairs and second language audio training data, wherein the data pairs include a pair of first language audio data and second language audio data with the same semantics; for each data pair in the multiple data pairs, the first semantic information corresponding to the first language audio data in the data pair and the second semantic information corresponding to the second language audio data are obtained through the encoding module in the speech recognition model; the semantic deviation between the first semantic information and the second semantic information is determined, and the encoding module is trained using the semantic deviation; the trained encoding module and the decoding module in the speech recognition model are trained using the second language audio training data to obtain the trained speech recognition model, which is used to recognize speech information in the second language. That is, in the embodiment of the present application, based on the general transfer learning technology, the encoding module is trained using two language audio data with the same semantic information, and the semantic information implied in the audio is fully considered, thereby improving the semantic recognition accuracy of the speech recognition model.
[0149] The above describes the model training method provided in the embodiment of the present application. The following describes the speech recognition method involved in the embodiment of the present application. The embodiment of the present application uses the speech recognition model obtained by the above training to perform speech recognition, and the specific reference is as follows Fig.10 shown.
[0150] Fig.10 A flow chart of a speech recognition method provided in an embodiment of the present application. The execution subject of the embodiment of the present application is a device or system with a speech recognition function, such as a speech recognition device. The speech recognition device can be Figure 2 The execution device shown. The speech recognition device includes the speech recognition model obtained by the training.
[0151] like Fig.10 As shown, the speech recognition method of the embodiment of the present application includes the following steps:
[0152] S401: Acquire speech information to be recognized in a second language.
[0153] The embodiment of the present application does not limit the method of obtaining the speech information to be recognized in the second language.
[0154] In one example, the voice information to be recognized is picked up by a microphone in real time.
[0155] In another example, the above-mentioned voice information to be recognized is stored in a storage device.
[0156] S402. Input the speech information to be recognized into the speech recognition model to obtain the recognition result of the speech information to be recognized. The speech recognition model is trained by the above-mentioned training method, wherein the speech recognition model includes an encoding module and a decoding module. The encoding module is trained with the second language audio training data together with the decoding module after data pair training. The data pair includes a pair of first language audio data and second language audio data with the same semantics.
[0157] The speech recognition model of the embodiment of the present application is used to recognize speech information in a second language. After obtaining the speech information to be recognized in the second language according to the above steps, the speech information to be recognized is input into the speech recognition model for speech recognition, and a recognition result output by the speech recognition model is obtained. The recognition result may be semantic information corresponding to the speech information to be recognized.
[0158] From the above training process, it can be seen that the speech recognition model of the embodiment of the present application includes two structures, one including a semantic consistency regression module and the other not including a semantic consistency regression module. The process of performing speech recognition using the two speech recognition models with different structures is introduced below.
[0159] Case 1, such as Fig.11 As shown, the speech recognition model includes an encoding module and a decoding module, but does not include a semantic consistency regression module. In this case, the above S402 includes the following steps:
[0160] S402-A1, inputting the speech information to be recognized into the encoding module, and obtaining fifth semantic information output by the encoding module;
[0161] S402-A2: Input the fifth semantic information into a decoding module to obtain a recognition result output by the decoding module.
[0162] Specifically, Fig.11 As shown, the speech recognition model includes an encoding module and a decoding module. First, the speech information to be recognized is input into the encoding module for semantic feature extraction to obtain semantic information corresponding to the speech information to be recognized. For the convenience of description, the semantic information is recorded as the fifth semantic information. Then, the fifth semantic information is input into the decoding module for decoding to obtain the recognition result of the speech information to be recognized.
[0163] Case 2, such as Fig.12 As shown, the speech recognition model includes an encoding module, a semantic consistency regression module and a decoding module. At this time, the above S402 includes the following steps:
[0164] S402-B1, inputting the speech information to be recognized into the encoding module, and obtaining fifth semantic information output by the encoding module;
[0165] S402-B2, inputting the fifth semantic information into a semantic consistency regression module to obtain sixth semantic information output by the semantic consistency regression module;
[0166] S402-B3, input the sixth semantic information into the decoding module to obtain the recognition result output by the decoding module.
[0167] Specifically, Fig.12 As shown, the speech recognition model includes an encoding module, a semantic consistency regression module and a decoding module. First, the speech information to be recognized is input into the encoding module for semantic feature extraction to obtain the semantic information corresponding to the speech information to be recognized. For the convenience of description, the semantic information is recorded as the fifth semantic information. Next, the fifth semantic information is input into the semantic consistency regression module for re-extraction of semantic information in different spaces to obtain another semantic information. For the convenience of description, the semantic information is recorded as the sixth semantic information. Finally, the sixth semantic information is input into the decoding module for decoding to obtain the recognition result of the speech information to be recognized.
[0168] It is worth noting that before the embodiment of the present application inputs the voice information to be recognized into the voice recognition model, the voice information to be recognized can be processed to obtain voice features of the voice information to be recognized, and the voice features can be input into the voice recognition model.
[0169] The speech recognition method provided in the embodiment of the present application uses the speech recognition model obtained through the above training to perform speech recognition. Since the above speech recognition model fully considers the semantic information implicit in the audio during training, the recognition accuracy can be improved when the speech recognition model is used for speech recognition.
[0170] The preferred embodiments of the present application are described in detail above in conjunction with the accompanying drawings. However, the present application is not limited to the specific details in the above embodiments. Within the technical concept of the present application, the technical solution of the present application can be subjected to a variety of simple modifications, and these simple modifications all belong to the protection scope of the present application. For example, the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present application will not further explain various possible combinations. For another example, the various different embodiments of the present application can also be arbitrarily combined, as long as they do not violate the ideas of the present application, they should also be regarded as the contents disclosed in the present application.
[0171] It should also be understood that in the various method embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0172] Combination of the above Figures 3 to 12 , describes in detail the method embodiment of the present application, and the following is combined with Figures 13 to 15 , describe in detail the device embodiments of the present application.
[0173] Fig.13 The structure diagram of the speech recognition device provided in one embodiment of the present application is shown in FIG. The speech recognition device 20 may be a computing device or a component of a computing device (eg, an integrated circuit, a chip, etc.) for executing the above method.
[0174] An acquisition unit 21 is used to acquire speech information to be recognized in a second language;
[0175] The recognition unit 22 is used to input the speech information to be recognized into a speech recognition model to obtain a recognition result of the speech information to be recognized;
[0176] The speech recognition model includes an encoding module and a decoding module. The encoding module is trained with a data pair and then trained together with the decoding module with second language audio training data. The data pair includes a pair of first language audio data and second language audio data with the same semantics.
[0177] In some embodiments, Fig.14As shown, the above device also includes a first training unit 23, a determination unit 24 and a second training unit 25;
[0178] A first training unit 23 is used to obtain, for each data pair in the plurality of data pairs, first semantic information corresponding to the first language audio data in the data pair and second semantic information corresponding to the second language audio data in the data pair through an encoding module in the speech recognition model;
[0179] A determination unit 24, configured to determine a semantic deviation between the first semantic information and the second semantic information, and use the semantic deviation to train the encoding module;
[0180] The second training unit 25 is used to train the trained encoding module and the decoding module in the speech recognition model using the second language audio training data to obtain the trained speech recognition model.
[0181] In some embodiments, the first training unit 23 is specifically used to input the data pair into the encoding module to obtain third semantic information corresponding to the first language audio data output by the encoding module, and fourth semantic information corresponding to the second language audio data; input the third semantic information and the fourth semantic information into a semantic consistency regression module respectively to obtain the first semantic information and the second semantic information output by the semantic consistency regression module.
[0182] Optionally, the semantic consistency regression module includes M fully connected layers, where M is a positive integer greater than 2.
[0183] Optionally, in the M fully connected layers, the number of neurons in at least one intermediate layer is different from the number of neurons in the input layer.
[0184] In some embodiments, the speech recognition model is trained with the first language audio training data before being trained with the data pairs and the second language audio training data.
[0185] In some embodiments, the determination unit 24 is specifically configured to determine a distance between the first semantic information and the second semantic information; and determine the distance as the semantic deviation.
[0186] Optionally, the distance is Euclidean distance.
[0187] In some embodiments, the first training unit 23 is specifically configured to train the encoding module and the semantic consistency regression module using the semantic deviation as a loss.
[0188] In some embodiments, if the speech recognition model includes an encoding module and a decoding module, the second training unit 25 is specifically used to use the second language audio training data to train the trained encoding module and the decoding module to obtain the trained speech recognition model.
[0189] In some embodiments, if the speech recognition model includes an encoding module, a semantic consistency regression module and a decoding module, the second training unit 25 is specifically used to use the second language audio training data to train the trained encoding module and semantic consistency regression module, as well as the decoding module to obtain a trained speech recognition model.
[0190] In some embodiments, the recognition unit 22 is specifically used to input the speech information to be recognized into the encoding module to obtain the fifth semantic information output by the encoding module; input the fifth semantic information into the decoding module to obtain the recognition result output by the decoding module.
[0191] In some embodiments, if the speech recognition model also includes a semantic consistency regression module, the recognition unit 22 is specifically used to input the speech information to be recognized into the encoding module to obtain the fifth semantic information output by the encoding module; input the fifth semantic information into the semantic consistency regression module to obtain the sixth semantic information output by the semantic consistency regression module; input the sixth semantic information into the decoding module to obtain the recognition result output by the decoding module.
[0192] It should be understood that the device embodiment and the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. To avoid repetition, they will not be described here. Specifically, Fig.13 and Fig.14 The device 30 shown can correspond to the corresponding subject in the speech recognition method of the embodiment of the present application, and the aforementioned and other operations and / or functions of each module in the device are respectively for realizing the corresponding processes in the above method. For the sake of brevity, they will not be repeated here.
[0193] The above describes the device of the embodiment of the present application from the perspective of the functional module in conjunction with the accompanying drawings. It should be understood that the functional module can be implemented in hardware form, can be implemented by instructions in software form, and can also be implemented by a combination of hardware and software modules. Specifically, the steps of the method embodiment in the embodiment of the present application can be completed by the hardware integrated logic circuit and / or software form instructions in the processor, and the steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware processor to execute, or a combination of hardware and software modules in the processor to execute. Optionally, the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory, and completes the steps in the above method embodiment in conjunction with its hardware.
[0194] Fig.15 is a block diagram of a computing device involved in an embodiment of the present application, which may be Figure 2 The execution device and / or training device shown is used to execute the voice device method described in the above embodiment. For details, please refer to the description in the above method embodiment.
[0195] Fig.15 The computing device 200 shown includes a memory 201, a processor 202, and a communication interface 203. The memory 201, the processor 202, and the communication interface 203 are communicatively connected to each other. For example, the memory 201, the processor 202, and the communication interface 203 can be communicatively connected by a network connection. Alternatively, the computing device 200 may further include a bus 204. The memory 201, the processor 202, and the communication interface 203 are communicatively connected to each other via the bus 204. Fig.15 The computing device 200 is a memory 201 , a processor 202 , and a communication interface 203 that are communicatively connected to each other via a bus 204 .
[0196] The memory 201 may be a read-only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM). The memory 201 may store a program. When the program stored in the memory 201 is executed by the processor 202, the processor 202 and the communication interface 203 are used to execute the above method.
[0197] The processor 202 may be a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), a graphics processing unit (GPU), or one or more integrated circuits.
[0198] The processor 202 may also be an integrated circuit chip with signal processing capabilities. In the implementation process, the method of the present application may be completed by an integrated logic circuit of hardware in the processor 202 or instructions in the form of software. The above-mentioned processor 202 may also be a general-purpose processor, a digital signal processor (digital signal processing, DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The software module may be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 201, and the processor 202 reads the information in the memory 201, and completes the method of the embodiment of the present application in combination with its hardware.
[0199] The communication interface 203 uses a transceiver module such as, but not limited to, a transceiver to implement communication between the computing device 200 and other devices or a communication network. For example, a data set can be obtained through the communication interface 203 .
[0200] When the computing device 200 described above includes a bus 204 , the bus 204 may include a path for transmitting information between various components of the computing device 200 (eg, the memory 201 , the processor 202 , and the communication interface 203 ).
[0201] According to the present application, a computer storage medium is also provided, on which a computer program is stored, and when the computer program is executed by a computer, the computer can perform the method of the above method embodiment. In other words, the present application embodiment also provides a computer program product containing instructions, and when the instructions are executed by a computer, the computer can perform the method of the above method embodiment.
[0202] According to the present application, a computer program product or a computer program is also provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method of the above method embodiment.
[0203] In other words, when implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., a solid state drive (solid state disk, SSD)), etc.
[0204] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0205] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0206] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. For example, each functional module in each embodiment of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0207] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. In addition, various method embodiments and various device embodiments can also refer to each other, and the same or corresponding contents in different embodiments can be quoted from each other without repeated description.
Claims
1. A speech recognition method, characterized in that: include: Acquiring speech information to be recognized in a second language; Inputting the speech information to be recognized into a speech recognition model to obtain a recognition result of the speech information to be recognized; The speech recognition model includes an encoding module and a decoding module, the encoding module is trained with a data pair and then trained with a second language audio training data together with the decoding module, the data pair includes a pair of first language audio data and second language audio data with the same semantics; For each data pair in the plurality of data pairs, obtaining, by means of an encoding module in a speech recognition model, first semantic information corresponding to the first language audio data in the data pair and second semantic information corresponding to the second language audio data; Determining a semantic deviation between the first semantic information and the second semantic information, and using the semantic deviation to train the encoding module; Using the second language audio training data, training the trained encoding module and the decoding module in the speech recognition model to obtain the trained speech recognition model, wherein obtaining the first semantic information corresponding to the first language audio data and the second semantic information corresponding to the second language audio data in the data pair through the encoding module in the speech recognition model includes: Inputting the data pair into the encoding module to obtain third semantic information corresponding to the first language audio data and fourth semantic information corresponding to the second language audio data output by the encoding module; The third semantic information and the fourth semantic information are respectively input into a semantic consistency regression module to obtain the first semantic information and the second semantic information output by the semantic consistency regression module.
2. The method according to claim 1, characterized in that: The semantic consistency regression module includes M fully connected layers, where M is a positive integer greater than 2.
3. The method according to claim 2, characterized in that Among the M fully connected layers, the number of neurons in at least one intermediate layer is different from the number of neurons in the input layer.
4. The method according to any one of claims 1 to 3, characterized in that: The speech recognition model is trained with the first language audio training data before being trained with the data pairs and the second language audio training data.
5. The method according to any one of claims 1 to 3, characterized in that: The determining the semantic deviation between the first semantic information and the second semantic information comprises: determining a distance between the first semantic information and the second semantic information; The distance is determined as the semantic divergence.
6. The method according to claim 5, characterized in that The distance is the Euclidean distance.
7. The method according to claim 1, characterized in that The using the semantic deviation to train the encoding module includes: The encoding module and the semantic consistency regression module are trained with the semantic deviation as loss.
8. The method according to any one of claims 1 to 3, characterized in that: The method of using the second language audio training data to train the trained encoding module and the decoding module in the speech recognition model to obtain the trained speech recognition model includes: The trained encoding module, semantic consistency regression module, and decoding module are trained using the second language audio training data to obtain a trained speech recognition model.
9. The method according to any one of claims 1 to 3, characterized in that: The step of inputting the to-be-recognized voice information into a voice recognition model to obtain a recognition result of the to-be-recognized voice information includes: Inputting the speech information to be recognized into the encoding module to obtain fifth semantic information output by the encoding module; The fifth semantic information is input into the decoding module to obtain a recognition result output by the decoding module.
10. The method according to any one of claims 1 to 3, characterized in that: If the speech recognition model further includes the semantic consistency regression module, the step of inputting the speech information to be recognized into the speech recognition model to obtain a recognition result of the speech information to be recognized includes: Inputting the speech information to be recognized into the encoding module to obtain fifth semantic information output by the encoding module; Inputting the fifth semantic information into the semantic consistency regression module to obtain sixth semantic information output by the semantic consistency regression module; The sixth semantic information is input into the decoding module to obtain a recognition result output by the decoding module.
11. A speech recognition device, characterized in that: include: An acquisition unit, used for acquiring speech information to be recognized in a second language; A recognition unit, used for inputting the speech information to be recognized into a speech recognition model to obtain a recognition result of the speech information to be recognized; The speech recognition model includes an encoding module and a decoding module, the encoding module is trained with a data pair and then trained with a second language audio training data together with the decoding module, the data pair includes a pair of first language audio data and second language audio data with the same semantics; The speech recognition device also includes: A first training unit is used to obtain, for each data pair in the plurality of data pairs, first semantic information corresponding to the first language audio data in the data pair and second semantic information corresponding to the second language audio data in the data pair through an encoding module in the speech recognition model; a determining unit, configured to determine a semantic deviation between the first semantic information and the second semantic information, and to train the encoding module using the semantic deviation; The second training unit is used to use the second language audio training data to train the trained encoding module and the decoding module in the speech recognition model to obtain the trained speech recognition model, wherein the first training unit is used to input the data pair into the encoding module to obtain the third semantic information corresponding to the first language audio data output by the encoding module, and the fourth semantic information corresponding to the second language audio data; the third semantic information and the fourth semantic information are respectively input into the semantic consistency regression module to obtain the first semantic information and the second semantic information output by the semantic consistency regression module.
12. A computing device, characterized in that: include: Processor and memory; The memory is used to store computer programs; The processor is configured to execute the computer program to implement the method according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The storage medium includes computer instructions. When the instructions are executed by a computer, the computer implements the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Speech recognition model training method and speech recognition method and device
CN112086087A
Dialect speech recognition method and device, medium and electronic equipment
CN112509555A
Speech semantic recognition method and system
CN113299277A
