Pronunciation prediction method, pronunciation prediction device, electronic device and storage medium
Through a model with multi-modal data input and auto-encoder-decoder architecture, dual-supervised prediction is performed by combining audio and text modalities, solving the challenge of pronunciation prediction under single-modal data input and improving the accuracy and robustness of pronunciation prediction. Sticky, suitable for word pronunciation prediction in different contexts.
Patent Information
- Application Number
- CN202410921678.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-07-10
AI Technical Summary
In speech processing technology, single-modal data input poses challenges to the pronunciation prediction of specific words, and the same word may be pronounced in multiple ways in different contexts, which affects the prediction effect and makes it difficult to achieve accurate pronunciation prediction.
A pronunciation prediction method using multi-modal data input, through a model with an auto-encoder decoder architecture, combines audio and text modal data to perform dual-supervised prediction, and uses multi-modal joint information coding to improve the accuracy and robustness of pronunciation prediction. Great sex.
Through the multi-modal data input method, the accuracy and wide applicability of pronunciation prediction are improved, the complex speech and text relationships can be effectively processed, and the robustness of the prediction model is enhanced.
Smart Images

Figure CN118471266B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a pronunciation prediction method, a pronunciation prediction device, an electronic device and a storage medium. Background Art
[0002] In speech processing technology, pronunciation prediction usually relies on single-modal data input. In some cases, single-modal data input is still challenging for pronunciation prediction of specific words. In addition, the same word may have multiple pronunciations in different contexts, which affects the prediction effect. Therefore, how to achieve pronunciation prediction based on multi-modal data input is a problem that needs to be solved. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a pronunciation prediction method, a pronunciation prediction device, an electronic device and a storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a pronunciation prediction method is provided, comprising obtaining data to be predicted and parsing the data modality of the data to be predicted; performing pronunciation prediction on the data to be predicted based on a pronunciation prediction model and the data modality to obtain a pronunciation prediction result; wherein the input of the pronunciation prediction model is multimodal data, and the output of the pronunciation prediction model is the pronunciation prediction result.
[0005] In one embodiment, the pronunciation prediction is performed on the data to be predicted based on the pronunciation prediction model and the data modality; if the data modality of the data to be predicted is consistent with the data modality corresponding to the multimodal data, the pronunciation prediction is performed on the data to be predicted based on the data modality corresponding to the multimodal data; if the data modality of the data to be predicted is inconsistent with the data modality corresponding to the multimodal data, the input position of the first data modality is set to blank, and the pronunciation prediction is performed on the data to be predicted based on the second data modality and the blank first data modality; wherein the first data modality is a data modality in the data modality corresponding to the multimodal data that is inconsistent with the data modality of the data to be predicted; and the second data modality is a data modality in the data modality corresponding to the multimodal data that is consistent with the data modality of the data to be predicted.
[0006] In one embodiment, the pronunciation prediction model is a model with an automatic encoder-decoder architecture; the pronunciation prediction of the data to be predicted includes: based on the data to be predicted, constructing an input sequence of the decoder of the pronunciation prediction model; wherein, during the first decoding, the first input sequence is constructed to include the following contents in sequence: a first label, data to be predicted, a second label, a third label and a fourth label, and based on the first input sequence, the data to be predicted is pronounced and predicted to obtain a first output sequence, wherein the first output sequence includes the data to be predicted, the second label, the third label, the fourth label and a pronunciation prediction result containing one bit in sequence; during the i-th decoding, a second input sequence is constructed based on the first output sequence, wherein the second input sequence includes the following contents in sequence: the first label, data to be predicted, the second label, the third label, the fourth label and a pronunciation prediction result containing i-1 bits in sequence. The method comprises the following steps: performing pronunciation prediction on the data to be predicted based on the second input sequence to obtain a second output sequence, wherein the second output sequence includes the data to be predicted, a second label, a third label, a fourth label and a pronunciation prediction result containing i bits in sequence, wherein the i bits are integers greater than 1; repeating the above process until the decoder of the pronunciation prediction model outputs an output sequence containing a fifth label to obtain a pronunciation prediction result, wherein the output sequence includes the data to be predicted, a second label, a third label, a fourth label, a pronunciation prediction result and a fifth label in sequence; wherein the first label is used to identify the starting position of the data to be predicted, the second label is used to identify the start of pronunciation prediction, the third label is used to identify the language corresponding to the data to be predicted, the fourth label is used to identify the data modality corresponding to the data to be predicted, and the fifth label is used to identify the end of pronunciation prediction.
[0007] In one embodiment, the data modalities corresponding to the multimodal data include audio modality and text modality; the predicting of the data to be predicted includes: using the input sequence as a decoder prompt word and using the audio feature as an encoder input to obtain a multimodal joint information encoding, wherein, if the data modality of the data to be predicted includes an audio modality but does not include a text modality, the audio signal input to the encoder is the audio feature of the audio data modality included in the data to be predicted, and the first label of the decoder input sequence and the position of the data to be predicted are set to blank; if the data modality of the data to be predicted does not include an audio-text modality and does not include an audio modality, the input of the decoder is the input sequence of the text modality included in the data to be predicted, and the input position of the encoder is set to blank; based on the joint information encoding, the decoder outputs the output sequence to obtain a pronunciation prediction result.
[0008] In one embodiment, the pronunciation prediction model is pre-trained in the following manner: a training sample data set is obtained, wherein the training sample data set includes training sample data pairs, wherein the training sample data pairs include each modal data in the multimodal data and a pronunciation result; data features corresponding to each modal data are extracted respectively to obtain multimodal data features; a first modal data feature of the multimodal data feature is used as an encoder input, and / or a second modal data feature is used as a decoder prompt word, and the pronunciation result is used as a decoder output, and an autoregressive training is performed on the prediction model of the automatic encoder-decoder architecture to obtain the pronunciation prediction model.
[0009] According to a second aspect of an embodiment of the present disclosure, a pronunciation prediction device is provided, comprising an acquisition unit, configured to acquire data to be predicted and parse the data modality of the data to be predicted; a prediction unit, configured to perform pronunciation prediction on the data to be predicted based on a pronunciation prediction model and the data modality, and obtain a pronunciation prediction result; wherein the input of the pronunciation prediction model is multimodal data, and the output of the pronunciation prediction model is the pronunciation prediction result.
[0010] In one embodiment, the prediction unit performs pronunciation prediction on the data to be predicted based on the pronunciation prediction model and the data modality in the following manner; if the data modality of the data to be predicted is consistent with the data modality corresponding to the multimodal data, pronunciation prediction is performed on the data to be predicted based on the data modality corresponding to the multimodal data; if the data modality of the data to be predicted is inconsistent with the data modality corresponding to the multimodal data, the input position of the first data modality is set to blank, and pronunciation prediction is performed on the data to be predicted based on the second data modality and the blank first data modality; wherein the first data modality is a data modality in the data modality corresponding to the multimodal data that is inconsistent with the data modality of the data to be predicted; and the second data modality is a data modality in the data modality corresponding to the multimodal data that is consistent with the data modality of the data to be predicted.
[0011] In one embodiment, the pronunciation prediction model is a model with an automatic encoder-decoder architecture; the prediction unit performs pronunciation prediction on the data to be predicted in the following manner: based on the data to be predicted, construct an input sequence of the decoder of the pronunciation prediction model; wherein, during the first decoding, the first input sequence is constructed to include the following contents in sequence: a first label, data to be predicted, a second label, a third label, and a fourth label; based on the first input sequence, the data to be predicted is pronunciation predicted to obtain a first output sequence, the first output sequence includes the data to be predicted, the second label, the third label, the fourth label, and a pronunciation prediction result containing one bit in sequence; during the i-th decoding, a second input sequence is constructed based on the first output sequence, the second input sequence includes the following contents in sequence: the first label, data to be predicted, the second label, the third label, the fourth label, and i-1 The method comprises the steps of: performing pronunciation prediction on the data to be predicted based on the second input sequence to obtain a second output sequence, wherein the second output sequence sequentially includes the data to be predicted, a second label, a third label, a fourth label and a pronunciation prediction result of i bits, wherein i is an integer greater than 1; repeating the above process until the decoder of the pronunciation prediction model outputs an output sequence including a fifth label to obtain a pronunciation prediction result, wherein the output sequence sequentially includes the data to be predicted, a second label, a third label, a fourth label, a pronunciation prediction result and a fifth label; wherein the first label is used to identify the starting position of the data to be predicted, the second label is used to identify the start of pronunciation prediction, the third label is used to identify the language corresponding to the data to be predicted, the fourth label is used to identify the data modality corresponding to the data to be predicted, and the fifth label is used to identify the end of pronunciation prediction.
[0012] In one embodiment, the data modality corresponding to the multimodal data includes an audio modality and a text modality; the prediction unit predicts the speech data to be predicted in the following manner: the input sequence is used as a decoder prompt word, and the audio feature is used as an encoder input to obtain a multimodal joint information encoding, wherein, if the data modality of the data to be predicted includes an audio modality but does not include a text modality, the input of the encoder is the audio feature of the audio modality included in the data to be predicted, and the first label of the decoder input sequence and the position of the data to be predicted are set to blank; if the data modality of the data to be predicted includes a text modality but does not include an audio modality, the input of the decoder is the input sequence of the text modality included in the data to be predicted, and the input position of the encoder is set to blank; based on the joint information encoding, the decoder outputs the output sequence to obtain a pronunciation prediction result.
[0013] In one embodiment, the pronunciation prediction model is pre-trained in the following manner: a training sample data set is obtained, wherein the training sample data set includes training sample data pairs, wherein the training sample data pairs include each modal data in the multimodal data and a pronunciation result; data features corresponding to each modal data are extracted respectively to obtain multimodal data features; a first modal data feature of the multimodal data feature is used as an encoder input, and / or a second modal data feature is used as a decoder prompt word, and the pronunciation result is used as a decoder output, and an autoregressive training is performed on the prediction model of the automatic encoder-decoder architecture to obtain the pronunciation prediction model.
[0014] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor executable instructions; wherein the processor is configured to: execute the pronunciation prediction method described in the first aspect or any one of the implementations of the first aspect.
[0015] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided, in which instructions are stored. When the instructions in the storage medium are executed by a processor, the processor is enabled to execute the pronunciation prediction method described in the first aspect or any one of the embodiments of the first aspect.
[0016] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: obtaining the data to be predicted, parsing the data modality of the data to be predicted, and performing pronunciation prediction on the data to be predicted based on the data to be predicted and the data modality, wherein the input of the pronunciation prediction model is multimodal data. The present disclosure implements a multimodal data input model, performs pronunciation prediction on the data to be predicted, and improves the accuracy of pronunciation prediction.
[0017] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0019] Figure 1 The figure is a flowchart of a pronunciation prediction method according to an exemplary embodiment.
[0020] Figure 2 The figure is a flowchart of a pronunciation prediction method according to an exemplary embodiment.
[0021] Figure 3 The figure is a flowchart of a pronunciation prediction method according to an exemplary embodiment.
[0022] Figure 4 is a schematic diagram of an input sequence according to an exemplary embodiment.
[0023] Figure 5 The figure is a flowchart of a pronunciation prediction method according to an exemplary embodiment.
[0024] Figure 6 It is a schematic diagram showing a pronunciation prediction based on an automatic encoder-decoder architecture according to an exemplary embodiment.
[0025] Figure 7 The present invention is a flowchart of a pronunciation prediction model training according to an exemplary embodiment.
[0026] Figure 8 The invention is a block diagram of a pronunciation prediction device according to an exemplary embodiment.
[0027] Fig. 9 The invention is a block diagram of an electronic device for pronunciation prediction according to an exemplary embodiment. DETAILED DESCRIPTION
[0028] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.
[0029] In the process of data annotation, pronunciation prediction usually relies on single-modal data input, such as using only audio data or only text data. Pronunciation prediction methods based on speech data often have problems such as noise and accents, which affect the prediction effect. For text-based pronunciation prediction methods, pronunciation prediction of specific words is still challenging in some cases. The same word may have multiple pronunciations in different contexts. Single-modal data input usually operates independently and lacks effective information exchange and integration, resulting in limitations in dealing with complex speech and text relationships.
[0030] In view of this, the present disclosure proposes a pronunciation prediction method, which performs pronunciation prediction on the prediction data based on multimodal data, thereby improving the accuracy of pronunciation prediction and the wide applicability of pronunciation prediction.
[0031] Figure 1 FIG. 1 is a flowchart of a pronunciation prediction method according to an exemplary embodiment. Figure 1 As shown, the method includes steps S11 to S12.
[0032] In step S11, the data to be predicted is obtained, and the data modality of the data to be predicted is analyzed.
[0033] In the disclosed embodiment, the data modality of the data to be predicted can be understood as the data type or the existence form of the data of the data to be predicted. For example, the data to be predicted can be a text modality, or an audio modality, or a data modality of a text modality and an audio modality.
[0034] In step S12, based on the pronunciation prediction model and the data modality, pronunciation prediction is performed on the data to be predicted to obtain a pronunciation prediction result.
[0035] In the disclosed embodiment, the pronunciation prediction model can be understood as a model for predicting the pronunciation of the data to be predicted based on the data modality of the data to be predicted. The input of the pronunciation prediction model is multimodal data. For example, if the data modality of the data to be predicted is text modality and audio modality, the multimodal data is the data of the text modality and the data of the audio modality, that is, the input of the pronunciation prediction model is the data of the text modality and the data of the audio modality. The output of the pronunciation prediction model is the pronunciation prediction result. It can be understood that after the data modality of the data to be processed is parsed to obtain the multimodal data, the multimodal data is input into the pronunciation prediction model, and the pronunciation prediction result of the data to be predicted is obtained. The multimodal data can be the data of the audio modality, the text modality, or the data of other modalities such as the image modality, the video modality, etc., which is not limited in the present disclosure.
[0036] In the disclosed embodiment, based on inputting the multimodal data obtained after parsing the data to be processed into the pronunciation prediction model, a pronunciation prediction result of the data to be processed is obtained, which improves the pronunciation prediction result. At the same time, based on the input of the multimodal data, the prediction effect of the data to be predicted is improved.
[0037] In the disclosed embodiment, based on the data modality of the data to be processed and the relationship between multimodal data, different data are used to predict the data to be predicted.
[0038] Figure 2 FIG. 1 is a flowchart of a pronunciation prediction method according to an exemplary embodiment. Figure 2 As shown, the method includes steps S21 to S23b.
[0039] In step S21, pronunciation prediction is performed on the data to be predicted based on the pronunciation prediction model and the data modality.
[0040] In step S22a, if the data modality of the data to be predicted is consistent with the data modality corresponding to the multimodal data.
[0041] In the disclosed embodiment, the data modality of the data to be predicted is consistent with the data modality corresponding to the multimodal data, which can be understood as the multimodal data is a text modality and an audio modality, and the data to be predicted is parsed to obtain the data modality of the data to be predicted as a text modality and an audio modality, that is, the data type of the data to be predicted is the same as the data type of the multimodal data, then the data modality of the data to be predicted is consistent with the data modality corresponding to the multimodal data.
[0042] In step S23a, pronunciation prediction is performed on the data to be predicted based on the data modality corresponding to the multimodal data.
[0043] In an embodiment of the present disclosure, if the data modality of the data to be predicted is consistent with the data modality corresponding to the multimodal data, then based on the data modality corresponding to the multimodal data, for example, the text modality and audio modality corresponding to the multimodal data, the data to be predicted is predicted based on the text modality and the audio modality.
[0044] In step S22b, if the data modality of the data to be predicted is inconsistent with the data modality corresponding to the multimodal data.
[0045] In the embodiment of the present disclosure, the inconsistency between the data modality of the data to be predicted and the data modality corresponding to the multimodal data can be understood as, if the data modalities of the multimodal data are text modality and audio modality, and the data modality of the data to be predicted is text modality, then the data modality of the data to be predicted is inconsistent with the data modality of the multimodal data.
[0046] In step S23b, the input position of the first data modality is set to be empty, and pronunciation prediction is performed on the data to be predicted based on the second data modality and the empty first data modality.
[0047] In the disclosed embodiment, the first data modality is a data modality in the data modality corresponding to the multimodal data that is inconsistent with the data modality of the data to be predicted. In one example, the multimodal data includes a text modality and an audio modality, and the data modality of the data to be predicted is a text modality, then the first data modality is an audio modality. The second data modality is a data modality in the data modality corresponding to the multimodal data that is consistent with the data modality of the data to be predicted. In one example, if the multimodal data includes a text modality and an audio modality, and the data modality of the data to be predicted is a text modality, then the second data modality is a text modality.
[0048] In one example, if the data modes of the multimodal data are text mode and audio mode, and the data mode of the data to be predicted is text mode, the first data mode is set to audio mode and the second data mode is set to text mode. When the pronunciation of the processed data is predicted, the first data mode is set to blank, and the pronunciation of the predicted data is predicted based on the second data mode, that is, the text mode and the blank first data mode. Blanking can be understood as setting to a state of "empty" or "no value", or ignoring the first data mode.
[0049] In one example, if the data modalities of the multimodal data are text modality and audio modality, and the data modality of the data to be predicted is audio modality, the first data modality is set to text modality and the second data modality is set to audio modality. When performing pronunciation prediction on the data to be processed, the first data modality is set to blank, and pronunciation prediction is performed on the data to be predicted based on the second data modality, i.e., the audio modality and the blank first data modality.
[0050] In the disclosed embodiment, based on the pronunciation model and the data modality, the pronunciation prediction is performed on the data to be predicted. The input of the pronunciation prediction modality is multimodal data, and the data to be predicted can be multimodal data or unimodal data. Regardless of whether the data to be predicted is multimodal data or unimodal data, the pronunciation prediction can be performed on the data to be predicted based on the pronunciation prediction model, thereby supporting multiple input formats and making the pronunciation prediction model widely applicable.
[0051] In the disclosed embodiment, an output sequence representing pronunciation prediction is obtained based on an input sequence of a pronunciation prediction model. Figure 3 FIG. 1 is a flowchart of a pronunciation prediction method according to an exemplary embodiment. Figure 3 As shown, the method includes steps S31 to S32.
[0052] In step S31, an input sequence of a decoder of a pronunciation prediction model is constructed based on the data to be predicted.
[0053] In the disclosed embodiment, the pronunciation prediction model may be an Auto Encoder-Decoder (AED) architecture.
[0054] In the disclosed embodiment, during the first decoding, a first input sequence is constructed, wherein the first input sequence includes the following contents: a first label, data to be predicted, a second label, a third label, and a fourth label. The first label is used to identify the starting position of the data to be predicted, for example, it can be a start of text (SOT) label. The data to be predicted is the data obtained when performing pronunciation prediction. The second label is used to identify the start of pronunciation prediction, for example, it can be a start of pronunciation (SOP) label. The third label is used to identify the language corresponding to the data to be predicted, for example, it can be a target language (Language Tag) label, wherein the third label can include a Chinese (ZH) label, an English (EN) label, etc. The fourth label is used to identify the data mode corresponding to the data to be predicted, for example, it can be a task label (Task Tag), wherein the task label can be understood as the data mode of the data to be predicted, and the fourth label can be an audio predicted pronunciation (S), a text predicted pronunciation (T), an audio and text predicted pronunciation (ST), etc. Based on the first input sequence, the data to be predicted is predicted to obtain a first output sequence. The first output sequence includes the data to be predicted, the second label, the third label, the fourth label, and a pronunciation prediction result containing 1 bit. Exemplarily, during the first decoding, there is no pronunciation prediction result in the first input sequence of the decoder. The first output sequence has the first bit of the pronunciation prediction result, that is, 1 pronunciation prediction result.
[0055] In the disclosed embodiment, during the i-th decoding, based on the i-1-th output sequence, the last bit of the output sequence of the i-1-th decoding is taken as input, which can also be understood as taking the i-1-bit pronunciation prediction result as input to construct a second input sequence. The second input sequence includes a first label, data to be predicted, a second label, a third label, a fourth label, and the i-1-bit pronunciation prediction result. Based on the second input sequence, the pronunciation of the data to be predicted is predicted to obtain a second output sequence. The second output sequence includes data to be predicted, a second label, a third label, a fourth label, and the pronunciation prediction result of the i-bit. Exemplarily, during the second decoding, that is, when i=2, the second output sequence of the decoder includes the second bit of the pronunciation prediction result, where i is an integer greater than 1.
[0056] In step S32, based on the input sequence and the pronunciation prediction model, an output sequence representing the pronunciation prediction result is obtained.
[0057] In the disclosed embodiment, the above process is repeated until the decoder of the pronunciation prediction model outputs an output sequence containing the fifth label. The fifth label is a label that indicates the end of pronunciation prediction, for example, it can be an end of pronunciation (EOP) label. The output sequence includes data to be predicted, a second label, a third label, a fourth label, a pronunciation prediction result, and a fifth label. The pronunciation prediction result is the pronunciation result corresponding to the data to be predicted.
[0058] In the disclosed embodiment, based on the input sequence and the pronunciation prediction model, an output sequence representing the pronunciation prediction result can be obtained.
[0059] In one example, Figure 4 is a schematic diagram of an input sequence according to an exemplary embodiment. Figure 4 As shown, the first label corresponds to SOT, which indicates the beginning of the text. The data to be predicted identifies the data obtained when performing pronunciation prediction, and the data to be predicted may include text mode and audio mode. The second label corresponds to SOP, which indicates the beginning of pronunciation. The third label identifies the target language label, which can be Chinese, English and other languages. It can be the target language selected by the user for the data to be predicted, or the model can determine the target language based on the language type of the data to be predicted. The fourth label identifies the task label. If the current input data to be predicted is in text mode and audio mode, the fourth label can be an ST label, that is, audio and text predicted pronunciation, wherein the task label can be the user's selection of the task label based on the data mode of the data to be predicted. The pronunciation prediction result can be understood as the pronunciation prediction result of predicting the pronunciation of the original text data. The fifth label indicates the end of pronunciation.
[0060] In one example, if the data to be predicted contains audio modality, the input sequence will leave the first label and the data to be predicted blank, that is, SOT and the original text blank, or it can be understood as ignoring the first label and the data to be predicted. And the input sequence is input from the second label, the beginning of pronunciation, selects the target language and task, and obtains the pronunciation prediction result of the current data to be predicted until the pronunciation ends.
[0061] In the disclosed embodiment, an input sequence of a pronunciation prediction model is constructed based on the data to be predicted, and an output sequence representing the pronunciation prediction result is obtained based on the input sequence and the pronunciation prediction model, thereby enhancing the accuracy of pronunciation prediction. At the same time, based on the input of multimodal data, the multimodal data can supervise each other, thereby improving the robustness of pronunciation prediction.
[0062] In the disclosed embodiment, the data modalities corresponding to the multimodal data include audio modality and text modality. Figure 5 FIG. 1 is a flowchart of a pronunciation prediction method according to an exemplary embodiment. Figure 5 As shown, the method includes steps S41 to S42.
[0063] In step S41, the input sequence is used as a decoder prompt word, and the audio feature is used as an encoder input to obtain a multimodal joint information encoding.
[0064] In the disclosed embodiment, the data modality corresponding to the data to be predicted includes an audio modality and a text modality, and the data modality corresponding to the multimodal data includes an audio modality and a text modality. An input sequence constructed based on the data to be predicted can be used as a decoder prompt word, and the audio features can be used as an encoder input to obtain a multimodal joint information encoding based on the input sequence and the audio features in the AED architecture.
[0065] In the disclosed embodiment, if the data modality of the data to be predicted includes an audio modality but does not include a text modality, the audio signal input by the encoder is the audio feature of the audio data included in the data to be predicted, and the first label of the decoder and the input of the data to be predicted are empty. If the data modality of the data to be predicted includes a text modality but does not include an audio modality, the input of the decoder is an input sequence constructed based on the text modality, and the input position of the encoder input is empty.
[0066] In the above embodiments of the present disclosure, if the data modality of the data to be predicted includes an audio modality and a text modality, it can be understood as a dual-supervised prediction, in which the audio feature is used as the input of the encoder, and the input sequence containing the text modality is used as the decoder prompt word to obtain a multimodal joint information encoding. If the data to be predicted includes an audio modality, it can be understood as a single audio prediction, in which the audio feature is used as the input of the encoder, the decoder prompt word is left blank, that is, the first label of the decoder input sequence and the position of the data to be predicted are left blank, and the corresponding pronunciation is used as the output of the decoder. If the data to be predicted includes a text modality, it can be understood as a single text prediction, in which the input sequence containing the text modality is used as the decoder prompt word, the encoder input is left blank, and the corresponding pronunciation is used as the output of the decoder.
[0067] In step S42, based on the joint information coding, an output sequence is obtained through a decoder to obtain a pronunciation prediction result.
[0068] In the disclosed embodiment, the joint information is encoded and input into the AED architecture, and the decoder outputs an output sequence corresponding to the input sequence to obtain a pronunciation prediction result corresponding to the data to be predicted.
[0069] In one example, Figure 6 FIG. 1 is a schematic diagram showing a method for performing pronunciation prediction based on an automatic encoder-decoder architecture according to an exemplary embodiment. Figure 6 As shown, Figure 6 The left side of the figure is the encoder, and the right side is the decoder. The encoder includes a stack of convolutional layers, positional encoding, and N encoder modules consisting of self-attention layers and forward layers. The decoder includes an input sequence, positional encoding, and an N decoder module consisting of N self-attention layers, cross-attention layers, and forward layers, and an output sequence.
[0070] Exemplarily, if the data modality of the data to be predicted includes audio modality and text modality, it can be understood as dual-supervised prediction, using the audio features as the input of the encoder, and the input sequence containing the text modality as the decoder prompt word, to obtain multi-modal joint information encoding, and based on the joint information encoding, the decoder outputs the corresponding output sequence to obtain the pronunciation prediction result. The decoder part corresponds to the sequence below as the input sequence, and the decoder part corresponds to the sequence above as the output sequence. Exemplarily, such as Figure 6 As shown, the input sequence includes the SOT text start label, the data to be predicted is "hello", the SOP pronunciation start label, the target language label is ZH, the task label is ST, and the pronunciation prediction result is "ni". The input sequence is input into the decoder to obtain the output sequence. Among them, the output sequence includes the data to be predicted "hello", the SOP pronunciation start label, the target language label is ZH, the task label is ST, and the pronunciation prediction result is "ni hao", that is, through the AED architecture, the pronunciation prediction result of the data to be predicted "hello" can be obtained as "ni hao".
[0071] Exemplarily, if the data to be predicted contains audio mode, it can be understood as single audio prediction, with the audio features as the input of the encoder, the decoder prompt word set to blank, and the corresponding pronunciation as the output of the decoder. If the data to be predicted contains text mode, it can be understood as single text prediction, with the input sequence containing the text mode as the decoder prompt word, the encoder input position set to blank, and the corresponding pronunciation as the output of the decoder.
[0072] In the disclosed embodiment, the AED architecture is used as a pronunciation prediction model, which can effectively integrate audio modality and text modality information, thereby improving the accuracy of pronunciation prediction. At the same time, the multimodal data input method can fully utilize the correlation between the audio modality and the text modality, thereby improving the robustness of the AED architecture. It can also receive single-modal data input, perform pronunciation prediction on the data to be processed, and cope with various complex conditions.
[0073] In the disclosed embodiment, the pronunciation prediction model is trained in the following manner. Figure 7 FIG. 1 is a flowchart of a pronunciation prediction model training according to an exemplary embodiment. Figure 7 As shown, the method includes steps S51 to S53.
[0074] In step S51, a training sample data set is obtained, where the training sample data set includes training sample data pairs, and the training sample data pairs include each modality data in the multimodal data and a pronunciation result.
[0075] In the disclosed embodiment, the training sample data set includes a training sample data pair, and the training sample data pair includes individual modal data in the multimodal data and a pronunciation result. For example, taking the audio modality and the text modality as examples, the training sample data set may include the audio modality and the corresponding pronunciation result, the text modality and the corresponding pronunciation result, the audio modality, the corresponding text modality and the pronunciation result. The training sample data set may come from a corpus of various audio recognition, audio synthesis and text processing tasks. Exemplarily, a large model of level 1B can be trained using millions of hours of data to facilitate the improvement of the model modeling capabilities, while including multiple languages, accents, schemes, out-of-set words, noise, polyphonic characters, homophones, etc., so that the pronunciation prediction model can use the training sample data set to process multiple languages and dialects, as well as new words that have not been seen.
[0076] In step S52, data features corresponding to each modal data are extracted respectively to obtain multimodal data features.
[0077] In the disclosed embodiment, the audio modality in the data to be predicted can be extracted to obtain audio features. For example, the audio modality is extracted by using other spectral features such as Mel-frequency cepstrum coefficients or filter banks (fbank), and the obtained audio features are input into the encoder. At the same time, the text modality is extracted by using natural language processing technology or other language processing technology to obtain text features, such as word vectors or features based on statistics. Multimodal data features are obtained by extracting data features corresponding to each modality data respectively.
[0078] In step S53, the first modal data feature is used as the encoder input, and / or the second modal data feature is used as the decoder prompt word, and the pronunciation result is used as the decoder output, and the prediction model of the automatic encoder-decoder architecture is autoregressively trained to obtain a pronunciation prediction model.
[0079] In the disclosed embodiment, the first modality data feature of the multimodal data feature is used as the encoder input, the second modality data feature of the multimodal data feature is used as the decoder prompt word, the first modality data and / or the second modality data are input into the AED architecture to obtain a pronunciation result, and the pronunciation result is output as the decoder. At the same time, the prediction model of the AED architecture is trained by autoregression to obtain a pronunciation prediction model.
[0080] In the disclosed embodiment, based on a rich training sample data set, the modeling capability of the model can be improved and can cope with various complex conditions. At the same time, the AED architecture that has shown excellent performance in end-to-end audio recognition is used to support multimodal data and multilingual information. And its autoregressive ability is fully utilized to combine text information to enhance the accuracy of pronunciation prediction.
[0081] The following embodiment of the present disclosure describes the pronunciation prediction method. When performing pronunciation prediction, the data to be predicted is obtained, and the data modality of the data to be predicted is parsed. Based on the pronunciation prediction model and the data modality, the data to be predicted is predicted to obtain a pronunciation prediction result. Wherein, the input of the pronunciation prediction model is multimodal data. If the multimodal data includes a text modality and an audio modality, and the data to be predicted is consistent with the data modality corresponding to the multimodal data, then based on the pronunciation prediction model, an audio feature related to the audio modality is input into the encoder of the pronunciation prediction model, an input sequence related to the text modality is input into the decoder of the pronunciation prediction model, and an output sequence related to the pronunciation prediction result is obtained in the decoder to determine the pronunciation prediction result of the data to be predicted. Wherein, the pronunciation prediction model can be an AED architecture.
[0082] In the disclosed embodiment, if the multimodal data includes text mode and audio mode, and the data to be predicted includes text mode, the input sequence related to the text mode is input into the decoder of the pronunciation prediction model, and the pronunciation prediction result is output in the decoder. If the data to be predicted includes audio mode, the audio features related to the audio mode are input into the encoder of the pronunciation prediction model, and the pronunciation prediction result is output in the decoder of the pronunciation prediction model.
[0083] In the disclosed embodiments, a pronunciation prediction model can be used to predict the pronunciation of the acquired audio modality and / or text modality, and a pronunciation prediction result is obtained by fusing the multimodal information of audio and text, thereby improving the accuracy of pronunciation prediction, and based on the dual-supervised learning method of audio modality and text modality, improving the robustness of the pronunciation prediction model. For a given text modality, the pronunciation prediction model outputs a pronunciation prediction result with high accuracy. For a given audio modality, the pronunciation prediction model can output a corresponding pronunciation prediction result with high accuracy. It is achieved that accurate pronunciation prediction results can be obtained in the pronunciation prediction model regardless of multimodality or unimodality, and has wide applicability.
[0084] Based on the same concept, the embodiment of the present disclosure also provides a pronunciation prediction device 100 .
[0085] It is understandable that the pronunciation prediction device 100 provided by the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function in order to realize the above functions. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.
[0086] Figure 8 is a block diagram of a pronunciation prediction device 100 according to an exemplary embodiment. Figure 8 The device includes an acquisition unit 101 and a prediction unit 102.
[0087] The acquisition unit 101 is used to acquire the data to be predicted and analyze the data modality of the data to be predicted.
[0088] The prediction unit 102 is used to perform pronunciation prediction on the prediction data based on the pronunciation prediction model and the data modality to obtain a pronunciation prediction result; wherein the input of the pronunciation prediction model is multimodal data, and the output of the pronunciation prediction model is the pronunciation prediction result.
[0089] In one embodiment, the prediction unit 102 performs pronunciation prediction on the data to be predicted based on the pronunciation prediction model and the data modality in the following manner; if the data modality of the data to be predicted is consistent with the data modality corresponding to the multimodal data, pronunciation prediction is performed on the data to be predicted based on the data modality corresponding to the multimodal data; if the data modality of the data to be predicted is inconsistent with the data modality corresponding to the multimodal data, the input position of the first data modality is set to blank, and pronunciation prediction is performed on the data to be predicted based on the second data modality and the blanked first data modality; wherein the first data modality is a data modality in the data modality corresponding to the multimodal data that is inconsistent with the data modality of the data to be predicted; and the second data modality is a data modality in the data modality corresponding to the multimodal data that is consistent with the data modality of the data to be predicted.
[0090] In one embodiment, the pronunciation prediction model is a model with an automatic encoder decoder AED architecture; the prediction unit 102 performs pronunciation prediction on the predicted data in the following manner: based on the data to be predicted, construct an input sequence of the decoder of the pronunciation prediction model; wherein, during the first decoding, the first input sequence is constructed to include the following contents in sequence: a first label, data to be predicted, a second label, a third label, and a fourth label, and based on the first input sequence, the pronunciation of the predicted data is predicted to obtain a first output sequence, and the first output sequence includes the data to be predicted, the second label, the third label, the fourth label, and a pronunciation prediction result containing 1 bit in sequence; during the i-th decoding, a second input sequence is constructed based on the first output sequence, and the second input sequence includes the following contents in sequence: a first label, data to be predicted, the second label, the third label, the fourth label, The method comprises the following steps: a) performing pronunciation prediction on the data to be predicted based on the second input sequence, and obtaining a second output sequence, wherein the second output sequence includes the data to be predicted, the second label, the third label, the fourth label, and the pronunciation prediction result of i-1 bits in sequence, where i is an integer greater than 1; and repeating the above process until the decoder of the pronunciation prediction model outputs an output sequence including the fifth label to obtain the pronunciation prediction result, wherein the output sequence includes the data to be predicted, the second label, the third label, the fourth label, the pronunciation prediction result, and the fifth label in sequence; wherein the first label is used to identify the starting position of the data to be predicted, the second label is used to identify the start of pronunciation prediction, the third label is used to identify the language corresponding to the data to be predicted, the fourth label is used to identify the data modality corresponding to the data to be predicted, and the fifth label is used to identify the end of pronunciation prediction.
[0091] In one embodiment, the data modality corresponding to the multimodal data includes an audio modality and a text modality; the prediction unit 102 predicts the speech data to be predicted in the following manner: the input sequence is used as a decoder prompt word, and the audio feature is used as an encoder input to obtain a multimodal joint information encoding, wherein, if the data modality of the data to be predicted includes an audio modality but does not include a text modality, the input of the encoder is the audio feature of the audio modality included in the data to be predicted, and the first label of the input sequence of the decoder and the position of the data to be predicted are set to blank; if the data modality of the data to be predicted includes a text modality but does not include an audio modality, the input of the decoder is the input sequence of the text modality included in the data to be predicted, and the input position of the encoder is set to blank; based on the joint information encoding, the decoder outputs the output sequence to obtain a pronunciation prediction result.
[0092] In one embodiment, the pronunciation prediction model is pre-trained in the following manner: a training sample data set is obtained, the training sample data set includes training sample data pairs, the training sample data pairs include each modal data in the multimodal data and a pronunciation result; data features corresponding to each modal data are extracted respectively to obtain multimodal data features; a first modal data feature of the multimodal data feature is used as an encoder input, and / or a second modal data feature is used as a decoder prompt word, and the pronunciation result is used as a decoder output, and an autoregressive training is performed on the prediction model of the automatic encoder decoder AED architecture to obtain a pronunciation prediction model.
[0093] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0094] Fig. 9 It is a block diagram of an electronic device 200 for pronunciation prediction according to an exemplary embodiment.
[0095] like Fig. 9 As shown, an embodiment of the present disclosure provides an electronic device 200. The electronic device 200 includes a memory 201, a processor 202, and an input / output (I / O) interface 203. The memory 201 is used to store instructions. The processor 202 is used to call the instructions stored in the memory 201 to execute the speech detection method of the embodiment of the present disclosure. The processor 202 is connected to the memory 201 and the I / O interface 203, respectively, for example, through a bus system and / or other forms of connection mechanisms (not shown). The memory 201 can be used to store programs and data, including the program of the speech detection method involved in the embodiment of the present disclosure, and the processor 202 executes various functional applications and data processing of the electronic device 200 by running the program stored in the memory 201.
[0096] In the embodiment of the present disclosure, the processor 202 can be implemented in at least one hardware form of a digital signal processor (Digital Signal Processing, DSP), a field programmable gate array (Field Programmable Gate Array, FPGA), and a programmable logic array (Programmable Logic Array, PLA). The processor 202 can be a central processing unit (Central Processing Unit, CPU) or one or a combination of other forms of processing units with data processing capabilities and / or instruction execution capabilities.
[0097] The memory 201 in the embodiment of the present disclosure may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD), etc.
[0098] In the embodiment of the present disclosure, the I / O interface 203 may be used to receive input instructions (such as digital or character information, and key signal input related to user settings and function control of the electronic device 200), and may also output various information (such as images or sounds) to the outside. In the embodiment of the present disclosure, the I / O interface 203 may include one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a mouse, a joystick, a trackball, a microphone, a speaker, and a touch panel.
[0099] In some embodiments, the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, perform any of the methods described above.
[0100] In some embodiments, the present disclosure provides a computer program product, which includes a computer program. When the computer program is executed by a processor, any of the methods described above is performed.
[0101] Although operations are described in a particular order in the drawings, this should not be understood as requiring that the operations be performed in the particular order shown or in serial order, or that all shown operations be performed to achieve desired results. In certain circumstances, multitasking and parallel processing may be advantageous.
[0102] The methods and apparatus of the present disclosure can be implemented using standard programming techniques, using rule-based logic or other logic to implement various method steps. It should also be noted that the words "apparatus" and "module" used herein and in the claims are intended to include implementations using one or more lines of software code and / or hardware implementations and / or devices for receiving input.
[0103] Any steps, operations or procedures described herein may be performed or implemented using one or more hardware or software modules, either alone or in combination with other devices. In one embodiment, the software module is implemented using a computer program product including a computer-readable medium containing computer program code, which can be executed by a computer processor to perform any or all of the described steps, operations or procedures.
[0104] The foregoing description of the implementation of the present disclosure has been given for the purpose of illustration and description. The foregoing description is not exhaustive nor is it intended to limit the present disclosure to the exact form disclosed, and various variations and modifications may exist in accordance with the above teachings or may be obtained from the practice of the present disclosure. These embodiments are selected and described in order to illustrate the principles of the present disclosure and its practical application, so that those skilled in the art can utilize the present disclosure in various embodiments and various modifications suitable for the specific purpose contemplated.
[0105] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0106] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.
[0107] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.
[0108] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.
[0109] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.
[0110] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following scope of rights.
[0111] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.
Claims
1. A pronunciation prediction method, characterized in that: include: Acquire the data to be predicted, and analyze the data modality of the data to be predicted; Based on the pronunciation prediction model and the data modality, performing pronunciation prediction on the data to be predicted to obtain a pronunciation prediction result; Wherein, the input of the pronunciation prediction model is multimodal data, and the output of the pronunciation prediction model is a pronunciation prediction result; The pronunciation prediction model is a model with an automatic encoder-decoder architecture; The performing pronunciation prediction on the data to be predicted comprises: Based on the data to be predicted, construct an input sequence of a decoder of the pronunciation prediction model; Wherein, during the first decoding, a first input sequence is constructed, which includes the following contents in sequence: a first label, data to be predicted, a second label, a third label, and a fourth label; based on the first input sequence, pronunciation prediction is performed on the data to be predicted to obtain a first output sequence, and the first output sequence includes the data to be predicted, the second label, the third label, the fourth label, and a pronunciation prediction result containing one bit in sequence; During the i-th decoding, based on the first output sequence, a second input sequence is constructed, wherein the second input sequence sequentially includes the following contents: a first label, data to be predicted, a second label, a third label, a fourth label, and a pronunciation prediction result of i-1 bits; based on the second input sequence, pronunciation prediction is performed on the data to be predicted to obtain a second output sequence, wherein the second output sequence sequentially includes data to be predicted, a second label, a third label, a fourth label, and a pronunciation prediction result of i bits, wherein i is an integer greater than 1; Repeat the above process until the decoder of the pronunciation prediction model outputs an output sequence including the fifth label to obtain a pronunciation prediction result, wherein the output sequence sequentially includes the data to be predicted, the second label, the third label, the fourth label, the pronunciation prediction result and the fifth label; Among them, the first tag is used to identify the starting position of the data to be predicted, the second tag is used to identify the start of pronunciation prediction, the third tag is used to identify the language corresponding to the data to be predicted, the fourth tag is used to identify the data modality corresponding to the data to be predicted, and the fifth tag is used to identify the end of pronunciation prediction.
2. The method according to claim 1, characterized in that The method comprises: performing pronunciation prediction on the data to be predicted based on the pronunciation prediction model and the data modality; If the data modality of the data to be predicted is consistent with the data modality corresponding to the multimodal data, then based on the data modality corresponding to the multimodal data, performing pronunciation prediction on the data to be predicted; If the data modality of the data to be predicted is inconsistent with the data modality corresponding to the multimodal data, the input position of the first data modality is set to blank, and pronunciation prediction is performed on the data to be predicted based on the second data modality and the blank first data modality; The first data modality is a data modality in the data modality corresponding to the multimodal data that is inconsistent with the data modality of the data to be predicted; The second data modality is a data modality in the data modality corresponding to the multimodal data that is consistent with the data modality of the data to be predicted.
3. The method according to claim 1, characterized in that The multimodal data corresponds to a data modality including an audio modality and a text modality; The predicting the data to be predicted includes: The input sequence is used as a decoder prompt word, and the audio feature is used as an encoder input to obtain a multimodal joint information encoding, wherein, if the data modality of the data to be predicted includes an audio modality but does not include a text modality, the input of the encoder is the audio feature of the audio modality included in the data to be predicted, and the first label of the decoder input sequence and the position of the data to be predicted are set to blank; if the data modality of the data to be predicted includes a text modality but does not include an audio modality, the input of the decoder is the input sequence of the text modality included in the data to be predicted, and the input position of the encoder is set to blank; Based on the joint information coding, the decoder outputs the output sequence to obtain a pronunciation prediction result.
4. The method according to claim 1, characterized in that: The pronunciation prediction model is pre-trained in the following manner: Acquire a training sample data set, wherein the training sample data set includes a training sample data pair, and the training sample data pair includes each modal data in the multimodal data and a pronunciation result; Extracting data features corresponding to each modal data respectively to obtain multimodal data features; The first modality data feature of the multimodal data feature is used as an encoder input, and / or the second modality data feature is used as a decoder prompt word, and the pronunciation result is used as a decoder output, and autoregressive training is performed on the prediction model of the automatic encoder-decoder architecture to obtain the pronunciation prediction model.
5. A pronunciation prediction device, characterized in that: include: An acquisition unit, used for acquiring data to be predicted and analyzing the data modality of the data to be predicted; A prediction unit, configured to perform pronunciation prediction on the data to be predicted based on the pronunciation prediction model and the data modality, and obtain a pronunciation prediction result; Wherein, the input of the pronunciation prediction model is multimodal data, and the output of the pronunciation prediction model is a pronunciation prediction result; The pronunciation prediction model is a model with an automatic encoder-decoder architecture; The prediction unit performs pronunciation prediction on the data to be predicted in the following manner: Based on the data to be predicted, construct an input sequence of a decoder of the pronunciation prediction model; Wherein, during the first decoding, a first input sequence is constructed, which includes the following contents in sequence: a first label, data to be predicted, a second label, a third label, and a fourth label; based on the first input sequence, pronunciation prediction is performed on the data to be predicted to obtain a first output sequence, and the first output sequence includes the data to be predicted, the second label, the third label, the fourth label, and a pronunciation prediction result containing one bit in sequence; During the i-th decoding, based on the first output sequence, a second input sequence is constructed, wherein the second input sequence sequentially includes the following contents: a first label, data to be predicted, a second label, a third label, a fourth label, and a pronunciation prediction result of i-1 bits; based on the second input sequence, pronunciation prediction is performed on the data to be predicted to obtain a second output sequence, wherein the second output sequence sequentially includes data to be predicted, a second label, a third label, a fourth label, and a pronunciation prediction result of i bits, wherein i is an integer greater than 1; Repeat the above process until the decoder of the pronunciation prediction model outputs an output sequence including the fifth label to obtain a pronunciation prediction result, wherein the output sequence sequentially includes the data to be predicted, the second label, the third label, the fourth label, the pronunciation prediction result and the fifth label; Among them, the first tag is used to identify the starting position of the data to be predicted, the second tag is used to identify the start of pronunciation prediction, the third tag is used to identify the language corresponding to the data to be predicted, the fourth tag is used to identify the data modality corresponding to the data to be predicted, and the fifth tag is used to identify the end of pronunciation prediction.
6. The device according to claim 5, characterized in that The prediction unit performs pronunciation prediction on the data to be predicted based on the pronunciation prediction model and the data modality in the following manner; If the data modality of the data to be predicted is consistent with the data modality corresponding to the multimodal data, then based on the data modality corresponding to the multimodal data, performing pronunciation prediction on the data to be predicted; If the data modality of the data to be predicted is inconsistent with the data modality corresponding to the multimodal data, the input position of the first data modality is set to blank, and pronunciation prediction is performed on the data to be predicted based on the second data modality and the blank first data modality; The first data modality is a data modality in the data modality corresponding to the multimodal data that is inconsistent with the data modality of the data to be predicted; The second data modality is a data modality in the data modality corresponding to the multimodal data that is consistent with the data modality of the data to be predicted.
7. The device according to claim 5, characterized in that The multimodal data corresponds to a data modality including an audio modality and a text modality; The prediction unit predicts the speech data to be predicted in the following manner: The input sequence is used as a decoder prompt word, and the audio feature is used as an encoder input to obtain a multimodal joint information encoding, wherein, if the data modality of the data to be predicted includes an audio modality but does not include a text modality, the input of the encoder is the audio feature of the audio modality included in the data to be predicted, and the first label of the decoder input sequence and the position of the data to be predicted are set to blank; if the data modality of the data to be predicted includes a text modality but does not include an audio modality, the input of the decoder is the input sequence of the text modality included in the data to be predicted, and the input position of the encoder is set to blank; Based on the joint information coding, the decoder outputs the output sequence to obtain a pronunciation prediction result.
8. The device according to claim 5, characterized in that The pronunciation prediction model is pre-trained in the following manner: Acquire a training sample data set, wherein the training sample data set includes a training sample data pair, and the training sample data pair includes each modal data in the multimodal data and a pronunciation result; Extracting data features corresponding to each modal data respectively to obtain multimodal data features; The first modality data feature of the multimodal data feature is used as an encoder input, and / or the second modality data feature is used as a decoder prompt word, and the pronunciation result is used as a decoder output, and autoregressive training is performed on the prediction model of the automatic encoder-decoder architecture to obtain the pronunciation prediction model.
9. An electronic device, characterized in that: include: processor: a memory for storing processor-executable instructions; The processor is configured to: execute the pronunciation prediction method according to any one of claims 1 to 4.
10. A storage medium, characterized in that: The storage medium stores instructions, and when the instructions in the storage medium are executed by a processor, the processor is enabled to execute the pronunciation prediction method according to any one of claims 1 to 4.
