public class LsfAnalyser extends Object
Constructor and Description |
---|
LsfAnalyser() |
Modifier and Type | Method and Description |
---|---|
static double[] |
lpc2lsf(double[] oneMinusA,
int type)
Convert filter coefficients to lsp coefficients.
|
static double[] |
lpc2lsfInBark(double[] oneMinusA,
int samplingRate) |
static double[] |
lpc2lsfInBark(double[] oneMinusA,
int samplingRate,
int type) |
static double[] |
lpc2lsfInHz(double[] oneMinusA,
int samplingRate)
Convert filter coefficients to lsp coefficients.
|
static double[] |
lpc2lsfInHz(double[] oneMinusA,
int samplingRate,
int type) |
static double[] |
lsf2lpc(double[] lsf)
Convert LSF frequencies into LPC coefficients.
|
static double[][] |
lsfAnalyzeWavFile(String wavFile,
LsfFileHeader params) |
static void |
lsfAnalyzeWavFile(String wavFileIn,
String lsfFileOut,
LsfFileHeader params) |
static double[] |
lsfInBark2lpc(double[] lsfsInBark,
int samplingRate) |
static double[] |
lsfInHz2lpc(double[] lsf,
int samplingRate)
Convert LSF frequencies into LPC coefficients.
|
static void |
main(String[] args) |
static void |
main2(String[] argv) |
static double[] |
nonPreemphasizedFrame2Lpcs(double[] nonPreemphasizedFrame,
int dimension,
int samplingRate,
int windowType,
float preCoef) |
static double[] |
nonPreemphasizedFrame2LsfsInHz(double[] nonPreemphasizedFrame,
int dimension,
int samplingRate,
int windowType,
float preCoef) |
static double[] |
preemphasizedFrame2Lpcs(double[] preemphasizedFrame,
int dimension,
int samplingRate,
int windowType) |
static double[] |
preemphasizedFrame2LsfsInHz(double[] preemphasizedFrame,
int dimension,
int samplingRate,
int windowType) |
static double[][] |
readLsfFile(String lsfFile) |
static double[][] |
readLsfs(DataInputStream stream,
LsfFileHeader params) |
static double[] |
windowedAndPreemphasizedFrame2Lpcs(double[] windowedAndPreemphasizedFrame,
int dimension,
int samplingRate) |
static double[] |
windowedAndPreemphasizedFrame2LsfsInHz(double[] windowedAndPreemphasizedFrame,
int dimension,
int samplingRate) |
static void |
writeLsfFile(double[][] lsfs,
String lsfFileOut,
LsfFileHeader params) |
static void |
writeLsfs(DataOutputStream stream,
double[][] lsfs) |
public static double[] lpc2lsfInHz(double[] oneMinusA, int samplingRate)
oneMinusA
- A(z) = a0 - sum { ai * z^-i } . a0 = 1.samplingRate
- the sampling ratepublic static double[] lpc2lsfInHz(double[] oneMinusA, int samplingRate, int type)
public static double[] lpc2lsfInBark(double[] oneMinusA, int samplingRate)
public static double[] lpc2lsfInBark(double[] oneMinusA, int samplingRate, int type)
public static double[] lpc2lsf(double[] oneMinusA, int type)
oneMinusA
- A(z) = a0 - sum { ai * z^-i } . a0 = 1.type
- which of the four methods for a2lsf conversion to performpublic static void main2(String[] argv)
public static double[] lsfInHz2lpc(double[] lsf, int samplingRate)
lsf
- the array of lsf coefficients, in Hertz frequenciessamplingRate
- the sampling rate of the underlying audio datapublic static double[] lsfInBark2lpc(double[] lsfsInBark, int samplingRate)
public static double[] lsf2lpc(double[] lsf)
lsf
- the array of lsf coefficients, in the range 0 to 0.5public static double[][] lsfAnalyzeWavFile(String wavFile, LsfFileHeader params) throws UnsupportedAudioFileException, IOException
public static double[] nonPreemphasizedFrame2Lpcs(double[] nonPreemphasizedFrame, int dimension, int samplingRate, int windowType, float preCoef)
public static double[] preemphasizedFrame2Lpcs(double[] preemphasizedFrame, int dimension, int samplingRate, int windowType)
public static double[] windowedAndPreemphasizedFrame2Lpcs(double[] windowedAndPreemphasizedFrame, int dimension, int samplingRate)
public static double[] nonPreemphasizedFrame2LsfsInHz(double[] nonPreemphasizedFrame, int dimension, int samplingRate, int windowType, float preCoef)
public static double[] preemphasizedFrame2LsfsInHz(double[] preemphasizedFrame, int dimension, int samplingRate, int windowType)
public static double[] windowedAndPreemphasizedFrame2LsfsInHz(double[] windowedAndPreemphasizedFrame, int dimension, int samplingRate)
public static void lsfAnalyzeWavFile(String wavFileIn, String lsfFileOut, LsfFileHeader params) throws IOException
IOException
public static void writeLsfFile(double[][] lsfs, String lsfFileOut, LsfFileHeader params) throws IOException
IOException
public static void writeLsfs(DataOutputStream stream, double[][] lsfs) throws IOException
IOException
public static double[][] readLsfFile(String lsfFile) throws IOException
IOException
public static double[][] readLsfs(DataInputStream stream, LsfFileHeader params) throws IOException
IOException
Copyright © 2000–2016 DFKI GmbH. All rights reserved.