Dr. Dóra Maros Institute of Telecommunication Óbuda University Telecommunications Techniques II. Source Coding (speech) Error detection and Error correction.

Slides:



Advertisements
Similar presentations
Speech Coding Techniques
Advertisements

10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Data and Computer Communications
Speech-Coding Techniques Chapter 3. Internet Telephony 3-2 Introduction Efficient speech-coding techniques Advantages for VoIP Digital streams of ones.
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.
Error Detection and Correction
Transmission Errors Error Detection and Correction
Error Detection and Correction
Coding and Error Control
Error Detection and Correction
1 Chapter Six - Errors, Error Detection, and Error Control Chapter Six.
Lecture 9-10: Error Detection and Correction Anders Västberg Slides are a selection from the slides from chapter 8 from:
Transmission Errors1 Error Detection and Correction.
The Data Link Layer Chapter 3. Position of the data-link layer.
Chapter 6: Errors, Error Detection, and Error Control
William Stallings Data and Computer Communications 7 th Edition (Selected slides used for lectures at Bina Nusantara University) Error Control.
Error Detection and Correction
Adapted from Tanenbaum's Slides for Computer Networking, 4e The Data Link Layer Chapter 3.
1/26 Chapter 6 Digital Data Communication Techniques.
1 Audio Compression Multimedia Systems (Module 4 Lesson 4) Summary: r Simple Audio Compression: m Lossy: Prediction based r Psychoacoustic Model r MPEG.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 PART III: DATA LINK LAYER ERROR DETECTION AND CORRECTION 7.1 Chapter 10.
Transmission Errors Error Detection and Correction
Channel Coding and Error Control
Copyright © 2003, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 1 Chapter 4 Channel Coding.
Lecture 10: Error Control Coding I Chapter 8 – Coding and Error Control From: Wireless Communications and Networks by William Stallings, Prentice Hall,
Speech Coding Submitted To: Dr. Mohab Mangoud Submitted By: Nidal Ismail.
SPEECH CODING Maryam Zebarjad Alessandro Chiumento.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. 1 Communication Reliability Asst. Prof. Chaiporn Jaikaeo, Ph.D.
ECS 152A 4. Communications Techniques. Asynchronous and Synchronous Transmission Timing problems require a mechanism to synchronize the transmitter and.
1 SNS COLLEGE OF ENGINEERING Department of Electronics and Communication Engineering Subject: Digital communication Sem: V Cyclic Codes.
Data and Computer Communications
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
جلسه هشتم شبکه های کامپیوتری به نــــــــــــام خدا.
Data and Computer Communications by William Stallings Eighth Edition Digital Data Communications Techniques Digital Data Communications Techniques Click.
Lecture 3-2: Coding and Error Control (Cont.) ECE
1 Chapter 8. Coding and Error Control Wen-Shyang Hwang KUAS EE.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Layer PART III.
Data Communications & Computer Networks, Second Edition1 Chapter 6 Errors, Error Detection, and Error Control.
Submitted By: Santosh Kumar Yadav (111432) M.E. Modular(2011) Under the Supervision of: Mrs. Shano Solanki Assistant Professor, C.S.E NITTTR, Chandigarh.
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.
TI Cellular Mobile Communication Systems Lecture 4 Engr. Shahryar Saleem Assistant Professor Department of Telecom Engineering University of Engineering.
CELLULAR COMMUNICATIONS MIDTERM REVIEW. Representing Oscillations   w is angular frequency    Need two variables to represent a state  Use a single.
CHAPTER 3: DATA LINK CONTROL Flow control, Error detection – two dimensional parity checks, Internet checksum, CRC, Error control, Transmission efficiency.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Error Detection. Data can be corrupted during transmission. Some applications require that errors be detected and corrected. An error-detecting code can.
Error Detection and Correction
Digital Communications I: Modulation and Coding Course Term Catharina Logothetis Lecture 9.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 PART III: DATA LINK LAYER ERROR DETECTION AND CORRECTION 7.1 Chapter 10.
Voice Coding in 3G Networks
1/30/ :20 PM1 Chapter 6 ─ Digital Data Communication Techniques CSE 3213 Fall 2011.
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.
Error Control Coding. Purpose To detect and correct error(s) that is introduced during transmission of digital signal.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Data Link Layer 1. 2 Single-bit error 3 Multiple-bit error 4.
Chapter Nine: Data Transmission. Introduction Binary data is transmitted by either by serial or parallel methods Data transmission over long distances.
Digital Communications Chapter 6. Channel Coding: Part 1
CSE 5345 – Fundamentals of Wireless Networks
Vocoders.
Data Link Layer What does it do?
Chapter 6.
Chapter Nine: Data Transmission
Electrical Communications Systems ECE Spring 2007
Transmission Errors Error Detection and Correction
Coding and Error Control
Error Detection and Correction
Transmission Errors Error Detection and Correction
Electrical Communications Systems ECE Spring 2019
Electrical Communications Systems ECE
Presentation transcript:

Dr. Dóra Maros Institute of Telecommunication Óbuda University Telecommunications Techniques II. Source Coding (speech) Error detection and Error correction

Transmission from source to destination Source (analog) Destination (analog/digital) Channel (digital) Channel coding Channel decoding Source coding Source decoding -Microphone -Camera -Pressure, temperature etc sensors -Speaker (ears) -Displays (eyes) -Alarms (see and hear!)

Bandwidth allocation Source information Source information Filter A/D Compression Channel coding Channel coding ModulationChannel

How we „generate” voice? Vocal tract (resonator filter system) Excitation Vocal cords Glottis

Characterization of Human Speech Frequency: Hz The charcaterization of a 20 ms duration sample does not change (excitation, filter system) We can find some correlations between two consecutive 20 ms samples Using a long time analysis we can predict the next pattern (differencial coding, eg. DPCM) Our brain can correct a lot of „errors”!

Classification of Speech Encoders Waveform encoder: describes the analog signals in the time and frequency domain Vocoders: describes the rules of phonation (how we generate the voice) Hybrid encoders: combines good properties of two coders (low rate, good quality)

Subjective MOS MOS: Mean Opinion Score

Theory of Waveform Encoders Sampling (sampling frequency) Quantization (number of levels) Coding (length of codeword) Benefits: good voice quality Disadvantage: big rate (PCM: 64 kbit/s)

Theory of Vocoders Benefit: low rate (pár kb/s) Disadvantage: bad quality A, E, O, I etc. vowels B, F, P, M etc. consonants Excitation

Voiced - Vowels Typical amplitude/time signal Typical Power Spectrum Density/ Frequency signal Pitch frequency: Hz

Voiceless - Consonants Typical amplitude/time signal (white noise) Typical Power Spectrum Density/ Frequency signal

Sub-band Coding Baseband is divided into sub-bands regarding PSD Each sub-bands are encoded separately Benefits: low noise sensitivity (different sampling frequencies and codeword length are used) Bitrate: kbit/s Receiver: sub-bands are superimposed (added)

Speech Codecs MOS AMR: Adaptive Multirate Codec (3G és 4G mobile) G723: VoIP (mobile) G728: LD-CELP, Low- Delay code excited linear prediction G729: CS-ACELP, Coding of Speech, Adaptive Code Excited Linear Prediction (VoIP) GSM FR and EFR: Full rate, Enhanced Full Rate Internet Low Bitrate Codec (iLBC)

Theory of Hybrid Encoder/Decoder Analysis by Synthesis (AbS)

Excitation: MPE and RPE MPE: Multiple Pulse Excitation RPE: Regular Pulse Excitation, GSM- 13kbit/s MPE: aplitudes and phases are encoded RPE: only amplitudes is encoded RPE MPE

Excitation: CELP (Code Excited Linear Prediction) Code table: 1024 excitation samples Only the index of table is sent! Bitrate: 4,8-16 kbit/s Excitation Table Excitation Table Index

Codec Rate Codec rate: t in -t out Typical: ms Fast: G728 CELP (Do- CELP) codec, 2-5 ms Encoder Decoder t in t out

GSM Speech Codec Bitrate: 260 bit/20ms, 13kbit/s Waveform encoder Voice activity detector

Voice Activity Detector (VAD)

Discontinous Transmission (DTX) and SID Frame SID: Silence Indicator

Frequency Fletcher-Munson Curves (sensitivity of ears) Equal-loudness contours for the human ear Phon: Unit of relative loudness level for pure tones

Color Sensitivity of Eyes Luminosity sensitivity is 3 x more faster then color sensitivity

Compression of Source Information Lossless compression: small part of information is lost Lossy compression: huge part of information is lost Compression Rate: original information/compressed information image: lossless :.raw lossy:.jpeg (eg. 25/1)

Error Correction (general) Noisy channelDemodulator Received bit sequence (BER) Error detection Error detection procedures Error correction Automatic Repeat Request (ARQ) Forward Error Coding (FEC)

Error Detection I. (repetition) We use small blocks Each block is sent repeatedly Efficient, when we have only one bit error SenderReceiver

Even or odd parity Even: we add „1” parity if the number of „1”s is odd, otherwise parity is „0”. Odd: we add „1” parity, if the number of „1”s is even Applications: mikrocontollers, data bus, data storage Even parity Odd parity SenderReceiver Error Detection II. (parity)

Error Detection III. (polarity change) SenderReceiver We send the original and negated bit sequency If the bit polarity is the same at the receiver - error Disadvantege: big redundancy Application: multicarrier systems Receiver

Error Detection IV. (Cyclic Redundancy Check -CRC) A polimon is generated from bit sequence (data) Generator polinom is the same (known) at sender and receiver CRC= data polinom/generator polinom Application: mobile, RFID, Bluetooth, Ethetnet..etc SenderReceiver CRC CRC polinom generator polinom division polinom division CRC ? MSBLSB

Error Detection V. (CheckSum) The message is segmented into parts We binary add the parts (CS) The message and CS are sent We binary add the parts again at receiver side If two CSs are not equal -error

Error Detection VI. (Hamming coding) Eg: 4/7 Hamming code …….4 data bits – 3 parity bits d=2 error can be detected, but only one is corrected Number of parity bits = largest exponent (2 3 ) Sender Receiver Code i Hamming distance calculator The Hamming distance of the code words is greater or equal d+1

Hamming coding (even parity) 7653 p1 p2 p DATA PARITY p1: (3,5,7) – 2 0 =1 P2: (3,6,7) – 2 1 =2 P3: (5,6,7) – 2 2 = HD:4 HD:3

Error Correction (ARQ:Automatic Repeat Request) Four types: Stop and Wait Go-Back-N Selective Hybrid

Stop and Wait ARQ t1 t2 t1 After time out the sender repeats the transmission Problem: receiver does not know whether it received the repeated or next data block Solution: 0 and 1 flag bits in consecutive data blocks Data block Sender Receiver

Go-Back-N ARQ 1. We define a sliding time window 2. The packets are sent one by one (without ACKs) in this window 3. If the first ACK is detected window slides. 4. If not, all packets are sent again

Selective ARQ Message Long message – one ACK Advantage: if no errors – fast transmission Disadvantage: If errors – the message is sent again – slow transmission Small block – more ACKs Advantage: we repeate only those blocks where errors are detected Disadvantage: slow ( ACK)

Hibrid ARQ (Chase combining) NACK is sent back, receiver does not drop faulty packets Using an errors correction procedure we can repair the data from faulty packets

Hibrid ARQ (Incremental redundancy) A FEC (Forward Error Coding) is used at sender side The redundancy bits are sent after NACK

Forward Error Coding: FEC Two main types: Convolutional coding Block coding We add redundancy bits which help correct data at the receiver

Convolutional Coding (theory example) (n,k,m) coder D laches and modulo2 adders n: number of outputs k: number of inputs m: number of D laches number of input state : (m-1) 2 (3,1,3) coder Generator polinoms G 1 (1,1,1) G 2 (0,1,1) G 3 (1,0,1)

Types of Convolutional Coders (Mother coder and „punctured” coder) Mother coder:1/n „Punctured” coder: k/n eg: 2/3 coder

Systematic coder We send original data (V 3,V 2,V 1 and redundancy (v 4 )

Non systematic coder We do not send original data We send only convolutional coded info

We code „1” (find the error!) Output:

1011 vs ?

But we use convolution ! Input bits Respones (coded data) (two bits shift) Kódolt info We use modulo2 adder for outputs! Shift: L-1 (L: number of inner D laches)

Operation table

State graph Info: 1011 Coded info:

Tree structure Info: 1011 Coded info:

Trellis Graph

Coding with Trellis Graph Info: 1011 Coded info:

Error Correction – Fano algorythm I. Info: 1011 Coded info: Detected info:

Error Correction – Fano algorythm II.

Error Correction – Fano algorythm III.

Error Correction – Viterbi algorythm I. Hamming metric We use Hamming metric

Error Correction – Viterbi algorythm II.

Error Correction – Viterbi algorythm III.

Error Correction – Viterbi algorythm IV.

Error Correction – Viterbi algorythm V.

Error Correction – Viterbi algorythm VI.

Error Correction – Block Coding (general) G= 1+ X 11 +X 13 +X 14 +X 16 XOR Gates LFSR: Linear Feedback Shift Register

Error Correction – Block Coding (GSM Speech) Data 50 bits Block code bits XOR gate SW-ON – coding (50 clocks) SW-OFF – Reading Data from D laches