public final int[] readInt(int len) throws IOException { int[] ret = new int[len]; for (int i = 0; i < len; i++) ret[i] = readInt(); return ret; }
public final int readIntEndian() throws IOException { int ret = readInt(); return ret; }
public final int[] readInt(int len) throws IOException { int[] ret = new int[len]; for (int i = 0; i < len; i++) ret[i] = readInt(); return ret; }
public final int readIntEndian() throws IOException { int ret = readInt(); return ret; }
public final long readLongEndian() throws IOException { long ret = (long) readInt(); return ret; }
public final long readLongEndian() throws IOException { long ret = (long) readInt(); return ret; }
public void read(MaryRandomAccessFile ler) throws IOException { totalF0StatisticsEntries = ler.readInt(); }
public void read(MaryRandomAccessFile ler) throws IOException { totalF0StatisticsEntries = ler.readInt(); }
public double[] readSingle() { double[] x = null; if (status == OPEN_FOR_READ) { int len = 0; try { len = stream.readInt(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } if (len > 0) { try { x = stream.readDouble(len); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } return x; }
public double[] readSingle() { double[] x = null; if (status == OPEN_FOR_READ) { int len = 0; try { len = stream.readInt(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } if (len > 0) { try { x = stream.readDouble(len); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } return x; }
public void read(MaryRandomAccessFile ler) throws IOException { totalEntries = ler.readInt(); lsfParams = new LsfFileHeader(); lsfParams.readHeader(ler); ptcParams = new PitchFileHeader(); ptcParams.readPitchHeader(ler); energyParams = new EnergyFileHeader(); energyParams.read(ler, true); mfccParams.readHeader(ler); codebookType = ler.readInt(); numNeighboursInFrameGroups = ler.readInt(); numNeighboursInLabelGroups = ler.readInt(); int tagLen = ler.readInt(); sourceTag = String.copyValueOf(ler.readChar(tagLen)); tagLen = ler.readInt(); targetTag = String.copyValueOf(ler.readChar(tagLen)); vocalTractFeature = ler.readInt(); }
public void read(MaryRandomAccessFile ler, boolean bLeaveOpen) throws IOException { try { samplingRate = ler.readInt(); windowSizeInSeconds = ler.readDouble(); skipSizeInSeconds = ler.readDouble(); totalFrames = ler.readInt(); if (!bLeaveOpen) { ler.close(); } } catch (IOException e) { throw e; } } }
public void read(MaryRandomAccessFile ler, boolean bLeaveOpen) throws IOException { try { samplingRate = ler.readInt(); windowSizeInSeconds = ler.readDouble(); skipSizeInSeconds = ler.readDouble(); totalFrames = ler.readInt(); if (!bLeaveOpen) { ler.close(); } } catch (IOException e) { throw e; } } }
public void read(MaryRandomAccessFile ler) throws IOException { totalEntries = ler.readInt(); lsfParams = new LsfFileHeader(); lsfParams.readHeader(ler); ptcParams = new PitchFileHeader(); ptcParams.readPitchHeader(ler); energyParams = new EnergyFileHeader(); energyParams.read(ler, true); mfccParams.readHeader(ler); codebookType = ler.readInt(); numNeighboursInFrameGroups = ler.readInt(); numNeighboursInLabelGroups = ler.readInt(); int tagLen = ler.readInt(); sourceTag = String.copyValueOf(ler.readChar(tagLen)); tagLen = ler.readInt(); targetTag = String.copyValueOf(ler.readChar(tagLen)); vocalTractFeature = ler.readInt(); }
public void incrementTotalEntries() { if (status == OPEN_FOR_WRITE) { try { long currentPos = stream.getFilePointer(); stream.seek(0); int totalEntries = stream.readInt(); totalEntries++; stream.seek(0); stream.writeInt(totalEntries); System.out.println("Wrote codebook entry " + String.valueOf(totalEntries)); stream.seek(currentPos); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } }
public void incrementTotalF0StatisticsEntries() { if (status == OPEN_FOR_WRITE) { try { long currentPos = stream.getFilePointer(); stream.seek(0); int totalF0StatisticsEntries = stream.readInt(); totalF0StatisticsEntries++; stream.seek(0); stream.writeInt(totalF0StatisticsEntries); System.out.println("Wrote f0 statistics entry " + String.valueOf(totalF0StatisticsEntries)); stream.seek(currentPos); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } }
public void incrementTotalEntries() { if (status == OPEN_FOR_WRITE) { try { long currentPos = stream.getFilePointer(); stream.seek(0); int totalEntries = stream.readInt(); totalEntries++; stream.seek(0); stream.writeInt(totalEntries); System.out.println("Wrote codebook entry " + String.valueOf(totalEntries)); stream.seek(currentPos); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } }
public void incrementTotalF0StatisticsEntries() { if (status == OPEN_FOR_WRITE) { try { long currentPos = stream.getFilePointer(); stream.seek(0); int totalF0StatisticsEntries = stream.readInt(); totalF0StatisticsEntries++; stream.seek(0); stream.writeInt(totalF0StatisticsEntries); System.out.println("Wrote f0 statistics entry " + String.valueOf(totalF0StatisticsEntries)); stream.seek(currentPos); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } }
public void incrementTotalEntries() { if (status == OPEN_FOR_WRITE) { try { long currentPos = stream.getFilePointer(); stream.seek(0); totalEntries = stream.readInt(); totalEntries++; // System.out.println(String.valueOf(totalEntries)); stream.seek(0); stream.writeInt(totalEntries); stream.seek(currentPos); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }
public void incrementTotalEntries() { if (status == OPEN_FOR_WRITE) { try { long currentPos = stream.getFilePointer(); stream.seek(0); totalEntries = stream.readInt(); totalEntries++; // System.out.println(String.valueOf(totalEntries)); stream.seek(0); stream.writeInt(totalEntries); stream.seek(currentPos); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }