public class VoiceQualityTimelineMaker.VoiceQualityDataFile extends Object
AbstractDataFile
for voice quality parameter files generated by VoiceQuality.writeVqFile(java.lang.String)
Modifier and Type | Field and Description |
---|---|
protected Datagram[] |
datagrams |
protected int |
frameDuration |
protected float |
frameSkip |
protected int |
numFrames |
protected int |
numParams |
protected int |
sampleRate |
Constructor and Description |
---|
VoiceQualityTimelineMaker.VoiceQualityDataFile(File file)
main constructor
|
Modifier and Type | Method and Description |
---|---|
Datagram[] |
getDatagrams()
get datagrams; no special requirements for their total duration
|
Datagram[] |
getDatagrams(int forcedDuration)
Get datagrams; if the total duration of all Datagrams is longer than forcedDuration, excess Datagrams will be
silently dropped, and the duration of the last included one is shortened to match forcedDuration.
|
float |
getFrameSkip()
get the frame skip (in seconds)
|
int |
getSampleRate()
get the sample rate (in Hz)
|
protected void |
load(File file)
load the file
|
protected int numParams
protected int sampleRate
protected float frameSkip
protected int numFrames
protected int frameDuration
protected Datagram[] datagrams
public VoiceQualityTimelineMaker.VoiceQualityDataFile(File file)
file
- to loadprotected void load(File file)
file
- filepublic int getSampleRate()
public float getFrameSkip()
public Datagram[] getDatagrams()
public Datagram[] getDatagrams(int forcedDuration)
forcedDuration
- of all Datagrams (in samples)Copyright © 2000–2016 DFKI GmbH. All rights reserved.