A Chinese Braille speech synthesis method and system
Through the universal braille-pinyin conversion system and Chinese character prediction model, combined with the speech synthesis module, the problem of insufficient corpus in Chinese braille speech synthesis is solved, high-quality braille speech synthesis is achieved, and blind people can understand braille content in real time.
Patent Information
- Application Number
- CN202110749716.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-02
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-07-02
AI Technical Summary
Chinese Braille speech synthesis faces the problem of a lack of large-scale corpora and prosodic annotation corpora, resulting in poor speech synthesis accuracy and poor prosodic prediction performance. It is difficult to perform high-quality speech synthesis directly from Chinese Braille text with existing technology.
A universal braille-pinyin conversion system is adopted, combining the Chinese character prediction model and the prosodic prediction model. By converting the universal braille text into a pinyin sequence and adding prosodic tags, the speech synthesis module is input to generate speech, using the existing Chinese speech synthesis corpus and prosodic tags. Corpus to implement braille speech synthesis.
It overcomes the problem of lack of Braille speech synthesis corpus and realizes real-time universal Braille speech synthesis, which can more accurately convert Chinese Braille into speech, help blind people hear text content in real time when reading, and improve the convenience of information acquisition.
Smart Images

Figure CN113571037B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the fields of Braille processing technology and speech synthesis technology, in particular to the field of automatic conversion from universal Braille to speech. Background Art
[0002] There are more than 17 million visually impaired people in China, including more than 5 million blind people. Braille is a reading and writing system used by the blind to obtain information through the tactile channel. When reading Braille through touch, it is also desirable for the blind to be able to listen to the corresponding speech of the Braille when needed. This can provide a more convenient way to obtain information and help the blind better understand what they are reading, especially for those who are not good at reading Braille. In most cases, the Braille text is independently generated or modified from the text used by sighted people, which makes it impossible to obtain the corresponding text used by sighted people. Therefore, a method and system for speech synthesis directly from the Braille text is needed.
[0003] For most languages, such as English, Braille text can be converted to the corresponding sighted text through a simple character-level mapping, making Braille speech synthesis almost the same as speech synthesis of sighted text. However, this is not the case for Chinese. Since it is impossible to achieve a direct one-to-one mapping between tens of thousands of Chinese characters and 64 Braille symbols (also called "squares"), Chinese Braille is designed as a phonetic script, in which each Chinese character corresponds to at most three squares, representing the initial consonant, final vowel and tone of the syllable corresponding to the character. In order to avoid ambiguity, the word segmentation and concatenation rules are introduced in Chinese Braille, where the Braille symbols corresponding to words or certain phrases are concatenated together, and other concatenated words or phrases are separated by specific Braille symbols (called "blank squares", which are equivalent to spaces in sighted text). The word segmentation and concatenation rules of Braille are different from those of Chinese word segmentation: many phrases that are closely combined in grammar and semantics need to be concatenated together to avoid too many blank squares. The Braille standard stipulates many specific grammatical and semantic standards to regulate which phrases need to be concatenated. There are three main schemes for Chinese Braille: current Braille, double-spelling Braille and universal Braille. The main difference between these three schemes is that in current Braille, only a small number of syllables (about 5%) are marked with tones. However, double-spelling Braille and universal Braille almost achieve "tone marking for every word". Among them, universal Braille is a Braille scheme jointly issued and promoted by the National Language Commission and other departments in 2018. The present invention mainly studies speech synthesis from universal Braille text.
[0004] At present, there is little work on Braille speech synthesis. There are two routes for synthesizing speech from Chinese Braille. One is to use a Braille-to-Chinese character conversion system to convert Braille text into Chinese character text, and then use a Chinese speech synthesis system to generate speech; the other is to perform speech synthesis directly from Chinese Braille. At present, there is no research on synthesizing speech directly from Chinese Braille. But in fact, synthesizing speech directly from Chinese Braille is more advantageous than synthesizing speech from Chinese text converted from Braille: first, in order to perform speech synthesis, both Chinese text and Braille text need to be converted into pronunciation marks, usually Chinese pinyin, to be passed into the TTS (text-to-speech) system, and using Braille text for this conversion is obviously better than using Chinese text converted from Braille text. This is because there are many polyphones and homophones in Chinese characters, and the conversion from Braille to Chinese characters and from Chinese characters to pinyin may introduce errors, resulting in insufficient accuracy of the final pronunciation mark (pinyin), while the conversion from Braille to pinyin has a fairly high accuracy. Secondly, the word segmentation in Braille is generated by experts and has a coarser granularity than Chinese word segmentation, which can convey more complete semantic information and thus help prosody prediction (an important stage in the speech synthesis process). If the Chinese text converted from Braille is directly input into an existing Chinese speech synthesis system, the word segmentation information in Braille cannot be utilized.
[0005] There are many challenges in Chinese Braille speech synthesis. The biggest difficulty is the lack of Braille speech synthesis corpus and Braille prosodic annotated corpus. Chinese speech synthesis generally uses pinyin as system input. After Braille is converted to pinyin, the Chinese speech synthesis corpus can be used as a substitute. Therefore, the accuracy of the conversion from Braille to pinyin directly affects the performance of the entire system. During the conversion process, it is necessary to restore some omission rules and changes in the Braille scheme to obtain a complete pinyin representation. At the same time, Chinese is a tonal language. In the case of spoken language, some syllables will change tone. All syllables in Braille are marked as native tone, so the syllables need to be tone-changed. The task of predicting prosody is more challenging, and prosody must be annotated by linguistic experts, so the number of corpora annotated with prosody is limited. In the case of limited corpus, the performance of general methods such as hidden Markov model (HMM), conditional random field (CRF), recurrent neural network (RNN) is not satisfactory. If we use a method based on fine-tuning of pre-trained models, the demand for datasets can be reduced, but pre-trained models usually take Chinese characters as input. In order to use Braille directly to predict prosody and take advantage of the pre-trained model, it is also necessary to accurately predict the Braille pinyin into Chinese characters.
[0006] In addition to the above challenges, it is also necessary to build a speech synthesis module for generating speech from a prosodic pinyin string. Early speech synthesis modules were based on waveform concatenation and statistical parameters. In recent years, deep neural networks have been widely adopted and have shown great advantages. Modules based on deep neural networks usually consist of two parts: an acoustic model and a vocoder. The acoustic model uses text as input to predict acoustic features, and the vocoder then restores the predicted features to an audio waveform. Summary of the invention
[0007] The technical problem to be solved by the present invention is: in view of the current situation that there is a lack of or even no available large-scale Braille speech synthesis corpus and Braille prosodic annotation corpus, a Chinese speech synthesis corpus and a Chinese prosodic annotation corpus are adopted, and a universal Braille-pinyin conversion system, a Braille-oriented prosodic prediction system and a speech synthesis module are implemented, thereby realizing universal Braille speech synthesis.
[0008] In view of the deficiencies in the prior art, the present invention provides a Chinese Braille speech synthesis method, which comprises:
[0009] Step 1, converting punctuation marks and syllables in the common Braille text to be speech synthesized into Chinese punctuation marks and pinyin respectively to obtain a pinyin sequence;
[0010] Step 2: convert the pinyin sequence into Chinese characters through a Chinese character prediction model to obtain a Chinese character sequence with word segmentation information, and input the Chinese character sequence into a prosody prediction model to obtain a prosody label of the Chinese character sequence;
[0011] Step 3: Combine the prosody label and the pinyin sequence to obtain a pinyin sequence containing the prosody label, and input the pinyin sequence into a speech synthesis module to obtain a speech synthesis result of the universal Braille text.
[0012] The Chinese Braille speech synthesis method, wherein step 1 comprises:
[0013] The punctuation marks and Chinese syllables are separated from the universal Braille text, and the word segmentation information is retained; the punctuation marks are converted into Chinese punctuation marks according to the coding table, and the Chinese syllables are converted into pinyin; and according to the rules of the universal Braille system, some of the missing initial consonants, finals or tones are restored to obtain an initial pinyin sequence;
[0014] According to the modal particle dictionary and in combination with the position information, word segmentation information and punctuation information of each syllable in the initial pinyin sequence, the ambiguous tones in the initial pinyin sequence are eliminated to obtain an intermediate pinyin sequence; for Arabic numerals, Greek letters and special characters in the universal Braille text, text regularization is used to obtain their corresponding Chinese texts and a Chinese character to pinyin tool is used to obtain the corresponding pinyin, which is then added to the intermediate pinyin sequence to obtain a complete pinyin sequence;
[0015] The construction and use method of the modal particle dictionary is as follows: after converting the training Braille into pinyin based on the rules, it is compared with the correct pinyin corresponding to the training Braille, and high-frequency modal particles with incorrectly marked tones are selected to construct the modal particle dictionary; when performing the universal Braille-pinyin conversion, for each syllable, the position information, word segmentation information, punctuation marks, and whether the syllable exists in the modal particle dictionary are combined to determine whether the current syllable is a modal particle, and the tone correction is performed.
[0016] The Chinese Braille speech synthesis method, wherein
[0017] In step 1, the pinyin sequence includes a normal pinyin sequence and a tone-shifted pinyin sequence;
[0018] Step 3 includes: combining the prosody tag and the tone-shifted pinyin sequence to obtain a tone-shifted pinyin sequence containing the prosody tag;
[0019] The punctuation marks and syllables in the universal Braille text are converted into Chinese punctuation marks and pinyin respectively according to the rules of the universal Braille system to obtain the normal pinyin sequence;
[0020] According to the tone change rule, the pinyin in the normal pinyin sequence is converted into the tone-changed pinyin to obtain the tone-changed pinyin sequence.
[0021] The Chinese Braille speech synthesis method, wherein the Chinese character prediction model in step 2 is composed of a preprocessing network, a multi-head self-attention layer and a convolutional network block; the pinyin sequence is subjected to multi-dimensional character embedding processing by the preprocessing network to obtain an embedding vector, and the multi-head self-attention layer is used to self-update the features in different feature spaces using context information to establish the association relationship between the pinyin contexts, and a residual connection is used after the multi-head self-attention layer to fuse the input and output of the multi-head self-attention layer to obtain a fusion vector; the convolutional network block includes multiple layers of two-dimensional convolutional network modules with different granularities, and the convolution kernel size increases layer by layer, the context span mined by each layer of the network increases layer by layer, and as the network depth deepens, the receptive field also increases continuously, so as to extract features from local to global for the fusion vector, and batch normalization is added to each layer of the convolutional network to alleviate internal covariate offset, and the maximum pooling mechanism is used for downsampling, and finally softmax is used to calculate the probability distribution in the Chinese character word set corresponding to each pinyin, and the Chinese character with the largest probability is selected as the Chinese character sequence.
[0022] The Chinese Braille speech synthesis method, wherein the speech synthesis module includes an acoustic model and a vocoder, the acoustic model is used to extract the acoustic features of the pinyin sequence containing the prosody label, and the vocoder is used to restore the acoustic features to an audio waveform; the construction process of the acoustic model includes: obtaining a Tacotron2 model, reducing the PostNet layer in the Tacotron2 model from the original 5 layers to 3 layers, and in the autoregressive decoding process of the Tacotron2 model, the historical output used is the historical output of the previous 4 steps: y t =Decoder(y t-4 ,y t-3 ,y t-2 ,y t-1 ,c t ).
[0023] The Chinese Braille speech synthesis method, wherein the word segmentation information is a preset symbol, and the word segmentation position in the Chinese character sequence is represented by the preset symbol; or
[0024] The text embedding information, sentence segmentation embedding information, position embedding information and word segmentation information of the Chinese character sequence are respectively input into the term embedding information layer, sentence segmentation embedding information layer, position embedding information layer and word segmentation embedding information layer of the rhythm prediction model.
[0025] The present invention also proposes a Chinese Braille speech synthesis system, which comprises:
[0026] Module 1 is used to obtain a pinyin sequence by converting punctuation marks and syllables in a common Braille text to be speech synthesized into Chinese punctuation marks and pinyin respectively;
[0027] Module 2, for converting the pinyin sequence into Chinese characters through a Chinese character prediction model to obtain a Chinese character sequence with word segmentation information, and inputting the Chinese character sequence into a prosody prediction model to obtain a prosody label of the Chinese character sequence;
[0028] Module 3 is used to combine the prosody label and the pinyin sequence to obtain the pinyin sequence containing the prosody label, and input the pinyin sequence into the speech synthesis module to obtain the speech synthesis result of the universal Braille text.
[0029] The Chinese Braille speech synthesis system, wherein the module 1 comprises:
[0030] The punctuation marks and Chinese syllables are separated from the universal Braille text, and the word segmentation information is retained; the punctuation marks are converted into Chinese punctuation marks according to the coding table, and the Chinese syllables are converted into pinyin; and according to the rules of the universal Braille system, some of the missing initial consonants, finals or tones are restored to obtain an initial pinyin sequence;
[0031] According to the modal particle dictionary and in combination with the position information, word segmentation information and punctuation information of each syllable in the initial pinyin sequence, the ambiguous tones in the initial pinyin sequence are eliminated to obtain an intermediate pinyin sequence; for Arabic numerals, Greek letters and special characters in the universal Braille text, text regularization is used to obtain their corresponding Chinese texts and a Chinese character to pinyin tool is used to obtain the corresponding pinyin, which is then added to the intermediate pinyin sequence to obtain a complete pinyin sequence;
[0032] The construction and use system of the modal particle dictionary is as follows: after converting the training Braille into pinyin based on the rules, it is compared with the correct pinyin corresponding to the training Braille, and high-frequency modal particles with incorrectly marked tones are selected and constructed into the modal particle dictionary; when performing the universal Braille-pinyin conversion, for each syllable, the position information, word segmentation information, punctuation marks, and whether the syllable exists in the modal particle dictionary are combined to determine whether the current syllable is a modal particle, and the tone correction is performed.
[0033] The Chinese Braille speech synthesis system, wherein
[0034] In module 1, the pinyin sequence includes a normal pinyin sequence and a tone-shifted pinyin sequence;
[0035] Module 3 includes: combining the prosody label and the tone-shifted pinyin sequence to obtain a tone-shifted pinyin sequence containing the prosody label;
[0036] The punctuation marks and syllables in the universal Braille text are converted into Chinese punctuation marks and pinyin respectively according to the rules of the universal Braille system to obtain the normal pinyin sequence;
[0037] According to the tone change rule, the pinyin in the normal pinyin sequence is converted into the tone-changed pinyin to obtain the tone-changed pinyin sequence.
[0038] The Chinese Braille speech synthesis system, wherein the Chinese character prediction model in module 2 is composed of a preprocessing network, a multi-head self-attention layer and a convolutional network block; the pinyin sequence is subjected to multi-dimensional character embedding processing by the preprocessing network to obtain an embedding vector, and the multi-head self-attention layer is used to self-update the features in different feature spaces using context information to establish the association relationship between the pinyin contexts, and a residual connection is used after the multi-head self-attention layer to fuse the input and output of the multi-head self-attention layer to obtain a fusion vector; the convolutional network block includes multiple layers of two-dimensional convolutional network modules with different granularities, and the convolution kernel size increases layer by layer, the context span mined by each layer of the network increases layer by layer, and as the network depth deepens, the receptive field also increases continuously, so as to extract features from local to global for the fusion vector, and batch normalization is added to each layer of the convolutional network to alleviate internal covariate offset, and the maximum pooling mechanism is used for downsampling, and finally softmax is used to calculate the probability distribution of the Chinese character word set corresponding to each pinyin, and the Chinese character with the largest probability is selected as the Chinese character sequence.
[0039] The Chinese Braille speech synthesis system, wherein the speech synthesis module includes an acoustic model and a vocoder, the acoustic model is used to extract the acoustic features of the pinyin sequence containing the prosody label, and the vocoder is used to restore the acoustic features to an audio waveform; the construction process of the acoustic model includes: obtaining a Tacotron2 model, reducing the PostNet layer in the Tacotron2 model from the original 5 layers to 3 layers, and in the autoregressive decoding process of the Tacotron2 model, the historical output used is the historical output of the previous 4 steps: y t =Decoder(y t-4 ,y t-3 ,y t-2 ,y t-1 ,c t ).
[0040] The Chinese Braille speech synthesis system, wherein the word segmentation information is a preset symbol, and the word segmentation position in the Chinese character sequence is represented by the preset symbol; or
[0041] The text embedding information, sentence segmentation embedding information, position embedding information and word segmentation information of the Chinese character sequence are respectively input into the term embedding information layer, sentence segmentation embedding information layer, position embedding information layer and word segmentation embedding information layer of the rhythm prediction model.
[0042] It can be seen from the above scheme that the advantages of the present invention are:
[0043] By adopting the universal braille speech synthesis method and system proposed in the present invention, the problem of lack of current braille speech synthesis corpus and lack of braille prosody prediction corpus can be overcome, and the existing Chinese speech synthesis corpus and Chinese prosody prediction corpus are adopted, and a universal braille-pinyin conversion system, a prosody prediction system for braille and a real-time speech synthesis module are used to realize a real-time universal braille speech synthesis system. The technology is applied to software such as e-book readers and text editors on blind terminals to realize real-time speech conversion of universal braille, helping blind people to hear the text they touch in real time when reading braille, and better understand what they are reading. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 This is the overall flow chart of Braille speech synthesis of the present invention;
[0045] Figure 2 It is a structural diagram of the Chinese character prediction and rhythm prediction model of the present invention;
[0046] Figure 3 Input representation graph for traditional RoBERTa;
[0047] Figure 4 An input representation diagram for adding word segmentation information to the present invention;
[0048] Figure 5 This is a structural diagram of the real-time speech synthesis module of the present invention. DETAILED DESCRIPTION
[0049] The core steps of the present invention include:
[0050] 1. Build a universal Braille-Pinyin conversion system. Pinyin is a tool for expressing the pronunciation of Chinese characters. It represents syllables by combining different initial consonants, finals and tones. Universal Braille is essentially a phonetic language. It also uses initial consonants, finals and tones to represent syllables. Its initial consonants, finals and tones can be converted into initial consonants, finals and tones in Pinyin through a coding table; at the same time, in order to make universal Braille easy to learn and use, universal Braille has more than 20 special rules in spelling rules, tone marking rules and abbreviation rules, as well as word segmentation rules formulated by experts.
[0051] First, punctuation marks and Chinese syllables are separated from Braille, and word segmentation information is retained. According to the coding table, punctuation marks are converted into corresponding Chinese punctuation marks, syllables are converted into pinyin, and some missing initials, finals or tones are restored according to the rules of the universal Braille system. Some ambiguous tones are disambiguated according to the constructed modal particle dictionary, combined with position information, word segmentation information and punctuation mark information.
[0052] Then, for Arabic numerals, Greek letters, special characters, etc., use text regularization to obtain their corresponding Chinese texts and use the Chinese character to pinyin tool to obtain the corresponding pinyin.
[0053] Finally, according to the tone change rules, the pinyin is converted into the tone-changing pinyin required for speech synthesis. The system finally outputs a normal pinyin containing Braille word segmentation information and the tone-changing pinyin required by the speech synthesis system.
[0054] 2. Train a prosody prediction model for Braille. Prosody describes changes in rhythm. Speakers group words and phrases in their speech, which is reflected in pauses, changes in syllable length, and interruptions in intonation. Prosodic structures are generally divided into several levels, such as secondary prosodic structures or tertiary prosodic structures. A typical three-level Chinese prosodic structure can be divided into prosodic words (PW), prosodic phrases (PPH), and intonation phrases (IPH). Accurate prediction of these features is important for the naturalness and comprehensibility of synthesized speech.
[0055] In prosody prediction, there is currently no Braille prosody corpus, and the Chinese (Pinyin) prosody corpus is also very limited. The universal Braille-Pinyin conversion system constructed by step 1 of Universal Braille can obtain normal Pinyin containing word segmentation information, but with Pinyin as input, on a small amount of Pinyin prosody annotation corpus, using commonly used prosody prediction models such as bidirectional long short-term memory network (BiLSTM) and the like cannot obtain satisfactory accuracy. And to utilize the advantages of the pre-trained model in the case of a small amount of prosody corpus, Chinese characters must be used as model input. Therefore, the present invention proposes to realize prosody prediction for Braille by constructing a high-accuracy Pinyin-Chinese character conversion system and a three-level prosody prediction model based on Chinese characters.
[0056] The pinyin-Chinese character conversion system in the present invention is a neural network based on a multi-head self-attention mechanism. The three-level prosody prediction model based on Chinese characters adopts a pre-trained RoBERTa model fine-tuning scheme. The input is Chinese characters with Braille word segmentation information.
[0057] 3. Build a real-time speech synthesis module, which includes the acoustic model Tacotron2 and the vocoder LPCNet. Tacotron2 is a spectral prediction model that uses the 80-dimensional Mel spectrum as the prediction target. However, the original Tacotron2-connected vocoder WaveNet has a slow inference speed and cannot meet real-time requirements. And its ability to model long sentences is limited. The present invention selects Tacotron2+LPCNet to build a speech synthesis system and optimizes Tacotron2.
[0058] Since the prediction targets of the LPCNet vocoder are 18-dimensional BFCC (Bark Frequency Cepstral Coefficients) and 2-dimensional pitch parameters, the original model structure and parameters of Tacotron2 cannot well simulate the prediction targets of the LPCNet vocoder. We reduce the number of PostNet (post-processing network) layers from 5 to 3. During the autoregressive decoding process, the historical input is replaced from the output value of the previous step to the output values of the previous four steps. And the Location-Sensitive Attention is replaced by the Forward Attention to enhance the long-sentence modeling ability of the model.
[0059] To make the above features and effects of the present invention more clearly and understandably described, specific embodiments are hereinafter given and detailed descriptions are made in conjunction with the accompanying drawings of the specification as follows.
[0060] The present invention proposes a method and system for real-time general braille speech synthesis, realizing the real-time conversion of Chinese general braille into speech. Its process is as Figure 1 shown:
[0061] 1. Construct a general braille-pinyin conversion system. Chinese pinyin is a tool for representing the pronunciation of characters. It represents syllables by combining different initials, finals and tones. General braille is essentially also a kind of phonetic writing, which contains very similar initials, finals, tones and spelling rules.
[0062] To make general braille easy to learn and use, there are more than 20 special rules in terms of spelling rules, tone marking rules and abbreviation rules. It stipulates that some elements can be abbreviated, such as "zhi, chi, shi" can be abbreviated as "zh, ch, sh", etc. It also stipulates special writing methods to distinguish high-frequency homophones, such as "he, ta, ta". To save space, for each initial, the designated default tone can be omitted, while other tones should be clearly marked, and syllables without marked tones will be regarded as syllables corresponding to the default tone. For example, the initial "f" omits the sign of the first tone, and the initials "p, m, t, n" omit the sign of the second tone. General braille stipulates that the light tone is not marked, which will cause ambiguity between the light tone and the syllables with default unmarked tones. Therefore, the ambiguity should be eliminated according to the context. At the same time, Chinese is a tonal language. When two or more special syllables are connected together, or some specific characters, such as "yi" or "bu", there will be tone sandhi phenomena in Chinese spoken language. And for the cases of using Arabic numerals, Greek letters or special characters, they need to be converted into their corresponding texts and pinyins through text regularization.
[0063] First, punctuation marks and syllables are separated from the Braille text, and the word segmentation information is retained to assist in subsequent disambiguation. According to the coding table, punctuation marks are directly converted into corresponding Chinese punctuation, and syllables are converted into pinyin. However, the pinyin obtained at this time is incomplete. Some syllables lack initials, finals, or tones. Finally, according to the rules of the general Braille system, the simplified syllables and omitted tones are restored. According to the statistical results of the Braille corpus, most neutral tone syllables are modal particles, and there is a strong consistency in their positions in sentences (for example, they often appear at the end of sentences). By constructing a dictionary for tone changes of modal particles and combining position information, word segmentation information, and punctuation marks, more than 99.0% of the ambiguity of modal particle syllables can be eliminated. The construction and usage method of the dictionary for tone changes of modal particles are as follows: After converting general Braille into pinyin based on rules, compare it with the real pinyin, screen out the high-frequency modal particles with mislabeled tones, and construct them into a dictionary. When performing the general Braille-pinyin conversion, for each syllable, combine the position information, word segmentation information, punctuation marks, and whether the syllable exists in the dictionary for tone changes of modal particles to determine whether the current syllable is a modal particle, and perform tone correction.
[0064] Tone changes in Chinese pronunciation can be divided into tone changes of special syllables and tone changes based on semantics. When two third-tone syllables are connected together, the first third-tone syllable will change to a second-tone syllable. This can be processed according to the rules. For tone changes based on semantics, such as '一' (yī) and '不' (bù), when followed by a fourth-tone syllable, it changes to a second-tone syllable. It also includes rules such as reading the fourth tone before non-fourth-tone syllables and reading the neutral tone when sandwiched between overlapping verbs. This needs to be processed according to the context. Due to the one-to-many relationship between pinyin and Chinese characters, there is semantic confusion. To handle tone changes, we have established a high-frequency tone change dictionary and also used the position information of syllables in words.
[0065] For example, in Chinese: "Karlp accompanied his grandson to play on the slide", its general Braille is: Through our general Braille-pinyin conversion system, the original tone pinyin can be obtained: "ka3er3pu3 pei2 wai4sun1 wan2 hua2ti1", and the tone-changed pinyin: "ka3er2pu3 pei2wai4sun1 wan2 hua2ti1" (the numbers 1, 2, 3, 4, 5 represent the first tone, second tone, third tone, fourth tone, and neutral tone respectively, and the space represents word segmentation information). Another example: "A blind person refers to a person with visual impairment", its Braille is: Since there is no tone change phenomenon, the output normal pinyin and tone-changed pinyin are both: "mang2ren2 shi4 zhi3 shi4jue2 you3zhang4ai4 de5 ren2."
[0066] 2. Prosody prediction for Braille. Prosody describes changes in rhythm. Speakers group words and phrases in their speech, which is reflected in pauses, changes in syllable length, and interruptions in intonation. A typical Chinese syllable structure can be divided into prosodic words (PW), prosodic phrases (PPH), and intonation phrases (IPH). Accurate prediction of these features is of great significance to the naturalness and comprehensibility of synthesized speech.
[0067] In order to obtain the rhythm of Braille, we first convert universal Braille into pinyin through the first step of the universal Braille-pinyin conversion system, and retain the Braille word segmentation information. In order to take advantage of the pre-trained model in the absence of rhythmic corpus, we designed a neural network model based on a multi-head self-attention model to predict the Chinese characters corresponding to pinyin. The predicted Chinese characters and Braille word segmentation information are fused together as the input of the rhythm prediction model. The prediction results are combined with pinyin as the input of the speech synthesis model. The structures of the above two models are as follows: Figure 2 shown.
[0068] The Chinese character prediction model consists of a PreNet (preprocessing network), a Multi-Head Self-Attention mechanism, and a convolutional network block. A 1024-dimensional word embedding represents the input pinyin characters. The embedding vector representation first passes through a preprocessing network composed of two fully connected layers to eliminate information bottlenecks, mine implicit semantic information, and through the multi-head self-attention mechanism, utilize context information in different feature spaces for self-updating of features, establish the correlation between pinyin contexts. At the same time, to avoid network degradation and loss of effective information, a residual connection is used after the multi-head self-attention layer to fuse the input and output of this network layer, and this mechanism is also applied in subsequent non-linear transformations. To mine context information of different spans, multi-layer two-dimensional convolutional network modules with different granularities are used. The convolutional kernel size increases layer by layer, and the context span mined by each layer of the network increases layer by layer. As the network depth deepens, the receptive field also continuously increases, realizing feature extraction from local to global. To accelerate model fitting, batch normalization is also added to each layer of the convolutional network to alleviate the impact brought by internal covariate shift, and the max-pooling mechanism is used for downsampling to reduce the feature calculation amount. Finally, softmax is used to calculate the probability distribution in the Chinese character set corresponding to each pinyin, and the Chinese character with the highest probability is selected as the prediction result. Suppose the pinyin output in step 1 is "mang2ren2 shi4zhi3shi4jue2 you3 zhang4ai4 de5 ren2", then through the Chinese character prediction model, we can get "盲人是指视觉有璋碍的人。" (where the space represents the word segmentation information自带 by Braille, and here the character "璋" is the wrongly predicted character.)
[0069] The prosody prediction model is a sequence tagging model based on RoBERTa. The input of this model is the predicted Chinese character sequence with word segmentation information, and the output is a sequence of prosody boundary labels and word segmentation boundary labels. We concatenate the outputs of the last four encoder layers and use a fully connected layer for fine-tuning.
[0070] We designed two ways to utilize the word segmentation information. Method 1: Represent the word segmentation positions with "#". For example, obtained from the Chinese character prediction model: "盲人是指视觉有璋碍的人", after representing the word segmentation information with "#", it becomes: "盲人#是#指#视觉#有#璋碍#的#人". Input the sentence with added word segmentation information into the sequence tagging model based on RoBERTa, and its corresponding output is " <n> <pw> # <n> # <iph> # <n> <pph> # <n> # <n> <n> # <n> # <end>",in, <n>Indicates that there is no need to pause after the word. <pw> <pph> <iph>They respectively indicate that the word needs a first-level rhythmic pause, a second-level rhythmic pause, and a third-level rhythmic pause. The corresponding output of the word segmentation mark position is still the word segmentation mark. <end>Indicates the end of a sentence.
[0071] Method 2 modifies the RoBERTa model structure. The RoBERTa model has the same structure as the BERT model. Figure 3 As shown in , for a given token, its input representation is constructed by summing the corresponding token embeddings, segment embeddings, and position embeddings. In order to increase the word segmentation information, we add a layer of word segment embeddings, such as Figure 4 At this time, the input of the model is normal text, for example, obtained by the Chinese character prediction model, "blind people refer to people with visual impairments", and the text input to the rhythm prediction model is: "blind people refer to people with visual impairments". Its word segmentation information is as follows Figure 4 The method shown is added to the word segmentation embedding information layer, and the output is whether the corresponding position character is followed by a rhythmic pause sequence, that is, " <n> <pw> <n> <iph> <n> <pph> <n> <n> <n> <n> <end>", and finally, through simple rule conversion and the tone-shifted pinyin provided by the universal Braille-pinyin conversion system, we can get the rhythmic pinyin sequence "mang2ren2 <pw>shi4 zhi3 <iph>shi4 jue2 <pph>you3 zhang4 ai4 de5 ren2” is used as the input of the real-time speech synthesis module in step 3.
[0072] 3. Build a real-time speech synthesis module. We choose Tacotron2+LPCNet to build a speech synthesis module. Tacotron2 is a spectrum prediction model that uses Mel spectrum as the prediction target. LPCNet is a real-time vocoder that integrates DSP (digital signal processing) technology and neural network. It uses DSP to predict the linear part of the audio signal and uses a neural network to fit the residual between the linear prediction value and the actual value. LPCNet achieves a balance between sound quality and inference speed. The structure of the speech synthesis module is as follows Figure 5 shown.
[0073] The original Tacotron2 model uses 80-dimensional MFCC (Mel-frequency cepstral coefficients) as intermediate acoustic features, while LPCNet uses 18-dimensional BFCC and 2-dimensional pitch-related parameters. The original model structure and parameters of Tacotron2 cannot simulate the new features well. Therefore, we made the following improvements to Tacotron2:
[0074] We reduce the number of PostNet (post-processing network) layers from 5 to 3. In the autoregressive decoding process, the used historical output is expanded from the output of the previous step 1 to the output of the previous 4 steps to obtain better sound quality, as shown in formula (1):
[0075] y t =Decoder(y t-4 ,y t-3 ,y t-2 ,y t-1 ,c t ) (1)
[0076] where y t-n (n=1, 2, 3, 4) is the predicted value of the previous n frames (i.e., the output of the decoder), C t It is the context vector calculated according to the attention mechanism at the current moment.
[0077] Tacotron2 uses a position-sensitive attention mechanism. However, when the length of the synthesized text reaches a certain threshold, the error rate of the synthesized speech increases dramatically. The forward attention mechanism uses a forward recursive algorithm to calculate the modified attention probability for each time step, which improves the stability of the model. We use position-sensitive attention to calculate the attention weights and use forward attention to modify the weights. Experimental results show that the convergence speed is faster and the acoustic feature prediction is more stable.
[0078] The input of the model is the phonemes extracted from pinyin, because Chinese characters are too sparse and pinyin has some redundant information. The format of the training data is<audio,text> The training text contains three levels of prosodic information. The training data of LPCNet is acoustic features extracted from real audio.
[0079] The following is a system embodiment corresponding to the above method embodiment. This implementation system can be implemented in conjunction with the above implementation method. The relevant technical details mentioned in the above implementation method are still valid in this implementation system. In order to reduce repetition, they are not repeated here. Accordingly, the relevant technical details mentioned in this implementation system can also be applied in the above implementation method.
[0080] The present invention also proposes a Chinese Braille speech synthesis system, which comprises:
[0081] Module 1 is used to obtain a pinyin sequence by converting punctuation marks and syllables in a common Braille text to be speech synthesized into Chinese punctuation marks and pinyin respectively;
[0082] Module 2, for converting the pinyin sequence into Chinese characters through a Chinese character prediction model to obtain a Chinese character sequence with word segmentation information, and inputting the Chinese character sequence into a prosody prediction model to obtain a prosody label of the Chinese character sequence;
[0083] Module 3 is used to combine the prosody label and the pinyin sequence to obtain the pinyin sequence containing the prosody label, and input the pinyin sequence into the speech synthesis module to obtain the speech synthesis result of the universal Braille text.
[0084] The Chinese Braille speech synthesis system, wherein the module 1 comprises:
[0085] The punctuation marks and Chinese syllables are separated from the universal Braille text, and the word segmentation information is retained; the punctuation marks are converted into Chinese punctuation marks according to the coding table, and the Chinese syllables are converted into pinyin; and according to the rules of the universal Braille system, some of the missing initial consonants, finals or tones are restored to obtain an initial pinyin sequence;
[0086] According to the modal particle dictionary and in combination with the position information, word segmentation information and punctuation information of each syllable in the initial pinyin sequence, the ambiguous tones in the initial pinyin sequence are eliminated to obtain an intermediate pinyin sequence; for Arabic numerals, Greek letters and special characters in the universal Braille text, text regularization is used to obtain their corresponding Chinese texts and a Chinese character to pinyin tool is used to obtain the corresponding pinyin, which is then added to the intermediate pinyin sequence to obtain a complete pinyin sequence;
[0087] The construction and use system of the modal particle dictionary is as follows: after converting the training Braille into pinyin based on the rules, it is compared with the correct pinyin corresponding to the training Braille, and high-frequency modal particles with incorrectly marked tones are selected and constructed into the modal particle dictionary; when performing the universal Braille-pinyin conversion, for each syllable, the position information, word segmentation information, punctuation marks, and whether the syllable exists in the modal particle dictionary are combined to determine whether the current syllable is a modal particle, and the tone correction is performed.
[0088] The Chinese Braille speech synthesis system, wherein
[0089] In module 1, the pinyin sequence includes a normal pinyin sequence and a tone-shifted pinyin sequence;
[0090] Module 3 includes: combining the prosody label and the tone-shifted pinyin sequence to obtain a tone-shifted pinyin sequence containing the prosody label;
[0091] The punctuation marks and syllables in the universal Braille text are converted into Chinese punctuation marks and pinyin respectively according to the rules of the universal Braille system to obtain the normal pinyin sequence;
[0092] According to the tone change rule, the pinyin in the normal pinyin sequence is converted into the tone-changed pinyin to obtain the tone-changed pinyin sequence.
[0093] The Chinese Braille speech synthesis system, wherein the Chinese character prediction model in module 2 is composed of a preprocessing network, a multi-head self-attention layer and a convolutional network block; the pinyin sequence is subjected to multi-dimensional character embedding processing by the preprocessing network to obtain an embedding vector, and the multi-head self-attention layer is used to self-update the features in different feature spaces using context information to establish the association relationship between the pinyin contexts, and a residual connection is used after the multi-head self-attention layer to fuse the input and output of the multi-head self-attention layer to obtain a fusion vector; the convolutional network block includes multiple layers of two-dimensional convolutional network modules with different granularities, and the convolution kernel size increases layer by layer, the context span mined by each layer of the network increases layer by layer, and as the network depth deepens, the receptive field also increases continuously, so as to extract features from local to global for the fusion vector, and batch normalization is added to each layer of the convolutional network to alleviate internal covariate offset, and the maximum pooling mechanism is used for downsampling, and finally softmax is used to calculate the probability distribution of the Chinese character word set corresponding to each pinyin, and the Chinese character with the largest probability is selected as the Chinese character sequence.
[0094] The Chinese Braille speech synthesis system, wherein the speech synthesis module includes an acoustic model and a vocoder, the acoustic model is used to extract the acoustic features of the pinyin sequence containing the prosody label, and the vocoder is used to restore the acoustic features to an audio waveform; the construction process of the acoustic model includes: obtaining a Tacotron2 model, reducing the PostNet layer in the Tacotron2 model from the original 5 layers to 3 layers, and in the autoregressive decoding process of the Tacotron2 model, the historical output used is the historical output of the previous 4 steps: y t =Decoder(y t-4 ,y t-3 ,y t-2 ,y t-1 ,c t ).
[0095] The Chinese Braille speech synthesis system, wherein the word segmentation information is a preset symbol, and the word segmentation position in the Chinese character sequence is represented by the preset symbol; or
[0096] The text embedding information, sentence segmentation embedding information, position embedding information and word segmentation information of the Chinese character sequence are respectively input into the term embedding information layer, sentence segmentation embedding information layer, position embedding information layer and word segmentation embedding information layer of the rhythm prediction model.
[0097] Although the present invention is disclosed in the above-mentioned embodiments, the specific embodiments are only used to explain the present invention and are not used to limit the present invention. Any technician in this technical field can make some changes and improvements without departing from the concept and scope of the present invention. Therefore, the scope of protection of the present invention shall be based on the claims.< / pph> < / iph> < / pw> < / end> < / n> < / n> < / n> < / n> < / pph> < / n> < / iph> < / n> < / pw> < / n> < / end> < / iph> < / pph> < / pw> < / n> < / end> < / n> < / n> < / n> < / n> < / pph> < / n> < / iph> < / n> < / pw> < / n>
Claims
1. A Chinese Braille speech synthesis method, characterized in that: include: Step 1, converting punctuation marks and syllables in the common Braille text to be speech synthesized into Chinese punctuation marks and pinyin respectively to obtain a pinyin sequence; Step 2: By adding a word segmentation embedding information layer to the RoBERTa model, a prosody prediction model is obtained; the pinyin sequence is converted into Chinese characters through the Chinese character prediction model to obtain a Chinese character sequence with word segmentation information, and the text embedding information, the preceding and following sentence segmentation embedding information, the position embedding information and the word segmentation information of the Chinese character sequence are respectively input into the term embedding information layer, the preceding and following sentence segmentation embedding information layer, the position embedding information layer and the word segmentation embedding information layer of the prosody prediction model to obtain the prosody label of the Chinese character sequence; Step 3: Combine the prosody label and the pinyin sequence to obtain a pinyin sequence containing the prosody label, and input the pinyin sequence into a speech synthesis module to obtain a speech synthesis result of the universal Braille text.
2. The Chinese Braille speech synthesis method according to claim 1, characterized in that: This step 1 includes: The punctuation marks and Chinese syllables are separated from the universal Braille text, and the word segmentation information is retained; the punctuation marks are converted into Chinese punctuation marks according to the coding table, and the Chinese syllables are converted into pinyin; and according to the rules of the universal Braille system, some of the missing initial consonants, finals or tones are restored to obtain an initial pinyin sequence; According to the modal particle dictionary and in combination with the position information, word segmentation information and punctuation information of each syllable in the initial pinyin sequence, the ambiguous tones in the initial pinyin sequence are eliminated to obtain an intermediate pinyin sequence; for Arabic numerals, Greek letters and special characters in the universal Braille text, text regularization is used to obtain their corresponding Chinese texts and a Chinese character to pinyin tool is used to obtain the corresponding pinyin, which is then added to the intermediate pinyin sequence to obtain a complete pinyin sequence; The construction and use method of the modal particle dictionary is as follows: after converting the training Braille into pinyin based on the rules, it is compared with the correct pinyin corresponding to the training Braille, and high-frequency modal particles with incorrectly marked tones are selected to construct the modal particle dictionary; when performing the universal Braille-pinyin conversion, for each syllable, the position information, word segmentation information, punctuation marks, and whether the syllable exists in the modal particle dictionary are combined to determine whether the current syllable is a modal particle, and the tone correction is performed.
3. The Chinese Braille speech synthesis method according to claim 1, characterized in that: In step 1, the pinyin sequence includes a normal pinyin sequence and a tone-shifted pinyin sequence; Step 3 includes: combining the prosody tag and the tone-shifted pinyin sequence to obtain a tone-shifted pinyin sequence containing the prosody tag; The punctuation marks and syllables in the universal Braille text are converted into Chinese punctuation marks and pinyin respectively according to the rules of the universal Braille system to obtain the normal pinyin sequence; According to the tone change rule, the pinyin in the normal pinyin sequence is converted into the tone-changed pinyin to obtain the tone-changed pinyin sequence.
4. The Chinese Braille speech synthesis method according to claim 1, characterized in that: In step 2, the Chinese character prediction model consists of a preprocessing network, a multi-head self-attention layer and a convolutional network block; the pinyin sequence is subjected to multi-dimensional word embedding processing by the preprocessing network to obtain an embedding vector, and the multi-head self-attention layer is used to self-update the features in different feature spaces using context information to establish the association between the pinyin contexts, and a residual connection is used after the multi-head self-attention layer to fuse the input and output of the multi-head self-attention layer to obtain a fusion vector; the convolutional network block includes multiple layers of two-dimensional convolutional network modules with different granularities, and the convolution kernel size increases layer by layer, and the context span mined by each layer of the network increases layer by layer. As the network depth deepens, the receptive field also increases continuously, so as to extract features from local to global for the fusion vector, and batch normalization is added to each layer of the convolutional network to alleviate internal covariate shift, and the maximum pooling mechanism is used for downsampling, and finally softmax is used to calculate the probability distribution of the Chinese character word set corresponding to each pinyin, and the Chinese character with the largest probability is selected as the Chinese character sequence.
5. The Chinese Braille speech synthesis method according to claim 1, characterized in that: The speech synthesis module includes an acoustic model and a vocoder, wherein the acoustic model is used to extract acoustic features of a pinyin sequence containing a prosodic tag, and the vocoder is used to restore the acoustic features to an audio waveform; The construction process of the acoustic model includes: obtaining the Tacotron2 model, reducing the PostNet layer in the Tacotron2 model from 5 layers to 3 layers, and in the autoregressive decoding process of the Tacotron2 model, using the historical output of the previous 4 steps: y t =Decoder(y t-4 ,y t-3 ,y t-2 ,y t-1 ,c t ); where y t-n is the predicted value of the previous n frames, C t It is the context vector calculated according to the attention mechanism at the current moment.
6. A Chinese Braille speech synthesis system, characterized in that: include: Module 1 is used to obtain a pinyin sequence by converting punctuation marks and syllables in a common Braille text to be speech synthesized into Chinese punctuation marks and pinyin respectively; Module 2 is used to add a word segmentation embedding information layer to the RoBERTa model to obtain a prosody prediction model; convert the pinyin sequence into Chinese characters through the Chinese character prediction model to obtain a Chinese character sequence with word segmentation information, and input the text embedding information, the preceding and following sentence segmentation embedding information, the position embedding information and the word segmentation information of the Chinese character sequence into the term embedding information layer, the preceding and following sentence segmentation embedding information layer, the position embedding information layer and the word segmentation embedding information layer of the prosody prediction model respectively to obtain the prosody label of the Chinese character sequence; Module 3 is used to combine the prosody label and the pinyin sequence to obtain the pinyin sequence containing the prosody label, and input the pinyin sequence into the speech synthesis module to obtain the speech synthesis result of the universal Braille text.
7. The Chinese Braille speech synthesis system as claimed in claim 6, characterized in that: This module 1 includes: The punctuation marks and Chinese syllables are separated from the universal Braille text, and the word segmentation information is retained; the punctuation marks are converted into Chinese punctuation marks according to the coding table, and the Chinese syllables are converted into pinyin; and according to the rules of the universal Braille system, some of the missing initial consonants, finals or tones are restored to obtain an initial pinyin sequence; According to the modal particle dictionary and in combination with the position information, word segmentation information and punctuation information of each syllable in the initial pinyin sequence, the ambiguous tones in the initial pinyin sequence are eliminated to obtain an intermediate pinyin sequence; for Arabic numerals, Greek letters and special characters in the universal Braille text, text regularization is used to obtain their corresponding Chinese texts and a Chinese character to pinyin tool is used to obtain the corresponding pinyin, which is then added to the intermediate pinyin sequence to obtain a complete pinyin sequence; The construction and use system of the modal particle dictionary is as follows: after converting the training Braille into pinyin based on the rules, it is compared with the correct pinyin corresponding to the training Braille, and high-frequency modal particles with incorrectly marked tones are selected and constructed into the modal particle dictionary; when performing the universal Braille-pinyin conversion, for each syllable, the position information, word segmentation information, punctuation marks, and whether the syllable exists in the modal particle dictionary are combined to determine whether the current syllable is a modal particle, and the tone correction is performed.
8. The Chinese Braille speech synthesis system as claimed in claim 6, characterized in that: In module 1, the pinyin sequence includes a normal pinyin sequence and a tone-shifted pinyin sequence; Module 3 includes: combining the prosody label and the tone-shifted pinyin sequence to obtain a tone-shifted pinyin sequence containing the prosody label; The punctuation marks and syllables in the universal Braille text are converted into Chinese punctuation marks and pinyin respectively according to the rules of the universal Braille system to obtain the normal pinyin sequence; According to the tone change rule, the pinyin in the normal pinyin sequence is converted into the tone-changed pinyin to obtain the tone-changed pinyin sequence.
9. The Chinese Braille speech synthesis system as claimed in claim 6, characterized in that: In module 2, the Chinese character prediction model consists of a preprocessing network, a multi-head self-attention layer and a convolutional network block; the pinyin sequence is subjected to multi-dimensional word embedding processing by the preprocessing network to obtain an embedding vector, and through the multi-head self-attention layer, the context information is used to self-update the features in different feature spaces to establish the association between the pinyin contexts, and a residual connection is used after the multi-head self-attention layer to fuse the input and output of the multi-head self-attention layer to obtain a fusion vector; the convolutional network block includes multiple layers of two-dimensional convolutional network modules with different granularities, and the convolution kernel size increases layer by layer, and the context span mined by each layer of the network increases layer by layer. As the network depth deepens, the receptive field also increases continuously, so as to extract features from local to global for the fusion vector, and batch normalization is added to each layer of the convolutional network to alleviate internal covariate shift, and the maximum pooling mechanism is used for downsampling, and finally softmax is used to calculate the probability distribution of the Chinese character word set corresponding to each pinyin, and the Chinese character with the highest probability is selected as the Chinese character sequence.
10. The Chinese Braille speech synthesis system according to claim 6, characterized in that: The speech synthesis module includes an acoustic model and a vocoder, wherein the acoustic model is used to extract acoustic features of a pinyin sequence containing a prosodic tag, and the vocoder is used to restore the acoustic features to an audio waveform; The construction process of the acoustic model includes: obtaining the Tacotron2 model, reducing the PostNet layer in the Tacotron2 model from 5 layers to 3 layers, and in the autoregressive decoding process of the Tacotron2 model, using the historical output of the previous 4 steps: y t =Decoder(y t-4 ,y t-3 ,y t-2 ,y t-1 ,c t ); where y t-n is the predicted value of the previous n frames, that is, the output of the decoder, C t It is the context vector calculated according to the attention mechanism at the current moment.
