5 Homing procedure

06.733GPPAdaptive Multi Rate (AMR) speechANSI-C code for the AMR speech codecTS

The principles of the homing procedures are described in GSM 06.90 [3]. This specification only includes a detailed description of the 8 decoder homing frames. For each AMR codec mode, the corresponding decoder homing frame has a fixed set of speech parameters shown in tables 9a-9h. The bit allocation within these parameters is identical to the corresponding bit allocation of the source encoder output parameters given in GSM 06.90 [3].

In the following tables, the following naming convention is used for the individual parameters. Letters in italics indicate numbers.

LPC_n index of nth LSF submatrix

LTP-LAG m adaptive codebook index for subframe m

LTP-GAIN m adaptive codebook gain index in subframe m

FCB-GAIN m fixed codebook gain index in subframe m

GAIN_VQ m codebook gain VQ index in subframe m (subframe m and m+1 for MR475)

POS m_n position index of nth pulse in subframe m

POS m_n_k position index of nth and kth pulse in subframe m

POS m_n_k_l_j position index of nth, kth, lth, and jth pulse in subframe m

SIGN m_n_k sign information for nth and kth pulse in subframe m

SIGN m_ n_k_l_j sign information for nth, kth, lth, and jth pulse in subframe m

SIGN_m_n_k_POS_m_n sign information for nth and kth pulse and position index for nth pulse in subframe m

Table 9a: Parameter values for the decoder homing frame (MR475)

Parameter

Value (LSB=b0)

LPC 1

0x00F8

LPC 2

0x009D

LPC 3

0x001C

LTP-LAG 1

0x0066

POS 1_1_2

0x0000

SIGN_1_1_2

0x0003

GAIN-VQ 1

0x0028

LTP-LAG 2

0x000F

POS 2_1_2

0x0038

SIGN_2_1_2

0x0001

LTP-LAG 3

0x000F

POS 3_1_2

0x0031

SIGN_3_1_2

0x0002

GAIN-VQ 3

0x0008

LTP-LAG 4

0x000F

POS 4_1_2

0x0026

SIGN_4_1_2

0x0003

Table 9b: Parameter values for the decoder homing frame (MR515)

Parameter

Value (LSB=b0)

LPC 1

0x00F8

LPC 2

0x009D

LPC 3

0x001C

LTP-LAG 1

0x0066

POS 1_1_2

0x0000

SIGN_1_1_2

0x0003

GAIN-VQ 1

0x0037

LTP-LAG 2

0x000F

POS 2_1_2

0x0000

SIGN_2_1_2

0x0003

GAIN-VQ 2

0x0005

LTP-LAG 3

0x000F

POS 3_1_2

0x0037

SIGN_3_1_2

0x0003

GAIN-VQ 3

0x0037

LTP-LAG 4

0x000F

POS 4_1_2

0x0023

SIGN_4_1_2

0x0003

GAIN-VQ 4

0x001F

Table 9c: Parameter values for the decoder homing frame (MR59)

Parameter

Value (LSB=b0)

LPC 1

0x00F8

LPC 2

0x00E3

LPC 3

0x002F

LTP-LAG 1

0x00BD

POS 1_1_2

0x0000

SIGN_1_1_2

0x0003

GAIN-VQ 1

0x0037

LTP-LAG 2

0x000F

POS 2_1_2

0x0001

SIGN_2_1_2

0x0003

GAIN-VQ 2

0x000F

LTP-LAG 3

0x0060

POS 3_1_2

0x00F9

SIGN_3_1_2

0x0003

GAIN-VQ 3

0x0037

LTP-LAG 4

0x000F

POS 4_1_2

0x0000

SIGN_4_1_2

0x0003

GAIN-VQ 4

0x0037

Table 9d: Parameter values for the decoder homing frame (MR67)

Parameter

Value (LSB=b0)

LPC 1

0x00F8

LPC 2

0x00E3

LPC 3

0x002F

LTP-LAG 1

0x00BD

POS 1_1_2_3

0x0002

SIGN_1_1_2_3

0x0007

GAIN-VQ 1

0x0000

LTP-LAG 2

0x000F

POS 2_1_2_3

0x0098

SIGN_2_1_2_3

0x0007

GAIN-VQ 2

0x0061

LTP-LAG 3

0x0060

POS 3_1_2_3

0x05C5

SIGN_3_1_2_3

0x0007

GAIN-VQ 3

0x0000

LTP-LAG 4

0x000F

POS 4_1_2_3

0x0318

SIGN_4_1_2_3

0x0007

GAIN-VQ 4

0x0000

Table 9e: Parameter values for the decoder homing frame (MR74)

Parameter

Value (LSB=b0)

LPC 1

0x00F8

LPC 2

0x00E3

LPC 3

0x002F

LTP-LAG 1

0x00BD

POS 1_1_2_3_4

0x0006

SIGN_1_1_2_3_4

0x000F

GAIN-VQ 1

0x0000

LTP-LAG 2

0x001B

POS 2_1_2_3_4

0x0208

SIGN_2_1_2_3_4

0x000F

GAIN-VQ 2

0x0062

LTP-LAG 3

0x0060

POS 3_1_2_3_4

0x1BA6

SIGN_3_1_2_3_4

0x000F

GAIN-VQ 3

0x0000

LTP-LAG 4

0x001B

POS 4_1_2_3_4

0x0006

SIGN_4_1_2_3_4

0x000F

GAIN-VQ 4

0x0000

Table 9f: Parameter values for the decoder homing frame (MR795)

Parameter

Value (LSB=b0)

LPC 1

0x00C2

LPC 2

0x00E3

LPC 3

0x002F

LTP-LAG 1

0x00BD

POS_1_1_2_3_4

0x0006

SIGN_1_1_2_3_4

0x000F

LTP-GAIN 1

0x000A

FCB-GAIN 1

0x0000

LTP-LAG 2

0x0039

POS_2_1_2_3_4

0x1C08

SIGN_2_1_2_3_4

0x0007

LTP-GAIN 2

0x000A

FCB-GAIN 2

0x000B

LTP-LAG 3

0x0063

POS_3_1_2_3_4

0x11A6

SIGN_3_1_2_3_4

0x000F

LTP-GAIN 3

0x0001

FCB-GAIN 3

0x0000

LTP-LAG 4

0x0039

POS_4_1_2_3_4

0x09A0

SIGN_4_1_2_3_4

0x000F

LTP-GAIN 4

0x0002

FCB-GAIN 4

0x0001

Table 9g: Parameter values for the decoder homing frame (MR102)

Parameter

Value (LSB=b0)

LPC 1

0x00F8

LPC 2

0x00E3

LPC 3

0x002F

LTP-LAG 1

0x0045

SIGN_1_1_5

0x0000

SIGN_1_2_6

0x0000

SIGN_1_3_7

0x0000

SIGN_1_4_8

0x0000

POS_1_1_2_5

0x0000

POS_1_3_6_7

0x0000

POS_1_4_8

0x0000

GAIN-VQ_1

0x0000

LTP-LAG 2

0x001B

SIGN_2_1_5

0x0000

SIGN_2_2_6

0x0001

SIGN_2_3_7

0x0000

SIGN_2_4_8

0x0001

POS_2_1_2_5

0x0326

POS_2_3_6_7

0x00CE

POS_2_4_8

0x007E

GAIN-VQ_2

0x0051

LTP-LAG 3

0x0062

SIGN_3_1_5

0x0000

SIGN_3_2_6

0x0000

SIGN_3_3_7

0x0000

SIGN_3_4_8

0x0000

POS_3_1_2_5

0x015A

POS_3_3_6_7

0x0359

POS_3_4_8

0x0076

GAIN-VQ_3

0x0000

LTP-LAG 4

0x001B

SIGN_4_1_5

0x0000

SIGN_4_2_6

0x0000

SIGN_4_3_7

0x0000

SIGN_4_4_8

0x0000

POS_4_1_2_5

0x017C

POS_4_3_6_7

0x0215

POS_4_4_8

0x0038

GAIN-VQ_4

0x0030

Table 9h: Parameter values for the decoder homing frame (MR122)

Parameter

Value (LSB=b0)

LPC1

0x0004

LPC2

0x002A

LPC3

0x00DB

LPC4

0x0096

LPC5

0x002A

LTP-LAG 1

0x0156

LTP-GAIN 1

0x000B

SIGN_1_1_6_POS_1_1

0x0000

SIGN_1_2_7_POS_1_2

0x0000

SIGN_1_3_8_POS_1_3

0x0000

SIGN_1_4_9_POS_1_4

0x0000

SIGN_1_5_10_POS_1_5

0x0000

POS 1_6

0x0000

POS 1_7

0x0000

POS 1_8

0x0000

POS 1_9

0x0000

POS 1_10

0x0000

FCB-GAIN 1

0x0000

LTP-LAG 2

0x0036

LTP-GAIN 2

0x000B

SIGN_2_1_6_POS_2_1

0x0000

SIGN_2_2_7_POS_2_2

0x000F

SIGN_2_3_8_POS_2_3

0x000E

SIGN_2_4_9_POS_2_4

0x000C

SIGN_2_5_10_POS_2_5

0x000D

POS 2_6

0x0000

POS 2_7

0x0001

POS 2_8

0x0005

POS 2_9

0x0007

POS 2_10

0x0001

FCB-GAIN 2

0x0008

LTP-LAG 3

0x0024

LTP-GAIN 3

0x0000

SIGN_3_1_6_POS_3_1

0x0001

SIGN_3_2_7_POS_3_2

0x0000

SIGN_3_3_8_POS_3_3

0x0005

SIGN_3_4_9_POS_3_4

0x0006

SIGN_3_5_10_POS_3_5

0x0001

POS 3_6

0x0002

POS 3_7

0x0004

POS 3_8

0x0007

POS 3_9

0x0004

POS 3_10

0x0002

FCB-GAIN 3

0x0003

LTP-LAG 4

0x0036

LTP-GAIN 4

0x000B

SIGN_4_1_6_POS_4_1

0x0000

SIGN_4_2_7_POS_4_2

0x0002

SIGN_4_3_8_POS_4_3

0x0004

SIGN_4_4_9_POS_4_4

0x0000

SIGN_4_5_10_POS_4_5

0x0003

POS 4_6

0x0006

POS 4_7

0x0001

POS 4_8

0x0007

POS 4_9

0x0006

POS 4_10

0x0005

FCB-GAIN 4

0x0000