# US 2026/0065891 A1 · Audio generation method and apparatus based on large language model, electronic device, and storage medium

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

- Number: US 2026/0065891 A1
- Document ID: US20260065891A1
- Status: Published application
- Kind: A1
- Application number: 18/888,701
- Filed: 2024-09-18
- Published: 2026-03-05
- Earliest claimed: 2024-08-29
- Assignees: Beijing Baidu Netcom Science Technology Co., Ltd.
- Applicants: Beijing Baidu Netcom Science Technology Co., Ltd.
- Inventors: Huihui HE; Leyi WANG; Xiaomei YANG
- Web page: https://patentgrep.com/patent/US20260065891A1

## 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/033: Voice editing, e.g. manipulating the voice of the synthesiser
- 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
- G10L 13/047: Architecture of speech synthesisers
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING

## Abstract

A method of audio generation based on a large language model is disclosed, which involves the fields of artificial intelligence such as large language models, natural language processing, deep learning, and audio generation. The method of audio generation based on a large language model comprises: acquiring a text to be processed; parsing the text to be processed using the large language model to obtain role information and emotional information corresponding to the text to be processed; obtaining a target reference text and a target reference audio according to the role information and the emotional information; and generating a target audio corresponding to the text to be processed according to the text to be processed, the target reference text, and the target reference audio.

## Claims

### Claim 1

A method of audio generation based on a large language model, comprising:
acquiring a text to be processed;
parsing the text to be processed using the large language model to obtain role information and emotional information corresponding to the text to be processed;
obtaining a target reference text and a target reference audio according to the role information and the emotional information; and
generating a target audio corresponding to the text to be processed according to the text to be processed, the target reference text, and the target reference audio.

### Claim 2 (depends on 1)

The method of claim 1, wherein the obtaining the target reference text and the target reference audio according to the role information and the emotional information comprises:
selecting a dataset corresponding to the role information from a plurality of datasets as a target dataset;
selecting the reference text and the reference audio corresponding to the emotional information from the target dataset as the target reference text and the target reference audio.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
in response to determining that there is no dataset corresponding to the role information, acquiring role annotation information output by the large language model;
selecting a dataset corresponding to the role annotation information from the plurality of datasets as the target dataset.

### Claim 4 (depends on 1)

The method of claim 1, wherein the generating the target audio corresponding to the text to be processed according to the text to be processed, the target reference text, and the target reference audio comprises:
obtaining a fusion feature vector of at least one phoneme in a text according to a phoneme feature vector of the at least one phoneme and a semantic feature vector of a character to which the at least one phoneme belongs, wherein the text includes the text to be processed and the target reference text;
encoding the target reference audio to obtain at least one reference audio feature vector;
obtaining at least one predicted audio feature vector according to the fusion feature vector of the at least one phoneme and the reference audio feature vector of the at least one phoneme;
decoding the at least one predicted audio feature vector to obtain the target audio corresponding to the text to be processed.

### Claim 5 (depends on 4)

The method of claim 4, wherein the encoding the target reference audio to obtain the at least one reference audio feature vector comprises:
encoding the target reference audio to obtain at least one reference audio representation;
performing an embedding processing on the at least one reference audio representation to obtain the at least one reference audio feature vector.

### Claim 6 (depends on 4)

The method of claim 4, wherein the obtaining the at least one predicted audio feature vector according to the fusion feature vector of the at least one phoneme and the reference audio feature vector of the at least one phoneme comprises:
fusing the fusion feature vector of the at least one phoneme with the reference audio feature vector of the at least one phoneme to obtain at least one feature vector to be processed;
encoding the at least one feature vector to be processed to obtain the at least one predicted audio feature vector.

### Claim 7 (depends on 4)

The method of claim 4, wherein the decoding the at least one predicted audio feature vector comprises:
decoding the at least one predicted audio feature vector according to a decoding method corresponding to an encoding method of the target reference audio.

### Claim 8

An electronic device, comprising:
at least one processor; and
a memory communicatively connected with the at least one processor;
wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform a method of audio generation based on a large language model, wherein the method comprises:
acquiring a text to be processed;
parsing the text to be processed using the large language model to obtain role information and emotional information corresponding to the text to be processed;
obtaining a target reference text and a target reference audio according to the role information and the emotional information; and
generating a target audio corresponding to the text to be processed according to the text to be processed, the target reference text, and the target reference audio.

### Claim 9 (depends on 8)

The electronic device of claim 8, wherein the obtaining the target reference text and the target reference audio according to the role information and the emotional information comprises:
selecting a dataset corresponding to the role information from a plurality of datasets as a target dataset;
selecting the reference text and the reference audio corresponding to the emotional information from the target dataset as the target reference text and the target reference audio.

### Claim 10 (depends on 9)

The electronic device of claim 9, further comprising:
in response to determining that there is no dataset corresponding to the role information, acquiring role annotation information output by the large language model;
selecting a dataset corresponding to the role annotation information from the plurality of datasets as the target dataset.

### Claim 11 (depends on 8)

The electronic device of claim 8, wherein the generating the target audio corresponding to the text to be processed according to the text to be processed, the target reference text, and the target reference audio comprises:
obtaining a fusion feature vector of at least one phoneme in a text according to the phoneme feature vector of the at least one phoneme and a semantic feature vector of a character to which the at least one phoneme belongs, wherein the text includes the text to be processed and the target reference text;
encoding the target reference audio to obtain at least one reference audio feature vector;
obtaining at least one predicted audio feature vector according to the fusion feature vector of the at least one phoneme and the reference audio feature vector of the at least one phoneme; and
decoding the at least one predicted audio feature vector to obtain the target audio corresponding to the text to be processed.

### Claim 12 (depends on 11)

The electronic device of claim 11, wherein the encoding the target reference audio to obtain the at least one reference audio feature vector comprises:
encoding the target reference audio to obtain at least one reference audio representation;
performing an embedding processing on the at least one reference audio representation to obtain the at least one reference audio feature vector.

### Claim 13 (depends on 11)

The electronic device of claim 11, wherein the obtaining the at least one predicted audio feature vector according to the fusion feature vector of the at least one phoneme and the reference audio feature vector of the at least one phoneme comprises:
fusing the fusion feature vector of the at least one phoneme with the reference audio feature vector of the at least one phoneme to obtain at least one feature vector to be processed;
encoding the at least one feature vector to obtain the at least one predicted audio feature vector to be processed.

### Claim 14 (depends on 11)

The electronic device of claim 11, wherein the decoding the at least one predicted audio feature vector comprises:
decoding the at least one predicted audio feature vector according to a decoding method corresponding to an encoding method of the target reference audio.

### Claim 15

A non-transitory computer readable storage medium with computer instructions stored thereon, wherein the computer instructions are used for causing a method of audio generation based on a large language model, wherein the method comprises:
acquiring a text to be processed;
parsing the text to be processed using the large language model to obtain role information and emotional information corresponding to the text to be processed;
obtaining a target reference text and a target reference audio according to the role information and the emotional information; and
generating a target audio corresponding to the text to be processed according to the text to be processed, the target reference text, and the target reference audio.

### Claim 16 (depends on 15)

The non-transitory computer readable storage medium of claim 15, wherein the obtaining the target reference text and the target reference audio according to the role information and the emotional information comprises:
selecting a dataset corresponding to the role information from a plurality of datasets as a target dataset;
selecting the reference text and the reference audio corresponding to the emotional information from the target dataset as the target reference text and the target reference audio.

### Claim 17 (depends on 16)

The non-transitory computer readable storage medium of claim 16, further comprising:
in response to determining that there is no dataset corresponding to the role information, acquiring role annotation information output by the large language model;
selecting a dataset corresponding to the role annotation information from the plurality of datasets as the target dataset.

### Claim 18 (depends on 15)

The non-transitory computer readable storage medium of claim 15, wherein the generating the target audio corresponding to the text to be processed according to the text to be processed, the target reference text, and the target reference audio comprises:
obtaining a fusion feature vector of at least one phoneme in a text according to a phoneme feature vector of the at least one phoneme and a semantic feature vector of a character to which the at least one phoneme belongs, wherein the text includes the text to be processed and the target reference text;
encoding the target reference audio to obtain at least one reference audio feature vector;
obtaining at least one predicted audio feature vector according to the fusion feature vector of the at least one phoneme and the reference audio feature vector of the at least one phoneme;
decoding the at least one predicted audio feature vector to obtain the target audio corresponding to the text to be processed.

### Claim 19 (depends on 18)

The non-transitory computer readable storage medium of claim 18, wherein the encoding the target reference audio to obtain the at least one reference audio feature vector comprises:
encoding the target reference audio to obtain at least one reference audio representation;
performing an embedding processing on the at least one reference audio representation to obtain the at least one reference audio feature vector.

### Claim 20 (depends on 18)

The non-transitory computer readable storage medium of claim 18, wherein the obtaining the at least one predicted audio feature vector according to the fusion feature vector of the at least one phoneme and the reference audio feature vector of the at least one phoneme comprises:
fusing the fusion feature vector of the at least one phoneme with the reference audio feature vector of the at least one phoneme to obtain at least one feature vector to be processed;
encoding the at least one feature vector to be processed to obtain the at least one predicted audio feature vector.
