IP Library Granted Patent US 11,620,980
Granted Patent B2
US 11,620,980 · App. 17/178,823 · Granted Apr 4, 2023

Text-based speech synthesis method, computer device, and non-transitory computer-readable storage medium

Inventors: Minchuan Chen (Guangdong, CN); Jun Ma (Guangdong, CN); Shaojun Wang (Guangdong, CN)
Assignee: Ping An Technology (Shenzhen) Co., Ltd.
G10L13/08G10L13/047G10L25/18G10L25/24
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,620,980
App. No.
17/178,823
Granted
Apr 4, 2023
Kind
B2
Abstract

A text-based speech synthesis method, a computer device, and a non-transitory computer-readable storage medium are provided. The text-based speech synthesis method includes: a target text to be recognized is obtained; each character in the target text is discretely characterized to generate a feature vector corresponding to each character; the feature vector is input into a pre-trained spectrum conversion model, to obtain a Mel-spectrum corresponding to each character in the target text output by the spectrum conversion model; and the Mel-spectrum is converted to speech to obtain speech corresponding to the target text.

Claims (64)

1. A text-based speech synthesis method, comprising:

obtaining target text to be recognized;

discretely characterizing each character in the target text to generate a feature vector corresponding to each character;

obtaining a preset number of training text and matching speech corresponding to the training text;

discretely characterizing the training text to obtain a feature vector corresponding to each character in the training text;

inputting the feature vector corresponding to each character in the training text into a spectrum conversion model to be trained to obtain a Mel-spectrum output by the spectrum conversion model to be trained,

wherein inputting the feature vector corresponding to each character in the training text into the spectrum conversion model to be trained to obtain the Mel-spectrum output by the spectrum conversion model to be trained comprises:

coding the training text through the spectrum conversion model to be trained to obtain a hidden state sequence corresponding to the training text, wherein the hidden state sequence comprises at least two hidden nodes and is obtained by mapping the feature vectors of each character in the training text one by one;

according to a weight of a hidden node corresponding to each character, weighting the hidden node to obtain a semantic vector corresponding to each character in the training text; and

decoding the semantic vector corresponding to each character, and outputting the Mel-spectrum corresponding to each character;

when an error between the Mel-spectrum output by the spectrum conversion model to be trained and a Mel-spectrum corresponding to the matching speech is less than or equal to a preset threshold, obtaining the trained spectrum conversion model;

inputting the feature vector into a pre-trained spectrum conversion model to obtain a Mel-spectrum corresponding to each character in the target text output by the spectrum conversion model; and

converting the Mel-spectrum into speech to obtain speech corresponding to the target text.

2. The method as claimed in claim 1 , further comprising after inputting the feature vector corresponding to each character in the training text into the spectrum conversion model to be trained to obtain the Mel-spectrum output by the spectrum conversion model to be trained:

when the error between the Mel-spectrum output by the spectrum conversion model to be trained and the Mel-spectrum corresponding to the matching speech is greater than the preset threshold, updating the weight of each hidden node;

weighting the hidden node whose weight is updated to obtain a semantic vector corresponding to each character in the training text;

decoding the semantic vector corresponding to each character, and outputting the Mel-spectrum corresponding to each character; and

when the error between the Mel-spectrum corresponding to each character and the Mel-spectrum corresponding to the matching speech is less than or equal to the preset threshold, stopping the updating the weight of each hidden node, and obtaining the trained spectrum conversion model.

3. The method as claimed in claim 1 , wherein converting the Mel-spectrum into speech to obtain the speech corresponding to the target text comprises:

performing an inverse Fourier transform on the Mel-spectrum through a vocoder to convert the Mel-spectrum into a speech waveform signal in a time domain to obtain the speech.

4. The method as claimed in claim 1 , wherein a number of characters in the training text corresponds to a number of hidden nodes.

5. A computer device, comprising:

a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, causes the processor to implement:

obtaining target text to be recognized;

discretely characterizing each character in the target text to generate a feature vector corresponding to each character;

obtaining a preset number of training text and matching speech corresponding to the training text;

discretely characterizing the training text to obtain a feature vector corresponding to each character in the training text;

inputting the feature vector corresponding to each character in the training text into a spectrum conversion model to be trained to obtain a Mel-spectrum output by the spectrum conversion model to be trained,

wherein inputting the feature vector corresponding to each character in the training text into the spectrum conversion model to be trained to obtain the Mel-spectrum output by the spectrum conversion model to be trained comprises:

coding the training text through the spectrum conversion model to be trained to obtain a hidden state sequence corresponding to the training text, wherein the hidden state sequence comprises at least two hidden nodes and is obtained by mapping the feature vectors of each character in the training text one by one;

according to a weight of a hidden node corresponding to each character, weighting the hidden node to obtain a semantic vector corresponding to each character in the training text; and

decoding the semantic vector corresponding to each character, and outputting the Mel-spectrum corresponding to each character;

when an error between the Mel-spectrum output by the spectrum conversion model to be trained and a Mel-spectrum corresponding to the matching speech is less than or equal to a preset threshold, obtaining the trained spectrum conversion model;

inputting the feature vector into a pre-trained spectrum conversion model to obtain a Mel-spectrum corresponding to each character in the target text output by the spectrum conversion model; and

converting the Mel-spectrum into speech to obtain speech corresponding to the target text.

6. The computer device as claimed in claim 5 , wherein the computer program, when executed by the processor, further causes the processor to implement: after inputting the feature vector corresponding to each character in the training text into the spectrum conversion model to be trained to obtain the Mel-spectrum output by the spectrum conversion model to be trained:

when the error between the Mel-spectrum output by the spectrum conversion model to be trained and the Mel-spectrum corresponding to the matching speech is greater than the preset threshold, updating the weight of each hidden node;

weighting the hidden node whose weight is updated to obtain a semantic vector corresponding to each character in the training text;

decoding the semantic vector corresponding to each character, and outputting the Mel-spectrum corresponding to each character; and

when the error between the Mel-spectrum corresponding to each character and the Mel-spectrum corresponding to the matching speech is less than or equal to the preset threshold, stopping the updating the weight of each hidden node, and obtaining the trained spectrum conversion model.

7. The computer device as claimed in claim 5 , wherein to implement converting the Mel-spectrum into speech to obtain the speech corresponding to the target text, the computer program, when executed by the processor, causes the processor to implement:

performing an inverse Fourier transform on the Mel-spectrum through a vocoder to convert the Mel-spectrum into a speech waveform signal in a time domain to obtain the speech.

8. The computer device as claimed in claim 5 , wherein a number of characters in the training text corresponds to a number of hidden nodes.

9. A non-transitory computer-readable storage medium that stores a computer program, wherein the computer program, when executed by a processor, causes the processor to implement:

obtaining target text to be recognized;

discretely characterizing each character in the target text to generate a feature vector corresponding to each character;

obtaining a preset number of training text and matching speech corresponding to the training text;

discretely characterizing the training text to obtain a feature vector corresponding to each character in the training text;

inputting the feature vector corresponding to each character in the training text into a spectrum conversion model to be trained to obtain a Mel-spectrum output by the spectrum conversion model to be trained,

wherein inputting the feature vector corresponding to each character in the training text into the spectrum conversion model to be trained to obtain the Mel-spectrum output by the spectrum conversion model to be trained comprises:

coding the training text through the spectrum conversion model to be trained to obtain a hidden state sequence corresponding to the training text, wherein the hidden state sequence comprises at least two hidden nodes and is obtained by mapping the feature vectors of each character in the training text one by one;

according to a weight of a hidden node corresponding to each character, weighting the hidden node to obtain a semantic vector corresponding to each character in the training text; and

decoding the semantic vector corresponding to each character, and outputting the Mel-spectrum corresponding to each character;

when an error between the Mel-spectrum output by the spectrum conversion model to be trained and a Mel-spectrum corresponding to the matching speech is less than or equal to a preset threshold, obtaining the trained spectrum conversion model;

inputting the feature vector into a pre-trained spectrum conversion model to obtain a Mel-spectrum corresponding to each character in the target text output by the spectrum conversion model; and

converting the Mel-spectrum into speech to obtain speech corresponding to the target text.

10. The non-transitory computer-readable storage medium as claimed in claim 9 , wherein the computer program, when executed by the processor, further causes the processor to implement: after inputting the feature vector corresponding to each character in the training text into the spectrum conversion model to be trained to obtain the Mel-spectrum output by the spectrum conversion model to be trained:

when the error between the Mel-spectrum output by the spectrum conversion model to be trained and the Mel-spectrum corresponding to the matching speech is greater than the preset threshold, updating the weight of each hidden node;

weighting the hidden node whose weight is updated to obtain a semantic vector corresponding to each character in the training text;

decoding the semantic vector corresponding to each character, and outputting the Mel-spectrum corresponding to each character; and

when the error between the Mel-spectrum corresponding to each character and the Mel-spectrum corresponding to the matching speech is less than or equal to the preset threshold, stopping the updating the weight of each hidden node, and obtaining the trained spectrum conversion model.

11. The non-transitory computer-readable storage medium as claimed in claim 9 , wherein to implement converting the Mel-spectrum into speech to obtain the speech corresponding to the target text, the computer program, when executed by the processor, causes the processor to implement:

performing an inverse Fourier transform on the Mel-spectrum through a vocoder to convert the Mel-spectrum into a speech waveform signal in a time domain to obtain the speech.

12. The non-transitory computer-readable storage medium as claimed in claim 9 , wherein a number of characters in the training text corresponds to a number of hidden nodes.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 18, 2021
From: CHEN, MINCHUAN; MA, JUN; WANG, SHAOJUN
To: PING AN TECHNOLOGY (SHENZHEN) CO., LTD.
Reel/Frame 055321/0674 →
Priority Claims (1)
CN 201910042827.1 · Jan 17, 2019 · national
Continuity (2)
Continuation PCTCN2019117775 · Nov 13, 2019
Related Publication 20210174781A1 · Jun 10, 2021
Cited By (1)
US 12,488,780