You are on page 1of 20

ARIB STD-T63-26.101 V3.3.

0 Mandatory Speech Codec speech processing functions ; AMR speech Codec Frame Structure (Release 1999)

Refer to "Industrial Property Rights (IPR)" in the preface of ARIB STD-T63 for Related Industrial Property Rights. Refer to "Notice" in the preface of ARIB STD-T63 for Copyrights.

3GPP TS 26.101 V3.3.0 (2002-03)


Technical Specification

3rd Generation Partnership Project; Technical Specification Group Services and System Aspects; Mandatory Speech Codec speech processing functions; AMR Speech Codec Frame Structure (Release 1999)

The present document has been developed within the 3rd Generation Partnership Project (3GPP TM) and may be further elaborated for the purposes of 3GPP. The present document has not been subject to any approval process by the 3GPP Organizational Partners and shall not be implemented. This Specification is provided for future development work within 3GPP only. The Organizational Partners accept no liability for any use of this Specification. Specifications and reports for implementation of the 3GPP TM system should be obtained via the 3GPP Organizational Partners' Publications Offices.

Release 1999

3GPP TS 26.101 V3.3.0 (2002-03)

Keywords
GSM, UMTS, codec, AMR

3GPP Postal address

3GPP support office address


650 Route des Lucioles - Sophia Antipolis Valbonne - FRANCE Tel.: +33 4 92 94 42 00 Fax: +33 4 93 65 47 16

Internet
http://www.3gpp.org

Copyright Notification No part may be reproduced except as authorized by written permission. The copyright and the foregoing restriction extend to reproduction in all media.
2002, 3GPP Organizational Partners (ARIB, CWTS, ETSI, T1, TTA, TTC). All rights reserved.

3GPP

Release 1999

3GPP TS 26.101 V3.3.0 (2002-03)

Contents
Foreword............................................................................................................................................................ 4 1 2 3
3.1 3.2

Scope ....................................................................................................................................................... 4 References ............................................................................................................................................... 4 Definitions and Abbreviations................................................................................................................. 5


Definitions ...............................................................................................................................................................5 Abbreviations...........................................................................................................................................................5

AMR codec frame format (AMR IF1)..................................................................................................... 5

4.1 AMR Header and AMR Auxiliary Information.......................................................................................................6 4.1.1 Frame Type, Mode Indication, and Mode Request ............................................................................................6 4.1.2 Frame Quality Indicator .....................................................................................................................................6 4.1.3 Mapping to TX_TYPE and RX_TYPE..............................................................................................................7 4.1.4 Codec CRC ........................................................................................................................................................7 4.2 AMR Core Frame ....................................................................................................................................................7 4.2.1 AMR Core Frame with speech bits: Bit ordering...............................................................................................7 4.2.2 AMR Core Frame with speech bits: Class division............................................................................................8 4.2.3 AMR Core Frame with comfort noise bits .........................................................................................................8 4.3 AMR frame composition .........................................................................................................................................9

Annex A (informative): Annex B (normative): Annex C (informative):

AMR Interface Format 2 (with octet alignment) ....................................... 12 Tables for AMR Core Frame bit ordering.................................................. 16 Change history............................................................................................... 19

3GPP

Release 1999

3GPP TS 26.101 V3.3.0 (2002-03)

Foreword
This Technical Specification has been produced by the 3rd Generation Partnership Project (3GPP). The contents of the present document are subject to continuing work within the TSG and may change following formal TSG approval. Should the TSG modify the contents of the present document, it will be re-released by the TSG with an identifying change of release date and an increase in version number as follows: Version x.y.z where: x the first digit: 1 presented to TSG for information; 2 presented to TSG for approval; 3 or greater indicates TSG approved document under change control. y the second digit is incremented for all changes of substance, i.e. technical enhancements, corrections, updates, etc. z the third digit is incremented when editorial only changes have been incorporated in the document.

Scope

The present document describes a generic frame format for the Adaptive Multi-Rate (AMR) speech codec. This format shall be used as a common reference point when interfacing speech frames between different elements of the 3G system and between different systems. Appropriate mappings to and from this generic frame format will be used within and between each system element. Annex A describes a second frame format which shall be used when octet alignment of AMR frames is required.

References
References are either specific (identified by date of publication, edition number, version number, etc.) or non-specific. For a specific reference, subsequent revisions do not apply. For a non-specific reference, the latest version applies. In the case of a reference to a 3GPP document (including a GSM document), a non-specific reference implicitly refers to the latest version of that document in the same Release as the present document. [1] [2] [3] TS 26.090: "AMR Speech Codec; Speech Transcoding Functions". TS 26.093: "AMR Speech Codec; Source Controlled Rate Operation". TS 26.092: "AMR Speech Codec; Comfort Noise Aspects".

The following documents contain provisions which, through reference in this text, constitute provisions of the present document.

3GPP

Release 1999

3GPP TS 26.101 V3.3.0 (2002-03)

3
3.1

Definitions and Abbreviations


Definitions

For the purposes of the present document, the following terms and definitions apply: AMR mode: one of the eight AMR codec bit-rates denoted also with indices 0 to 7 where 0 maps to the 4.75 kbis/s mode and 7 maps to the 12.2 kbit/s mode. AMR codec mode: same as AMR mode. RX_TYPE: classification of the received frame as defined in [2]. TX_TYPE: classification of the transmitted frame as defined in [2].

3.2
CRC FQI GSM LSB MSB RX PDC SCR SID TDMA TX

Abbreviations
Cyclic Redundancy Check Frame Quality Indicator Global System for Mobile communication Least Significant Bit Most Significant Bit Receive Personal Digital Communication (ARIB standard) Source Controlled Rate operation Silence Descriptor (Comfort Noise Frame) Time Division Multiple Access (IS-641) Transmit

For the purposes of the present document, the following abbreviations apply:

AMR codec frame format (AMR IF1)

This clause describes the generic frame format for both the speech and comfort noise frames of the AMR speech codec. This format is referred to as AMR Interface Format 1 (AMR IF1). Annex A describes AMR Interface Format 2 (AMR IF2). Each AMR codec mode follows the generic frame structure depicted in figure 1. The frame is divided into three parts: AMR Header, AMR Auxiliary Information, and AMR Core Frame. The AMR Header part includes the Frame Type and the Frame Quality Indicator fields. The AMR auxiliary information part includes the Mode Indication, Mode Request, and Codec CRC fields. The AMR Core Frame part consists of the speech parameter bits or, in case of a comfort noise frame, the comfort noise parameter bits. In case of a comfort noise frame, the comfort noise parameters replace Class A bits of AMR Core Frame while Class B and C bits are omitted.

3GPP

Release 1999

3GPP TS 26.101 V3.3.0 (2002-03)

Figure 1: Generic AMR frame structure

4.1
4.1.1

AMR Header and AMR Auxiliary Information


Frame Type, Mode Indication, and Mode Request

This subclause describes the AMR Header of figure 1.

Table 1a defines the 4-bit Frame Type field. Frame Type can indicate the use of one of the eight AMR codec modes, one of four different comfort noise frames, or an empty frame. In addition, three Frame Type Indices are reserved for future use. The same table is reused for the Mode Indication and Mode Request fields which are 3-bit fields each and are defined only in the range 07 to specify one of the eight AMR codec modes. Table 1a: Interpretation of Frame Type, Mode Indication and Mode Request fields
Frame Type 0 1 2 3 4 5 6 7 8 9 10 11 12-14 15 Mode Indication 0 1 2 3 4 5 6 7 Mode Request 0 1 2 3 4 5 6 7 Frame content (AMR mode, comfort noise, or other)

AMR 4,75 kbit/s AMR 5,15 kbit/s AMR 5,90 kbit/s AMR 6,70 kbit/s (PDC-EFR) AMR 7,40 kbit/s (TDMA-EFR) AMR 7,95 kbit/s AMR 10,2 kbit/s AMR 12,2 kbit/s (GSM-EFR) AMR SID GSM-EFR SID TDMA-EFR SID PDC-EFR SID For future use No Data (No transmission/No reception)

4.1.2

Frame Quality Indicator

The content of the Frame Quality Indicator field is defined in Table 1b. The field length is one bit. The Frame Quality Indicator indicates whether the data in the frame contains errors.

3GPP

Release 1999

3GPP TS 26.101 V3.3.0 (2002-03)

Table 1b: Definition of Frame Quality Indicator


Frame Quality Indicator (FQI) 0 1 Quality of data Bad frame or Corrupted frame (bits may be used to assist error concealment) Good frame

4.1.3

Mapping to TX_TYPE and RX_TYPE

Table 1c shows how the AMR Header data (FQI and Frame Type) maps to the TX_TYPE and RX_TYPE frames defined in [2]. Table 1c: Mapping of Frame Quality Indicator and Frame Type to TX_TYPE and RX_TYPE [2], respectively
Frame Quality Indicator 1 0 Frame Type Index 0-7 0-7 TX_TYPE or RX_TYPE SPEECH_GOOD SPEECH_BAD Comment

1 0 1 0 1

8 8 8 9-11 9-11 15

SID_FIRST or SID_UPDATE SID_BAD SID_UPDATE SID_BAD NO_DATA

The specific Frame Type Index depends on the bit-rate being used. The specific Frame Type Index depends on the bit-rate being used. The corrupted data may be used to assist error concealment. SID_FIRST and SID_UPDATE are differentiated using one Class A bit: STI.

Typically a non-transmitted frame or an erased or stolen frame with no data usable to assist error concealment.

4.1.4

Codec CRC

Generic AMR codec frames with Frame Type 0.11 are associated with an 8-bit CRC for error-detection purposes. The Codec CRC field of AMR Auxiliary Information in figure 1 contains the value of this CRC. These eight parity bits are generated by the cyclic generator polynomial: G(x)=D8 + D6 + D5 + D4 + 1

which is computed over all Class A bits of AMR Core Frame. Class A bits for Frame Types 0.7 are defined in subclause 4.2.2 (for speech bits) and for Frame Types 8.11 in subclause 4.2.3 (for comfort noise bits). When Frame Type Index of table 1a is 15 the CRC field is not included in the Generic AMR frame.

4.2

AMR Core Frame

This subclause contains the description of AMR Core Frame of figure 1. The descriptions for AMR Core Frame with speech bits and with comfort noise bit are given separately.

4.2.1

AMR Core Frame with speech bits: Bit ordering

This subclause describes how AMR Core Frame carries the coded speech data. The bits produced by the speech encoder are denoted as {s(1),s(2),...,s(K)}, where K refers to the number of bits produced by the speech encoder as shown in table 2. The notation s(i) follows that of [1]. The speech encoder output bits are ordered according to their subjective importance. This bit ordering can be utilized for error protection purposes when the speech data is, for example, carried over a radio interface. Tables B.1 to B.8 in Annex B define the AMR IF1 bit ordering for all the eight AMR codec modes. In these tables the speech bits are numbered in the order they are produced by the corresponding speech encoder

3GPP

Release 1999

3GPP TS 26.101 V3.3.0 (2002-03)

as described in the relevant tables of TS 26.090 [1]. The reordered bits are denoted below, in the order of decreasing importance, as {d(0),d(1),...,d(K-1)}. The ordering algorithm is described in pseudo code as: for j = 0 to K-1 d(j) := s(tablem(j)+1);

where tablem(j) refers to the relevant table in Annex B depending on the AMR mode m=0..7. The Annex B tables should be read line by line from left to right. The first element of the table has the index 0.

4.2.2

AMR Core Frame with speech bits: Class division

The reordered bits are further divided into three indicative classes according to their subjective importance. This class division is only informative and provides supporting information for mapping this generic format into specific formats. The three different importance classes can then be subject to different error protection in the network. The importance classes are Class A, Class B, and Class C. Class A contains the bits most sensitive to errors and any error in these bits typically results in a corrupted speech frame which should not be decoded without applying appropriate error concealment. This class is protected by the Codec CRC in AMR Auxiliary Information. Classes B and C contain bits where increasing error rates gradually reduce the speech quality, but decoding of an erroneous speech frame is usually possible without annoying artifacts. Class B bits are more sensitive to errors than Class C bits. The importance ordering applies also within the three different classes and there are no significant step-wise changes in subjective importance between neighboring bits at the class borders. The number of speech bits in each class (Class A, Class B, and Class C) for each AMR mode is shown in table 2. The classification in table 2 and the importance ordering d(j), together, are sufficient to assign all speech bits to their correct classes. For example, when the AMR codec mode is 4.75, then the Class A bits are d(0)..d(41), Class B bits are d(42)..d(94), and there are no Class C bits. Table 2: Number of bits in Classes A, B, and C for each AMR codec mode
Frame Type AMR codec mode 4,75 5,15 5,90 6,70 7,40 7,95 10,2 12,2 Total number of bits 95 103 118 134 148 159 204 244 Class A Class B Class C

0 1 2 3 4 5 6 7

42 49 55 58 61 75 65 81

53 54 63 76 87 84 99 103

0 0 0 0 0 0 40 60

4.2.3

AMR Core Frame with comfort noise bits

The AMR Core Frame content for the additional frame types with Frame Type Indices 8-15 in table 1a are described in this subclause. These mainly consist of the frames related to Source Controlled Rate Operation specified in [2]. The data content (comfort noise bits) of the additional frame types is carried in AMR Core Frame. The comfort noise bits are all mapped to Class A of AMR Core Frame and Classes B and C are not used. This is a notation convention only and the class division has no meaning for comfort noise bits. The number of bits in each class (Class A, Class B, and Class C) for the AMR comfort noise bits (Frame Type Index 8) is shown in table 3. The contents of SID_UPDATE and SID_FIRST are divided into three parts (SID Type Indicator (STI), Mode Indication (mi(i)), and Comfort Noise Parameters (s(i)) as defined in [2]. In case of SID_FIRST the Comfort Noise Parameters bits (s(i)) shall be set to 0. The comfort noise parameter bits produced by the AMR speech encoder are denoted as s(i) = {s(1),s(2),...,s(35)}. The notation s(i) follows that of [3]. These bits are numbered in the order they are produced by the AMR encoder without any reordering. These bits are followed by the SID Type Indicator STI and the Mode Indication

3GPP

Release 1999

3GPP TS 26.101 V3.3.0 (2002-03)

mi(i) ={mi(0), mi(1), mi(2)} ={LSB .. MLB}. Thus, the AMR SID or comfort noise bits {d(0),d(1),,d(38)}are formed as defined by the pseudo code below. for j = 0 to 34; d(j) := s(j+1); d(35) := STI; for j = 36 to 38; d(j) := mi(j-36). Note: This mapping is different to the usual mapping: LSB first. Note: The alternative would be: d(j) := mi(38-j): MSB first. Table 3. Bit classification for Frame Type 8 (AMR SID)
Frame Type Index FQI AMR TX_TYPE or RX_TYPE Total number of bits SID Type Indicator (STI) 8 8 8 1 1 0 SID_UPDATE SID_FIRST SID_BAD 39 39 39 1 (= "1") 1 (= "0") 1 Class A Class B Class C

Mode Indication mi(i) 3 3 3

Comfort Noise Parameter s(i) 35 35 (= "0") 35

0 0 0

0 0 0

The number of bits in each class (Class A, Class B, and Class C) for the comfort noise bits of Frame Types 9-11 is shown in table 4. Table 4: Bit classification for Frame Types 9-11
TABLE FOR FURTHER STUDY

4.3

AMR frame composition

The generic AMR frame is formed as a concatenation of AMR Header, AMR Auxiliary Information and the AMR Core Frame, in this order. The MSB of the Frame Type is placed in bit 8 of the first octet (see example in table 5 below), the LSB of the Frame Type is placed in bit 5. Then the next parameter follows, which is the Frame Quality Indicator, and so on. Between Mode Request and Codec CRC five spare bits are inserted to align the Codec CRC and the AMR Core frame to the octet boundary. The first bit of the AMR Core frame d(0) is placed in bit 8 of octet 4. The last bit of the generic AMR frame is the last bit of AMR Core Frame, which is the last bit of speech bits or the last bit of comfort noise bits, as defined in subclauses 4.2.1 and 4.2.3. Table 5 shows the composition for the example of the Codec Mode 6.7kbit/s and table 6 shows the composition for the AMR SID frame.

3GPP

Release 1999

10

3GPP TS 26.101 V3.3.0 (2002-03)

Table 5: Mapping of an AMR speech coding mode into the generic AMR frame, AMR IF1, example: AMR 6.7 kbit/s, "good frame", Mode Request = 1.
MSB bit 8 Mapping of bits AMR 6.7 bit 5 bit 4 FQI 1 LSB bit 1

Octet 1

bit 7

bit 6

bit 3

bit 2

0 2 0 3

Frame Type (=3) 0 1 Mode Request (=1) 0 1 CRC(6) d(1)

CRC(7) 4 d(0) 5..19 20 d(128)

0 0 Codec CRC CRC(5) CRC(4) CRC(3) CRC(2) AMR Core Frame (octet 1) d(2) d(3) d(4) d(5)

Mode Indication (=3) 0 1 1 spare 0 0 0 CRC(1) d(6) CRC(0) d(7)

d(129)

AMR Core Frame (octet 17) d(130) d(131) d(132)

undefined d(133)

Table 6: Mapping of an AMR SID frame into the generic AMR frame, AMR IF1, example: AMR SID_Update, "good frame", Mode Indication = 3, Mode Request = 2.
MSB bit 8 Mapping of bits AMR SID bit 5 bit 4 FQI 1 spare LSB bit 1

Octet 1 2

bit 7

bit 6

bit 3

bit 2 Mode Indication undefined

Frame Type (=8) 0 0 Mode Request (=2) MSB LSB 0 1 0 1 CRC(7) CRC(6) d(1)=s(2)

3 4 d(0)=s(1) 5..7 8

0 0 0 Codec CRC CRC(5) CRC(4) CRC(3) CRC(2) AMR Core Frame (octet 1) d(2) d(3) d(4) d(5)

0 CRC(1) d(6)

0 CRC(0) d(7)

STI

d(32)

d(33)

d(34) = s(35)

Mode Indication (=3) LSB MSB 1 1 0

undef.

Table 7 summarizes all possible AMR frame format combinations in terms of number of bits in each field.

3GPP

Release 1999

11

3GPP TS 26.101 V3.3.0 (2002-03)

Table 7. Number of bits for different fields in different AMR frame compositions
Frame Type Index 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Frame Type Frame Quality Indicator 1 1 1 1 1 1 1 1 1 1 1 1 Mode Indication Mode Request Codec CRC Class A Class B Class C Total

4 4 4 4 4 4 4 4 4 4 4 4 Not used Not used Not used 4

3 3 3 3 3 3 3 3 3 3 3 3

3 3 3 3 3 3 3 3 3 3 3 3

8 8 8 8 8 8 8 8 8 8 8 8

42 49 55 58 61 75 65 81 39 43 38 37

AMR Core Frame 53 54 63 76 87 84 99 103 0 0 0 0

0 0 0 0 0 0 40 60 0 0 0 0

114 122 137 153 167 178 223 263 58 62 57 56

3GPP

Release 1999

12

3GPP TS 26.101 V3.3.0 (2002-03)

Annex A (informative): AMR Interface Format 2 (with octet alignment)


This annex defines an octet-aligned frame format for the AMR codec. This format is useful, for example, when the AMR codec is used in connection with applicable ITU-T H-series of recommendations. The format is referred to as AMR Interface Format 2 (AMR IF2). The AMR IF2 frame is formed by concatenation of the 4-bit Frame Type field (as defined for AMR IF1 in subclause 4.1.1) and the AMR Core Frame (as defined for AMR IF1 in subclause 4.2) as shown in figure A.1. The length of the AMR Core Frame field depends on the particular Frame Type. The total number of bits in the AMR IF2 speech frames in the different modes is typically not a multiple of eight and bit stuffing is needed to achieve an octet structure.

Figure A.1: Frame structure for AMR IF2 Table A.1a shows an example how the AMR 6.7 kbit/s mode is mapped into AMR IF2. The four LSBs of the first octet (octet 1) consist of the Frame Type(=3) for the AMR 6.7 kbit/s mode (see table 1a in AMR IF1 specification). This data field is followed by the 134 AMR Core Frame speech bits (d(0)d(133)) which consist of 58 Class A bits and 76 Class B bits as described in table 2 for AMR IF1. This results in a total of 138 bits and 6 bits are needed for Bit Stuffing to arrive to the closest multiple of 8 which is 144 bits. Table A.1a: Example mapping of the AMR speech coding mode 6.7kbit/s into AMR IF2. The bits used for Bit Stuffing are denoted as UB (for "unused bit").
MSB Octet 1 MSB LSB d(3) 2 3 18 d(2) d(10) d(1) d(9) d(0) d(8) Stuffing bits UB UB UB UB UB UB d(133) d(132) 0 d(7) 0 d(6) 1 d(5) d(133) bit 8 bit 7 bit 6 Mapping of bits AMR 6.7 bit 5 bit 4 LSB bit 3 bit 2 bit 1

Frame Type (= 3) ........ 1 d(4) d(12) d(132)

d(11)

Table A.1b shows the composition of AMR IF2 frames for all Frame Types in terms of how many bits are used for each field of figure A.1. Tables A.2 to A.5 specify how the AMR Core Frame comfort noise bits of Frame Types 8-11 are mapped to AMR IF2. Table A.6 specifies the mapping for an empty frame ("no transmission").

3GPP

Release 1999

13

3GPP TS 26.101 V3.3.0 (2002-03)

Table A.1b: Composition of AMR IF2 Frames for all Frame Types.
Frame Type Index 0 1 2 3 4 5 6 7 8 9 10 11 12-14 15 Frame content AMR 4,75 AMR 5,15 AMR 5,90 AMR 6,70 AMR 7,40 AMR 7,95 AMR 10,2 AMR 12,2 AMR SID GSM-EFR SID TDMA-EFR SID PDC-EFR SID For future use No Data Number of bits in Frame Type 4 4 4 4 4 4 4 4 4 4 4 4 4 Number of Bits in AMR Core Frame 95 103 118 134 148 159 204 244 39 43 38 37 0 Number of Bits in Bit Stuffing 5 5 6 6 0 5 0 0 5 1 6 7 4 Number of octets (N) 13 14 16 18 19 21 26 31 6 6 6 6 1

Table A.2: Mapping of bits for Frame Type 8 (AMR SID) (Bits s1 to s35 refer to TS 26.092)
MSB Octet bit 8 Index of 1st LSF subvector bit 7 bit 6 Mapping of bits AMR SID bit 5 bit 4 LSB bit 3 bit 2 bit 1

index of LSF reference vector MSB

Frame Type (= 8) ........... LSB 0 0 0

1 s4 Index of 2nd LSF subvector 2 s12 s3 s2 s1 1 index of 1st LSF subvector S11 s10 s9 s8 s7

s6

s5

index of 2nd LSF subvector 3 s20 S19 s18 s17 s16 s15 s14 s13

index of 3rd LSF subvector 4 s28 SID Type Indicator t1 s27 s26 s25 s24 s23 s22 s21 rd index of 3 LSF subvector s29

frame energy s35 s34 Stuffing bits s33 s32 s31 s30

6 UB UB UB UB UB

Mode Indication MSB mi(i) LSB mi(2) mi(1) mi(0)

Definitions of additional descriptor bits needed for the silence descriptor in the table are as follows: SID-type Indicator STI is {0=SID_FIRST, 1=SID_UPDATE }, Mode Indication (mi(0)- mi(2)) is the AMR codec mode according to the first eight entries in table 1a.

3GPP

Release 1999

14

3GPP TS 26.101 V3.3.0 (2002-03)

Table A.3: Mapping of bits for Frame Type 9 (GSM-EFR SID) (Bits s1 to s91 refer to GSM 06.60)
MSB Octet bit 8 bit 7 bit 6 Mapping of bits GSM-EFR SID bit 5 bit 4 LSB bit 3 bit 2 bit 1

Index of 1st LSF subMatrix 1 s4 s3 Index of 2 2 s12 s11


nd

Frame Type (= 9) s1 1 0 0 index of 1st LSF subMatrix s8 s7 Index of 2 s16 sign of 3rd LSF submatrix s24 s15
nd

s2

LSF submatrix s9

s10

s6

s5

Index of 3rd LSF submatrix 3 s20 s19 s18 s17

LSF submatrix s13

s14

index of 4th LSF submatrix 4 s28 s27 s26 s25

index of 3rd LSF submatrix s23 s22 s21

index of 5th LSF submatrix 5 s36 Stuffing bit UB 6 s35 s34 s33 fixed codebook gain s89 s32

index of 4th LSF submatrix s31 s30 s29 index of 5th LSF submatrix s38 s37

s91

s90

s88

s87

Table A.4: Mapping of bits for Frame Type 10 (TDMA-EFR SID) (Bits cn0 to cn37 refer to IS-641-A)
MSB Octet bit 8 bit 7 bit 6 Mapping of bits TDMA-EFR SID bit 5 bit 4 LSB bit 3 bit 2 bit 1

st Index of 1 LSF subvector

Frame Type (= 10) cn0 1 0


st

cn3

cn2 Index of 2
nd

cn1 LSF subvector cn9

index of 1 LSF subvector cn8 cn7 Index of 2 cn16 cn15


rd

cn11

Cn10
rd

cn6
nd

cn5

cn4

Index of 3 LSF subvector 3 cn19 cn18 cn17

LSF subvector cn13 cn12

cn14

Random Excitation Gain 4 cn27 cn26 Index of 1st RESC parameter cn35 cn34 cn25 cn24

index of 3 LSF subvector cn23 cn22 cn21 cn20

Random Excitation Gain cn33 cn32 cn31 cn30 cn29 cn28 Index of 2nd RESC parameter cn37 cn36

Stuffing bits 6 UB UB UB UB UB UB

3GPP

Release 1999

15

3GPP TS 26.101 V3.3.0 (2002-03)

Table A.5: Mapping of bits for Frame Type 11 (PDC-EFR SID) (Bits s1 to s35 refer to ARIB xx)
MSB Octet bit 8 index of 1st LSF subvector s4 index of 2nd LSF subvector s12 bit 7 bit 6 Mapping of bits PDC-EFR SID bit 5 bit 4 LSB bit 3 bit 2 bit 1

index of LSF reference vector s3 s2 s1 1

Frame Type (= 11) 0 1 1

st index of 1 LSF subvector

s11

s10

s9 index of 2
nd

s8 LSF subvector s16


rd

s7

s6

s5

s20

s19

s18

s17

s15

s14

s13

index of 3 LSF subvector 4 s28 SID type 5 t1 s35 s34 s27 s26 s25 s24 s23 s22 s21 Index of 3rd LSF subvector s29 SID type UB UB UB t2

frame energy s33 Stuffing bits s32 s31 s30

UB

UB

UB

UB

Definition of additional descriptor bits needed for the table is as follows: SID-type is {0=POST0, 1=POST1(SID_UPDATE), 2=PRE, 3=POST1_BAD }, where LSB of SID_type is t1 and MSB of SID-type is t2. Table A.6: Mapping of bit for Frame Type 15 (No Data)
MSB Octet bit 8 bit 7 bit 6 Mapping of Bits No Data bit 5 bit 4 LSB bit 3 bit 2 bit 1

Stuffing bits 1 UB UB UB UB 1

Frame Type (= 15) 1 1 1

3GPP

Release 1999

16

3GPP TS 26.101 V3.3.0 (2002-03)

Annex B (normative): Tables for AMR Core Frame bit ordering


This annex contains the tables required for ordering the AMR Core Frame speech bits corresponding to the different AMR modes. These tables represent tablem(j) in subclause 4.2.1 where m=0..7 is the AMR mode. The tables are read from left to right so that the first element (top left corner) of the table has index 0 and the last element (the rightmost element of the last row) has the index K-1 where K is the total number of speech bits in the specific mode. For example, table0(20)=27, as defined in table B.1. Table B.1: Ordering of the speech encoder bits for the 4.75 kbit/s mode: table0(j)
j=0 0 10 27 45 77 38 64 36 88 92 j=1 1 11 28 44 76 39 72 53 90 31 j=2 2 12 48 81 75 16 73 54 91 52 ... 3 13 49 80 74 19 84 56 34 65 ... 4 14 61 79 29 21 85 57 55 86 ... 5 15 62 78 30 50 93 66 68 ... 6 23 82 17 43 51 94 67 89 ... 7 24 83 18 42 59 32 69 37 ... 8 25 47 20 41 60 33 70 58 ... 9 26 46 22 40 63 35 87 71

Table B.2: Ordering of the speech encoder bits for the 5.15 kbit/s mode: table1(j)
7 13 27 83 28 48 30 57 55 90 53 6 12 46 82 47 67 49 77 74 31 72 5 11 65 81 66 17 68 35 93 50 91 4 10 84 102 85 20 86 54 32 69 3 9 45 101 18 22 19 73 51 88 2 8 44 100 41 40 16 92 33 37 1 23 43 42 60 59 87 76 52 56 0 24 64 61 79 78 39 96 70 75 15 25 63 80 98 97 38 95 71 94 14 26 62 99 29 21 58 36 89 34

Table B.3: Ordering of the speech encoder bits for the 5.9 kbit/s mode: table2(j)
0 8 75 71 116 115 21 110 54 36 80 38 1 9 27 96 53 47 23 64 100 57 101 59 4 11 73 117 99 68 22 65 40 82 42 84 5 12 26 31 32 93 18 44 61 103 63 105 3 14 72 77 78 114 17 90 86 35 88 37 6 10 30 52 33 46 20 25 107 56 109 58 7 16 76 98 79 67 24 45 39 81 41 83 2 28 51 49 48 92 111 66 60 102 62 104 13 74 97 70 69 113 43 91 85 34 87 15 29 50 95 94 19 89 112 106 55 108

3GPP

Release 1999

17

3GPP TS 26.101 V3.3.0 (2002-03)

Table B.4: Ordering of the speech encoder bits for the 6.7 kbit/s mode: table3(j)
1 0 9 27 110 86 112 22 47 100 42 92 44 95 36 11 81 31 51 33 18 72 125 67 117 69 120 61 4 15 26 85 76 87 17 101 128 96 35 98 40 90 3 12 80 57 105 19 20 126 103 121 60 123 65 115 5 14 30 111 130 23 24 54 74 39 89 43 94 6 10 84 48 52 53 25 79 49 64 114 68 119 13 28 16 73 77 78 50 108 45 93 34 97 37 7 82 55 102 106 107 75 133 70 118 59 122 62 2 29 109 127 131 132 104 46 99 38 88 41 91 8 83 56 32 58 21 129 71 124 63 113 66 116

Table B.5: Ordering of the speech encoder bits for the 7.4 kbit/s mode: table4(j)
0 10 88 141 84 17 146 118 114 61 45 104 34 97 39 1 11 28 52 116 18 20 147 143 62 46 105 63 126 68 2 12 89 81 145 19 24 49 109 93 70 106 95 37 100 3 13 29 113 58 31 25 78 138 94 71 107 124 66 129 4 14 90 142 119 60 50 110 47 122 72 131 35 98 40 5 15 30 54 59 92 79 139 76 123 73 132 64 127 69 6 16 91 83 120 121 111 48 108 41 74 133 96 38 101 7 26 51 115 21 56 140 77 137 42 75 134 125 67 130 8 87 80 144 22 85 57 53 32 43 102 135 36 99 9 27 112 55 23 117 86 82 33 44 103 136 65 128

Table B.6: Ordering of the speech encoder bits for the 7.95 kbit/s mode: table5(j)
8 10 19 155 85 96 91 26 86 153 109 114 50 77 101 139 7 12 18 58 119 31 125 33 120 117 141 149 49 76 145 37 6 13 21 90 151 97 157 99 152 116 40 148 48 74 143 69 5 15 56 124 27 61 32 34 60 115 72 147 47 71 142 103 4 11 88 156 93 127 98 100 92 46 106 146 45 67 140 135 3 17 122 52 28 62 64 65 126 78 138 83 44 113 137 38 2 20 154 84 94 128 130 131 158 112 36 82 42 111 133 70 14 22 57 118 29 63 1 66 55 144 68 81 39 110 41 104 16 24 89 150 95 129 0 132 87 43 102 80 35 108 73 136 9 23 123 53 30 59 25 54 121 75 134 51 79 105 107

3GPP

Release 1999

18

3GPP TS 26.101 V3.3.0 (2002-03)

Table B.7: Ordering of the speech encoder bits for the 10.2 kbit/s mode: table6(j)
7 14 29 73 157 75 22 80 167 160 93 86 141 133 173 38 58 189 153 88 63 6 13 30 161 158 163 18 79 166 202 83 103 131 143 183 39 59 196 134 106 46 5 12 31 162 197 164 17 78 70 199 95 87 130 170 190 49 53 177 152 89 55 4 11 115 65 200 66 20 77 67 203 85 97 140 171 191 48 61 195 135 98 56 3 10 116 68 201 109 24 126 71 76 84 127 147 181 185 50 43 178 144 99 2 9 117 69 32 155 25 125 113 165 94 128 148 180 193 40 60 187 145 62 1 8 118 108 33 198 37 124 110 81 101 138 142 182 175 52 44 188 105 47 0 26 119 111 121 19 36 123 114 82 102 137 150 172 192 42 54 151 90 57 16 27 120 112 122 23 35 169 159 92 96 139 132 184 176 41 194 136 100 64 15 28 72 154 74 21 34 168 156 91 104 129 149 174 186 51 179 146 107 45

Table B.8: Ordering of the speech encoder bits for the 12.2 kbit/s mode: table7(j)
0 10 19 141 146 200 136 241 198 153 55 162 36 60 108 119 163 211 222 77 126 134 180 229 237 1 11 20 39 44 48 189 91 29 203 105 212 37 66 107 118 169 210 221 82 125 133 185 228 236 2 12 21 142 147 98 239 194 30 89 158 63 54 65 106 157 168 209 73 81 124 176 184 227 96 3 13 22 40 45 151 87 92 31 139 208 113 53 64 112 156 167 215 72 80 129 175 183 232 199 4 14 24 143 148 201 137 195 32 192 90 166 52 70 111 155 173 214 71 85 128 174 188 231 5 23 25 41 46 49 190 93 33 242 140 216 58 69 110 161 172 213 76 84 127 179 187 230 6 15 26 144 149 99 240 196 34 51 193 67 57 68 116 160 171 219 75 83 132 178 186 235 7 16 27 42 47 152 88 94 35 101 243 117 56 104 115 159 207 218 74 123 131 177 226 234 8 17 28 145 97 202 138 197 50 154 59 170 62 103 114 165 206 217 79 122 130 182 225 233 9 18 38 43 150 86 191 95 100 204 109 220 61 102 120 164 205 223 78 121 135 181 224 238

3GPP

Release 1999

19

3GPP TS 26.101 V3.3.0 (2002-03)

Annex C (informative): Change history


Date 1999-12 2000-03 2000-03 2000-03 TSG SA# 6 7 7 7 TSG Doc. SP-99562 SP-000025 SP-000025 SP-000025 CR Rev 001 002 003 Change history Subject/Comment Approved at TSG-SA#6 Plenary Correction of indices in Annex B table Addition of comfort noise bit ordering Correction of table indexing for AMR Core Frame class division Clarification of bit transmission order for AMR frame structure parameters for AMR Interface Format 1 (AMR IF1) Correction to SID Frame Mapping Correction of AMR codec output bitstream New 3.0.0 3.0.0 3.1.0 3.0.0 3.1.0 3.0.0 3.1.0 3.0.0 3.1.0 Old

2000-03 7

SP-000025 004

2001-06 12 2002-03 15

SP-010305 005 2 SP-020077 007 1

3.1.0 3.2.0 3.2.0 3.3.0

3GPP

You might also like