marytts.signalproc.process
Class LPCCrossSynthesisOnline

java.lang.Object
  extended by marytts.signalproc.process.LPCAnalysisResynthesis
      extended by marytts.signalproc.process.LPCCrossSynthesisOnline
All Implemented Interfaces:
InlineDataProcessor

public class LPCCrossSynthesisOnline
extends LPCAnalysisResynthesis


Field Summary
protected  int frameLength
           
protected  DoubleDataSource newResidual
           
protected  FrameProvider newResidualAudioFrames
           
protected  DoubleDataSource paddedExcitation
           
protected  DoubleDataSource padding1
           
protected  java.lang.String resFile
           
protected  javax.sound.sampled.AudioInputStream residualStream
           
protected  java.io.InputStream resStream
           
protected  int samplingRate
           
 
Fields inherited from class marytts.signalproc.process.LPCAnalysisResynthesis
p
 
Constructor Summary
LPCCrossSynthesisOnline(int p, int frmLen, java.lang.String inResFile, int fs)
           
 
Method Summary
protected  void processLPC(LpcAnalyser.LpCoeffs coeffs, double[] residual)
          Replace residual with new residual from audio signal, adapting the gain in order to maintain overall volume.
 
Methods inherited from class marytts.signalproc.process.LPCAnalysisResynthesis
applyInline, main
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frameLength

protected int frameLength

residualStream

protected javax.sound.sampled.AudioInputStream residualStream

newResidual

protected DoubleDataSource newResidual

padding1

protected DoubleDataSource padding1

paddedExcitation

protected DoubleDataSource paddedExcitation

newResidualAudioFrames

protected FrameProvider newResidualAudioFrames

samplingRate

protected int samplingRate

resStream

protected java.io.InputStream resStream

resFile

protected java.lang.String resFile
Constructor Detail

LPCCrossSynthesisOnline

public LPCCrossSynthesisOnline(int p,
                               int frmLen,
                               java.lang.String inResFile,
                               int fs)
Method Detail

processLPC

protected void processLPC(LpcAnalyser.LpCoeffs coeffs,
                          double[] residual)
Replace residual with new residual from audio signal, adapting the gain in order to maintain overall volume.

Overrides:
processLPC in class LPCAnalysisResynthesis
Parameters:
coeffs - the LPC coefficients
residual - the residual, of length framelength