SIST ETS 300 395-2 E1:2003
(Main)Terrestrial Trunked Radio (TETRA); Speech codec for full-rate traffic channel; Part 2: TETRA codec
- Abstract
Selection and specification of the speech codec for TETRA voice plus data standard
- Status
- Published
- Publication Date
- 30-Nov-2003
- Current Stage
- 6060 - National Implementation/Publication (Adopted Project)
- Start Date
- 01-Dec-2003
- Due Date
- 01-Dec-2003
- Completion Date
- 01-Dec-2003
- Mandate
- T-300/2
SIST ETS 300 395-2 E1:2003 is the Slovenian adoption of ETS 300 395-2 Edition 1 from ETSI. It specifies the speech codec for the TETRA full-rate traffic channel, together with the speech channel coding and decoding used in TETRA voice plus data systems. It is intended for designers, implementers, testers, and buyers who need a common codec definition for interoperable TETRA equipment.
What does SIST ETS 300 395-2 E1:2003 specify?
SIST ETS 300 395-2 E1:2003 gives the full specification of the TETRA speech codec and the associated speech channel coding and decoding for the TETRA system. In practice, it defines how speech is encoded, protected against transmission errors, decoded, and represented in a bit-exact form for implementation.
The document is organized into eight clauses and six informative annexes:
- Clause 1 - Scope
- Clause 2 - Normative references
- Clause 3 - Abbreviations
- Clause 4 - Full rate codec
- Clause 5 - Channel coding for speech
- Clause 6 - Channel decoding for speech
- Clause 7 - Codec performance
- Clause 8 - Bit exact description of the TETRA codec
| Annex | What it covers |
|---|---|
| Annex A | Informative implementation of speech channel decoding |
| Annex B | Indexes for the C code routines and files |
| Annex C | Bibliography |
| Annex D | Codec performance, quality, complexity, and delay |
| Annex E | Results of codec characterization listening and complexity tests |
| Annex F | Description of the attached computer files |
What are the key requirements of SIST ETS 300 395-2 E1:2003?
SIST ETS 300 395-2 E1:2003 defines both the speech coding method and the speech channel protection used in TETRA. The main practical points are the codec structure, the frame and bit allocation, the error-control scheme, and the bit-exact implementation that equipment must follow.
Speech codec structure
Clause 4 states that the TETRA speech codec is based on the Code-Excited Linear Predictive (CELP) model, with an analysis-by-synthesis encoder and a synthesizer that uses both long-term and short-term prediction filters. This matters because implementers need to reproduce the same coding behavior, not just the same nominal bitrate.
Clause 4 also says that the codec uses Algebraic CELP (ACELP) with a dynamic algebraic excitation codebook. That means the innovation signal is not arbitrary - it follows a defined algebraic structure that affects search complexity, memory use, and robustness.
Frame organization and bitrate
Clause 4 requires 30 ms speech frames divided into four 7.5 ms subframes. LP parameters are transmitted every frame, while pitch and algebraic codebook parameters are transmitted every subframe. In practice, this is the basic timing model that shapes buffering, delay, and implementation scheduling.
The same clause gives a frame payload of 137 bits, producing a bitrate of 4 567 bit/s. For integrators, this is the number that drives transport, channel mapping, and file or packet sizing.
Prediction, quantization, and codebook search
Clause 4 specifies LP analysis and conversion through linear prediction and line spectral representation. It uses LP order 10, and the document describes LP to LSP and LSP to LP conversion, including quantization and interpolation in the cosine domain. In practical terms, equipment must preserve the quantized LP information and use the defined conversion approach to match the standard's speech quality.
The codec also requires a focused search for the algebraic codebook. The search uses four pulses and thresholds that limit how much of the codebook is examined. For implementers, this is important because it directly affects processor load and worst-case execution time.
Gain handling and error robustness
Clause 4 defines quantization of the adaptive and fixed codebook gains using predicted energies and vector quantization. It also limits the quantized energies to avoid bursts after unrecovered transmission errors. That matters because the codec is designed to behave more gracefully when the radio link is imperfect.
Clause 6 adds error concealment rules for bad frames. When the receiver detects a problem, it uses the bad frame indication (BFI) and applies a defined concealment strategy rather than simply outputting invalid speech. This is what keeps speech output intelligible during errors.
Speech channel error control
Clause 5 defines the error control process for the speech traffic channel (TCH/S). It divides the transmitted information into sensitivity classes, adds cyclic redundancy code (CRC) protection to the most sensitive class, applies rate-compatible punctured convolutional (RCPC) coding, and then interleaves and scrambles the bits. In practice, this is the protection chain that makes speech usable over the radio channel.
The same clause distinguishes two operating cases:
- normal speech traffic channel, where two speech frames are handled together in one transmission time slot
- speech traffic channel with frame stealing activated, where speech and signalling are processed separately
This distinction matters because it changes block sizes, coding layout, and interleaving behavior. The receive side in Clause 6 mirrors the transmit side and uses CRC comparison to set the BFI when needed.
Bit-exact implementation and conformance
Clause 8 gives the bit-exact description of the codec in fixed-point ANSI C. It also identifies the attached code structure for the source coder, source decoder, channel coder, and channel decoder, together with tables and constants. For implementers, this is the practical reference for software compatibility and for bit-exact testing.
What terms does SIST ETS 300 395-2 E1:2003 define?
SIST ETS 300 395-2 E1:2003 uses a set of codec and radio terms that are central to implementation.
- CELP (Code-Excited Linear Predictive) - A speech coding model that synthesizes speech from a filtered excitation sequence.
- ACELP (Algebraic CELP) - A CELP method that uses an algebraic codebook for the excitation signal.
- LP (Linear Prediction) - A prediction method used to model the speech spectral envelope.
- LSP (Line Spectral Pair) - A representation of LP parameters that is easier to quantize and interpolate.
- CRC (Cyclic Redundancy Code) - An error-detection code used here on the most sensitive class of bits.
- RCPC (Rate-Compatible Punctured Convolutional) - A convolutional coding family used for channel protection.
- BFI (Bad Frame Indicator) - A flag used at the decoder when the CRC check shows a frame problem.
Who uses SIST ETS 300 395-2 E1:2003?
SIST ETS 300 395-2 E1:2003 is used by TETRA equipment manufacturers, radio system designers, chipset and software developers, and conformance test teams. It is also relevant to network operators and buyers who need to verify that speech equipment and firmware follow the same codec and channel coding behavior.
In practice, people use it for:
- designing TETRA speech encoders and decoders
- implementing channel coding and decoding for the speech traffic channel
- checking bit-exact interoperability between vendors
- evaluating codec performance, complexity, and delay
- preparing conformance and characterization tests for TETRA voice plus data systems
Which standards are used with SIST ETS 300 395-2 E1:2003?
SIST ETS 300 395-2 E1:2003 cites ETS 300 392-2 as the main normative reference. That standard provides the TETRA system, the voice plus data air interface, the logical channels, and the reference transmission configuration used by the speech channel coding clauses.
It also cites CCITT Recommendation P.48, which provides the Intermediate Reference System used as a speech reference condition. That matters for evaluating codec quality against a known reference setup.
The foreword also places this document in the TETRA codec series:
- Part 1 - General description of speech functions
- Part 2 - TETRA codec
- Part 3 - Specific operating features
- Part 4 - Codec conformance testing
What does the SIST ETS 300 395-2 E1:2003 document contain?
SIST ETS 300 395-2 E1:2003 contains block diagrams of the encoder and decoder, the frame structure, the bit allocation, and the channel error-control structure. It also provides detailed descriptions of LP analysis, LSP conversion, algebraic codebook search, gain quantization, and decoder concealment.
The document includes tables for bit allocation and for the ordering of speech bits through the channel-coding process. It also includes figures for the signal flow at the encoder and decoder, the interface stages in the error-control structure, and the codebook search procedure.
Annex D and Annex E present codec performance material, including subjective quality tests, comparison with analogue FM, channel coding performance metrics such as BER, MER, and PUEM, complexity analysis, and delay breakdown. Annex F describes the attached computer files, while Clause 8 identifies the ANSI C files and the fixed-point implementation used to make the codec bit exact.
Get Certified
Connect with accredited certification bodies for this standard

ANCE
Mexican certification and testing association.

Intertek Slovenia
Intertek testing, inspection, and certification services in Slovenia.

LNE (Laboratoire National de Métrologie et d'Essais)
French national laboratory for metrology and testing.
Sponsored listings
Frequently Asked Questions
SIST ETS 300 395-2 E1:2003 is a standard published by the Slovenian Institute for Standardization (SIST). Its full title is "Terrestrial Trunked Radio (TETRA); Speech codec for full-rate traffic channel; Part 2: TETRA codec". This standard covers: Selection and specification of the speech codec for TETRA voice plus data standard
Selection and specification of the speech codec for TETRA voice plus data standard
SIST ETS 300 395-2 E1:2003 is classified under the following ICS (International Classification for Standards) categories: 33.070.10 - Terrestrial Trunked Radio (TETRA). The ICS classification helps identify the subject area and facilitates finding related standards.
SIST ETS 300 395-2 E1:2003 is associated with the following European legislation: Standardization Mandates: T-300/2. When a standard is cited in the Official Journal of the European Union, products manufactured in conformity with it benefit from a presumption of conformity with the essential requirements of the corresponding EU directive or regulation.
SIST ETS 300 395-2 E1:2003 is available in PDF format for immediate download after purchase. The document can be added to your cart and obtained through the secure checkout process. Digital delivery ensures instant access to the complete standard document.
Standards Content (Sample)
Contents
- 1 Scope
- 2 Normative references
- 3 Abbreviations
- 4 Full rate codec
- 4.1 Structure of the codec
- 4.2 Functional description of the codec
- 4 SUBFRAMES
- 4 SUBFRAMES
- 5 Channel coding for speech
- 5.1 General
- 5.2 Interfaces in the error control structure
- 5.3 Notations
- 5.4 Definition of sensitivity classes and error control codes
- 5.5 Error control scheme for normal speech traffic channel
- 1 B35,A 2 B35,B 3 B36,A 4 B36,B 5 B37,A
- 6 B37,B 7 B38,A 8 B38,B 9 B39,A 10 B39,B
- 11 B40,A 12 B40,B 13 B41,A 14 B41,B 15 B42,A
- 16 B42,B 17 B43,A 18 B43,B 19 B47,A 20 B47,B
- 21 B48,A 22 B48,B 23 B56,A 24 B56,B 25 B61,A
- 26 B61,B 27 B62,A 28 B62,B 29 B63,A 30 B63,B
- 31 B64,A 32 B64,B 33 B65,A 34 B65,B 35 B66,A
- 36 B66,B 37 B67,A 38 B67,B 39 B68,A 40 B68,B
- 41 B69,A 42 B69,B 43 B70,A 44 B70,B 45 B74,A
- 46 B74,B 47 B75,A 48 B75,B 49 B83,A 50 B83,B
- 51 B88,A 52 B88,B 53 B89,A 54 B89,B 55 B90,A
- 56 B90,B 57 B91,A 58 B91,B 59 B92,A 60 B92,B
- 61 B93,A 62 B93,B 63 B94,A 64 B94,B 65 B95,A
- 66 B95,B 67 B96,A 68 B96,B 69 B97,A 70 B97,B
- 71 B101,A 72 B101,B 73 B102,A 74 B102,B 75 B110,A
- 76 B110,B 77 B115,A 78 B115,B 79 B116,A 80 B116,B
- 81 B117,A 82 B117,B 83 B118,A 84 B118,B 85 B119,A
- 86 B119,B 87 B120,A 88 B120,B 89 B121,A 90 B121,B
- 91 B122,A 92 B122,B 93 B123,A 94 B123,B 95 B124,A
- 96 B124,B 97 B128,A 98 B128,B 99 B129,A 100 B129,B
- 5.6 Error control scheme for speech traffic channel with frame stealing activated
- 6 Channel decoding for speech
- 6.1 General
- 6.2 Error control structure
- 7 Codec performance
- 8 Bit exact description of the TETRA codec
- Annex A (informative): Implementation of speech channel decoding
- Annex B (informative): Indexes
- Annex C (informative): Bibliography
- Annex D (informative): Codec performance
- Annex E (informative): Results of the TETRA codec characterization listening
- 1 Swedish
- 2 Italian
- 3 Dutch
- 4 German
- 5 German
- 6 Dutch
- 8 English
- 9 French
- 10 French
- 11 English
- Annex F (informative): Description of attached computer files
1 Scope
This European Telecommunication Standard (ETS) contains the full specification of the speech codec for use in the Trans-European Trunked Radio (TETRA) system.
2 Normative references
This ETS incorporates by dated and undated reference, provisions from other publications. These normative references are cited at the appropriate places in the text and the publications are listed hereafter. For dated references, subsequent amendments to or revisions of any of these publications apply to this ETS only when incorporated in it by amendment or revision. For undated references the latest edition of the publication referred to applies.
[1] ETS 300 392-2: "Radio Equipment and Systems (RES); Trans-European Trunked Radio (TETRA) system; Voice plus Data; Part 2: Air Interface". [2] CCITT Recommendation P.48 (1988): "Specifications for an Intermediate Reference System".
3 Abbreviations
For the purposes of this ETS, the following abbreviations apply:
ACELP Algebraic CELP ANSI American National Standards Institute BER Bit Error Ratio BFI Bad Frame Indicator BS Base Station CELP Code-Excited Linear Predictive CRC Cyclic Redundancy Code DSP Digital Signal Processor DTMF Dual Tone Multiple Frequency EP Error Pattern FIR Finite Impulse Response IRS Intermediate Reference System LP Linear Prediction LPC Linear Predictive Coding LSF Line Spectral Frequency LSP Line Spectral Pair MER Message Error Rate MNRU Multiplicative Noise Reference Unit MOS Mean Opinion Score MS Mobile Station MSE Mean Square Error PDF Probability Density Function PUEM Probability of Undetected Erroneous Message RCPC Rate-Compatible Punctured Convolutional RF Radio Frequency VQ Vector Quantization
4 Full rate codec
4.1 Structure of the codec
The TETRA speech codec is based on the Code-Excited Linear Predictive (CELP) coding model. In this model, a block of N speech samples is synthesized by filtering an appropriate innovation sequence from a codebook, scaled by a gain factor g , through two time varying filters. A simplified high level block
diagram of this synthesis process, as implemented in the TETRA codec, is shown in figure 1.
SIST ETS 300 395-2 E1:2003 Page 10 ETS 300 395-2: December 1996 Digital Input Algebraic codebook index D E Pitch delay M U L T GAIN PREDICTION Gains I P AND VQ L E Past X Excitation g T p ADAPTIVE LPC Info CODEBOOK SHORT-TERM LONG-TERM SYNTHESIS FILTER Output SYNTHESIS FILTER Speech g k
ALGEBRAIC CODEBOOK Figure 1: High level block diagram of the TETRA speech synthesizer The first filter is a long-term prediction filter (pitch filter) aiming at modelling the pseudo-periodicity in the speech signal and the second is a short-term prediction filter modelling the speech spectral envelope. The long-term or pitch, synthesis filter is given by:
= (1)
T Bz
1−gz p where T is the pitch delay and g is the pitch gain. The pitch synthesis filter is implemented as an adaptive p codebook, where for delays less than the sub-frame length the past excitation is repeated. The short-term synthesis filter is given by:
Hz== () (2) p Az
−i 1+∑az
i=1 where ai,,=1...,p, are the Linear Prediction (LP) parameters and p is the predictor order. In the
TETRA codec p shall be 10.
The TETRA encoder uses an analysis-by-synthesis technique to determine the pitch and excitation codebook parameters. The simplified block diagram of the TETRA encoder is shown in figure 2.
SIST ETS 300 395-2 E1:2003 Page 11 ETS 300 395-2: December 1996 Input Speech LPC ANALYSIS Unquantized QUANTIZATION LPC info & INTERPOLATION T
OPEN LOOP PERCEPTUAL PITCH ANALYSIS WEIGHTING Past Excitation g T p ADAPTIVE LPC Info CODEBOOK SHORT-TERM SYNTHESIS FILTER g k c ALGEBRAIC CODEBOOK PERCEPTUAL MSE SEARCH WEIGHTING Gains M GAIN VQ U L Pitch delay (T) T I Codebook index (k) P L LPC info Digital E Output X Figure 2: High level block diagram of the TETRA speech encoder In this analysis-by-synthesis technique, the synthetic speech is computed for all candidate innovation sequences retaining the particular sequence that produces the output closer to the original signal according to a perceptually weighted distortion measure. The perceptual weighting filter de-emphasizes the error at the formant regions of the speech spectrum and is given by:
Az
Wz = (3)
Az γ
where A(z) is the LP inverse filter (as in Equation (2)) and 01<≤γ . The value γ =08, 5 shall be used.
Both the weighting filter, Wz , and formant synthesis filter, Hz , shall use the quantized LP
parameters.
In the Algebraic CELP (ACELP) technique, special innovation codebooks having an algebraic structure are used. This algebraic structure has several advantages in terms of storage, search complexity, and robustness. The TETRA codec shall use a specific dynamic algebraic excitation codebook whereby the fixed excitation vectors are shaped by a dynamic shaping matrix (see annex C {1}). The shaping matrix is a function of the LP model Az , and its main role is to shape the excitation vectors in the frequency
domain so that their energies are concentrated in the important frequency bands. The shaping matrix used is a Toeplitz lower triangular matrix constructed from the impulse response of the filter:
Az/γ
Fz = (4)
Az/γ
where Az is the LP inverse filter. The values γ =07, 5 and γ =08, 5 shall be used.
1 2
SIST ETS 300 395-2 E1:2003 Page 12 ETS 300 395-2: December 1996 In the TETRA codec, 30 ms speech frames shall be used. It is required that the short-term prediction parameters (or LP parameters) are computed and transmitted every speech frame. The speech frame shall be divided into 4 sub-frames of 7,5 ms (60 samples). The pitch and algebraic codebook parameters have also to be transmitted every sub-frame.
Table 1 gives the bit allocation for the TETRA codec. 137 bits shall be produced for each frame of 30 ms resulting in a bit rate of 4 567 bit/s.
Table 1: Bit allocation for the TETRA codec Parameter 1st subframe 2nd subframe 3rd subframe 4th subframe Total per frame LP filter 26 Pitch delay 8 5 5 5 23 Algebraic code 16 16 16 16 64 VQ of 2 gains 6 6 6 6 24 Total 137 More details about the sequence of bits within the speech frame of 137 bits per 30 ms, with reference to the speech parameters, can be found in subclause 4.2.2.7, table 3.
4.2 Functional description of the codec
4.2.1 Pre-and post-processing
Before starting the encoding process, the speech signal shall be pre-processed using the offset compensation filter:
−1
1 1−z
Hz= (5)
p
−1
1−αz
where α = 32 735/32 768. In the time domain, this filter corresponds to:
s()n=−sn()//21sn(− )2+αs(n−1) (6)
where sn() is the input signal and sn() is the pre-processed signal. The purpose of this pre-processing is firstly to remove the dc from the signal (offset compensation), and secondly, to scale down the input signal in order to avoid saturation of the synthesis filtering. At the decoder, the post-processing consists of scaling up the reconstructed signal (multiplication by 2 with saturation control).
4.2.2 Encoder
Figure 3 presents a detailed block diagram of the TETRA encoder illustrating the major parts of the codec as well as signal flow. On this figure, names appearing at the bottom of the various building blocks correspond to the C code routines associated with this ETS.
SIST ETS 300 395-2 E1:2003 Page 13 ETS 300 395-2: December 1996 Input OFFSET Speech INTERPOLATION COMPENSATION LSP Pre-processing FOR THE 4 AND DIVISION QUANTIZATION s(n) ^ SUBFRAMES A(z) BY 2 Int_Lpc4 Lsp_Az Clsp_334 Pre_Process s'(n) f WINDOWING r LEVINSON AND a LPC analysis DURBIN A(z) LSP AUTOCORRELATION m R [ ] A(z) R [ ] Lag_Window Az_Lsp e Autocorr Levin_32 COMPUTE INTERPOLATE Open-loop WEIGHTED FIND
4 SUBFRAMES
pitch search SPEECH OPEN-LOOP PITCH LSP A(z) (4 SUBFRAMES) Int_Lpc4 Lsp_Az Pitch_Ol_Dec Pond_Ai Residu Syn_Filt T
A(z) LSP index COMPUTE COMPUTE TARGET Adaptive x(n) FIND BEST DELAY ADAPTIVE codebook FOR ADAPTIVE AND GAIN CODEBOOK search CODEBOOK CONTRIBUTION Pitch_Fr Syn_Filt Pred_Lt G_Pitch pitch index x(n) s u b COMPUTE TARGET FIND BEST Innovative xn2(n) f code index codebook FOR INNOVATION r search INNOVATION AND GAIN a D4i60_16 G_Code m e gains index GAINS UPDATE FILTER Compute COMPUTE QUANTIZATION MEMORIES FOR error EXCITATION IN ENERGY NEXT SUBFRAME DOMAIN Syn_Filt Ener_Qua Figure 3: Signal flow at the encoder
4.2.2.1 Short-term prediction
Short-term prediction (LP or LPC analysis) shall be performed every 30 ms. The auto-correlation approach shall be used with an asymmetric analysis window. The LP analysis window consists of two halves of Hamming windows with different lengths. This window is given by:
πn wn =−05,,4 0 46cos , nL=−01,...,
L−1
(7) πnL−
=+05, 4 0,46cos , nL=+,...,L L−1
11 2 L−1
A 32 ms analysis window (corresponding to 256 samples with the sampling frequency of 8 kHz) shall be used with values L = 216 and L = 40. The window shall be positioned such that 40 samples are taken 1 2 from the future frame (look-ahead of 40 samples).
SIST ETS 300 395-2 E1:2003 Page 14 ETS 300 395-2: December 1996 The auto-correlation of the windowed speech sn′ ,,n= 0...,255 , are computed by:
rk = s′ ns′ n−=k,,k 01...,0 (8)
nk= and a 60 Hz bandwidth expansion has to be used by lag windowing the auto-correlation using the window (see annex C {2}):
πfi 1 2
wi=−exp , i=11,...,0 (9)
lag 2 f
s
where f = 60 Hz is the bandwidth expansion and f = 8 000 Hz is the sampling frequency. Further, r 0
0 s is multiplied by 1,00005 which is equivalent to adding a noise floor at -43 dB. In the TETRA coder, this is
alternatively performed by dividing the lag window as in equation (9) by 1,00005, resulting in w 01=
lag and:
wi==w i /1,00005 i 1,...,10 (10)
lag lag The modified auto-correlation:
rk==rkw k , k 01,...,0 (11)
lag are used to obtain the LP filter coefficients ak, =11,...,0, by solving the set of equations:
k
ar i−k =−r i,,i=11...,0 (12)
k
k 1 The set of equations in (12) shall be solved using the Levinson-Durbin algorithm (see annex C {3}).
4.2.2.2 LP to LSP and LSP to LP conversion
The LP filter coefficients of Az (ak, =11,...,0) shall be converted to the Line Spectral Pair (LSP)
k representation (see annex C {4}) for quantization and interpolation purposes. For a 10th order LP filter, the LSPs are defined as the roots of the sum and difference polynomials:
' −−11 1 Fz()=+A()z z Az (13)
and ' −−11 1 Fz=−Az z Az (14)
2 () respectively. It can be proven that all roots of these polynomials are on the unit circle and they alternate each other (see annex C {5}). Fz has a root z =−1(ωπ= ) and Fz has a root z==10()ω .
1 2
SIST ETS 300 395-2 E1:2003 Page 15 ETS 300 395-2: December 1996 To eliminate these two roots, new polynomials are defined:
−1 Fz()= Fz′()/1+z (15) 11 () and −1 Fz= Fz′/1−z (16)
22 () ±jω
Each polynomial has 5 conjugate roots on the unit circle e , therefore, the polynomials can be
written as:
−−12 Fz()=−∏ 12qz+z (17)
1 i i=13,,...,9 and −−12 Fz=−12qz+z (18)
2 ()i i=24,,...,10 where q= cos ω , with ω being the Line Spectral Frequencies (LSFs). They satisfy the ordering
ii i property 0<<ωω<...<ω <π. q are referred as the LSPs in the cosine domain. 12 10 i The first five coefficients of each of the symmetric polynomials Fz and Fz are found by the
1 2 recursive relations (for i = 0 to 4):
fi+=1 a + a − f i
11ip+−i 1 (19) fi+=1 a − a + f i
21ip+−i 2 Fz Fz The LSPs are found by evaluating the polynomials () and () at 60 points equally spaced between 1 2 0 and π and checking for sign changes. A sign change signifies the existence of a root and the sign change interval is then divided 4 times to better track the root. The Chebyshev polynomials have to be used to evaluate Fz and Fz (see annex C {6}). This method is very computationally efficient since
1 2 it bypasses the cosine computations as the roots are found directly in the cosine domain q . In the
TETRA codec, implementation, quantization and interpolation of the LSPs are performed in the cosine domain, thus no trigonometric computations are needed to convert to the frequency domain. The polynomials Fz or Fz are given by:
1 2 −j5ω Fz=+21e T x f Tx+f2T x+f3Tx+f4T x+f5/2 (20)
54 3 2 1 where Tx= cosmω is the mth order Chebyshev polynomial, and fi ,i=15,... , are the
m coefficients of either Fz or Fz , computed using the equations in (19). The details of the Chebyshev
1 2 polynomial evaluation method are found in (see annex C {6}). If this numerical process is not able to find enough roots, the previous computed set of LSPs is used.
Once the LSPs are quantized and interpolated, they are converted back to the LP coefficient domain Az . The conversion to the LP domain is done as follows. The coefficients of Fz and Fz are
1 2 found by expanding equations (17) and (18) knowing the quantized and interpolated LSPs qi,,=11...0.
SIST ETS 300 395-2 E1:2003 Page 16 ETS 300 395-2: December 1996 The following recursive relation shall be used to compute fi :
i = 1 for to 5 fi =−21q f i− +2f i−2
12i−11 1 for ji=−1 down to 1 fj=−f j21q f j−+f j−2
11 2i−11 1 with initial values f 01= and f −=10. The coefficients fi are computed similarly by replacing
1 1 2 q by q . Once the coefficients fi and fi are found, Fz and Fz are multiplied by
21i− 2i 1 2 1 2
1 1 1+z and 1−z , respectively, to obtain Fz′ and Fz′ ; that is fi′=+f i fi−1 and
1 2 11 1 f′i=−fi fi−11,i= ,...,5. Finally the LP coefficients are found by
22 2 af=+05,i 05,fi,i=1,...,5 and af=−05,i 5−0,5fi−5,i=5,...,10. This is directly
i 12 i 12 derived from the relation Az = F′z +F′ z/2 , and considering the fact that Fz′ and Fz′ are
12 1 2 symmetrical and anti-symmetrical polynomials, respectively.
4.2.2.3 Quantization and interpolation of LP parameters
The computed LP parameters have to be converted to LSPs and quantized with 26 bits using split-VQ. NOTE: Both the quantization and interpolation are performed on the LSPs in the cosine domain; that is:
qf==cos21πf , i ,...,10 (21)
iis where f is the line spectral frequencies in Hz and f is the sampling frequency. i s The LSP vector q shall be split into three sub-vectors of length 3, 3, and 4. The first sub-vector qq,,q shall be quantized with 8 bits while the sub-vectors qq,,q and qq,,qq, shall
12 3 45 6 78 9 10 be each quantized with 9 bits. The search is performed using Mean Square Error (MSE) minimization in the q domain with no LSP weighting.
The quantized LP parameters are used for the fourth sub-frame, whereas the first three sub-frames use a linear interpolation of the parameters of the present and previous frames. The interpolation is performed
on the LSPs in the q domain. Let q be the quantized LSP vector at the present frame and q the n n−1 quantized LSP vector at the past frame. The interpolated LSP vectors at each of the 4 sub-frames are given by:
qq00,75� ,25q�
11nn qq05, 0� 0,50q�
21nn (22)
qq=+00,25 ,75q 31nn−
qq= 4 n
The initial values of the past quantized LSP vector are given in Q15 by q = {30 000, 26 000, 21 000, −1
15 000, 8 000, 0, -8 000, -15 000, -21 000, -26 000}. (Divide by 2 to obtain the values in the range [-1,1]). The interpolated LSP vectors shall be used to compute a different LP filter at each subframe.
SIST ETS 300 395-2 E1:2003 Page 17 ETS 300 395-2: December 1996
4.2.2.4 Long-term prediction analysis
The aim of the long term prediction analysis or adaptive codebook search is to find the best pitch parameters, which are the delay and gain values for the pitch filter. The pitch filter shall be implemented using the so-called adaptive codebook approach whereby the excitation is repeated for delays less than the sub-frame length (60). In this implementation the excitation is extended by the LP residual in the search stage to simplify the closed-loop search. In the first sub-frame, a fractional pitch delay is used with 1 2 resolutions: 1/3 in the range 19 − 84 and integers only in the range [85 - 143]. For the other sub- 3 3 2 2 frames, a pitch resolution of 1/3 is always used in the range TT−−54+ , where T is the 1 1 1 3 3 nearest integer to the fractional pitch lag of the first sub-frame. To simplify the pitch analysis procedure, a two stage approach shall be used, comprising first an open loop pitch search followed by a closed loop search.
The open loop pitch has to be computed once every speech frame (30 ms) using a weighted speech signal sn . A pole-zero type weighting procedure shall be used to get sn . This procedure shall be
w w performed with the help of a shaping filter Az/,095/Az/0,60 for which the un-quantized LP
parameters shall be used.
The open loop pitch search shall then be performed as follows. In a first step, 3 maxima of the correlation:
Cs=−∑ ()22js(jk) (23) kw w j=0 are found in the three ranges, [20 - 39], [40 - 79] and [80 - 142], respectively. The retained maxima
Ci, =13,..., , are normalized by dividing by sn−k ,i=13,..., , respectively. The normalized
k wi
n maxima and corresponding delays are denoted by Rk,,i=13,... . The winner among the three
normalized correlation is selected by favouring the delays in the lower ranges. That is, k is selected if
RR>08, 5 . This procedure of dividing the delay range into 3 sections and favouring the lower ii+1 sections is used to avoid choosing pitch multiples.
NOTE 1: The past weighted speech samples are initialized to zero. Having found the open-loop pitch T , a closed-loop pitch analysis has to be performed around the openop loop pitch delay on a sub-frame basis. In the first sub-frame the range T ± 2 bounded by [20 - 143] is op searched. For the other sub-frames, closed-loop pitch analysis is performed around the pitch selected in the first sub-frame. As mentioned earlier, a pitch resolution of 1/3 is always used for the other sub-frames 2 2 in the range TT−−54+ , where T is the integer part of the first sub-frame pitch lag. 1 1 1 3 3 The pitch delay shall be encoded with 8 bits in the first sub-frame while the relative delays of the other sub-frames shall be encoded with 5 bits per sub-frame.
The closed loop pitch search shall be performed by minimizing the mean-square weighted error between the original and synthesized speech. This is achieved by maximizing the term:
xn y n
k n=0 τ = , k
y ny n
k k n= 0 (24)
SIST ETS 300 395-2 E1:2003 Page 18 ETS 300 395-2: December 1996 where xn is the target for the adaptive codebook search given by the weighted input speech after
subtracting the zero-input response of the weighted synthesis filter HzW z and yn is the past
k filtered excitation at delay k (the past excitation is initialized to zero). NOTE 2: The search range is limited around the open-loop pitch as explained earlier. For delays k < 60 the excitation signal un is extended by the LP residual signal. Once the optimum
2 1 1 2 integer pitch delay is determined, the fractions − , − , , and around that integer are tested. 3 3 3 3 NOTE 3: For the first sub-frame, the fractions are tested only if the integer pitch lag is less than 85.
The fractional pitch search is performed by interpolating the normalized correlation in equation (24) and searching for its maximum. Once the non-integer pitch is determined, the adaptive codebook vector vn
is computed by interpolating the past excitation signal un . The interpolation shall be performed using
two FIR filters (Hamming windowed sinc functions); one for interpolating the term in equation (24) with the sinc truncated at ±12 (8 multiplications per fraction) and the other for interpolating the past excitation with the sinc truncated at ±48 (32 multiplications per sample). The pitch gain is then found by:
∑xn()y()n n=0 g = , bounded by 01≤≤g ,2 (25) p p
yn y n
n=0 where yn=∗v n h n is the filtered adaptive codebook vector (zero-state response of HzW z to
vn ).
NOTE 4: Only positive pitch gains are allowed since by maximizing the term in equation (24) the negative correlations are eliminated.
...



