# US 2025/0157457 A1 · Method of training deep learning model, and method of synthesizing speech

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

- Number: US 2025/0157457 A1
- Document ID: US20250157457A1
- Status: Published application
- Kind: A1
- Application number: 19/023,572
- Filed: 2025-01-16
- Published: 2025-05-15
- Earliest claimed: 2024-03-20
- Assignees: Beijing Baidu Netcom Science Technology Co., Ltd.
- Applicants: Beijing Baidu Netcom Science Technology Co., Ltd.
- Inventors: Bin HUANG; Tao SUN; Ce ZHANG; Yongguo KANG; Xiaoyin FU; Lei JIA
- Web page: https://patentgrep.com/patent/US20250157457A1

## CPC

- G10L 13/027: Concept to speech synthesisers; Generation of natural phrases from machine-based concepts (generation of parameters for speech synthesis out of text G10L13/08)
- G10L 13/10: Prosody rules derived from text; Stress or intonation
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING

## Abstract

A method of training a deep learning model and a method of synthesizing a speech are provided, which relate to a field of artificial intelligence technology, in particular to fields of large model, large language model, generative model, deep learning, and speech processing technologies. The method of training a deep learning model includes: determining a reference speech feature of a sample speech, the reference speech feature being associated with a prosodic feature of the sample speech; retrieving a speech library using a sample text corresponding to the sample speech, so as to obtain a pronunciation expression feature of the sample text; inputting the pronunciation expression feature into the deep learning model to obtain an output speech feature; determining a loss of the deep learning model according to the reference speech feature and the output speech feature; and adjusting a parameter of the deep learning model according to the loss.

## Claims

### Claim 1

A method of training a deep learning model, comprising:
determining a reference speech feature of a sample speech, wherein the reference speech feature is associated with a prosodic feature of the sample speech;
retrieving a speech library using a sample text corresponding to the sample speech, so as to obtain a pronunciation expression feature of the sample text;
inputting the pronunciation expression feature into the deep learning model to obtain an output speech feature;
determining a loss of the deep learning model according to the reference speech feature and the output speech feature; and
adjusting a parameter of the deep learning model according to the loss.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the determining a reference speech feature of a sample speech comprises:
determining the prosodic feature and/or a Mel spectrum feature of the sample speech as the reference speech feature,
wherein the prosodic feature is determined according to the sample speech and the sample text, and the Mel spectrum feature of the sample speech is determined according to the prosodic feature.

### Claim 3 (depends on 2)

The method according to claim 2, further comprising:
determining a timbre feature of the sample speech;
determining a text feature of the sample text; and
determining a prosodic feature of the sample text according to the timbre feature and the text feature.

### Claim 4 (depends on 3)

The method according to claim 3, further comprising:
determining the Mel spectrum feature of the sample speech according to the timbre feature, the text feature and the prosodic feature.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the retrieving a speech library using a sample text corresponding to the sample speech so as to obtain a pronunciation expression feature of the sample text comprises:
determining a text feature of the sample text; and
retrieving a speech feature in the speech library by using the text feature, so as to obtain the pronunciation expression feature.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the retrieving a speech feature in the speech library by using the text feature so as to obtain the pronunciation expression feature comprises:
performing a cross-attention processing on the text feature and the speech feature in the speech library to obtain an attention feature;
determining a Mel spectrum feature of the sample text according to the attention feature; and
determining the attention feature and/or the Mel spectrum feature of the sample text as the pronunciation expression feature.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the deep learning model is a large language model, and the inputting the pronunciation expression feature into the deep learning model to obtain an output speech feature comprises:
inputting the pronunciation expression feature as a prompt information into the large language model, so as to prompt the large language model to generate the output speech feature.

### Claim 8 (depends on 1)

A method of synthesizing a speech, comprising:
retrieving, from a speech library, a pronunciation expression feature of a text to be synthesized by using the text to be synthesized;
inputting the pronunciation expression feature into a deep learning model to obtain an output speech feature, wherein the deep learning model is trained according to the method of claim 1; and
generating a synthesized speech for the text to be synthesized according to the output speech feature.

### Claim 9 (depends on 8)

The method according to claim 8, wherein the retrieving, from a speech library, a pronunciation expression feature of a text to be synthesized by using the text to be synthesized comprises:
determining a text feature of the text to be synthesized; and
retrieving a speech feature in the speech library by using the text feature, so as to obtain the pronunciation expression feature.

### Claim 10 (depends on 9)

The method according to claim 9, wherein the retrieving a speech feature in the speech library by using the text feature so as to obtain the pronunciation expression feature comprises:
performing a cross-attention processing on the text feature and the speech feature in the speech library to obtain an attention feature;
determining a Mel spectrum feature of the text to be synthesized according to the attention feature; and
determining the attention feature and/or the Mel spectrum feature of the text to be synthesized as the pronunciation expression feature.

### Claim 11 (depends on 8)

The method according to claim 8, wherein the deep learning model is a large language model, and the inputting the pronunciation expression feature into a deep learning model to obtain an output speech feature comprises:
inputting the pronunciation expression feature as a prompt information into the large language model, so as to prompt the large language model to generate the output speech feature.

### Claim 12 (depends on 8)

The method according to claim 8, wherein the generating a synthesized speech for the text to be synthesized according to the output speech feature comprises:
determining a Mel spectrum feature of the text to be synthesized according to the output speech feature; and
generating the synthesized speech for the text to be synthesized according to the Mel spectrum feature of the text to be synthesized.

### Claim 13

A method of training a deep learning model, comprising:
determining, from a speech library, a sample speech and a sample text corresponding to the sample speech;
retrieving, from remaining speeches other than the sample speech in the speech library, a pronunciation expression feature of the sample text based on the sample text by using the deep learning model;
determining a loss of the deep learning model according to a speech feature of the sample speech and the pronunciation expression feature of the sample text; and
adjusting a parameter of the deep learning model according to the loss.

### Claim 14 (depends on 13)

The method according to claim 13, wherein the retrieving, from remaining speeches other than the sample speech in the speech library, a pronunciation expression feature of the sample text based on the sample text by using the deep learning model comprises:
determining a text feature of the sample text;
performing a cross-attention processing on the text feature and speech features of the remaining speeches other than the sample speech in the speech library to obtain an attention feature;
determining a Mel spectrum feature of the sample text according to the attention feature; and
determining the attention feature and/or the Mel spectrum feature as the pronunciation expression feature.

### Claim 15 (depends on 14)

The method according to claim 14, wherein the pronunciation expression feature is the Mel spectrum feature, and the determining a loss of the deep learning model according to a speech feature of the sample speech and the pronunciation expression feature of the sample text comprises:
determining a Mel spectrum feature of the sample speech; and
determining the loss of the deep learning model according to a difference between the Mel spectrum feature of the sample speech and the pronunciation expression feature.

### Claim 16

An electronic device, comprising:
at least one processor; and
a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions, when executed by the at least one processor, are configured to cause the at least one processor to at least:
determine a reference speech feature of a sample speech, wherein the reference speech feature is associated with a prosodic feature of the sample speech;
retrieve a speech library using a sample text corresponding to the sample speech, so as to obtain a pronunciation expression feature of the sample text;
input the pronunciation expression feature into the deep learning model to obtain an output speech feature;
determine a loss of the deep learning model according to the reference speech feature and the output speech feature; and
adjust a parameter of the deep learning model according to the loss.

### Claim 17 (depends on 8)

An electronic device, comprising:
at least one processor; and
a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions, when executed by the at least one processor, are configured to cause the at least one processor to implement the method of claim 8.

### Claim 18 (depends on 13)

An electronic device, comprising:
at least one processor; and
a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions, when executed by the at least one processor, are configured to cause the at least one processor to implement the method of claim 13.

### Claim 19 (depends on 1)

A non-transitory computer-readable storage medium having computer instructions therein, wherein the computer instructions are configured to cause a computer to implement the method of claim 1.

### Claim 20 (depends on 8)

A non-transitory computer-readable storage medium having computer instructions therein, wherein the computer instructions are configured to cause a computer to implement the method of claim 8.
