Package 

Class PLCModule


  • 
    public class PLCModule
    
                        

    Packet Loss Concealment (PLC) Module for VoIP Applications This module learns from previously decoded audio data and generates synthetic audio frames during packet loss scenarios.

    • Constructor Summary

      Constructors 
      Constructor Description
      PLCModule() Constructor with default parameters (48kHz, 960 samples, mono)
      PLCModule(int sampleRate, int frameSize, int channels) Constructor with custom parameters
    • Method Summary

      Modifier and Type Method Description
      void feedNormalAudio(Array<short> audioData, int offset, int length) Feed normal decoded audio data to the PLC module for learning.
      int generatePLCAudio(Array<short> plcFrame, int offset, int length) Generate synthetic audio data when a packet is lost.
      void reset() Resets the PLC module to its initial state.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PLCModule

        PLCModule()
        Constructor with default parameters (48kHz, 960 samples, mono)
      • PLCModule

        PLCModule(int sampleRate, int frameSize, int channels)
        Constructor with custom parameters
    • Method Detail

      • feedNormalAudio

         void feedNormalAudio(Array<short> audioData, int offset, int length)

        Feed normal decoded audio data to the PLC module for learning.

      • generatePLCAudio

         int generatePLCAudio(Array<short> plcFrame, int offset, int length)

        Generate synthetic audio data when a packet is lost.

      • reset

         void reset()

        Resets the PLC module to its initial state.