# US 2025/0061886 A1 · Method and apparatus for training speech synthesis model, device, storage medium and program product

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0061886 A1
- Document ID: US20250061886A1
- Status: Published application
- Kind: A1
- Application number: 18/937,908
- Filed: 2024-11-05
- Published: 2025-02-20
- Earliest claimed: 2022-11-04
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Shan YANG; Dan SU
- Web page: https://patentgrep.com/patent/US20250061886A1

## CPC

- G10L 13/04: Details of speech synthesis systems, e.g. synthesiser structure or memory management
- G10L 13/08: Text analysis or generation of parameters for speech synthesis out of text, e.g. grapheme to phoneme translation, prosody generation or stress or intonation determination
- G06N 3/045: Combinations of networks
- G10L 19/167: {Audio streaming, i.e. formatting and decoding of an encoded audio signal representation into a data stream for transmission or storage purposes}
- G10L 25/30: using neural networks
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

This application provides a method for training a speech synthesis model, a speech synthesis method, an apparatus, an electronic device, a computer-readable storage medium, and a computer program product. The method for training a speech synthesis model includes: obtaining a text sample and a standard speech corresponding to the text sample; performing speech bit stream prediction on the text sample by using the speech synthesis model, to obtain a speech bit stream corresponding to the text sample; decoding the speech bit stream by using the speech synthesis model, to obtain a synthesized speech corresponding to the text sample; and updating a model parameter of the speech synthesis model based on a difference between the synthesized speech and the standard speech.

## Claims

### Claim 1

A method for training a speech synthesis model, performed by an electronic device, the method comprising:
obtaining a text sample and a standard speech corresponding to the text sample;
performing speech bit stream prediction on the text sample by using the speech synthesis model, to obtain a speech bit stream corresponding to the text sample;
decoding the speech bit stream by using the speech synthesis model, to obtain a synthesized speech corresponding to the text sample; and
updating a model parameter of the speech synthesis model based on a difference between the synthesized speech and the standard speech, the speech synthesis model being configured to output, based on inputted target text, a synthesized speech of the target text.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the performing speech bit stream prediction on the text sample, to obtain a speech bit stream corresponding to the text sample comprises:
performing word segmentation on the text sample to obtain a plurality of word segments, and performing feature extraction on each word segment to obtain a word segment feature of each word segment;
obtaining a phoneme of each piece of text in the text sample, and performing pronunciation duration prediction on each phoneme, to obtain pronunciation duration of each phoneme;
performing, for each word segment, speech bit stream prediction on the word segment based on pronunciation duration of a phoneme of text comprised in the word segment and the word segment feature of the word segment, to obtain a word segment bit stream of the word segment; and
splicing word segment bit streams of the plurality of word segments, to obtain the speech bit stream corresponding to the text sample.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the performing speech bit stream prediction on the text sample by using the speech synthesis model, to obtain a speech bit stream corresponding to the text sample comprises:
performing speech bit stream prediction on the text sample by using an acoustic model in the speech synthesis model, to obtain the speech bit stream corresponding to the text sample, and
wherein the decoding the speech bit stream by using the speech synthesis model, to obtain a synthesized speech corresponding to the text sample comprises:
decoding the speech bit stream by using a speech decoding model in the speech synthesis model, to obtain the synthesized speech corresponding to the text sample.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the speech decoding model comprises a plurality of cascaded upsampling layers, and the decoding the speech bit stream by using a speech decoding model in the speech synthesis model, to obtain the synthesized speech corresponding to the text sample comprises:
performing upsampling on the speech bit stream by using the plurality of cascaded upsampling layers, to obtain the synthesized speech corresponding to the text sample.

### Claim 5 (depends on 3)

The method according to claim 3, wherein before the performing speech bit stream prediction on the text sample by using the speech synthesis model, to obtain a speech bit stream corresponding to the text sample, the method further comprises:
encoding the standard speech, to obtain a standard speech bit stream;
performing speech bit stream prediction on the text sample by using an initial acoustic model, to obtain a target speech bit stream; and
updating a model parameter of the initial acoustic model based on a difference between the standard speech bit stream and the target speech bit stream, and determining an updated initial acoustic model as the acoustic model.

### Claim 6 (depends on 3)

The method according to claim 3, wherein before the decoding the speech bit stream by using the speech synthesis model, to obtain a synthesized speech corresponding to the text sample, the method further comprises:
encoding the standard speech, to obtain a standard speech bit stream;
decoding the standard speech bit stream by using an initial speech decoding model, to obtain a decoded speech; and
updating a model parameter of the initial speech decoding model based on a difference between the standard speech and the decoded speech, and determining an updated initial speech decoding model as the speech decoding model.

### Claim 7 (depends on 6)

The method according to claim 6, wherein after the decoding the standard speech bit stream by using an initial speech decoding model, to obtain a decoded speech, the method further comprises:
determining the decoded speech by using a first speech determining model, to obtain a first determining result, the first determining result being configured for indicating a degree of possibility that the decoded speech is obtained through decoding by using the initial speech decoding model, and
wherein the updating a model parameter of the initial speech decoding model based on a difference between the standard speech and the decoded speech comprises:
determining a value of a first loss function of the initial speech decoding model based on the difference between the standard speech and the decoded speech;
determining a value of a second loss function of the initial speech decoding model based on the first determining result; and
updating the model parameter of the initial speech decoding model based on the value of the first loss function and the value of the second loss function.

### Claim 8 (depends on 6)

The method according to claim 6, wherein the encoding the standard speech, to obtain a standard speech bit stream comprises:
encoding the standard speech by using a speech encoding model, to obtain the standard speech bit stream; and
the method further comprises:
updating a model parameter of the speech encoding model based on the difference between the standard speech and the decoded speech.

### Claim 9 (depends on 5)

The method according to claim 5, wherein the standard speech comprises a plurality of sampling points, and the encoding the standard speech, to obtain a standard speech bit stream comprises:
performing downsampling on each sampling point by using a plurality of cascaded downsampling layers, to obtain a standard speech variable of each sampling point; and
quantizing the standard speech variable of each sampling point, to obtain the standard speech bit stream.

### Claim 10 (depends on 1)

The method according to claim 1, wherein after the decoding the speech bit stream by using the speech synthesis model, to obtain a synthesized speech corresponding to the text sample, the method further comprises:
determining the synthesized speech by using a second speech determining model, to obtain a second determining result,
the second determining result being configured to indicate a degree of possibility that the synthesized speech is obtained through prediction by using the speech synthesis model; and
the updating a model parameter of the speech synthesis model based on a difference between the synthesized speech and the standard speech comprises:
determining a value of a third loss function of the speech synthesis model based on the difference between the synthesized speech and the standard speech;
determining a value of a fourth loss function of the speech synthesis model based on the second determining result; and
updating the model parameter of the speech synthesis model based on the value of the third loss function and the value of the fourth loss function.

### Claim 11 (depends on 10)

The method according to claim 10, wherein for a plurality of second speech determining models, each second speech determining model has a corresponding scale of a speech bit stream determinable by the second speech determining model, and
wherein the determining the synthesized speech by using a second speech determining model, to obtain a second determining result comprises:
performing pooling on the speech bit stream at each scale, to obtain an intermediate speech bit stream at each scale; and
determining, for each second speech determining model of the plurality of second speech determining models, an intermediate speech bit stream at a scale of the second speech determining model by using the second speech determining model, to obtain the second determining result.

### Claim 12

An apparatus for training a speech synthesis model, comprising:
a memory storing a plurality of computer-executable instructions; and
a processor configured to execute the plurality of computer-executable instructions, wherein upon execution of the plurality of computer-executable instructions, the processor is configured to:
obtain a text sample and a standard speech corresponding to the text sample;
perform speech bit stream prediction on the text sample by using the speech synthesis model, to obtain a speech bit stream corresponding to the text sample;
decode the speech bit stream by using the speech synthesis model, to obtain a synthesized speech corresponding to the text sample; and
update a model parameter of the speech synthesis model based on a difference between the synthesized speech and the standard speech, the speech synthesis model being configured to output, based on inputted target text, a synthesized speech of the target text.

### Claim 13 (depends on 12)

The apparatus according to claim 12, wherein in order to performing speech bit stream prediction on the text sample, to obtain the speech bit stream corresponding to the text sample, the processor, upon execution of the plurality of computer-executable instructions, is configured to:
perform word segmentation on the text sample to obtain a plurality of word segments, and perform feature extraction on each word segment to obtain a word segment feature of each word segment;
obtain a phoneme of each piece of text in the text sample, and perform pronunciation duration prediction on each phoneme, to obtain pronunciation duration of each phoneme;
perform, for each word segment, speech bit stream prediction on the word segment based on pronunciation duration of a phoneme of text comprised in the word segment and the word segment feature of the word segment, to obtain a word segment bit stream of the word segment; and
splice word segment bit streams of the plurality of word segments, to obtain the speech bit stream corresponding to the text sample.

### Claim 14 (depends on 12)

The apparatus according to claim 12, wherein in order to perform speech bit stream prediction on the text sample by using the speech synthesis model, to obtain the speech bit stream corresponding to the text sample, the processor, upon execution of the plurality of computer-executable instructions, is configured to:
perform speech bit stream prediction on the text sample by using an acoustic model in the speech synthesis model, to obtain the speech bit stream corresponding to the text sample, and
wherein in order to decode the speech bit stream by using the speech synthesis model, to obtain a synthesized speech corresponding to the text sample, the processor, upon execution of the plurality of computer-executable instructions, is configured to:
decode the speech bit stream by using a speech decoding model in the speech synthesis model, to obtain the synthesized speech corresponding to the text sample.

### Claim 15 (depends on 14)

The apparatus according to claim 14, wherein the speech decoding model comprises a plurality of cascaded upsampling layers, and in order to decode the speech bit stream by using a speech decoding model in the speech synthesis model, to obtain the synthesized speech corresponding to the text sample, the processor, upon execution of the plurality of computer-executable instructions, is configured to:
perform upsampling on the speech bit stream by using the plurality of cascaded upsampling layers, to obtain the synthesized speech corresponding to the text sample.

### Claim 16 (depends on 14)

The apparatus according to claim 14, wherein before performance of the speech bit stream prediction on the text sample by using the speech synthesis model, to obtain a speech bit stream corresponding to the text sample, the processor, upon execution of the plurality of computer-executable instructions, is further configured to:
encode the standard speech, to obtain a standard speech bit stream;
perform speech bit stream prediction on the text sample by using an initial acoustic model, to obtain a target speech bit stream; and
update a model parameter of the initial acoustic model based on a difference between the standard speech bit stream and the target speech bit stream, and determine an updated initial acoustic model as the acoustic model.

### Claim 17

A non-transitory computer-readable storage medium storing a plurality of computer-executable instructions, wherein when executed by a processor, the plurality of computer-executable instructions cause the processor to:
obtain a text sample and a standard speech corresponding to the text sample;
perform speech bit stream prediction on the text sample by using the speech synthesis model, to obtain a speech bit stream corresponding to the text sample;
decode the speech bit stream by using the speech synthesis model, to obtain a synthesized speech corresponding to the text sample; and
update a model parameter of the speech synthesis model based on a difference between the synthesized speech and the standard speech, the speech synthesis model being configured to output, based on inputted target text, a synthesized speech of the target text.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium according to claim 17, wherein in order for the processor to perform speech bit stream prediction on the text sample by using the speech synthesis model, to obtain the speech bit stream corresponding to the text sample, the plurality of computer-executable instructions, when executed by the processor, is configured to cause the processor to:
perform speech bit stream prediction on the text sample by using an acoustic model in the speech synthesis model, to obtain the speech bit stream corresponding to the text sample, and
wherein in order for the processor to decode the speech bit stream by using the speech synthesis model, to obtain a synthesized speech corresponding to the text sample, the plurality of computer-executable instructions, when executed by the processor, is configured to cause the processor to:
decode the speech bit stream by using a speech decoding model in the speech synthesis model, to obtain the synthesized speech corresponding to the text sample.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium according to claim 18, wherein before the decoding of the speech bit stream by using the speech synthesis model, to obtain a synthesized speech corresponding to the text sample, the plurality of computer-executable instructions, when executed by the processor, cause the processor to:
encode the standard speech, to obtain a standard speech bit stream;
decode the standard speech bit stream by using an initial speech decoding model, to obtain a decoded speech; and
update a model parameter of the initial speech decoding model based on a difference between the standard speech and the decoded speech, and determine an updated initial speech decoding model as the speech decoding model.

### Claim 20 (depends on 17)

The non-transitory computer-readable storage medium according to claim 17, wherein after the decoding of the speech bit stream by using the speech synthesis model, to obtain a synthesized speech corresponding to the text sample, the plurality of computer-executable instructions, when executed by the processor, further cause the processor to:
determine the synthesized speech by using a second speech determining model, to obtain a second determining result,
the second determining result being configured to indicate a degree of possibility that the synthesized speech is obtained through prediction by using the speech synthesis model; and
in order for the processor to update the model parameter of the speech synthesis model based on the difference between the synthesized speech and the standard speech, the plurality of computer-executable instructions, when executed by the processor, is configured to cause the processor to:
determine a value of a third loss function of the speech synthesis model based on the difference between the synthesized speech and the standard speech;
determine a value of a fourth loss function of the speech synthesis model based on the second determining result; and
update the model parameter of the speech synthesis model based on the value of the third loss function and the value of the fourth loss function.
