public class NexmoTextToSpeechCallDispatcher extends Object implements BulkDispatcher<DisposableMessage<String,String>>, ChangeGenerator<com.nexmo.client.voice.CallEvent>
BulkDispatcher to create a text to speech call using Nexmo API.| Constructor and Description |
|---|
NexmoTextToSpeechCallDispatcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChangeListener(ChangeListener changeListener)
Allow Notify all
ChangeListeners about a change |
void |
dispatch(DisposableMessage<String,String> message) |
void |
dispatch(List<DisposableMessage<String,String>> messages) |
NexmoAuthenticationDetails |
getAuthDetails() |
String |
getBaseWebPath() |
String |
getFileTargetGroupName() |
String |
getFileTargetUserName() |
List |
getListeners()
Get list directly.
|
String |
getTempFilePath() |
void |
notifyAllListeners(com.nexmo.client.voice.CallEvent event)
Whenever a node is selected/updated, it also notifies its listeners.
|
void |
setAuthDetails(NexmoAuthenticationDetails authDetails)
Nexmo authentication can be obtained by creating an application under your Nexmo account,
follow this guide https://developer.nexmo.com/voice/voice-api/overview#getting-started
|
void |
setBaseWebPath(String baseWebPath) |
void |
setFileTargetGroupName(String fileTargetGroupName) |
void |
setFileTargetUserName(String fileTargetUserName) |
void |
setListeners(List listeners)
Set list directly.
|
void |
setTempFilePath(String tempFilePath) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbroadcastaccept, getSettings, transformpublic void dispatch(DisposableMessage<String,String> message) throws Exception
dispatch in interface GenericDispatcher<DisposableMessage<String,String>>Exceptionpublic void dispatch(List<DisposableMessage<String,String>> messages) throws Exception
dispatch in interface BulkDispatcher<DisposableMessage<String,String>>Exceptionpublic NexmoAuthenticationDetails getAuthDetails()
public void setAuthDetails(NexmoAuthenticationDetails authDetails)
authDetails - nexmo authentication values for the dispatcherpublic String getTempFilePath()
public void setTempFilePath(String tempFilePath)
tempFilePath - the file path to a folder for storing text to voice json file.public String getFileTargetGroupName()
public void setFileTargetGroupName(String fileTargetGroupName)
public String getFileTargetUserName()
public void setFileTargetUserName(String fileTargetUserName)
public String getBaseWebPath()
public void setBaseWebPath(String baseWebPath)
baseWebPath - - Path to your base domainpublic void addChangeListener(ChangeListener changeListener)
ChangeGeneratorChangeListeners about a changeaddChangeListener in interface ChangeGenerator<com.nexmo.client.voice.CallEvent>public void notifyAllListeners(com.nexmo.client.voice.CallEvent event)
ChangeGeneratornotifyAllListeners in interface ChangeGenerator<com.nexmo.client.voice.CallEvent>public List getListeners()
ChangeGeneratorgetListeners in interface ChangeGenerator<com.nexmo.client.voice.CallEvent>public void setListeners(List listeners)
ChangeGeneratorsetListeners in interface ChangeGenerator<com.nexmo.client.voice.CallEvent>Copyright © 2018. All rights reserved.