# US 2016/0254002 A1 · Method and apparatus for encoding stereo phase parameter

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

- Number: US 2016/0254002 A1
- Document ID: US20160254002A1
- Status: Published application
- Kind: A1
- Application number: 15/154,655
- Filed: 2016-05-13
- Published: 2016-09-01
- Earliest claimed: 2013-11-29
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Xingtao ZHANG; Lei MIAO; Wenhai WU
- Web page: https://patentgrep.com/patent/US20160254002A1

## CPC

- G10L 19/008: Multichannel audio signal coding or decoding using interchannel correlation to reduce redundancy, e.g. joint-stereo, intensity-coding or matrixing
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING

## Abstract

Present disclosure discloses a method and an apparatus for encoding a stereo phase parameter, which relate to the field of information technologies and can improve an effect of stereo audio phase information. The method includes: first, acquiring a global stereo phase parameter of a current frame; then, determining a value of the global stereo phase parameter of the current frame, and adjusting the value of the global stereo phase parameter of the current frame according to a determining result of the value of the global stereo phase parameter of the current frame; and finally, encoding an adjusted value of the global stereo phase parameter of the current frame. The embodiments of the present disclosure are applicable to recovering stereo phase information.

## Claims

### Claim 1

A method for encoding a stereo phase parameter of a stereo audio signal, comprising:
acquiring a global stereo phase parameter of a current frame;
determining a value of the global stereo phase parameter of the current frame;
adjusting the value of the global stereo phase parameter of the current frame according to a determining result of the value of the global stereo phase parameter of the current frame; and
encoding an adjusted value of the global stereo phase parameter of the current frame.

### Claim 2 (depends on 1)

The method for encoding a stereo phase parameter according to claim 1, wherein the value of the global stereo phase parameter of the current frame is adjusted as follows:
acquiring Inter-Channel Time Differences of sub-bands of the current frame;
calculating an average value of absolute values of the Inter-Channel Time Differences of the sub-bands of the current frame according to the Inter-Channel Time Differences of the sub-bands of the current frame; and
adjusting the value of the global stereo phase parameter of the current frame according to the determining result of the value of the global stereo phase parameter of the current frame and the average value of the absolute values of the Inter-Channel Time Differences of the sub-bands of the current frame.

### Claim 3 (depends on 2)

The method for encoding a stereo phase parameter according to claim 2, wherein when the current frame is not the first data frame of a data stream, the method further comprises:
performing inter-frame smoothing processing on the average value of the absolute values of the Inter-Channel Time Differences of the sub-bands of the current frame, and acquiring a smoothed average value of the absolute values of the Inter-Channel Time Differences of the sub-bands of the current frame; and
wherein the value of the global stereo phase parameter of the current frame is adjusted as follows:
adjusting the value of the global stereo phase parameter of the current frame according to the determining result of the value of the global stereo phase parameter of the current frame and the smoothed average value of the absolute values of the Inter-Channel Time Differences of the sub-bands of the current frame.

### Claim 4 (depends on 3)

The method for encoding a stereo phase parameter according to claim 3, wherein the global stereo phase parameter comprises a group delay (G_) parameter; and
wherein the value of the global stereo phase parameter of the current frame is adjusted according to the determining result of the value of the global stereo phase parameter of the current frame and the smoothed average value of the absolute values of the Inter-Channel Time Differences of the sub-bands of the current frame as follows:
adjusting the value of the G_parameter of the current frame according to the smoothed average value of the absolute values of the Inter-Channel Time Differences of the sub-bands of the current frame when the determining result of the value of the global stereo phase parameter of the current frame is that a value of the G_ITD parameter of the current frame is not 0.

### Claim 5 (depends on 4)

The method for encoding a stereo phase parameter according to claim 4, wherein the value of the G_ITD parameter of the current frame is adjusted according to the smoothed average value of the absolute values of the Inter-Channel Time Differences of the sub-bands of the current frame as follows:
adjusting an absolute value of the value of the G_ITD parameter of the current frame according to a formula |G_ITD′|=fac1×|G_ITD|+fac2×ITD_sm, wherein |G_ITD′| is an adjusted absolute value of the value of the G_ITD parameter, |G_ITD| is the absolute value of the value of the G_ITD parameter, ITD_sm is the smoothed average value of the absolute values of the Inter-Channel Time Differences of the sub-bands of the current frame, and fac1 and fac2 are smoothing factors, wherein fac1>0, fac2>0, and fac1+fac2=1.

### Claim 6 (depends on 5)

The method for encoding a stereo phase parameter according to claim 5, wherein fac1=0.5.

### Claim 7 (depends on 3)

The method for encoding a stereo phase parameter according to claim 3, wherein the global stereo phase parameter comprises a group delay (G_ITD) parameter and a group phase (G_IPD) parameter; and
wherein the value of the global stereo phase parameter of the current frame is adjusted according to the determining result of the value of the global stereo phase parameter of the current frame and the smoothed average value of the absolute values of the Inter-Channel Time Differences of the sub-bands of the current frame as follows:
adjusting a value of the G_IPD parameter of the current frame according to the smoothed average value of the absolute values of the Inter-Channel Time Differences of the sub-bands of the current frame when the determining result of the value of the global stereo phase parameter of the current frame is that the value of the G_ITD parameter is 0.

### Claim 8 (depends on 7)

The method for encoding a stereo phase parameter according to claim 7, wherein:
when the determining result of the value of the global stereo phase parameter of the current frame is that the value of the G_ITD parameter of the current frame is 0 and the value of the G_IPD parameter of the current frame is not 0, then adjusting the value of the G_IPD parameter of the current frame according to the smoothed average value of the absolute values of the Inter-Channel Time Differences of the sub-bands of the current frame as follows:
adjusting an absolute value of the value of the G_IPD parameter according to a formula |G_IPD′|=fac3×|G_IPD|+fac4×IPD_sm, wherein |G_IPD′| is an adjusted absolute value of the value of the G_IPD parameter; |G_IPD| is the absolute value of the value of the G_IPD parameter; fac3 and fac4 are smoothing factors, wherein fac3>0, fac4>0, and fac3+fac4=1; and
IPD_sm
=
2


π


K
×
ITD_sm
FFT_LEN
,
wherein FFT_LEN is a transform length, K is a frequency bin value, ITD_sm is the smoothed average value of the absolute values of the Inter-Channel Time Differences of the sub-bands of the current frame, and IPD_sm is a smoothed average value of absolute values of inter-channel phase differences of the sub-bands of the current frame.

### Claim 9 (depends on 8)

The method for encoding a stereo phase parameter according to claim 8, wherein fac3=0.75.

### Claim 10 (depends on 7)

The method for encoding a stereo phase parameter according to claim 7, wherein:
when the determining result of the value of the global stereo phase parameter of the current frame is that the value of the G_ITD parameter of the current frame is 0 and the value of the G_IPD parameter of the current frame is 0, then adjusting the value of the G_IPD parameter of the current frame according to the smoothed average value of the absolute values of the Inter-Channel Time Differences of the sub-bands of the current frame as follows:
using a smoothed average value of absolute values of inter-channel phase differences of the sub-bands of the current frame as an absolute value of the value of G_IPD parameter of the current frame, and using a symbol of a G_IPD parameter of a previous frame of the current frame as a symbol of the G_IPD parameter of the current frame.

### Claim 11 (depends on 3)

The method for encoding a stereo phase parameter according to claim 3, wherein the performing is performed as follows:
performing inter-frame smoothing processing according to a formula ITD_sm(k)=fac5×ITD_sm(k−1)+fac6×ITD, wherein ITD_sm(k) is the smoothed average value of the absolute values of the Inter-Channel Time Differences of the sub-bands of the current frame, ITD_sm(k−1) is a smoothed average value of absolute values of Inter-Channel Time Differences of sub-bands of the previous frame of the current frame, and fac5 and fac6 are smoothing factors, wherein fac5>0, fac6>0, and fac5+fac6 =1.

### Claim 12 (depends on 11)

The method for encoding a stereo phase parameter according to claim 11, wherein fac5=0.9844.

### Claim 13

An apparatus for encoding a stereo phase parameter of a stereo audio signal, comprising:
a memory for storing computer executable instructions; and
a processor operatively coupled to the memory, the processor being configured to execute the computer-executable instructions to:
acquire a global stereo phase parameter of a current frame;
determine a value of the acquired global stereo phase parameter of the current;
adjust the value of the global stereo phase parameter of the current frame according to a determining result of the value of the global stereo phase parameter of the current frame; and
encode an adjusted value of the global stereo phase parameter of the current frame.

### Claim 14 (depends on 13)

The apparatus for encoding a stereo phase parameter according to claim 13, wherein the processor is further configured to:
acquire Inter-Channel Time Differences of sub-bands of the current frame;
calculate an average value of absolute values of the Inter-Channel Time Differences of the sub-bands of the current frame according to the Inter-Channel Time Differences of the sub-bands of the current frame; and
adjust the value of the global stereo phase parameter of the current frame according to the determining result of the value of the global stereo phase parameter of the current frame and the average value of the absolute values of the Inter-Channel Time Differences of the sub-bands of the current frame.

### Claim 15 (depends on 14)

The apparatus for encoding a stereo phase parameter according to claim 14, wherein the processor is further configured to:
perform inter-frame smoothing processing on the average value of the absolute values of the Inter-Channel Time Differences of the sub-bands of the current frame;
acquire an average value of the absolute values of the Inter-Channel Time Differences of the sub-bands of the current frame; and
adjust the value of the global stereo phase parameter of the current frame according to the determining result of the value of the global stereo phase parameter of the current frame and the smoothed average value of the absolute values of the Inter-Channel Time Differences of the sub-bands of the current frame.

### Claim 16 (depends on 15)

The apparatus for encoding a stereo phase parameter according to claim 15, wherein the global stereo phase parameter comprises a group delay (G_ITD) parameter; and
the processor is further configured to adjust the value of the G_ITD parameter of the current frame according to the smoothed average value of the absolute values of the Inter-Channel Time Differences of the sub-bands of the current frame when the determining result of the value of the global stereo phase parameter of the current frame is that a value of the G_ITD parameter is not 0.

### Claim 17 (depends on 16)

The apparatus for encoding a stereo phase parameter according to claim 16, wherein the processor is further configured to adjust an absolute value of the value of the G_ITD parameter of the current frame according to a formula |G_ITD′|=fac1×|G_ITD|+fac2×ITD_sm, wherein |G_ITD′| is an adjusted absolute value of the value of the G_ITD parameter, |G_ITD| is the absolute value of the value of the G_ITD parameter, ITD_sm is the smoothed average value of the absolute values of the Inter-Channel Time Differences of the sub-bands of the current frame, and fac1 and fac2 are smoothing factors fac1>0, fac2>0, and fac1+fac2=1.

### Claim 18 (depends on 17)

The apparatus for encoding a stereo phase parameter according to claim 17, wherein fac1=0.5.

### Claim 19 (depends on 15)

The apparatus for encoding a stereo phase parameter according to claim 15, wherein the global stereo phase parameter comprises a group delay (G_) parameter and a group phase (G_IPD) parameter; and
the processor is further configured to adjust a value of the G_IPD parameter of the current frame according to the smoothed average value of the absolute values of the Inter-Channel Time Differences of the sub-bands of the current frame when the determining result of the value of the global stereo phase parameter of the current frame is that the value of the G_ITD parameter is 0.

### Claim 20 (depends on 19)

The apparatus for encoding a stereo phase parameter according to claim 19, wherein the processor is further configured to adjust an absolute value of the value of the G_IPD parameter according to a formula |G_IPD′|=fac3×|G_IPD|+fac4×IPD_sm when the determining result of the value of the global stereo phase parameter of the current frame is that the value of the G_ITD parameter is 0 and the value of the G_IPD parameter of the current frame is not 0, wherein |G_IPD′═ is an adjusted absolute value of the value of the G_IPD parameter; |G_IPD| is an absolute value of the value of the G_IPD parameter; fac3 and fac4 are smoothing factors, wherein fac3>0, fac4>0, and fac3+fac4=1. and
IPD_sm
=
2


π


K
×
ITD_sm
FFT_LEN
,
wherein FFT_LEN is a transform length, K is a frequency bin value, ITD_sm is the smoothed average value of the absolute values of the Inter-Channel Time Differences of the sub-bands of the current frame, and IPD_sm is a smoothed average value of absolute values of inter-channel phase differences of the sub-bands of the current frame.

### Claim 21 (depends on 20)

The apparatus for encoding a stereo phase parameter according to claim 20, wherein fac3=0.75.

### Claim 22 (depends on 19)

The apparatus for encoding a stereo phase parameter according to claim 19, wherein the processor is further configured to:
use an average value of absolute values of inter-channel phase differences of the sub-bands of the current frame, as an absolute value of the value of G_IPD parameter of the current frame when the determining result of the value of the global stereo phase parameter of the current frame is that the value of the G_ITD parameter is 0 and the value of the G_IPD parameter of the current frame is 0, and use a symbol of a G_IPD parameter of a previous frame of the current frame as a symbol of the G_IPD parameter of the current frame.

### Claim 23 (depends on 15)

The apparatus for encoding a stereo phase parameter according to claim 15, wherein the processor is further configured to perform inter-frame smoothing processing according to a formula ITD_sm(k)=fac5×ITD_sm(k−1)+fac6×ITD, wherein ITD_sm(k) is the smoothed average value of the absolute values of the Inter-Channel Time Differences of the sub-bands of the current frame, ITD_sm(k−1) is a smoothed average value of absolute values of Inter-Channel Time Differences of sub-bands of the previous frame of the current frame, and fac5 and fac6 are smoothing factors, wherein fac5>0, fac6>0, and fac5+fac6=1.

### Claim 24 (depends on 23)

The apparatus for encoding a stereo phase parameter according to claim 23, wherein fac5=09844.
