public class AudioPlayerImpl extends AbstractSource implements Player, TTSEngine, PooledObject
duration, mediaSink| Constructor and Description |
|---|
AudioPlayerImpl(String name,
org.restcomm.media.scheduler.PriorityQueueScheduler scheduler,
RemoteStreamProvider remoteStreamProvider)
Creates new instance of the Audio player.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
addListener(PlayerListener listener) |
void |
checkIn() |
void |
checkOut() |
void |
clearAllListeners() |
protected void |
completed() |
void |
deactivate() |
Frame |
evolve(long timestamp) |
AudioInput |
getAudioInput() |
Processor |
getDsp()
Gets the digital signaling processor associated with this media source
|
String |
getVoiceName() |
int |
getVolume() |
void |
removeListener(PlayerListener listener) |
void |
setDsp(Processor dsp)
Assigns the digital signaling processor of this component.
|
void |
setText(String text) |
void |
setURL(String passedURI) |
void |
setVoiceName(String voiceName) |
void |
setVolume(int volume) |
protected void |
stopped() |
connect, disconnect, failed, getBytesTransmitted, getDuration, getMediaTime, getPacketsTransmitted, isConnected, isStarted, report, reset, setDuration, setInitialDelay, setMediaTime, start, started, stop, wakeupgetId, getNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBytesTransmitted, getDuration, getMediaTime, getPacketsTransmitted, isConnected, isStarted, setDuration, setInitialDelay, setMediaTime, start, stoppublic AudioPlayerImpl(String name, org.restcomm.media.scheduler.PriorityQueueScheduler scheduler, RemoteStreamProvider remoteStreamProvider)
name - the name of the AudioPlayer to be created.scheduler - EDF job schedulervc - the TTS voice cache.public AudioInput getAudioInput()
public void setDsp(Processor dsp)
dsp - the dsp instancepublic Processor getDsp()
public void setURL(String passedURI) throws ResourceUnavailableException, MalformedURLException
setURL in interface PlayerResourceUnavailableExceptionMalformedURLExceptionpublic void activate()
activate in interface Componentactivate in class AbstractSourcepublic void deactivate()
deactivate in interface Componentdeactivate in class AbstractSourceprotected void stopped()
stopped in class AbstractSourceprotected void completed()
completed in class AbstractSourcepublic Frame evolve(long timestamp)
evolve in class AbstractSourcepublic void setVoiceName(String voiceName)
setVoiceName in interface TTSEnginepublic String getVoiceName()
getVoiceName in interface TTSEnginepublic void addListener(PlayerListener listener) throws TooManyListenersException
addListener in interface PlayerTooManyListenersExceptionpublic void removeListener(PlayerListener listener)
removeListener in interface Playerpublic void clearAllListeners()
clearAllListeners in interface Playerpublic void checkIn()
checkIn in interface PooledObjectpublic void checkOut()
checkOut in interface PooledObjectCopyright © 2017 TeleStax, Inc.. All Rights Reserved.