# US 2025/0144523 A1 · Method and apparatus for processing audio in game, and storage medium and electronic apparatus

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

- Number: US 2025/0144523 A1
- Document ID: US20250144523A1
- Status: Published application
- Kind: A1
- Application number: 18/837,901
- Filed: 2022-09-28
- Published: 2025-05-08
- Earliest claimed: 2022-02-14
- Assignees: Netease (Hangzhou) Network Co., Ltd.
- Applicants: Netease (Hangzhou) Network Co., Ltd.
- Inventors: Mingzhe LIU; Meng LI; Junping WANG; Xiaoping HE; Shengqiang WU; Haiyu ZHANG; Zijian TANG
- Web page: https://patentgrep.com/patent/US20250144523A1

## CPC

- A63F 13/54: involving acoustic signals, e.g. for simulating revolutions per minute [RPM] dependent engine sounds in a driving game or reverberation against a virtual wall
- A63F 2300/6081: generating an output signal, e.g. under timing constraints, for spatialization
- A63F: CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR

## Abstract

A method for processing audio in a game includes: determining a target position of a virtual game character in a game scene; determining, based on the target position, a target spatial region in the game scene; determining a first position of a virtual item in response to determining that the virtual item enters the target spatial region, and a second position of the virtual item in response to determining that the virtual item leaves the target spatial region; and determining, based on the first position and the second position, first audio data corresponding to the virtual item, where the first audio data is used for indicating an orientation change of the virtual item during movement from the first position to the second position.

## Claims

### Claim 1

A method for processing audio in a game, comprising:
determining, by a terminal device, a target position of a virtual game character in a game scene;
determining, by the terminal device based on the target position, a target spatial region in the game scene;
determining, by the terminal device, a first position of a virtual item in response to determining that the virtual item enters the target spatial region, and a second position of the virtual item in response to determining that the virtual item leaves the target spatial region; and
determining, by the terminal device based on the first position and the second position, first audio data corresponding to the virtual item, wherein the first audio data is configured for indicating an orientation change of the virtual item during movement from the first position to the second position.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the determining the first position and the second position of the virtual item comprises:
determining an initial intersection point between a movement trajectory of the virtual item and the target spatial region, and determining a position, in the target spatial region, of the initial intersection point as the first position; and
determining a termination intersection point between the movement trajectory of the virtual item and the target spatial region, and determining a position, in the target spatial region, of the termination intersection point as the second position.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the determining the first audio data corresponding to the virtual item comprises:
determining, in response to the first position and the second position not exceeding a target threshold, the first audio data based on the first position and the second position.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the target spatial region is a spherical spatial region, and the method further comprises:
determining a radius of the spherical spatial region as the target threshold.

### Claim 5 (depends on 4)

The method according to claim 4, further comprising:
adjusting the radius of the spherical spatial region in response to a first adjustment instruction.

### Claim 6 (depends on 1)

The method according to claim 1, further comprising:
obtaining a first distance between a movement trajectory of the virtual item and the virtual game character; wherein
the determining the first audio data corresponding to the virtual item comprises:
determining the first audio data based on the first position, the second position and the first distance.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the determining the first audio data based on the first position, the second position and the first distance comprises:
determining a first audio parameter corresponding to the first position, the second position and the first distance; and
obtaining the first audio data by modulating a first audio sample based on the first audio parameter.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the determining the first audio parameter comprises:
determining, based on a first coordinate of a first type in the first position and a second coordinate of the first type in the second position, a corresponding left right sound image parameter;
determining a corresponding audio filtering parameter based on a third coordinate of a second type in the first position and a fourth coordinate of the second type in the second position; and
determining a volume parameter based on the first distance.

### Claim 9 (depends on 7)

The method according to claim 7, further comprising:
adjusting, in response to a second adjustment instruction, the first audio parameter to a second audio parameter.

### Claim 10 (depends on 9)

The method according to claim 9, further comprising:
triggering the second adjustment instruction in response to the first audio sample being replaced with a second audio sample; and
obtaining second audio data by modulating the second audio sample based on the second audio parameter.

### Claim 11 (depends on 6)

The method according to claim 6, wherein the obtaining the first distance comprises: obtaining, through an audio engine of the terminal device, the first distance sent by a game engine of the terminal device; and
the determining the first audio data based on the first position, the second position and the first distance comprises:
obtaining, through the audio engine, the first position and the second position sent by the game engine, and
determining, through the audio engine, the first audio data based on the first position, the second position and the first distance.

### Claim 12 (depends on 1)

The method according to claim 1, wherein the determining the first audio data corresponding to the virtual item comprises:
sending, through a game engine of the terminal device based on a target interval time, the first position and the second position to an audio engine of the terminal device; and
determining, through the audio engine, the first audio data based on the first position and the second position.

### Claim 13 (depends on 12)

The method according to claim 12, further comprising:
obtaining, through the game engine, at least one third position between the first position and the second position; wherein
the sending, through the game engine based on the target interval time, the first position and the second position to the audio engine comprises: sending, through the game engine, the first position, each of the at least one third position, and the second position in sequence to the audio engine within the target interval time; and
the determining, through the audio engine, the first audio data based on the first position and the second position comprises: determining, through the audio engine, the first audio data based on the first position, each of the at least one third position, and the second position, wherein the first audio data is used for playing audio with a gradually varied play state.

### Claim 14 (depends on 12)

The method according to claim 12, further comprising:
determining, through the game engine, the target interval time, and sending, through the game engine, the target interval time to the audio engine; and
adjusting, through the audio engine, the target interval time in response to a third adjustment instruction, and sending, through the audio engine, the target interval time as adjusted to the game engine.

### Claim 15 (depends on 1)

The method according to claim 1, wherein the determining the target spatial region in the game scene comprises:
determining, in the game scene, a target coordinate system with the target position as an origin;
determining, in the target coordinate system, a spherical region centered on the origin with a second distance as a radius, wherein audio data is allowed to be played in response to a distance between the virtual item and the virtual game character being less than or equal to the second distance; and
determining the spherical region as the target spatial region.

### Claim 16 (depends on 1)

The method according to claim 1, wherein a first coordinate of a first type in the first position and a second coordinate of the first type in the second position are used for indicating a left direction or a right direction of the virtual item relative to the virtual game character;
a third coordinate of a second type in the first position and a fourth coordinate of the second type in the second position are used for indicating a front direction or a rear direction of the virtual item relative to the virtual game character; or
a fifth coordinate of a third type in the first position and a sixth coordinate of the third type in the second position are used for indicating an up direction or a down direction of the virtual item relative to the virtual game character.

### Claim 17

(canceled)

### Claim 18

A non-transitory computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, causes the processor to perform a method for processing audio in a game, wherein the method comprises:
determining a target position of a virtual game character in a game scene;
determining, based on the target position, a target spatial region in the game scene;
determining a first position of a virtual item in response to determining that the virtual item enters the target spatial region, and a second position of the virtual item in response to determining that the virtual item leaves the target spatial region; and
determining, based on the first position and the second position, first audio data corresponding to the virtual item, wherein the first audio data is configured for indicating an orientation change of the virtual item during movement from the first position to the second position.

### Claim 19

An electronic apparatus, comprising a memory and a processor, wherein the memory stores a computer program, and the processor, through executing the computer program, is configured to:
determine a target position of a virtual game character in a game scene;
determine, based on the target position, a target spatial region in the game scene;
determine a first position of a virtual item in response to determining that the virtual item enters the target spatial region, and a second position of the virtual item in response to determining that the virtual item leaves the target spatial region; and
determine, based on the first position and the second position, first audio data corresponding to the virtual item, wherein the first audio data is configured for indicating an orientation change of the virtual item during movement from the first position to the second position.

### Claim 20 (depends on 19)

The electronic apparatus according to claim 19, wherein the processor is specifically configured to:
determine an initial intersection point between a movement trajectory of the virtual item and the target spatial region, and determine a position, in the target spatial region, of the initial intersection point as the first position; and
determine a termination intersection point between the movement trajectory of the virtual item and the target spatial region, and determine a position, in the target spatial region, of the termination intersection point as the second position.

### Claim 21 (depends on 19)

The electronic apparatus according to claim 19, wherein the processor is specifically configured to:
determine, in response to the first position and the second position not exceeding a target threshold, the first audio data based on the first position and the second position.
