-
public class G711Appendix_I_PLC
-
-
Constructor Summary
Constructors Constructor Description G711Appendix_I_PLC()Constructor for LowcFE.Initializes the PLC module.
-
Method Summary
Modifier and Type Method Description voiddofe(Array<short> out)Generate the synthetic signal during frame erasure.At the beginning of an erasure determine the pitch, and extractone pitch period from the tail of the signal. intaddtohistory(Array<short> samples, int offset, int length)A good frame was received and decoded.If right after an erasure, do an overlap add with the synthetic signal.Add the frame to history buffer. voidaddtohistory(Array<short> s)A good frame was received and decoded.If right after an erasure, do an overlap add with the synthetic signal.Add the frame to history buffer. -
-
Method Detail
-
dofe
void dofe(Array<short> out)
Generate the synthetic signal during frame erasure.At the beginning of an erasure determine the pitch, and extractone pitch period from the tail of the signal. Do an OLA for 1/4of the pitch to smooth the signal. Then repeat the extracted signalfor the length of the erasure. If the erasure continues for more than10 msec, increase the number of periods in the pitchbuffer. At the endof an erasure, do an OLA with the start of the first good frame.The gain decays as the erasure gets longer.
- Parameters:
out- Output buffer for synthesized speech
-
addtohistory
int addtohistory(Array<short> samples, int offset, int length)
A good frame was received and decoded.If right after an erasure, do an overlap add with the synthetic signal.Add the frame to history buffer.
- Parameters:
samples- Speech samples from the good frameoffset- starting offset of the good framelength- length of goodFrame
-
addtohistory
void addtohistory(Array<short> s)
A good frame was received and decoded.If right after an erasure, do an overlap add with the synthetic signal.Add the frame to history buffer.
- Parameters:
s- Speech samples from the good frame
-
-
-
-