# US 2023/0402047 A1 · Audio processing method and apparatus, electronic device, and computer-readable storage medium

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

- Number: US 2023/0402047 A1
- Document ID: US20230402047A1
- Status: Published application
- Kind: A1
- Application number: 18/034,207
- Filed: 2021-09-22
- Published: 2023-12-14
- Earliest claimed: 2020-10-28
- Assignees: Tencent Music Entertainment Technology (Shenzhen) Co., Ltd.
- Applicants: Tencent Music Entertainment Technology (Shenzhen) Co., Ltd.
- Inventors: Dong Xu
- Web page: https://patentgrep.com/patent/US20230402047A1

## CPC

- G10L 21/003: Changing voice quality, e.g. pitch or formants
- G10L 21/02: Speech enhancement, e.g. noise reduction or echo cancellation (reducing echo effects in line transmission systems H04B3/20; echo suppression in hands-free telephones H04M9/08)
- G10H 1/10: for obtaining chorus, celeste or ensemble effects (continuous modulation G10H1/043)
- G10H 1/38: Chord
- G10H 2210/066: for pitch analysis as part of wider processing for musical purposes, e.g. transcription, musical performance evaluation; Pitch recognition, e.g. in polyphonic sounds; Estimation or use of missing fundamental
- G10H 2210/261: Duet, i.e. automatic generation of a second voice, descant or counter melody, e.g. of a second harmonically interdependent voice by a single voice harmonizer or automatic composition algorithm, e.g. for fugue, canon or round composition, which may be substantially independent in contour and rhythm
- G10L 25/18: the extracted parameters being spectral information of each sub-band
- G10L 25/90: Pitch determination of speech signals
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10H: ELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE

## Abstract

A method and apparatus for audio processing, an electronic device, and a computer-readable storage medium are provided in the present disclosure. The method includes: obtaining a target dry audio, and determining a beginning and ending time of each lyric word in the target dry audio; detecting a pitch of the target dry audio and a fundamental frequency during the beginning and ending time, and determining a current pitch name of the lyric word based on the fundamental frequency and the pitch; tuning up the lyric word by a first key interval to obtain a first harmony, and tuning up the lyric word by different second key intervals respectively to obtain different second harmonies; synthesizing the first harmony and the second harmonies to form a multi-track harmony; and mixing the multi-track harmony with the target dry audio to obtain a synthesized dry audio.

## Claims

### Claim 1

A method for audio processing, comprising:
obtaining a target dry audio, and determining a beginning and ending time of each lyric word in the target dry audio;
detecting a pitch of the target dry audio and a fundamental frequency during the beginning and ending time, and determining a current pitch name of the lyric word based on the fundamental frequency and the pitch;
tuning up the lyric word by a first key interval to obtain a first harmony, and tuning up the lyric word by different second key intervals respectively to obtain different second harmonies, wherein
the first key interval indicates a positive integer number of keys,
each of the second key intervals is a sum of the first key interval and a third key interval, and different ones of the second key intervals are determined from different third key intervals, and
the first key interval is different form the third key interval by one order of magnitude;
synthesizing the first harmony and the second harmonies to form a multi-track harmony; and
mixing the multi-track harmony with the target dry audio to obtain a synthesized dry audio.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the detecting a pitch of the target dry audio comprises:
extracting an audio feature from the target dry audio, wherein the audio feature comprises a fundamental frequency feature and spectral information; and
inputting the audio feature to a pitch classifier to obtain the pitch of the target dry audio.

### Claim 3 (depends on 1)

The method according to claim 1, wherein
the method further comprises
tuning up the target dry audio by the third key intervals respectively to obtain third harmonies; and
the synthesizing the first harmony and the second harmonies to form a multi-track harmony comprises
synthesizing the third harmonies, the first harmony, and the second harmonies to form a multi-track harmony.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the synthesizing the third harmonies, the first harmony, and the second harmonies to form a multi-track harmony comprises:
determining volumes and delays of the third harmonies, the first harmony, and the second harmonies, respectively; and
synthesizing the third harmonies, the first harmony, and the second harmonies based on the volumes and delays corresponding to the third harmonies, the first harmony, and the second harmonies, to obtain the multi-track harmony.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the method further comprises:
adding a sound effect to the synthesized dry audio by using a sound effect device;
obtaining an accompaniment audio corresponding to the synthesized dry audio, and
superimposing, in a preset manner, the accompaniment audio with the synthesized dry audio added with the sound effect, to obtain a synthesized audio.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the superimposing the accompaniment audio with the synthesized dry audio added with the sound effect in a preset manner to obtain a synthesized audio comprises:
performing a power normalization on the accompaniment audio to obtain an intermediate accompaniment audio, and performing a power normalization on the synthesized dry audio added with the sound effect to obtain an intermediate dry audio; and
superimposing, based on a preset energy ratio, the intermediate accompaniment audio with the intermediate dry audio, to obtain the synthesized audio.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the tuning up the lyric word by a first key interval to obtain a first harmony, and tuning up the lyric word by different second key intervals respectively to obtain different second harmonies comprises:
determining a preset pitch name interval, and tuning up the lyric word by the preset pitch name interval to obtain the first harmony, wherein adjacent pitch names are different from each other by one or two first key intervals; and
tuning up the first harmony by the third key intervals respectively to obtain the second harmonies.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the tuning up the lyric word by the preset pitch name interval to obtain the first harmony comprises:
determining, based on the current pitch name and the preset pitch name interval, a target pitch name of the lyric word after tuned up by the preset pitch name interval;
determining a quantity of the first key intervals corresponding to the lyric word based on a key interval between the target pitch name of the lyric word and the current pitch name of the lyric word; and
tuning up the lyric word by the quantity of the first key intervals to obtain the first harmony.

### Claim 9

(canceled)

### Claim 10

An electronic device, comprising:
a memory storing a computer program; and
a processor, wherein
the processor, when executing the computer program, is configured to:
obtain a target dry audio, and determine a beginning and ending time of each lyric word in the target dry audio;
detect a pitch of the target dry audio and a fundamental frequency during the beginning and ending time, and determine a current pitch name of the lyric word based on the fundamental frequency and the pitch;
tune up the lyric word by a first key interval to obtain a first harmony, and tune up the lyric word by different second key intervals respectively to obtain different second harmonies, wherein
the first key interval indicates a positive integer number of keys,
each of the second key intervals is a sum of the first key interval and a third key interval, and different ones of the second key intervals are determined from different third key intervals, and
the first key interval is different form the third key interval by one order of magnitude; and
synthesize the first harmony and the second harmonies to form a multi-track harmony; and mix the multi-track harmony with the target dry audio to obtain a synthesized dry audio.

### Claim 11

A computer-readable storage medium, wherein
the computer-readable storage medium stores a computer program, and
the computer program, when executed by a processor, is configured to:
obtain a target dry audio, and determine a beginning and ending time of each lyric word in the target dry audio;
detect a pitch of the target dry audio and a fundamental frequency during the beginning and ending time, and determine a current pitch name of the lyric word based on the fundamental frequency and the pitch;
tune up the lyric word by a first key interval to obtain a first harmony, and tune up the lyric word by different second key intervals respectively to obtain different second harmonies, wherein
the first key interval indicates a positive integer number of keys,
each of the second key intervals is a sum of the first key interval and a third key interval, and different ones of the second key intervals are determined from different third key intervals, and
the first key interval is different form the third key interval by one order of magnitude; and
synthesize the first harmony and the second harmonies to form a multi-track harmony; and mix the multi-track harmony with the target dry audio to obtain a synthesized dry audio.

### Claim 12 (depends on 10)

The electronic device according to claim 10, further configured to:
extract an audio feature from the target dry audio, wherein the audio feature comprises a fundamental frequency feature and spectral information; and
input the audio feature to a pitch classifier to obtain the pitch of the target dry audio.

### Claim 13 (depends on 10)

The electronic device according to claim 10, further configured to:
tune up the target dry audio by the third key intervals respectively to obtain third harmonies, after a current pitch name of the lyric word is determined based on the fundamental frequency and the pitch; and
synthesize the third harmonies, the first harmony, and the second harmonies to form a multi-track harmony.

### Claim 14 (depends on 13)

The electronic device according to claim 13, further configured to:
determine volumes and delays of the third harmonies, the first harmony, and the second harmonies, respectively; and
synthesize the third harmonies, the first harmony, and the second harmonies based on the volumes and delays corresponding to the third harmonies, the first harmony, and the second harmonies, to obtain the multi-track harmony.

### Claim 15 (depends on 10)

The electronic device according to claim 10, further configured to:
add a sound effect to the synthesized dry audio by using a sound effect device; and
obtain an accompaniment audio corresponding to the synthesized dry audio, and superimpose the accompaniment audio with the synthesized dry audio added with the sound effect in a preset manner to obtain a synthesized audio.

### Claim 16 (depends on 15)

The electronic device according to claim 15, further configured to:
perform a power normalization on the accompaniment audio to obtain an intermediate accompaniment audio, and perform a power normalization on the synthesized dry audio added with the sound effect to obtain an intermediate dry audio; and
superimpose, based on a preset energy ratio, the intermediate accompaniment audio with the intermediate dry audio, to obtain the synthesized audio.

### Claim 17 (depends on 10)

The electronic device according to claim 10, further configured to:
determine a preset pitch name interval, and tune up the lyric word by the preset pitch name interval to obtain the first harmony, wherein adjacent pitch names are different from each other by one or two first key intervals; and
tune up the first harmony by the third key intervals respectively to obtain the second harmonies.

### Claim 18 (depends on 17)

The electronic device according to claim 17, further configured to:
determine, based on the current pitch name and the preset pitch name interval, a target pitch name of the lyric word after tuned up by the preset pitch name interval;
determine a quantity of the first key intervals corresponding to the lyric word based on a key interval between the target pitch name of the lyric word and the current pitch name of the lyric word; and
tune up the lyric word by the quantity of the first key intervals to obtain the first harmony.
