Patent ID: 11917391
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H  G | IPC G  H

Claim 0:
1. An audio signal processing method comprising:
obtaining a current position relationship between a sound source and a listener at a current moment;
obtaining a current audio rendering function based on the current position relationship;
determining that the current position relationship is different from a previous position relationship that has been stored, wherein the previous position relationship is between the sound source at a previous moment and the listener;
adjusting an initial gain of the current audio rendering function based on the current position relationship and the previous position relationship to obtain an adjusted gain of the current audio rendering function, wherein the adjusted gain comprises an azimuthal gain that is a function of azimuthal angles with respect to a forward direction of the listener;
obtaining an adjusted audio rendering function based on the current audio rendering function and the adjusted gain; and
obtaining a current output signal based on a current input signal and the adjusted audio rendering function, wherein the current input signal is originated from the sound source, and the current output signal is for playing to the listener,
wherein the current position relationship comprises a current distance between the sound source and the listener, and a current azimuth of the sound source relative to the listener, and the previous position relationship comprises a previous distance between the sound source and the listener, and a previous azimuth of the sound source relative to the listener,
wherein the current distance is different from the previous distance, and the step of adjusting the initial gain of the current audio rendering function to obtain the adjusted gain comprises:
adjusting the initial gain based on the current distance and the previous distance to obtain the adjusted gain, comprising:
when the previous distance is greater than the current distance, obtaining the adjusted energy gain by using the following formula: G2(θ)=G1(θ)×(1+Δr), wherein G2(θ) represents the adjusted energy gain, G1(θ) represents the initial gain, θ is equal to θ1, θ1 represents the previous azimuth, and Δr represents an absolute value of the difference between the current distance and the previous distance, or Δr represents a difference obtained by subtracting the current distance from the previous distance; and
when the previous distance is less than the current distance, obtaining the adjusted energy gain by using the following formula: G2(θ)=G1(θ)/(1+Δr), wherein θ is equal to θ1, θ1 represents the previous azimuth, and Δr represents an absolute value of a difference between the previous distance and the current distance, or Δr represents a difference obtained by subtracting the previous distance from the current distance.