public class FdpsolaAdapter extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
bBroke |
protected boolean |
bLastFrame |
boolean |
bSilent |
protected boolean |
bWarp |
protected LEDataInputStream |
din |
protected LEDataOutputStream |
dout |
protected double[] |
f0s |
protected double[] |
frm |
protected double |
frmEn |
protected int |
frmSize |
protected double[] |
frmy |
protected double |
frmyEn |
protected int |
fs |
protected double |
gain |
protected int |
halfWin |
protected ComplexArray |
hy |
protected DoubleDataSource |
input |
protected AudioInputStream |
inputAudio |
protected int |
inputFrameIndex |
protected double[] |
inputVT |
protected double |
localDurDiff |
protected double |
localDurDiffSaved |
protected int |
lpOrder |
protected static double |
MAX_PSCALE |
protected static double |
MAX_TSCALE |
protected int |
maxFrmSize |
protected int |
maxNewFrmSize |
protected static double |
MIN_PSCALE |
protected static double |
MIN_TSCALE |
protected VoiceModificationParametersPreprocessor |
modParams |
protected int |
newFrmSize |
protected int |
newPeriod |
protected int |
newSkipSize |
protected double[] |
newVScales |
protected double |
nextAdd |
protected static int |
NUM_PITCH_SYNC_PERIODS |
protected int |
numfrm |
protected int |
numfrmFixed |
protected int |
numPeriods |
protected int |
origLen |
protected double[] |
outBuff |
protected int |
outBuffLen |
protected int |
outBuffStart |
protected DDSAudioInputStream |
outputAudio |
protected String |
outputFile |
protected PitchMarks |
pm |
protected PsolaFrameProvider |
psFrm |
protected double[] |
py2 |
protected int |
repeatSkipCount |
protected double |
ssFixedInSeconds |
protected double |
sumLocalDurDiffs |
protected int |
synthFrameInd |
protected int |
synthFrmInd |
protected int |
synthSt |
protected int |
synthTotal |
protected String |
tempOutBinaryFile |
protected double[] |
tmpvsc |
protected int |
totalWrittenToFile |
protected double |
tscaleSingle |
protected double[] |
wgt |
protected double[] |
wgty |
protected DynamicWindow |
windowIn |
protected DynamicWindow |
windowOut |
protected double |
wsFixedInSeconds |
protected double[] |
wSynthBuff |
protected double[] |
ySynthBuff |
protected int |
ySynthInd |
Constructor and Description |
---|
FdpsolaAdapter(BaselineAdaptationItem inputItem,
String strOutputFile,
JointGMMTransformerParams jgmmParamsIn,
double[] pscales,
double[] tscales,
double[] escales,
double[] vscales) |
FdpsolaAdapter(BaselineAdaptationItem inputItem,
String strOutputFile,
WeightedCodebookTransformerParams wctParamsIn,
double[] pscales,
double[] tscales,
double[] escales,
double[] vscales) |
Modifier and Type | Method and Description |
---|---|
void |
convertToWav(AudioFormat audioformat) |
void |
fdpsolaOnline(VocalTractTransformationFunction vtMapper,
VocalTractTransformationData vtData,
PitchTransformationData ptData) |
void |
init(BaselineAdaptationItem inputItem,
String strOutputFile,
double[] pscales,
double[] tscales,
double[] escales,
double[] vscales) |
double[] |
processFrame(double[] frmIn,
boolean isVoiced,
double currentF0,
double targetF0,
double tscale,
double escale,
double vscale,
boolean isLastInputFrame,
int currentPeriod,
int inputFrameSize,
VocalTractTransformationFunction mapper,
VocalTractTransformationData data) |
double[] |
writeFinal() |
protected DoubleDataSource input
protected AudioInputStream inputAudio
protected DDSAudioInputStream outputAudio
protected VoiceModificationParametersPreprocessor modParams
protected int numfrm
protected int numfrmFixed
protected int lpOrder
protected String outputFile
protected String tempOutBinaryFile
protected int origLen
protected PitchMarks pm
protected double[] f0s
protected PsolaFrameProvider psFrm
protected double wsFixedInSeconds
protected double ssFixedInSeconds
protected int numPeriods
protected static int NUM_PITCH_SYNC_PERIODS
public boolean bSilent
protected LEDataOutputStream dout
protected LEDataInputStream din
protected DynamicWindow windowIn
protected DynamicWindow windowOut
protected double[] wgt
protected double[] wgty
protected int frmSize
protected int newFrmSize
protected int newPeriod
protected int synthFrmInd
protected double localDurDiff
protected int repeatSkipCount
protected double localDurDiffSaved
protected double sumLocalDurDiffs
protected double nextAdd
protected int synthSt
protected int synthTotal
protected int maxFrmSize
protected int maxNewFrmSize
protected int synthFrameInd
protected boolean bLastFrame
protected boolean bBroke
protected int outBuffLen
protected double[] outBuff
protected int outBuffStart
protected int totalWrittenToFile
protected double[] ySynthBuff
protected double[] wSynthBuff
protected int ySynthInd
protected double[] frm
protected boolean bWarp
protected double[] inputVT
protected double[] py2
protected ComplexArray hy
protected double[] frmy
protected double frmEn
protected double frmyEn
protected double gain
protected int newSkipSize
protected int halfWin
protected double[] newVScales
protected double[] tmpvsc
protected int inputFrameIndex
protected static double MIN_PSCALE
protected static double MAX_PSCALE
protected static double MIN_TSCALE
protected static double MAX_TSCALE
protected int fs
protected double tscaleSingle
public FdpsolaAdapter(BaselineAdaptationItem inputItem, String strOutputFile, WeightedCodebookTransformerParams wctParamsIn, double[] pscales, double[] tscales, double[] escales, double[] vscales) throws UnsupportedAudioFileException, IOException
public FdpsolaAdapter(BaselineAdaptationItem inputItem, String strOutputFile, JointGMMTransformerParams jgmmParamsIn, double[] pscales, double[] tscales, double[] escales, double[] vscales) throws UnsupportedAudioFileException, IOException
public void init(BaselineAdaptationItem inputItem, String strOutputFile, double[] pscales, double[] tscales, double[] escales, double[] vscales) throws IOException
IOException
public void fdpsolaOnline(VocalTractTransformationFunction vtMapper, VocalTractTransformationData vtData, PitchTransformationData ptData) throws IOException
IOException
public double[] processFrame(double[] frmIn, boolean isVoiced, double currentF0, double targetF0, double tscale, double escale, double vscale, boolean isLastInputFrame, int currentPeriod, int inputFrameSize, VocalTractTransformationFunction mapper, VocalTractTransformationData data) throws IOException
IOException
public double[] writeFinal() throws IOException
IOException
public void convertToWav(AudioFormat audioformat) throws IOException
IOException
Copyright © 2000–2016 DFKI GmbH. All rights reserved.