Training method, device and acquisition method of input phonemes for speech synthesis

By converting Chinese characters, pinyin and tones into phoneme sequences, and combining the correlation between phonemes to form a pinyin vector, the problem of information loss in the existing technology is solved, and the learning efficiency and output quality of the speech synthesis model are improved.

CN111785249BActive Publication Date: 2024-09-10HENGXIN SHAMBALA CULTURE CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202010663237.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-10
Publication Date
2024-09-10
Estimated Expiration
2040-07-10

AI Technical Summary

Technical Problem

When existing speech synthesis models synthesize Chinese speech, important information is lost in the conversion process of Chinese characters to Pinyin and Pinyin to phonemes, which increases the difficulty of model learning.

Method used

By splitting the Chinese text into Chinese characters, the Chinese characters are converted into pinyin, including tones, and the pinyin is converted into phonemes, and the Chinese characters, phonemes, and tones are input into the word embedding model to form Chinese character vectors, phoneme sequence vectors, and tone vectors, combined with the correlation between phonemes A pinyin vector is formed to retain the structural information of Chinese characters and pinyin.

Benefits of technology

It provides an input phoneme sequence containing Chinese characters, pinyin and tone information, which reduces the training requirements of the speech synthesis model on corresponding relationships and improves the learning efficiency and output quality of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111785249B
    Figure CN111785249B
Patent Text Reader

Abstract

The present application discloses a training method, device and method for obtaining input phonemes for speech synthesis, the training method comprising: splitting Chinese sentences in Chinese text into Chinese characters; converting Chinese characters into pinyin, which includes tones; converting pinyin into phonemes; inputting Chinese characters, phonemes and tones into a word embedding model to obtain Chinese character vectors, phoneme sequence vectors and tone vectors; forming pinyin vectors, wherein a single pinyin vector has a one-to-one correspondence with the corresponding Chinese character vector and its tone vector. The input phonemes trained and obtained in the present application contain information about Chinese characters, structural information about pinyin and tone information, as input to the speech synthesis model, so the speech synthesis model does not need to train the correspondence between Chinese characters, pinyin and tones.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a training method, device and acquisition method of input phonemes for speech synthesis. Background Art

[0002] In the prior art, when converting Chinese sentences into phoneme sequences during Chinese speech synthesis, one Chinese character corresponds to one pinyin, and one pinyin corresponds to multiple phonemes. In the above two steps, the information of the Chinese character is removed in the conversion from Chinese character to pinyin. In the conversion from pinyin to phoneme, the structural information of the pinyin is lost. This information is very necessary for Chinese speech synthesis, and is the main basis for determining where to "pause", what "tone" to use, what "emotion" to use, etc. Although this information may still be contained in the phoneme sequence, to mine this information, the speech synthesis model needs more training data and a larger speech synthesis model.

[0003] Therefore, the input of the existing speech synthesis model only contains the phoneme sequence of Chinese Pinyin (such as BOPOMOFO Chinese phonetic format), which reduces the amount of information and increases the difficulty of model learning. Summary of the invention

[0004] The purpose of the present application is to provide a training method, device and acquisition method for input phonemes of speech synthesis, so as to solve the technical problem that the input phonemes of the existing speech synthesis model increase the difficulty of model learning.

[0005] The present application provides a method for training input phonemes for speech synthesis, comprising: splitting Chinese sentences in a Chinese text into Chinese characters; converting Chinese characters into pinyin, which includes tones; converting pinyin into phonemes; inputting Chinese characters, phonemes and tones into a word embedding model to obtain Chinese character vectors, phoneme sequence vectors and tone vectors; forming pinyin vectors, wherein a single pinyin vector has a one-to-one correspondence with the corresponding Chinese character vector and its tone vector.

[0006] Preferably, the pinyin is converted into phonemes by a pronunciation dictionary.

[0007] Preferably, in the output of the word embedding model, there is a one-to-one correspondence between the Chinese character vector set and the tone vector set.

[0008] Preferably, a single pinyin vector is formed according to the association relationship between phonemes.

[0009] Preferably, the association relationship between phonemes is determined based on the pinyin in which the phonemes are located, and multiple phoneme vectors are combined to form a single pinyin vector based on the association relationship between the phonemes.

[0010] The present application also provides a method for obtaining input phonemes based on the above-mentioned training method, including: splitting Chinese sentences in a Chinese text into Chinese characters; converting Chinese characters into pinyin, which includes tones; embedding Chinese characters, pinyin and tone inputs into a word embedding model to obtain Chinese character vectors, tone vectors and a single pinyin vector, and a single pinyin vector has a one-to-one correspondence with the corresponding Chinese character vector and its tone vector.

[0011] Preferably, adjacent Chinese characters in the Chinese sentence are spaced apart when splitting the Chinese sentence into Chinese characters.

[0012] Preferably, a single pinyin vector is formed according to the association relationship between phonemes.

[0013] Preferably, the association relationship between phonemes is determined based on the pinyin in which the phonemes are located, and multiple phoneme vectors are combined to form a single pinyin vector based on the association relationship between the phonemes.

[0014] The present application also provides a training device for inputting phonemes for speech synthesis, comprising a splitting module, a Chinese character to pinyin module, a pinyin to phoneme module, a word embedding module, and a pinyin acquisition module; wherein the splitting module splits Chinese sentences in a Chinese text into Chinese characters; the Chinese character to pinyin module converts Chinese characters into pinyin, which includes tones; the pinyin to phoneme module converts pinyin into phonemes; the word embedding module inputs Chinese characters, phonemes and tones into a word embedding model to obtain a Chinese character vector, a phoneme sequence vector and a tone vector; the pinyin acquisition module forms a single pinyin vector, and there is a one-to-one correspondence between the single pinyin vector and the corresponding Chinese character vector and its tone vector.

[0015] The input phonemes trained and obtained in the present application contain information about Chinese characters, structural information about pinyin, and tone information, which serve as input to the speech synthesis model. Therefore, the speech synthesis model does not need to train the correspondence between Chinese characters, pinyin, and tones. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0017] Figure 1 It is a flowchart of a method for training input phonemes for speech synthesis and a method for obtaining the same provided in an embodiment of the present application;

[0018] Figure 2 It is a structural diagram of a training device for input phonemes of speech synthesis provided in an embodiment of the present application. DETAILED DESCRIPTION

[0019] The following is a clear and complete description of the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0020] Embodiment 1

[0021] The present application provides a method for training input phonemes for speech synthesis, which retains the information of Chinese characters and the structural information of pinyin.

[0022] Figure 1 The process shown by the dotted line in the figure is a flow chart of the training method of the input phoneme for speech synthesis. Figure 1 As shown, the training method of input phonemes for speech synthesis includes the following steps:

[0023] S110: Split the Chinese sentences in the Chinese text into Chinese characters. Specifically, separate adjacent Chinese characters in the Chinese sentences.

[0024] S120: Convert Chinese characters into pinyin, which includes tones. Specifically, Chinese characters can be converted into pinyin using existing software.

[0025] S130: Convert pinyin into phonemes. Specifically, convert pinyin into phonemes through a pronunciation dictionary. As an embodiment, phonemes include initial consonants and final vowels.

[0026] S140: Input Chinese characters, phonemes and tones into the word embedding model to obtain Chinese character vectors, phoneme sequence vectors and tone vectors, forming a Chinese character vector set, a phoneme sequence vector set and a tone vector set. Specifically, in the word embedding model, Chinese characters are converted into Chinese character vectors, tones are converted into tone vectors, and individual phonemes are converted into phoneme sequence vectors.

[0027] Among them, multiple Chinese character vectors corresponding to the Chinese text in S110 constitute a Chinese character vector set, multiple tone vectors corresponding to the Chinese text in S110 constitute a tone vector set, and multiple phoneme sequence vectors corresponding to the Chinese text in S110 constitute a phoneme sequence vector set, and there is a one-to-one correspondence between the Chinese character vector set and the tone vector set.

[0028] S150: A single pinyin vector is formed according to the association relationship between phonemes, forming a pinyin vector set, and a single pinyin vector has a one-to-one correspondence with the corresponding Chinese character vector and its tone vector. Specifically, the adjacent phonemes of the phoneme (phonemes with an associated relationship) are determined according to the pinyin in which the phoneme is located, and multiple phoneme vectors are combined to form a single pinyin vector according to the association relationship between the phonemes. Multiple single pinyin vectors corresponding to the Chinese text in S110 form a pinyin vector set, and a single pinyin vector has a one-to-one correspondence with the corresponding Chinese character vector and its tone vector. As an embodiment, this step is implemented by training a network, such as a neural network.

[0029] S160: Copy the Chinese character vectors and tone vectors according to the number of phonemes contained in a single pinyin vector, so that the number of Chinese character vectors and the number of tone vectors are the same as the number of phonemes, and establish a corresponding relationship between these Chinese character vectors and tone vectors and the single pinyin vector.

[0030] According to the phonetic structure of Chinese characters, the number of phonemes may be 1-4. Therefore, the number of the same Chinese character vector and the same tone vector may be 1-4, such as Figure 1 shown.

[0031] Embodiment 2

[0032] The present application also provides a method for obtaining input phonemes, which utilizes the Chinese character vector set, tone vector set and pinyin vector set obtained in Example 1. The obtained input phonemes will be used as input to the speech synthesis model. The input phonemes contain information about Chinese characters, structural information about pinyin, and tone information. The speech synthesis model does not need to train the correspondence between Chinese characters, pinyin and tones.

[0033] Figure 1 The process shown by the solid line in the figure is a flow chart of a method for obtaining input phonemes for speech synthesis. Figure 1 As shown, the method for obtaining the input phoneme includes the following steps:

[0034] S210: Split the Chinese sentences in the Chinese text into Chinese characters. Specifically, separate adjacent Chinese characters in the Chinese sentences.

[0035] S220: Convert Chinese characters into pinyin, which includes tones. Specifically, Chinese characters can be converted into pinyin using existing software.

[0036] S230: Input Chinese characters, pinyin and tones into the word embedding model, and use the Chinese character vectors, tone vectors and pinyin vectors obtained in Example 1 and their corresponding relationships to obtain the Chinese character vectors, tone vectors and a single pinyin vector corresponding to the Chinese text.

[0037] S240: Copy the Chinese character vectors and tone vectors according to the number of phonemes contained in the obtained single pinyin vector, so that the number of Chinese character vectors and the number of tone vectors are the same as the number of phonemes, and establish a corresponding relationship between these Chinese character vectors and tone vectors and the single pinyin vector.

[0038] The Chinese character vectors, tone vectors and the single pinyin vector containing the same number of phonemes as that contained in the single pinyin vector are used as inputs of the speech synthesis model for speech synthesis.

[0039] Embodiment 3

[0040] The present application also provides a training device for input phonemes of speech synthesis matching the first embodiment. Figure 2 As shown, the training device includes a splitting module 210, a Chinese character to pinyin module 220, a pinyin to phoneme module 230, a word embedding module 240, a pinyin acquisition module 250 and a rearrangement module 260.

[0041] The splitting module 210 splits the Chinese sentences in the Chinese text into Chinese characters. Specifically, the adjacent Chinese characters in the Chinese sentences are separated.

[0042] The Chinese character to pinyin module 220 converts Chinese characters into pinyin, which includes tones. Specifically, Chinese characters can be converted into pinyin by existing software.

[0043] The pinyin to phoneme module 230 converts pinyin into phonemes. Specifically, pinyin is converted into phonemes through a pronunciation dictionary. As an embodiment, phonemes include initial consonants and final vowels.

[0044] The word embedding module 240 inputs Chinese characters, phonemes and tones into the word embedding model to obtain Chinese character vectors, phoneme sequence vectors and tone vectors. Specifically, in the word embedding model, Chinese characters are converted into Chinese character vectors, tones are converted into tone vectors, and single phonemes are converted into phoneme sequence vectors.

[0045] Among them, multiple Chinese character vectors corresponding to Chinese text constitute a Chinese character vector set, multiple tone vectors corresponding to Chinese text constitute a tone vector set, and multiple phoneme sequence vectors corresponding to Chinese text constitute a phoneme sequence vector set, and there is a one-to-one correspondence between the Chinese character vector set and the tone vector set.

[0046] The pinyin acquisition module 250 forms a single pinyin vector according to the association relationship between phonemes. Specifically, the adjacent phonemes (phonemes with an association relationship) of the phoneme are determined according to the pinyin in which the phoneme is located, and multiple phoneme vectors are combined to form a single pinyin vector according to the association relationship between the phonemes. Multiple single pinyin vectors corresponding to the Chinese text form a pinyin vector set, and a single pinyin vector has a one-to-one correspondence with the corresponding Chinese character vector and its tone vector.

[0047] The rearrangement module 260 copies the Chinese character vectors and tone vectors according to the number of phonemes contained in a single pinyin vector, so that the number of Chinese character vectors and the number of tone vectors are the same as the number of phonemes, and establishes a corresponding relationship between these Chinese character vectors and tone vectors and the single pinyin vector.

[0048] According to the phonetic structure of Chinese characters, the number of phonemes may be 1-4. Therefore, the number of the same Chinese character vector and the same tone vector may be 1-4, such as Figure 1 shown.

[0049] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they are aware of the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present application. Obviously, those skilled in the art may make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for training input phonemes for speech synthesis, characterized in that: include: Split Chinese sentences in Chinese text into Chinese characters; Convert Chinese characters into pinyin, which includes tones; Convert pinyin to phonemes; Input Chinese characters, phonemes and tones into the word embedding model to obtain Chinese character vectors, phoneme sequence vectors and tone vectors, thereby forming a Chinese character vector set, a phoneme sequence vector set and a tone vector set; There is a one-to-one correspondence between a single pinyin vector and the corresponding Chinese character vector and its tone vector; there is a one-to-one correspondence between a Chinese character vector set and a tone vector set; Determine the association relationship between phonemes according to the pinyin in which the phonemes are located, and combine multiple phoneme vectors to form a single pinyin vector according to the association relationship between the phonemes to form a pinyin vector set; Among them, the number of the same Chinese character vector and the same tone vector is 1-4; wherein the Chinese character vectors and the tone vectors are copied according to the number of phonemes contained in a single pinyin vector, so that the number of Chinese character vectors and the number of tone vectors are the same as the number of phonemes, and a corresponding relationship is established between these Chinese character vectors and the tone vectors and the single pinyin vector; Among them, the Chinese character vector set, tone vector set, and pinyin vector set serve as the input phonemes of the speech synthesis model. The input phonemes contain the information of Chinese characters, the structural information of pinyin, and the tone information. The speech synthesis model does not need to train the correspondence between Chinese characters, pinyin, and tones.

2. The training method according to claim 1, characterized in that: Convert pinyin to phonemes through a pronunciation dictionary.

3. A method for obtaining input phonemes based on the training method according to claim 1 or 2, characterized in that: include: Split Chinese sentences in Chinese text into Chinese characters; Convert Chinese characters into pinyin, which includes tones; Input Chinese characters, pinyin and tones into the word embedding model to obtain Chinese character vectors, tone vectors and a single pinyin vector. A single pinyin vector has a one-to-one correspondence with the corresponding Chinese character vector and its tone vector; Form a single phonetic vector based on the association between phonemes; Determine the association between phonemes according to the pinyin in which the phonemes are located, and combine multiple phoneme vectors to form a single pinyin vector according to the association between the phonemes; Among them, the number of the same Chinese character vector and the same tone vector is 1-4.

4. The method for obtaining as claimed in claim 3, characterized in that: When splitting a Chinese sentence into Chinese characters, adjacent Chinese characters in the Chinese sentence are separated.

5. A training device for inputting phonemes for speech synthesis, characterized in that: It includes splitting module, Chinese character to pinyin module, pinyin to phoneme module, word embedding module and pinyin acquisition module; Among them, the splitting module splits the Chinese sentences in the Chinese text into Chinese characters; The Chinese character to pinyin module converts Chinese characters into pinyin, which includes tones; The pinyin-to-phoneme module converts pinyin into phonemes; The word embedding module inputs Chinese characters, phonemes and tones into the word embedding model to obtain Chinese character vectors, phoneme sequence vectors and tone vectors, forming a Chinese character vector set, a phoneme sequence vector set and a tone vector set; There is a one-to-one correspondence between a single pinyin vector and the corresponding Chinese character vector and its tone vector; there is a one-to-one correspondence between a Chinese character vector set and a tone vector set; The pinyin acquisition module determines the association between phonemes according to the pinyin in which the phonemes are located, and combines multiple phoneme vectors to form a single pinyin vector according to the association between the phonemes to form a pinyin vector set; Among them, the number of the same Chinese character vector and the same tone vector is 1-4; wherein the Chinese character vectors and the tone vectors are copied according to the number of phonemes contained in a single pinyin vector, so that the number of Chinese character vectors and the number of tone vectors are the same as the number of phonemes, and a corresponding relationship is established between these Chinese character vectors and the tone vectors and the single pinyin vector; Among them, the Chinese character vector set, tone vector set, and pinyin vector set serve as the input phonemes of the speech synthesis model. The input phonemes contain the information of Chinese characters, the structural information of pinyin, and the tone information. The speech synthesis model does not need to train the correspondence between Chinese characters, pinyin, and tones.

Citation Information

Patent Citations

  • Chinese character processing method and apparatus

    CN108549627A

  • Voice synthesis method and system

    CN109767755A

  • Chinese character sequence labeling method and system, computer equipment and readable storage medium

    CN109800440A

  • Voice labeling method and system thereof

    CN110556093A

  • End-to-end speech synthesis method and device and storage medium

    CN110956948A