Predictive Coding Algorithms for Lossy Image and Video Compression

Total Page:16

File Type:pdf, Size:1020Kb

Predictive Coding Algorithms for Lossy Image and Video Compression PREDICTIVE CODING ALGORITHMS FOR LOSSY IMAGE AND VIDEO COMPRESSION Lu´ısFilipe Ros´arioLucas Tese de Doutorado apresentada ao Programa de P´os-gradua¸c~ao em Engenharia El´etrica, COPPE, da Universidade Federal do Rio de Janeiro, como parte dos requisitos necess´arios `aobten¸c~aodo t´ıtulode Doutor em Engenharia El´etrica. Orientadores: Eduardo Ant^onioBarros da Silva S´ergioManuel Maciel de Faria Rio de Janeiro Janeiro de 2016 PREDICTIVE CODING ALGORITHMS FOR LOSSY IMAGE AND VIDEO COMPRESSION Lu´ısFilipe Ros´arioLucas TESE SUBMETIDA AO CORPO DOCENTE DO INSTITUTO ALBERTO LUIZ COIMBRA DE POS-GRADUAC¸´ AO~ E PESQUISA DE ENGENHARIA (COPPE) DA UNIVERSIDADE FEDERAL DO RIO DE JANEIRO COMO PARTE DOS REQUISITOS NECESSARIOS´ PARA A OBTENC¸ AO~ DO GRAU DE DOUTOR EM CIENCIAS^ EM ENGENHARIA ELETRICA.´ Examinada por: Prof. Eduardo Ant^onioBarros da Silva, Ph.D. Prof. S´ergioManuel Maciel de Faria, Ph.D. Prof. Sergio Lima Netto, Ph.D. Prof. Ricardo Lopes de Queiroz, Ph.D. Prof. Fernando Manuel Bernardo Pereira, Ph.D. RIO DE JANEIRO, RJ { BRASIL JANEIRO DE 2016 Lucas, Lu´ısFilipe Ros´ario Predictive coding algorithms for lossy image and video compression/Lu´ısFilipe Ros´arioLucas. { Rio de Janeiro: UFRJ/COPPE, 2016. XXIII, 211 p.: il.; 29; 7cm. Orientadores: Eduardo Ant^onioBarros da Silva S´ergioManuel Maciel de Faria Tese (doutorado) { UFRJ/COPPE/Programa de Engenharia El´etrica, 2016. Refer^enciasBibliogr´aficas:p. 197 { 211. 1. Image and video compression. 2. Directional intra prediction. 3. Linear prediction. 4. Least-squares optimisation. 5. Sparse representation. I. Silva, Eduardo Ant^onioBarros da et al. II. Universidade Federal do Rio de Janeiro, COPPE, Programa de Engenharia El´etrica.III. T´ıtulo. iii The only source of knowledge is experience. Albert Einstein iv Acknowledgements I would like to express my gratitude to my supervisors Prof. Eduardo da Silva, Prof. S´ergioFaria, Prof. Nuno Rodrigues and Prof. Carla Pagliari, without whom this thesis would not be made possible. I am thankful for their support and wise guidance during this journey; for their suggestions and fruitful discussions providing new insights and inspiring ideas that enriched this research work; for their availability to review and improve the papers and this thesis; and also for their friendship. I would also like to acknowledge Prof. Krzysztof Wegner, for helping to implement the VSO algorithm and for reviewing the journal paper on depth map coding. I would like to thank Funda¸c~aopara a Ci^enciae Tecnologia, which provided the financial support for this PhD. I am also grateful to the Instituto de Teleco- munica¸c~oesin Escola Superior de Tecnologia e Gest~aoof Instituto Polit´ecnicode Leiria and also to the Laborat´orio de Sinais, Multim´ıdiae Telecomunica¸c~oesof Uni- versidade Federal do Rio de Janeiro, which provided the computer resources and laboratory facilities with excellent conditions for my research work in Leiria and Rio de Janeiro, and provided some funds for participating in scientific conferences. I would like to acknowledge my research group colleagues of IT, namely Sylvain, Lino, Carreira, Ricardo, Santos and Andr´e,for the nice working environment, for sharing new ideas, and also for the moments outside the laboratory. I am also thankful to Danillo, Nelson and Diego, for sharing their knowledge and experience, since my first years as researcher. To all my colleagues of SMT-UFRJ, in particular Anderson, Fl´avio,Tadeu, Luiz and Renam, I express my gratitude for receiving me in Brazil, and for helping me with the statistics and algebra courses. I also thank all my friends, that accompanied me during this journey, for the distracting and social moments, running nights in Leiria and pleasant bike rides. I must thank all those people and communities around the world that contribute for the development of many free and open-source tools used in this research work, namely the GNU/Linux/KDE software, distributed by Ubuntu and Gentoo commu- nities. I also acknowledge Carreira for the PlaYUVer software, and its contribution to the Remoterun scripts, which made our lives as researchers much easier. Last but not least, I would like to thank my family and Ana for the support and love, mainly in those moments I was absent and more involved with this work. v Resumo da Tese apresentada `aCOPPE/UFRJ como parte dos requisitos necess´arios para a obten¸c~aodo grau de Doutor em Ci^encias(D.Sc.) ALGORITMOS DE PREDIC¸ AO~ PARA COMPRESSAO~ DE IMAGEM E V´IDEO COM PERDAS Lu´ısFilipe Ros´arioLucas Janeiro/2016 Orientadores: Eduardo Ant^onioBarros da Silva S´ergioManuel Maciel de Faria Programa: Engenharia El´etrica Nesta tese s~aoinvestigadas t´ecnicas de predi¸c~aointra para os atuais algoritmos estado-da-arte de compress~aode imagem e v´ıdeo.S~aopropostos v´ariosm´etodos de predi¸c~aoque permitem reduzir a redund^ancia espacial presente em v´ıdeos2D e 3D, usando algoritmos baseados em diferentes paradigmas de compress~ao. A primeira proposta desta tese consiste em um esquema de predi¸c~aomais eficiente para o algoritmo Multidimensional Multiscale Parser (MMP) baseado em casamento de padr~oes.Com a utiliza¸c~aode um maior n´umerode modos de predi¸c~aodirecional o algoritmo MMP melhora significativamente, atingindo um desempenho competitivo com os atuais padr~oesde codifica¸c~aobaseados em transformada. O estudo de novos m´etodos de predi¸c~aopara o MMP levou ao desenvolvimento de um novo algoritmo de compress~aode mapas de profundidade que combina predi¸c~ao direcional com segmenta¸c~aoflex´ıvel e aproxima¸c~oeslineares. Os resultados expe- rimentais, baseados na qualidade das vistas sintetizadas, apresentam ganhos taxa- distor¸c~aoconsistentes sobre o padr~ao3D-HEVC (High Efficiency Video Coding). Em rela¸c~ao`apredi¸c~aolinear, s~aoapresentadas novas abordagens que usam mo- delos lineares com restri¸c~oesde esparsidade. A predi¸c~ao Locally Linear Embedding ´e investigada com sucesso para compress~aode imagens holosc´opicasusando o padr~ao HEVC. E´ tamb´emdesenvolvido um novo m´etodo de predi¸c~aolinear esparsa, que melhora o desempenho do HEVC, em particular para imagens com estruturas com- plexas e repetidas. Por ´ultimo, ´eproposto um novo m´etodo de predi¸c~aogeneralizado que unifica as predi¸c~oesdirecional e linear, com base em modelos esparsos ´optimos. Os resultados experimentais mostram a vantagem do novo esquema de predi¸c~aoem rela¸c~ao`aatual predi¸c~aointra do padr~aoHEVC. vi Abstract of Thesis presented to COPPE/UFRJ as a partial fulfillment of the requirements for the degree of Doctor of Science (D.Sc.) PREDICTIVE CODING ALGORITHMS FOR LOSSY IMAGE AND VIDEO COMPRESSION Lu´ısFilipe Ros´arioLucas January/2016 Advisors: Eduardo Ant^onioBarros da Silva S´ergioManuel Maciel de Faria Department: Electrical Engineering This thesis investigates efficient intra prediction techniques for current state- of-the-art image and video compression algorithms. Several prediction methods are proposed to reduce the spatial redundancy present in 2D and 3D video signals, using several compression algorithms based on different coding paradigms. The first proposal of this thesis consists in an improved prediction framework for a pattern-matching-based image encoder known as Multidimensional Multiscale Parser (MMP). It is demonstrated that the MMP algorithm significantly benefits from using an increased number of directional prediction modes, achieving a com- petitive performance in comparison to the transform-based standards. In the context of the prediction methods investigated for the MMP, a new highly predictive algorithm is presented for depth map coding, combining directional pre- diction with flexible block partitioning and linear fitting. Based on the quality of the synthesised views, the experimental results show consistent rate-distortion gains relative to the current 3D-HEVC (High Efficiency Video Coding) standard. Regarding linear prediction, new approaches that enforce sparsity constraints on linear models are presented. The Locally Linear Embedding-based prediction method is investigated for holoscopic image coding using the HEVC standard with successful results. A new sparse linear prediction method is also developed, im- proving the coding performance of HEVC, particularly for images with complex and repeated structures. Finally, a new generalised intra prediction framework is proposed, unifying the directional and linear prediction methods, based on opti- mal sparse models. Experimental results show the advantage of the new prediction framework over the current intra prediction of HEVC standard. vii Contents List of Figures xii List of Tables xvii List of Abbreviations xix 1 Introduction 1 1.1 Motivation . .1 1.2 Main objectives and contributions . .3 1.3 Outline . .7 2 Prediction techniques for image and video coding 9 2.1 Digital video representation . .9 2.2 Image prediction overview . 11 2.3 State-of-the-art prediction methods . 15 2.3.1 Intra-frame prediction . 16 2.3.2 Inter-frame prediction . 20 2.4 Least-squares prediction methods . 23 2.4.1 Linear prediction of images and video using LSP . 24 2.4.2 Context-based adaptive LSP . 25 2.4.3 Block-based LSP . 26 2.4.4 Spatio-temporal LSP . 27 2.5 Sparse representation for image prediction . 28 2.5.1 Sparse prediction problem formulation . 29 2.5.2 Matching Pursuit methods . 31 2.5.3 Template Matching algorithm . 32 2.5.4 Neighbour embedding methods . 33 2.6 Conclusions . 36 3 Image and video coding algorithms 37 3.1 Hybrid video compression . 37 3.2 Compression of 2D video . 40 viii 3.2.1 H.265/HEVC standard . 40 3.2.2 Multidimensional Multiscale Parser algorithm . 50 3.2.3 Experimental results . 53 3.3 Compression of 3D video . 57 3.3.1 3D video systems . 57 3.3.2 3D video coding standards . 66 3.3.3 Experimental results . 70 3.4 Conclusions . 73 4 Efficient predictive coding using MMP 75 4.1 Introduction .
Recommended publications
  • Digital Speech Processing— Lecture 17
    Digital Speech Processing— Lecture 17 Speech Coding Methods Based on Speech Models 1 Waveform Coding versus Block Processing • Waveform coding – sample-by-sample matching of waveforms – coding quality measured using SNR • Source modeling (block processing) – block processing of signal => vector of outputs every block – overlapped blocks Block 1 Block 2 Block 3 2 Model-Based Speech Coding • we’ve carried waveform coding based on optimizing and maximizing SNR about as far as possible – achieved bit rate reductions on the order of 4:1 (i.e., from 128 Kbps PCM to 32 Kbps ADPCM) at the same time achieving toll quality SNR for telephone-bandwidth speech • to lower bit rate further without reducing speech quality, we need to exploit features of the speech production model, including: – source modeling – spectrum modeling – use of codebook methods for coding efficiency • we also need a new way of comparing performance of different waveform and model-based coding methods – an objective measure, like SNR, isn’t an appropriate measure for model- based coders since they operate on blocks of speech and don’t follow the waveform on a sample-by-sample basis – new subjective measures need to be used that measure user-perceived quality, intelligibility, and robustness to multiple factors 3 Topics Covered in this Lecture • Enhancements for ADPCM Coders – pitch prediction – noise shaping • Analysis-by-Synthesis Speech Coders – multipulse linear prediction coder (MPLPC) – code-excited linear prediction (CELP) • Open-Loop Speech Coders – two-state excitation
    [Show full text]
  • Mpeg Vbr Slice Layer Model Using Linear Predictive Coding and Generalized Periodic Markov Chains
    MPEG VBR SLICE LAYER MODEL USING LINEAR PREDICTIVE CODING AND GENERALIZED PERIODIC MARKOV CHAINS Michael R. Izquierdo* and Douglas S. Reeves** *Network Hardware Division IBM Corporation Research Triangle Park, NC 27709 [email protected] **Electrical and Computer Engineering North Carolina State University Raleigh, North Carolina 27695 [email protected] ABSTRACT The ATM Network has gained much attention as an effective means to transfer voice, video and data information We present an MPEG slice layer model for VBR over computer networks. ATM provides an excellent vehicle encoded video using Linear Predictive Coding (LPC) and for video transport since it provides low latency with mini- Generalized Periodic Markov Chains. Each slice position mal delay jitter when compared to traditional packet net- within an MPEG frame is modeled using an LPC autoregres- works [11]. As a consequence, there has been much research sive function. The selection of the particular LPC function is in the area of the transmission and multiplexing of com- governed by a Generalized Periodic Markov Chain; one pressed video data streams over ATM. chain is defined for each I, P, and B frame type. The model is Compressed video differs greatly from classical packet sufficiently modular in that sequences which exclude B data sources in that it is inherently quite bursty. This is due to frames can eliminate the corresponding Markov Chain. We both temporal and spatial content variations, bounded by a show that the model matches the pseudo-periodic autocorre- fixed picture display rate. Rate control techniques, such as lation function quite well. We present simulation results of CBR (Constant Bit Rate), were developed in order to reduce an Asynchronous Transfer Mode (ATM) video transmitter the burstiness of a video stream.
    [Show full text]
  • Speech Compression
    information Review Speech Compression Jerry D. Gibson Department of Electrical and Computer Engineering, University of California, Santa Barbara, CA 93118, USA; [email protected]; Tel.: +1-805-893-6187 Academic Editor: Khalid Sayood Received: 22 April 2016; Accepted: 30 May 2016; Published: 3 June 2016 Abstract: Speech compression is a key technology underlying digital cellular communications, VoIP, voicemail, and voice response systems. We trace the evolution of speech coding based on the linear prediction model, highlight the key milestones in speech coding, and outline the structures of the most important speech coding standards. Current challenges, future research directions, fundamental limits on performance, and the critical open problem of speech coding for emergency first responders are all discussed. Keywords: speech coding; voice coding; speech coding standards; speech coding performance; linear prediction of speech 1. Introduction Speech coding is a critical technology for digital cellular communications, voice over Internet protocol (VoIP), voice response applications, and videoconferencing systems. In this paper, we present an abridged history of speech compression, a development of the dominant speech compression techniques, and a discussion of selected speech coding standards and their performance. We also discuss the future evolution of speech compression and speech compression research. We specifically develop the connection between rate distortion theory and speech compression, including rate distortion bounds for speech codecs. We use the terms speech compression, speech coding, and voice coding interchangeably in this paper. The voice signal contains not only what is said but also the vocal and aural characteristics of the speaker. As a consequence, it is usually desired to reproduce the voice signal, since we are interested in not only knowing what was said, but also in being able to identify the speaker.
    [Show full text]
  • Advanced Speech Compression VIA Voice Excited Linear Predictive Coding Using Discrete Cosine Transform (DCT)
    International Journal of Innovative Technology and Exploring Engineering (IJITEE) ISSN: 2278-3075, Volume-2 Issue-3, February 2013 Advanced Speech Compression VIA Voice Excited Linear Predictive Coding using Discrete Cosine Transform (DCT) Nikhil Sharma, Niharika Mehta Abstract: One of the most powerful speech analysis techniques LPC makes coding at low bit rates possible. For LPC-10, the is the method of linear predictive analysis. This method has bit rate is about 2.4 kbps. Even though this method results in become the predominant technique for representing speech for an artificial sounding speech, it is intelligible. This method low bit rate transmission or storage. The importance of this has found extensive use in military applications, where a method lies both in its ability to provide extremely accurate high quality speech is not as important as a low bit rate to estimates of the speech parameters and in its relative speed of computation. The basic idea behind linear predictive analysis is allow for heavy encryptions of secret data. However, since a that the speech sample can be approximated as a linear high quality sounding speech is required in the commercial combination of past samples. The linear predictor model provides market, engineers are faced with using other techniques that a robust, reliable and accurate method for estimating parameters normally use higher bit rates and result in higher quality that characterize the linear, time varying system. In this project, output. In LPC-10 vocal tract is represented as a time- we implement a voice excited LPC vocoder for low bit rate speech varying filter and speech is windowed about every 30ms.
    [Show full text]
  • Source Coding Basics and Speech Coding
    Source Coding Basics and Speech Coding Yao Wang Polytechnic University, Brooklyn, NY11201 http://eeweb.poly.edu/~yao Outline • Why do we need to compress speech signals • Basic components in a source coding system • Variable length binary encoding: Huffman coding • Speech coding overview • Predictive coding: DPCM, ADPCM • Vocoder • Hybrid coding • Speech coding standards ©Yao Wang, 2006 EE3414: Speech Coding 2 Why do we need to compress? • Raw PCM speech (sampled at 8 kbps, represented with 8 bit/sample) has data rate of 64 kbps • Speech coding refers to a process that reduces the bit rate of a speech file • Speech coding enables a telephone company to carry more voice calls in a single fiber or cable • Speech coding is necessary for cellular phones, which has limited data rate for each user (<=16 kbps is desired!). • For the same mobile user, the lower the bit rate for a voice call, the more other services (data/image/video) can be accommodated. • Speech coding is also necessary for voice-over-IP, audio-visual teleconferencing, etc, to reduce the bandwidth consumption over the Internet ©Yao Wang, 2006 EE3414: Speech Coding 3 Basic Components in a Source Coding System Input Transformed Quantized Binary Samples parameters parameters bitstreams Transfor- Quanti- Binary mation zation Encoding Lossy Lossless Prediction Scalar Q Fixed length Transforms Vector Q Variable length Model fitting (Huffman, …... arithmetic, LZW) • Motivation for transformation --- To yield a more efficient representation of the original samples. ©Yao Wang, 2006 EE3414:
    [Show full text]
  • Linear Predictive Coding Is All-Pole Resonance Modeling
    Linear Predictive Coding is All-Pole Resonance Modeling Hyung-Suk Kim Center for Computer Research in Music and Acoustics, Stanford University 1 Why another article on LPC? Linear predictive coding (LPC) is a widely used technique in audio signal pro- cessing, especially in speech signal processing. It has found particular use in voice signal compression, allowing for very high compression rates. As widely adopted as it is, LPC is covered in many textbooks and is taught in most ad- vanced audio signal processing courses. So why another article on LPC? Despite covering LPC during my undergraduate coursework in electrical en- gineering, it wasn't until implementing LPC for my own research project that I understood what the goals of LPC were and what it was doing mathematically to meet those goals. A great part of the confusion stemmed from the some- what cryptic name, Linear-Predictive-Coding. \Linear" made sense, however \Predictive" and \Coding", sounded baffling, at least to the undergraduate me. What is it trying to predict? And coding? What does that mean? As we will find in the following sections, the name LPC does make sense. However, it is one catered to a specific use, speech signal transmission, possibly obscuring other applications, such as cross-synthesis. It takes a moment to understand the exclamation, \I used linear predictive coding to cross-synthesize my voice with a creaking ship!". Thus the purpose of this article is to explain LPC from a general perspective, one that makes sense to me and hopefully to others trying to grasp what LPC is.
    [Show full text]
  • Hybrid Compression Technique Using Linear Predictive Coding for Electrocardiogram Signals
    International Journal of Engineering Technology Science and Research IJETSR www.ijetsr.com ISSN 2394 – 3386 Volume 4, Issue 6 June 2017 Hybrid Compression Technique Using Linear Predictive Coding for Electrocardiogram Signals K. S Surekha B. P. Patil Research Scholar, Sinhgad College of Engg. Pune Principal (Assoc. Professor, AIT, Pune) AIT,Pune ABSTRACT Linear Predictive Coding (LPC) is used for analysis and compression of speech signals. Whereas Huffman coding is used forElectrocardiogram (ECG) signal compression. This paper presents a hybrid compression technique for ECG signal using modifiedHuffman encoding andLPC.The aim of this paper is to apply the linear prediction coding and modified Huffman coding for analysis, compression and prediction of ECG signals. The ECG signal is transformed through discrete wavelet transform. MIT-BIH database is used for testing the compression algorithm. The performance measure used to validate the results are the Compression ratio (CR) and Percent Root mean square difference (PRD).The improved CR and PRD obtained in this research prove the quality of the reconstructed signal. Key words Huffman encoding, Linear Predictive Coding, Compression 1. INTRODUCTION ECG gives clear indication about heart diseases and arrhythmias. It is necessary to monitor and store the ECG signal of subjects continuously for diagnosis purpose. Due to this, the data storage size keeps on increasing. In such situations, it is necessary to compress the ECG signal for storage and transmission. The important factor for consideration is to obtain maximum data compression. That must also ensure that the signal retain the clinically important features. Fig. 1 shows the ECG signal with different peaks. Fig.
    [Show full text]
  • Embedded Lossless Audio Coding Using Linear Prediction and Cascade
    University of Wollongong Research Online Faculty of Engineering and Information Faculty of Informatics - Papers (Archive) Sciences 2005 Embedded lossless audio coding using linear prediction and cascade Kevin Adistambha University of Wollongong, [email protected] Christian Ritz University of Wollongong, [email protected] Jason Lukasiak [email protected] Follow this and additional works at: https://ro.uow.edu.au/infopapers Part of the Physical Sciences and Mathematics Commons Recommended Citation Adistambha, Kevin; Ritz, Christian; and Lukasiak, Jason: Embedded lossless audio coding using linear prediction and cascade 2005. https://ro.uow.edu.au/infopapers/2793 Research Online is the open access institutional repository for the University of Wollongong. For further information contact the UOW Library: [email protected] Embedded lossless audio coding using linear prediction and cascade Abstract Embedded lossless audio coding is a technique for embedding a perceptual audio coding bitstream within a lossless audio coding bitstream. This paper provides an investigation into a lossless embedded audio coder based on the AAC coder and utilising both backward Linear Predictive Coding (LPC) and cascade coding. Cascade coding is a technique for entropy coding of large dynamic range integer sequences that has the advantage of simple implementation and low complexity. Results show that employing LPC in an embedded architecture achieves approximately an 8% decrease in the coding rate. The overall compression performance of cascade coding closely follows Rice coding, a popular entropy coding method for lossless audio. It is also shown that performance can be further improved by incorporating a start of the art lossless coder into the proposed embedded coder.
    [Show full text]
  • Speech Compression Using LPC-10 and VELPC Based on DCT Technique Compression
    International Journal of Science and Research (IJSR) ISSN: 2319-7064 ResearchGate Impact Factor (2018): 0.28 | SJIF (2018): 7.426 Speech Compression Using LPC-10 and VELPC Based on DCT Technique Compression Aditi Kar1, Rasmi Ranjan Samantray2 1M Tech Scholar, CCEM Kabir Nagar Raipur, Affiliated to CSVTU, Bhilai, Chhattisgarh, India 2Assistant Professor, CCEM, Raipur, CCEM Kabir Nagar Raipur, Affiliated to CSVTU, Bhilai, Chhattisgarh, India Abstract: In this paper, we have presented the speech compression techniques i.e. Linear Predictive Coding and its modified version Voice Excited Linear Predictive Coding. Output of LPC-10 is compared with output of VELPC. Here instead of using plain VELPC we are using modified VELPC or we can say that VELPC based on Discrete Cosine Transform technique. The result shown here was obvious since VELPC is modified version of LPC and so its output quality is better as compared to output quality of LPC. LPC is one of the most powerful speech coding techniques and it is widely used for encoding speech signal at a very low bit rate. Pitch period estimation is the weakest link in the LPC method so this drawback is eliminated in VELPC technique. Thus, the bit rate however is somewhat increased in VELPC technique. Therefore Discrete Cosine Transform is used to compress the innovation signal in case of VELPC in order to reduce bit rate to some extent. Keywords: Speech signal, Discrete Cosine Transform (DCT), Linear Prediction Coding (LPC), Voice Excited Linear Prediction Coding (VELPC), Bit rate 1. Introduction these voices are shaped or articulated in the vocal tract. These articulations along with the gain are considered as the Linear Predictive Coding is based on Linear Prediction innovation signal.
    [Show full text]
  • Linear Predictive Coding
    Copyright 2004 – Oregon State University 1 of 1 Lab 5 – Linear Predictive Coding Idea When plain speech audio is recorded and needs to be transmitted over a channel with limited bandwidth it is often necessary to either compress or encode the audio data to meet the bandwidth specs. In this lab you will look at how Linear Predictive Coding works and how it can be used to compress speech audio. Objectives • Speech encoding • Speech synthesis Read the LPC.pdf document for background information on Linear Predictive Coding Procedure There are two major steps involved in this lab. In real life the first step would represent the side where the audio is recorded and encoded for transmission. The second step would represent the receiving side where that data is used to regenerate the audio through synthesis. In this lab you will be doing both the encoding/transmitting and receiving/synthesis parts. When you are done, you should have at least 4 separate MATLAB files. Two of these, the main file and the levinson function, are given to you. The LPC coding function and the Synthesis function are the files that you have to write. Below is an overview list of steps for this lab. 1. Read the *.wav file into MATLAB and pass the data to the LPC coding function 2. The LPC coding function will do the following: a. Divide the data into 30mSec frames b. For every frame, find the data necessary to reproduce the audio (voiced/unvoiced, gain, pitch, filter coefficients) c. The LPC coding function will return these data vectors 3.
    [Show full text]
  • M-Ary Predictive Coding: a Nonlinear Model for Speech
    M-ARY PREDICTIVE CODING: A NONLINEAR MODEL FOR SPEECH M.Vandana Final Year B.E(ECE) PSG College of Technology Coimbatore-641004. [email protected] ABSTRACT 2. INTRODUCTION Speech Coding is pivotal in the Speech is a very special signal for a ability of networks to support multimedia variety of reasons. The most preliminary of services. The technique currently used for these is the fact that speech is a non- speech coding is Linear Prediction. It stationary signal. This makes speech a models the throat as an all-pole filter i.e. rather tough signal to analyze and model. using a linear difference equation. However, the physical nature of the The second reason, is that factors throat is itself a clue to its nonlinear like the intelligibility, the coherence and nature. Developing a nonlinear model is other such ‘human’ characteristics play a difficult as in the solution of nonlinear vital role in speech analysis as against equations and the verification of statistical parameters like Mean Square nonlinear schemes. Error. In this paper, two nonlinear The third reason is from a models– Quadratic Predictive Coding and communications point of view. The M-ary Predictive Coding- have been number of discrete values required to proposed. The equations for the models describe one second of speech amounts to were developed and the coefficients 8000 (at the minimum). Due to concerns of solved for. MATLAB was used for bandwidth, compression is desirable. implementation and testing. This paper gives the equations and preliminary 2.1. Linear Predictive Coding results. The proposed enhancements to MPC are also discussed in brief.
    [Show full text]
  • Speech Coding Methods, Standards, and Applications Jerry D. Gibson
    Speech Coding Methods, Standards, and Applications Jerry D. Gibson Department of Electrical & Computer Engineering University of California, Santa Barbara Santa Barbara, CA 93106-6065 [email protected] I. Introduction Speech coding is fundamental to the operation of the public switched telephone network (PSTN), videoconferencing systems, digital cellular communications, and emerging voice over Internet protocol (VoIP) applications. The goal of speech coding is to represent speech in digital form with as few bits as possible while maintaining the intelligibility and quality required for the particular application. Interest in speech coding is motivated by the evolution to digital communications and the requirement to minimize bit rate, and hence, conserve bandwidth. There is always a tradeoff between lowering the bit rate and maintaining the delivered voice quality and intelligibility; however, depending on the application, many other constraints also must be considered, such as complexity, delay, and performance with bit errors or packet losses [1]. Two networks that have been developed primarily with voice communications in mind are the public switched telephone network (PSTN) and digital cellular networks. Additionally, with the pervasiveness of the Internet, voice over the Internet Protocol (VoIP) is growing rapidly and is expected to do so for the near future. A new and powerful development for data communications is the emergence of wireless local area networks (WLANs) in the embodiment of the 802.11 a, b, g standards, and the next generation, 802.11n, collectively referred to as Wi-Fi, and the on-going development of the IEEE 802.16 family of standards for wireless metropolitan area networks (WMAN), often referred to as WiMax.
    [Show full text]