7 Detailed bit allocation of the adaptive multi-rate wideband codec

26.1903GPPAdaptive Multi-Rate - Wideband (AMR-WB) speech codecSpeech codec speech processing functionsTranscoding functionsTS

The detailed allocation of the bits in the adaptive multi-rate wideband speech encoder is shown for each mode in table 12a-12i. These tables show the order of the bits produced by the speech encoder. Note that the most significant bit (MSB) of each codec parameter is always sent first.

Table 12a: Source encoder output parameters in order of occurrence and bit allocation within the speech frame of 477 bits/20 ms, 23.85 kbit/s mode

Bits (MSB‑LSB)

Description

s1

VAD-flag

s2 – s9

index of 1st ISP subvector

s10 – s17

index of 2nd ISP subvector

s18 ‑ s23

index of 3rd ISP subvector

s24 – s30

index of 4th ISP subvector

s31 – s37

index of 5th ISP subvector

s38 – s42

index of 6th ISP subvector

s43 – s47

index of 7th ISP subvector

subframe 1

s48 – s56

adaptive codebook index

s57

LTP-filtering-flag

s58 – s68

Codebook Index1 for track 1

s69 – s79

Codebook Index1 for track 2

ss80 –s90

Codebook Index1 for track 3

s91-s101

Codebook Index1 for track 4

s102-s112

Codebook Index2 for track 1

s113-s123

Codebook Index2 for track 2

s124 – s134

Codebook Index2 for track 3

s135 – s145

Codebook Index2 for track 4

s146 – s152

codebook gains

s153 – s156

High-band energy

subframe 2

s157 – s162

adaptive codebook index (relative)

s163 – s262

same description as s57 – s156

subframe 3

s263 – s371

same description as s48 – s156

subframe 4

s372 – s477

same description as s157 – s262

Table 12b: Source encoder output parameters in order of occurrence and bit allocation within the speech frame of 461 bits/20 ms, 23.05 kbit/s mode

Bits (MSB‑LSB)

Description

s1

VAD-flag

s2 – s9

index of 1st ISP subvector

s10 – s17

index of 2nd ISP subvector

s18 ‑ s23

index of 3rd ISP subvector

s24 – s30

index of 4th ISP subvector

s31 – s37

index of 5th ISP subvector

s38 – s42

index of 6th ISP subvector

s43 – s47

index of 7th ISP subvector

subframe 1

s48 – s56

adaptive codebook index

s57

LTP-filtering-flag

s58 – s68

Codebook Index1 for track 1

s69 – s79

Codebook Index1 for track 2

ss80 –s90

Codebook Index1 for track 3

s91-s101

Codebook Index1 for track 4

s102-s112

Codebook Index2 for track 1

s113-s123

Codebook Index2 for track 2

s124 – s134

Codebook Index2 for track 3

s135 – s145

Codebook Index2 for track 4

s146 – s152

codebook gains

subframe 2

s153 – s158

adaptive codebook index (relative)

s159 – s254

same description as s57 – s152

subframe 3

s255 – s359

same description as s48 – s152

subframe 4

s360 – s461

same description as s153 – s254

Table 12c: Source encoder output parameters in order of occurrence and bit allocation within the speech frame of 397 bits/20 ms, 19.85 kbit/s mode

Bits (MSB‑LSB)

Description

s1

VAD-flag

s2 – s9

index of 1st ISP subvector

s10 – s17

index of 2nd ISP subvector

s18 ‑ s23

index of 3rd ISP subvector

s24 – s30

index of 4th ISP subvector

s31 – s37

index of 5th ISP subvector

s38 – s42

index of 6th ISP subvector

s43 – s47

index of 7th ISP subvector

subframe 1

s48 – s56

adaptive codebook index

s57

LTP-filtering-flag

s58 – s67

Codebook Index1 for track 1

s68 – s77

Codebook Index1 for track 2

s78 – s79

Pulse Selector for track 3

s80 – s81

Pulse Selector for track 4

s82 – s91

Codebook index2 for track 1

s92 – s101

Codebook index2 for track 2

s102 – s115

Codebook index for track 3

s116 – s129

Codebook index for track 4

s130 – s136

VQ gain

subframe 2

s137 – s142

adaptive codebook index (relative)

s143 – s222

same description as s57 – s136

subframe 3

s223 – s311

same description as s48 – s136

subframe 4

s312 – s397

same description as s137 – s222

Table 12d: Source encoder output parameters in order of occurrence and bit allocation within the speech frame of 365 bits/20 ms, 18.25 kbit/s mode

Bits (MSB‑LSB)

Description

s1

VAD-flag

s2 – s9

index of 1st ISP subvector

s10 – s17

index of 2nd ISP subvector

s18 ‑ s23

index of 3rd ISP subvector

s24 – s30

index of 4th ISP subvector

s31 – s37

index of 5th ISP subvector

s38 – s42

index of 6th ISP subvector

s43 – s47

index of 7th ISP subvector

subframe 1

s48 – s56

adaptive codebook index

s57

LTP-filtering-flag

s58 – s59

Pulse Selector for track 1

s60 – s61

Pulse Selector for track 2

s62 – s63

Pulse Selector for track 3

s64 – s65

Pulse Selector for track 4

s66 – s79

Codebook index for track 1

s80 – s93

Codebook index for track 2

s94 – s107

Codebook index for track 3

s108 – s121

Codebook index for track 4

s122 – s128

VQ gain

subframe 2

s129 – s134

adaptive codebook index (relative)

s135 – s206

same description as s57 – s128

subframe 3

s207 – s287

same description as s48 – s128

subframe 4

s288 – s365

same description as s129 – s206

Table 12e: Source encoder output parameters in order of occurrence and bit allocation within the speech frame of 317 bits/20 ms, 15.85 kbit/s mode

Bits (MSB‑LSB)

Description

s1

VAD-flag

s2 – s9

index of 1st ISP subvector

s10 – s17

index of 2nd ISP subvector

s18 ‑ s23

index of 3rd ISP subvector

s24 – s30

index of 4th ISP subvector

s31 – s37

index of 5th ISP subvector

s38 – s42

index of 6th ISP subvector

s43 – s47

index of 7th ISP subvector

subframe 1

s48 – s56

adaptive codebook index

s57

LTP-filtering-flag

s58 – s70

Codebook index for track 1

s71 – s83

Codebook index for track 2

s84 – s96

Codebook index for track 3

s97 – s109

Codebook index for track 4

s110 – s116

VQ gain

subframe 2

s117 – s122

adaptive codebook index (relative)

s123 – s182

same description as s57 – s116

subframe 3

s183 – s251

same description as s48 – s116

subframe 4

s252 – s317

same description as s117 – s182

Table 12f: Source encoder output parameters in order of occurrence and bit allocation within the speech frame of 285 bits/20 ms, 14.25 kbit/s mode

Bits (MSB‑LSB)

Description

s1

VAD-flag

s2 – s9

index of 1st ISP subvector

s10 – s17

index of 2nd ISP subvector

s18 ‑ s23

index of 3rd ISP subvector

s24 – s30

index of 4th ISP subvector

s31 – s37

index of 5th ISP subvector

s38 – s42

index of 6th ISP subvector

s43 – s47

index of 7th ISP subvector

subframe 1

s48 – s56

adaptive codebook index

s57

LTP-filtering-flag

s58 – s70

Codebook index for track 1

s71 – s83

Codebook index for track 2

s84 – s92

Codebook index for track 3

s93 – s101

Codebook index for track 4

s102 – s108

VQ gain

subframe 2

s109 – s114

adaptive codebook index (relative)

s115 – s166

same description as s57 – s108

subframe 3

s167 – s227

same description as s48 – s108

subframe 4

s228 – s285

same description as s109 – s166

Table 12g: Source encoder output parameters in order of occurrence and bit allocation within the speech frame of 253 bits/20 ms, 12.65 kbit/s mode

Bits (MSB‑LSB)

Description

s1

VAD-flag

s2 – s9

index of 1st ISP subvector

s10 – s17

index of 2nd ISP subvector

s18 ‑ s23

index of 3rd ISP subvector

s24 – s30

index of 4th ISP subvector

s31 – s37

index of 5th ISP subvector

s38 – s42

index of 6th ISP subvector

s43 – s47

index of 7th ISP subvector

subframe 1

s48 – s56

adaptive codebook index

s57

LTP-filtering-flag

s58 – s66

Codebook index for track 1

s67 – s75

Codebook index for track 2

s76 – s84

Codebook index for track 3

s85 – s93

Codebook index for track 4

s94 – s100

VQ gain

subframe 2

s101 – s106

adaptive codebook index (relative)

s107 – s150

same description as s57 – s100

subframe 3

s151 – s203

same description as s48 – s100

subframe 4

s204 – s253

same description as s101 – s150

Table 12h: Source encoder output parameters in order of occurrence and bit allocation within the speech frame of 177 bits/20 ms, 8.85 kbit/s mode

Bits (MSB‑LSB)

Description

s1

VAD-flag

s2 – s9

index of 1st ISP subvector

s10 – s17

index of 2nd ISP subvector

s18 ‑ s23

index of 3rd ISP subvector

s24 – s30

index of 4th ISP subvector

s31 – s37

index of 5th ISP subvector

s38 – s42

index of 6th ISP subvector

s43 – s47

index of 7th ISP subvector

subframe 1

s48 – s55

adaptive codebook index

s56 – s60

Codebook index for track 1

s61 – s65

Codebook index for track 2

s66 – s70

Codebook index for track 3

s71 – s75

Codebook index for track 4

s76 – s81

VQ gain

subframe 2

s82 – s86

adaptive codebook index (relative)

s87 – s112

same description as s56 – s81

subframe 3

s113 – s146

same description as s48 – s81

subframe 4

s147 – s177

same description as s82 – s112

Table 12i: Source encoder output parameters in order of occurrence and bit allocation within the speech frame of 132 bits/20 ms, 6.60 kbit/s mode

Bits (MSB‑LSB)

Description

s1

VAD-flag

s2 – s9

index of 1st ISP subvector

s10 – s17

index of 2nd ISP subvector

s18 – s24

index of 3rd ISP subvector

s25 – s31

index of 4th ISP subvector

s32 – s37

index of 5th ISP subvector

subframe 1

s38 – s45

adaptive codebook index

s46 – 57

Codebook Index

s58 – s63

VQ gain

subframe 2

s64 – s68

adaptive codebook index (relative)

s69 – s86

same description as s46 – s63

subframe 3

s87 – s109

same description as s64 – s86

subframe 4

s110 – s132

same description as s64 – s86