3GPP TS 26.073 V8.0.0 (2008-12)
Technical Specification
3rd Generation Partnership Project;
Technical Specification Group Services and System Aspects;
ANSI-C code for the Adaptive Multi Rate (AMR) speech codec
(Release 8)
The present document has been developed within the 3
rd
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
Organisational Partners and shall not be implemented.
This Specification is provided for future development work within 3GPP
only. The Organisational 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 Organisational Partners' Publications Offices.
3GPP
3GPP TS 26.073 V8.0.0 (2008-12)
2
Release 8
Keywords
GSM, UMTS, CODEC, LTE
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.
© 2008, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TTA, TTC).
All rights reserved.
UMTS™ is a Trade Mark of ETSI registered for the benefit of its members
3GPP™ is a Trade Mark of ETSI registered for the benefit of its Members and of the 3GPP Organizational Partners
LTE™ is a Trade Mark of ETSI currently being registered for the benefit of its Members and of the 3GPP Organizational Partners
GSM® and the GSM logo are registered and owned by the GSM Association
3GPP
3GPP TS 26.073 V8.0.0 (2008-12)
3
Release 8
Contents
Foreword .............................................................................................................................................................4
1 Scope.........................................................................................................................................................5
2 References.................................................................................................................................................5
3 Definitions and abbreviations ...................................................................................................................5
3.1 Definitions ...........................................................................................................................................................5
3.2 Abbreviations.......................................................................................................................................................5
4 C code structure ........................................................................................................................................6
4.1 Contents of the C source code .............................................................................................................................6
4.2 Program execution...............................................................................................................................................6
4.3 Coding style.........................................................................................................................................................7
4.4 Code hierarchy.....................................................................................................................................................7
4.5 Variables, constants and tables..........................................................................................................................11
4.5.1 Description of constants used in the C-code................................................................................................11
4.5.2 Description of fixed tables used in the C-code ............................................................................................11
4.5.3 Static variables used in the C-code ..............................................................................................................13
5 Homing procedure ..................................................................................................................................17
6 File formats .............................................................................................................................................23
6.1 Speech file (encoder input / decoder output).....................................................................................................23
6.2 Mode control file (encoder input)......................................................................................................................23
6.3 Parameter bitstream file (encoder output / decoder input) ................................................................................23
Annex A (informative): Change History...............................................................................................25
3GPP
3GPP TS 26.073 V8.0.0 (2008-12)
4
Release 8
Foreword
This Technical Specification (TS) has been produced by the 3
rd
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.
3GPP
3GPP TS 26.073 V8.0.0 (2008-12)
5
Release 8
1 Scope
The present document contains an electronic copy of the ANSI-C code for the Adaptive Multi-Rate codec. The ANSI-C
code is necessary for a bit exact implementation of the Adaptive Multi Rate speech transcoder (TS 26.090 [2]), Voice
Activity Detection (TS 26.094 [6]), comfort noise (TS 26.092 [4]), source controlled rate operation (TS 26.093 [5]) and
example solutions for substituting and muting of lost frames (TS 26.091 [3]).
2 References
The following documents contain provisions which, through reference in this text, constitute provisions of the present
document.
� 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.
[1] 3GPP TS 26.074: "AMR Speech Codec; Test sequences".
[2] 3GPP TS 26.090: "AMR Speech Codec; Speech transcoding".
[3] 3GPP TS 26.091: "AMR Speech Codec; Substitution and muting of lost frames".
[4] 3GPP TS 26.092: "AMR Speech Codec; Comfort noise aspects".
[5] 3GPP TS 26.093: "AMR Speech Codec; Source controlled rate operation".
[6] 3GPP TS 26.094: "AMR Speech Codec; Voice Activity Detection".
[7] RFC 3267: "A Real-Time Transport Protocol (RTP) Payload Format and File Storage Format for
Adaptive Multi-Rate (AMR) and Adaptive Multi-Rate Wideband (AMR-WB) Audio Codecs",
June 2002.
3 Definitions and abbreviations
3.1 Definitions
Definition of terms used in the present document, can be found in TS 06.090 [2], TS 06.091 [3], TS 06.092 [4],
TS 06.093 [5] and TS 06.094 [6].
3.2 Abbreviations
For the purpose of the present document, the following abbreviations apply:
ANSI American National Standards Institute
ETS European Telecommunication Standard
GSM Global System for Mobile communications
I/O Input/Output
RAM Random Access Memory
ROM Read Only Memory
评论0