public interface Recorder extends MediaSink
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(RecorderListener listener)
Adds listener for the recorder
|
void |
clearAllListeners()
Removes all registered listeners
|
void |
removeListener(RecorderListener listener)
Unregisters listener
|
void |
setMaxRecordTime(long maxRecordTime)
Sets the time for recording.
|
void |
setPostSpeechTimer(long value)
Changes post-speech timer value.
|
void |
setPreSpeechTimer(long value)
Changes post-speech timer value.
|
void |
setRecordDir(String recordDir)
Set the Record path.
|
void |
setRecordFile(String uri,
boolean append)
Assign file for recording.
|
getBytesReceived, getPacketsReceived, isStarted, performvoid setRecordDir(String recordDir)
recordDir - void setRecordFile(String uri, boolean append) throws IOException
uri - the URI which points to a file.IOExceptionFileNotFoundExceptionvoid setMaxRecordTime(long maxRecordTime)
maxRecordTime - the time measured in nanosecondsvoid setPreSpeechTimer(long value)
value - the time expressed in nanoseconds.void setPostSpeechTimer(long value)
value - the time expressed in nanoseconds.void addListener(RecorderListener listener) throws TooManyListenersException
listener - the listener instanceTooManyListenersExceptionvoid removeListener(RecorderListener listener)
listener - the listener to be unregisteredvoid clearAllListeners()
Copyright © 2017 TeleStax, Inc.. All Rights Reserved.