org.mobicents.media.server.impl.resource.mediaplayer.audio.tts
Class TtsTrackImpl

java.lang.Object
  extended by org.mobicents.media.server.impl.resource.mediaplayer.audio.tts.TtsTrackImpl
All Implemented Interfaces:
Track

public class TtsTrackImpl
extends java.lang.Object
implements Track

Author:
kulikov, amit bhayani

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

TtsTrackImpl

public TtsTrackImpl(java.net.URL url,
                    java.lang.String voiceName)
             throws java.io.IOException
Throws:
java.io.IOException

TtsTrackImpl

public TtsTrackImpl(java.lang.String text,
                    java.lang.String voiceName)
Method Detail

setPeriod

public void setPeriod(int period)

getPeriod

public int getPeriod()

getMediaTime

public long getMediaTime()
Description copied from interface: Track
Gets the current media time.

Specified by:
getMediaTime in interface Track
Returns:
time value expressed in milliseconds.

setMediaTime

public void setMediaTime(long timestamp)
Description copied from interface: Track
Rewinds track to the specified timestamp.

Specified by:
setMediaTime in interface Track
Parameters:
timestamp - the value of the time in millisconds

getDuration

public long getDuration()
Description copied from interface: Track
Gets duration of this track.

Specified by:
getDuration in interface Track
Returns:
duration expressed in milliseconds.

process

public void process(org.mobicents.media.Buffer buffer)
             throws java.io.IOException
Description copied from interface: Track
Fills buffer with next portion of media data.

Specified by:
process in interface Track
Throws:
java.io.IOException

close

public void close()
Description copied from interface: Track
Closes this stream.

Specified by:
close in interface Track

getFormat

public org.mobicents.media.Format getFormat()
Description copied from interface: Track
Gets the format of this audio stream.

Specified by:
getFormat in interface Track
Returns:
the format object.


Copyright © 2010. All Rights Reserved.