| Constructor and Description |
|---|
TtsTrackImpl(String text,
String voiceName,
VoicesCache vc) |
TtsTrackImpl(URL url,
String voiceName,
VoicesCache vc) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this stream.
|
long |
getDuration()
Gets duration of this track.
|
Format |
getFormat()
Gets the format of this audio stream.
|
long |
getMediaTime()
Gets the current media time.
|
int |
getPeriod() |
Frame |
process(long timestamp)
Fills buffer with next portion of media data.
|
void |
setMediaTime(long timestamp)
Rewinds track to the specified timestamp.
|
void |
setPeriod(int period) |
public TtsTrackImpl(URL url, String voiceName, VoicesCache vc) throws IOException
IOExceptionpublic TtsTrackImpl(String text, String voiceName, VoicesCache vc)
public void setPeriod(int period)
public int getPeriod()
public long getMediaTime()
TrackgetMediaTime in interface Trackpublic void setMediaTime(long timestamp)
TracksetMediaTime in interface Tracktimestamp - the value of the time in nanosecondpublic long getDuration()
TrackgetDuration in interface Trackpublic Frame process(long timestamp) throws IOException
Trackprocess in interface Tracktimestamp - - current media time expressed in nanosecondsIOExceptionpublic void close()
TrackCopyright © 2017 TeleStax, Inc.. All Rights Reserved.