DSP C5000 Chapter 23 Mobile Communication Speech Coders Copyright © 2003 Texas Instruments. All rights reserved.

Slides:



Advertisements
Similar presentations
Chapter 23 Mobile Communication Speech Coders
Advertisements

DSP C5000 Chapter 16 Adaptive Filter Implementation Copyright © 2003 Texas Instruments. All rights reserved.
Speech Coding Techniques
ECE 8443 – Pattern Recognition ECE 8423 – Adaptive Signal Processing Objectives: The Linear Prediction Model The Autocorrelation Method Levinson and Durbin.
Copyright 2001, Agrawal & BushnellVLSI Test: Lecture 181 Lecture 18 DSP-Based Analog Circuit Testing  Definitions  Unit Test Period (UTP)  Correlation.
Speech & Audio Coding TSBK01 Image Coding and Data Compression Lecture 11, 2003 Jörgen Ahlberg.
Page 0 of 34 MBE Vocoder. Page 1 of 34 Outline Introduction to vocoders MBE vocoder –MBE Parameters –Parameter estimation –Analysis and synthesis algorithm.
A 12-WEEK PROJECT IN Speech Coding and Recognition by Fu-Tien Hsiao and Vedrana Andersen.
Itay Ben-Lulu & Uri Goldfeld Instructor : Dr. Yizhar Lavner Spring /9/2004.
Speech in Multimedia Hao Jiang Computer Science Department Boston College Oct. 9, 2007.
CELLULAR COMMUNICATIONS 5. Speech Coding. Low Bit-rate Voice Coding  Voice is an analogue signal  Needed to be transformed in a digital form (bits)
Speech Coding Nicola Orio Dipartimento di Ingegneria dell’Informazione IV Scuola estiva AISV, 8-12 settembre 2008.
Speech & Audio Processing
Overview of Adaptive Multi-Rate Narrow Band (AMR-NB) Speech Codec
EE2F1 Speech & Audio Technology Sept. 26, 2002 SLIDE 1 THE UNIVERSITY OF BIRMINGHAM ELECTRONIC, ELECTRICAL & COMPUTER ENGINEERING Digital Systems & Vision.
Fundamental of Wireless Communications ELCT 332Fall C H A P T E R 6 SAMPLING AND ANALOG-TO-DIGITAL CONVERSION.
COMP 249 :: Spring 2005 Slide: 1 Audio Coding Ketan Mayer-Patel.
EE513 Audio Signals and Systems Wiener Inverse Filter Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
A Full Frequency Masking Vocoder for Legal Eavesdropping Conversation Recording R. F. B. Sotero Filho, H. M. de Oliveira (qPGOM), R. Campello de Souza.
DIGITAL VOICE NETWORKS ECE 421E Tuesday, October 02, 2012.
„Bandwidth Extension of Speech Signals“ 2nd Workshop on Wideband Speech Quality in Terminals and Networks: Assessment and Prediction 22nd and 23rd June.
LECTURE Copyright  1998, Texas Instruments Incorporated All Rights Reserved Encoding of Waveforms Encoding of Waveforms to Compress Information.
1 CS 551/651: Structure of Spoken Language Lecture 8: Mathematical Descriptions of the Speech Signal John-Paul Hosom Fall 2008.
Speech Coding Using LPC. What is Speech Coding  Speech coding is the procedure of transforming speech signal into more compact form for Transmission.
Page 0 of 23 MELP Vocoders Nima Moghadam SN#: Saeed Nari SN#: Supervisor Dr. Saameti April 2005 Sharif University of Technology.
Speech Coding Submitted To: Dr. Mohab Mangoud Submitted By: Nidal Ismail.
Concepts of Multimedia Processing and Transmission IT 481, Lecture #4 Dennis McCaughey, Ph.D. 25 September, 2006.
SPEECH CODING Maryam Zebarjad Alessandro Chiumento.
CE Digital Signal Processing Fall 1992 Waveform Coding Hossein Sameti Department of Computer Engineering Sharif University of Technology.
1 Linear Prediction. 2 Linear Prediction (Introduction) : The object of linear prediction is to estimate the output sequence from a linear combination.
1 PATTERN COMPARISON TECHNIQUES Test Pattern:Reference Pattern:
1 Linear Prediction. Outline Windowing LPC Introduction to Vocoders Excitation modeling  Pitch Detection.
1 PCM & DPCM & DM. 2 Pulse-Code Modulation (PCM) : In PCM each sample of the signal is quantized to one of the amplitude levels, where B is the number.
1 Audio Compression. 2 Digital Audio  Human auditory system is much more sensitive to quality degradation then is the human visual system  redundancy.
Speech Signal Representations I Seminar Speech Recognition 2002 F.R. Verhage.
Unit-V DSP APPLICATIONS. UNIT V -SYLLABUS DSP APPLICATIONS Multirate signal processing: Decimation Interpolation Sampling rate conversion by a rational.
DSP C5000 Chapter 16 Adaptive Filter Implementation Copyright © 2003 Texas Instruments. All rights reserved.
Submitted By: Santosh Kumar Yadav (111432) M.E. Modular(2011) Under the Supervision of: Mrs. Shano Solanki Assistant Professor, C.S.E NITTTR, Chandigarh.
ECE 5525 Osama Saraireh Fall 2005 Dr. Veton Kepuska
Chapter 6 Linear Predictive Coding (LPC) of Speech Signals 6.1 Basic Concepts of LPC 6.2 Auto-Correlated Solution of LPC 6.3 Covariance Solution of LPC.
VOCODERS. Vocoders Speech Coding Systems Implemented in the transmitter for analysis of the voice signal Complex than waveform coders High economy in.
ITU-T G.729 EE8873 Rungsun Munkong March 22, 2004.
Outline Transmitters (Chapters 3 and 4, Source Coding and Modulation) (week 1 and 2) Receivers (Chapter 5) (week 3 and 4) Received Signal Synchronization.
1 Audio Coding. 2 Digitization Processing Signal encoder Signal decoder samplingquantization storage Analog signal Digital data.
Copyright © 2003 Texas Instruments. All rights reserved. DSP C5000 Chapter 15 Infinite Impulse Response (IIR) Filter Implementation.
More On Linear Predictive Analysis
Present document contains informations proprietary to France Telecom. Accepting this document means for its recipient he or she recognizes the confidential.
ECE 8443 – Pattern Recognition ECE 8423 – Adaptive Signal Processing Objectives: Normal Equations The Orthogonality Principle Solution of the Normal Equations.
Chapter 20 Speech Encoding by Parameters 20.1 Linear Predictive Coding (LPC) 20.2 Linear Predictive Vocoder 20.3 Code Excited Linear Prediction (CELP)
Voice Sampling. Sampling Rate Nyquist’s theorem states that a signal can be reconstructed if it is sampled at twice the maximum frequency of the signal.
By Sarita Jondhale 1 Signal preprocessor: “conditions” the speech signal s(n) to new form which is more suitable for the analysis Postprocessor: operate.
CELP / FS-1016 – 4.8kbps Federal Standard in Voice Coding
1 Speech Compression (after first coding) By Allam Mousa Department of Telecommunication Engineering An Najah University SP_3_Compression.
Presented by: Class Presentation of Custom DSP Implementation Course on: This is a class presentation. All data are copy rights of their respective authors.
Chapter 13 Basic Audio Compression Techniques 13.1 ADPCM in Speech Coding 13.2 G.726 ADPCM 13.3 Vocoders 13.4 Further Exploration.
PATTERN COMPARISON TECHNIQUES
Digital Communications Chapter 13. Source Coding
Vocoders.
Linear Prediction Simple first- and second-order systems
Chapter 13 Basic Audio Compression Techniques
Linear Prediction.
1 Vocoders. 2 The Channel Vocoder (analyzer) : The channel vocoder employs a bank of bandpass filters,  Each having a bandwidth between 100 HZ and 300.
Mohamed Chibani, Roch Lefebvre and Philippe Gournay
ON THE ARCHITECTURE OF THE CDMA2000® VARIABLE-RATE MULTIMODE WIDEBAND (VMR-WB) SPEECH CODING STANDARD Milan Jelinek†, Redwan Salami‡, Sassan Ahmadi*, Bruno.
Linear Predictive Coding Methods
Mobile Systems Workshop 1 Narrow band speech coding for mobile phones
Vocoders.
PCM & DPCM & DM.
Linear Prediction.
Presentation transcript:

DSP C5000 Chapter 23 Mobile Communication Speech Coders Copyright © 2003 Texas Instruments. All rights reserved.

ESIEE, Slide 2Outline Speech Coding, CELP Coders Speech Coding, CELP Coders Implementation using C54x Implementation using C54x

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 3 Outline – Speech Coding  Generalities on speech and coding Generalities on speech and coding Generalities on speech and coding  Linear Prediction based coders Linear Prediction based coders Linear Prediction based coders  Short term and long term prediction  Vector Quantization  CELP coders CELP coders CELP coders  Structure and calculations  Standards Standards

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 4 Applications of Speech Coding  Digital Transmissions  On wired telephone:  Multiplexing  Integration of services  On wireless channels:  Spectral efficiency  For better protection against errors  Voice mail/messaging  Storage: telephone answering machine  Secure phone

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 5 Characteristics of Coders  Bit Rate D: 50 bps < D < 96 kbps  Coding Delay ~ frame delay  Quality  Objective measurements: SNR, PSQM  Subjective measurements: MOS (excellent,good,fair,poor,unacceptable)  Intelligibility:  Objective measure STI or subjective DRT  Acceptability: E model of ETSI standard, communicability  Immunity to noise  Complexity

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 6 Objective Evaluation of the Quality  The PSQM method:  Objective evaluation  Based on a model of auditive perception  Takes into account the masking effects  Good correlation with the MOS grade in « basic » conditions:  Low bit rate speech coding, tandem, transmission errors,...  But sometimes not very reliable :  Loss of frames, effect of the automatic control  Still under development (PSQM+)

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 7 Subjective Evaluation of Quality using the ACR Method yielding MOS score  A great number of auditors give grades to a great number of speech sequences.  Database with phonetically balanced sentences  Presentation in random order  Naive auditors  Statistical processing of results gives the MOS.  MOS = Mean Opinion Score

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 8 Speech Production

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 9 Speech Signal

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 10 Speech Spectrum for a Voiced Sound

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 11 Speech Spectrogram  Non stationary  Voiced / unvoiced

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 12 Calculation of Spectrograms Preac = Preaccentuation, enhances high freqeuncies Window = limits the edge effects

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 13 Example: Time Signal and Spectrogram Time Frequency Time SPECTROGRAM TIME SIGNAL

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 14 Equivalent Electrical Model

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 15 Simplified Speech Production Model y(t)=h(t)*e(t) - Y(z)= H(z)E(z)

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 16 All Pole Model of the Spectrum Shaping Filter  The filter H(z) represents the spectral envelope since the excitation has a white spectrum.

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 17 Short Term Linear Prediction  The coefficients of H(z)=1/A(z) can be obtained by linear prediction.  Short term analysis on x(n) speech signal  Frames of 10 to 30 ms.  Least square error criterion:

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 18 Determination of the Spectral Envelope by Linear Prediction  Prediction error e(n) = residual is nearly white,  so the spectral envelope of x(n) can be approximated by Sx(f):

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 19 Calculation of the Prediction Coeffcients  The prediction coefficients a i are the solution of the «normal equations»:  The Levinson Durbin algorithm is often used to solve these equations

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 20 Example of Linear Prediction Amplitude of the speech signal Amplitude of residual signal

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 21 Example of Linear Prediction: Spectral Envelope Estimation Formants

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 22 Estimation of the Pitch Period  Pitch Period T 0 estimated by correlation of the speech signal or residual.  Other methods exist (e.g. cepstrum)  F 0 = fundamental frequency = 1/T 0  Fractional pitch estimation if the precision is better than the sampling period.

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 23 Long Term Prediction (LTP)  The idea is to predict one period of signal from the preceding one:  2 unknowns: b and M.  M is the pitch period (when voiced).  Least square error criterion is used.

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 24 Long Term Prediction (LTP)  For a given value of M, optimal b is:  The best M value maximizes:  All possible values of M must be tested.

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 25 Example of Long Term Prediction

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 26 LPC 10 Vocoder  One of the oldest speech coder is the LPC10 vocoder:  The analysis (coder) calculates each frame:  Pitch period, prediction coefficients, energy, voicing.  The synthesis (decoder) uses these parameters to synthesize speech from the electrical equivalent model.

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 27 LPC 10 Vocoder (Order 10) Frame= 22,5 ms

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 28 Prediction Spectral Parameters  The a i coefficients are sensitive to coding and interpolation.  They are replaced by other coefficients:  Reflexion coefficients k i, log area ratio LARi.  Line spectrum frequencies LSF i.  In the LPC10 vocoder  The pitch and voicing are coded on 7 bits  The log of energy on 5 bits  The 10 prediction coefficients ai (transformed in ki and LARi) are coded on 41 bits.  A total of 53 bits per frame of 22,5ms = 2400bps

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 29 Vector Quantization (2-dimensional example ) Bit rate can be decreased by applying VQ to the coefficients.

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 30 Line Spectrum Frequencies LSF, LSP  The Line Spectrum Frequencies fi and Line spectrum pairs cos(fi) have good properties for quantization and interpolation.  The LSF and LSP are derived from the inverse filter A(z).  Build F 1 (z) and F 2 (z) symetrical and antisymmetrical polynomials by (for order 10):

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 31 LSF and LSP  Roots of F 1 and F 2 on lie on the unit circle and are interleaved.  5 conjugate roots exp(j  i ), f i =  i /(2  ).

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 32 Coders using Short Term and Long Term Prediction RELP  MPE LP  CELP

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 33 RPE-LTP GSM Full Rate Coders  GSM Full Rate Coder is called:  RPE LTP= Regular Pulse Excited, Long Term Prediction coder  The signal u = the best down-sampled version (  4) of the residual signal r.  In CELP coders, vector quantization is applied on the signal.  CELP = Code Excited Linear Prediction coder  Each frame of residual signal is compared to sequences of signal stored in a codebook. The codebook sequences are white and the codebook is called stochastic codebook.

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 34 CELP Coder Basic Scheme  Analysis by synthesis (closed loop) to find the best excitation sequence.

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 35 Structure of CELP Coder: Perceptual Filter  Perceptual filter: the reconstruction error is spectrally weighted exploiting noise masking properties of formants.  W(z)=A(z/  1 )/A(z/  2 ), 0   1,  2  1  A*(z)=A(z/  ) (poles towards zero)

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 36 CELP Coder with Perceptual Filter

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 37 Basic CELP Structure: Perceptual Filter Inserted in the 2 Branches  H(z)=W(z)/A(z)

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 38 CELP Structure: Memory of H(z)  Memory of H(z) = Output for a zero input  h i = impulse response of H(z)

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 39 CELP Coder: Memory of H(z)

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 40 CELP: Adaptive Codebook  LTP can be realized by an adaptive codebook

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 41 CELP with Stochastic Codebook The adaptive codebook stores the past residual frames. It is called adaptive because its content changes with time.

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 42 CELP Decoder

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 43 CELP Equations Example: Searching through Codebooks  The main load is the filtering of all the codebook vectors.

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 44 Filtering Matrix H  H(n) is the impulse response corresponding to H(z).  N = length of the codebook vectors.

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 45 Finding the Best Excitation in the Coder: Equation of the Solution  J least square criterion  For a set of 2 vectors c j,i(j), F is the 2 column matrix of filtered vectors f j,i(j)

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 46 CELP Optimal Solution  Optimal algorithm finds the best combination of code vectors maximizing the norm and finds the optimal gains g j.  But the number of combinations of codebook vectors is very high and the complexity is also great. Example:  M=1024 for the stochastic codebook  and M=256 for the adaptive codebook  Leads to solutions to test and  1280 vectors to filter.

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 47 Iterative Suboptimal Algorithm for 2 Codebooks  First step:  Target vector = p  Find the best vector in the adaptive codebook and its gain.  Calculate the new target vector p1:  Second step:  Target vector = p1  Find the best vector in the stochastic codebook and its gain.

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 48 Iterative Algorithm

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 49 Operations of the Iterative Algorithm  At step j, the optimal codebook vector has index i:

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 50 Iterative Algorithm  Numerical Example :  F S =8000Hz,  M=256 size of the stochastic codebook  M a =128 size of the adaptive codebook  Frame size N T =160, 20ms  Frames split in 4 subframes of N=40 samples  p=10 linear prediction order  10 Mips to filter the stochastic codebook.

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 51 Iterative Algorithm  The main processing load is the filtering of the codebooks vectors.  Many algorithms have been proposed to decrease the computation load:  Special structures of the codebook:  VSELP: Vector Sum  Algebraic codebook: ACELP  Linear codebook (the adaptive codebook is linear).  Structure of H avoiding the filtering:  Diagonalization of H T H

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 52 CELP Coding  Standards from 4.8 kbps to 16 kbps  Federal standard (DOD) (4.8 kbps)  frame = 260 samples (30 ms)  LPC 8 --> (LSP coding 34 bits)  adaptive codebook (256 vectors (fractional pitch))  stochastic codebook (512 vectors (-1,0,1))

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 53 VSELP (Vector Sum Excitation Coding)  Codebook vectors v are combinations of basis vectors (b1,b2,...,bk)  v=+/- b1 +/- b2 +/-... +/- bk  Only the basis vectors are filtered  Motorola ( 8 kbps)  GSM (half rate)(5.6 kbps)

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 54 Fractional Pitch  The precision of the pitch period is a fraction of sample T S. An interpolation filter is used.  B(z)=1-bz- M f with M f =M+   x(n-M-  ) can be written as:  TF -1 (X(f)*e (-j2  f(M+  )Te) )  = x(n-M)* TF -1 (e (-j2  f  Te) ) =x(n-M)* h(n)

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 55Standards

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 56 Standards  Wired Telephony UIT-T  G 711 (1972): PCM64 kbps  G 721 (1984): ADPCM32 kbps  G 728 (1991): LD_CELP16 kbps  G 729: CS-ACELP 8 kbps  Mobile communications (ETSI - CTIA)  GSM (FR ) :RPE_LTP 13 kbps  GSM (HR) :VSELP5.6 kbps  GSM (EFR) : ACELP 12.2 kbps  UMTS (AMR) : ACELP12.2 to 4.75 Kbps  Military applications (NATO)  FS 1015 (1976): LPC102.4 kbps  FS 1016 (1991): CELP4.8 kbps

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 57 AMR Adaptive MultiRate Coder for 3G Application  8 Narrow Band NB AMR source coders  kbps  9 Wide Band coders WB AMR coders  Based on ACELP  Frame of 20 ms, fs=8000 Hz

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 58 IUT Civil Standards

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 59 ETSI and Inmarsat Standards

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 60 TIA and RCR Standards

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 61 Implementation of CELP Coders on C54x  Example of the G729 Annex A.  Specific instruction for codebook search  Some functions of DSPLIB

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 62 Profiling Example for G729 Annex A using C Compiler  G729 is a CS-ACELP Coder (ITU 1995)  8Kbps with quality of ADPCM at 32Kbps G726.  DSVD: G729 Annex A voice over internet, voice  Digital Simultaneous Voice & Data

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 63 G729 Annex A Main Blocks of the Coder Algorithm  Frame = 10 ms = 80 Samples.  Short term LPC analysis on 40ms frame  LSP derived from ai coefficients and quantized using Split VQ.  Long Term LTP analysis, 2 subframes of 40 samples.  LTP lag and gain. LTP fractional lag (1/3)  8 bits 1 rst subframe and 5 bits for the 2 nd.  Search fixed codebook: 2 subframes of 40 samples. Index and gains  Code length = 40 with 4 non-zero pulses  1.

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 64 Structures of Frames

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 65 G729 Annex A, Bit Allocation

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 66 G729 Annex A Main Blocks of the Decoder Algorithm  The serial received bits are converted into parameters:  LSP vector, 2 fractional pitch lags and gains, 2 fixed codebook index and gains.  LSP are converted to LP filter coefficients ai and interpolated at each subframe.  At each subframe:  The excitation is constructed and scaled.  The speech is synthesized by filtering the excitation by the LP synthesis filter.  Postprocessing by an adaptive postfilter.

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 67 Using the C Compiler  Use the C program of the standard and C compiler with maximum optimization.  Autocorrelation = cycles  Levinson = cycles  Conversion ai LSF= cycles  LSF Quantization = cycles  Synthesis filtering= cycles  Pitch open loop= cycles  Fractional Pitch= 2 x cycles  Search Algebraic code= 2x cycles  Gains quantization= 2x cycles

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 68 Assembly Language Instructions for Codebook Search  Better results can be obtained with assembly language than C.  Specific instructions for codebook search: Conditional stores.

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 69 Assembly Language Codebook Search

Copyright © 2003 Texas Instruments. All rights reserved. ESIEE, Slide 70 Assembly Language Codebook Search  A=C(i) 2  B= C(i) 2 Gopt T=Gopt  B= C(i) 2 Gopt-G(i)Copt 2  If (B  0) then:  BRC  Gopt  T  Iopt  A  Copt 2