|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmarytts.unitselection.data.Datagram
marytts.unitselection.data.HnmDatagram
public class HnmDatagram
A datagram that encapsulates a harmonics plus noise modelled speech frame
| Field Summary | |
|---|---|
HntmSpeechFrame |
frame
|
| Fields inherited from class marytts.unitselection.data.Datagram |
|---|
data, duration |
| Constructor Summary | |
|---|---|
HnmDatagram(java.nio.ByteBuffer bb,
int noiseModel)
Constructor which pops a datagram from a byte buffer. |
|
HnmDatagram(long setDuration,
HntmSpeechFrame frame)
Construct a HNM datagram. |
|
HnmDatagram(java.io.RandomAccessFile raf,
int noiseModel)
Constructor which pops a datagram from a random access file. |
|
| Method Summary | |
|---|---|
boolean |
equals(Datagram other)
Tests if this datagram is equal to another datagram. |
HntmSpeechFrame |
getFrame()
Get the sinusoidal speech frame |
int |
getLength()
Get the length, in bytes, of the datagram's data field. |
void |
write(java.io.DataOutput out)
Write this datagram to a random access file or data output stream. |
| Methods inherited from class marytts.unitselection.data.Datagram |
|---|
equals, getData, getDuration, setDuration |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public HntmSpeechFrame frame
| Constructor Detail |
|---|
public HnmDatagram(long setDuration,
HntmSpeechFrame frame)
duration - the duration, in samples, of the data represented by this datagramframe - the parameters of HNM for a speech frame.
public HnmDatagram(java.io.RandomAccessFile raf,
int noiseModel)
throws java.io.IOException,
java.io.EOFException
raf - the random access file to pop the datagram from.
java.io.IOException
java.io.EOFException
public HnmDatagram(java.nio.ByteBuffer bb,
int noiseModel)
throws java.io.IOException,
java.io.EOFException
bb - the byte buffer to pop the datagram from.
java.io.IOException
java.io.EOFException| Method Detail |
|---|
public int getLength()
getLength in class Datagrampublic HntmSpeechFrame getFrame()
public void write(java.io.DataOutput out)
throws java.io.IOException
write in class Datagramout - the data output to write to.
java.io.IOException - if a write error occurs.public boolean equals(Datagram other)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||