|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.impl.resource.mediaplayer.audio.tts.TtsTrackImpl
public class TtsTrackImpl
| Constructor Summary | |
|---|---|
TtsTrackImpl(java.lang.String text,
java.lang.String voiceName)
|
|
TtsTrackImpl(java.net.URL url,
java.lang.String voiceName)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes this stream. |
long |
getDuration()
Gets duration of this track. |
org.mobicents.media.Format |
getFormat()
Gets the format of this audio stream. |
long |
getMediaTime()
Gets the current media time. |
int |
getPeriod()
|
void |
process(org.mobicents.media.Buffer buffer)
Fills buffer with next portion of media data. |
void |
setMediaTime(long timestamp)
Rewinds track to the specified timestamp. |
void |
setPeriod(int period)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TtsTrackImpl(java.net.URL url,
java.lang.String voiceName)
throws java.io.IOException
java.io.IOException
public TtsTrackImpl(java.lang.String text,
java.lang.String voiceName)
| Method Detail |
|---|
public void setPeriod(int period)
public int getPeriod()
public long getMediaTime()
Track
getMediaTime in interface Trackpublic void setMediaTime(long timestamp)
Track
setMediaTime in interface Tracktimestamp - the value of the time in milliscondspublic long getDuration()
Track
getDuration in interface Track
public void process(org.mobicents.media.Buffer buffer)
throws java.io.IOException
Track
process in interface Trackjava.io.IOExceptionpublic void close()
Track
close in interface Trackpublic org.mobicents.media.Format getFormat()
Track
getFormat in interface Track
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||