public abstract class Channel extends ProducerModule
| Modifier and Type | Class and Description |
|---|---|
static class |
Channel.ErrorCode |
static class |
Channel.EventCode |
ProducerModule.State| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
_currentVoice |
protected IChannelListener |
_listener |
protected java.lang.String |
_name |
protected java.lang.String |
_source |
_state| Constructor and Description |
|---|
Channel(java.lang.String name,
java.lang.String voice,
IChannelListener listener) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
destroy() |
abstract int |
getChannelCount() |
java.lang.String |
getCurrentVoice() |
java.lang.String |
getName() |
abstract int |
getSampleRate() |
protected void |
runImpl() |
void |
setCurrentVoice(java.lang.String voice) |
protected void |
startImpl() |
protected abstract void |
synthesize(java.lang.String text,
boolean async) |
void |
synthesizeFromText(java.lang.String text) |
close, closeImpl, dispatchAudio, dispatchBuffer, getLastError, getState, isClosed, isIdle, isOpened, isPaused, isRunning, isStarted, open, openImpl, pause, pauseImpl, resume, resumeImpl, run, setLastError, start, stop, stopImpl, subscribeFirst, subscribeLast, unsubscribeprotected final java.lang.String _name
protected java.lang.String _currentVoice
protected java.lang.String _source
protected IChannelListener _listener
public Channel(java.lang.String name,
java.lang.String voice,
IChannelListener listener)
throws Exception
Exceptionpublic void setCurrentVoice(java.lang.String voice)
throws Exception
Exceptionpublic void synthesizeFromText(java.lang.String text)
throws Exception
Exceptionprotected abstract void synthesize(java.lang.String text,
boolean async)
throws Exception
Exceptionprotected void runImpl()
throws Exception
runImpl in class ProducerModuleExceptionprotected void startImpl()
throws Exception
startImpl in class ProducerModuleException