public class Speak extends RPCRequest
HMI Status Requirements:
HMILevel: FULL, Limited
AudioStreamingState: Any
SystemContext: MAIN, MENU, VR
Notes:
Parameter List
| Name | Type | Description | Reg. | Notes | Ver. Available |
|---|---|---|---|---|---|
| ttsChunks | String | An array of 1-100 TTSChunk structs which, taken together, specify the phrase to be spoken. | Y | The array must have 1-100 elements. The total length of the phrase composed from the ttsChunks provided must be less than 500 characters or the request will be rejected. Each chunk can be no more than 500 characters. |
SmartDeviceLink 1.0 |
Response
This Response notifies the application of the completion, interruption, or failure of a Speak Request.
Non-default Result Codes:
SUCCESS
INVALID_DATA
OUT_OF_MEMORY
APPLICATION_NOT_REGISTERED
TOO_MANY_PENDING_REQUESTS
GENERIC_ERROR
REJECTED
DISALLOWED
ABORTED
Additional Notes:
Alert| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_TTS_CHUNKS |
onResponseListenerfunction, KEY_CORRELATION_ID, KEY_FUNCTION_NAME, KEY_NOTIFICATION, KEY_PARAMETERS, KEY_REQUEST, KEY_RESPONSE, messageType, parametersKEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
Speak()
Constructs a new Speak object
|
Speak(Hashtable<String,Object> hash)
Constructs a new Speak object indicated by the Hashtable parameter
|
Speak(List<TTSChunk> ttsChunks)
Constructs a new Speak object
|
| Modifier and Type | Method and Description |
|---|---|
List<TTSChunk> |
getTtsChunks()
Gets a List
|
Speak |
setTtsChunks(List<TTSChunk> ttsChunks)
Sets a List
|
getCorrelationID, getOnRPCResponseListener, setCorrelationID, setOnRPCResponseListenergetBoolean, getDouble, getFloat, getFunctionID, getFunctionName, getInteger, getLong, getMessageType, getObject, getParameters, getString, setFunctionName, setParametersclone, deserializeJSON, equals, format, formatObject, getBulkData, getMessageTypeName, getStore, getStoreValue, getValue, getValueForString, hashCode, hasKey, isPayloadProtected, serializeJSON, serializeJSON, setBulkData, setPayloadProtected, setValuepublic static final String KEY_TTS_CHUNKS
public Speak()
public Speak(Hashtable<String,Object> hash)
hash - The Hashtable to usepublic List<TTSChunk> getTtsChunks()
public Speak setTtsChunks(@NonNull List<TTSChunk> ttsChunks)
ttsChunks - a List