public class PerformAudioPassThru extends RPCRequest
Function Group: AudioPassThru
HMILevel needs to be FULL, LIMITED or BACKGROUNDParameter List
| Name | Type | Description | Reg. | Notes | Version |
|---|---|---|---|---|---|
| initialPrompt | TTSChunk[] | SDL will speak this prompt before opening the audio pass thru session. | N | This is an array of text chunks of type TTSChunk. The array must have at least one item If omitted, then no initial prompt is spoken: Array Minsize: 1 Array Maxsize: 100 |
SmartDeviceLink 2.0 |
| audioPassThruDisplayText1 | String | First line of text displayed during audio capture. | N | Maxlength = 500 | SmartDeviceLink 2.0 |
| samplingRate | SamplingRate | This value shall is allowed to be 8 or 16 or 22 or 44 khz. | Y | SmartDeviceLink 2.0 | |
| maxDuration | Integer | The maximum duration of audio recording in milliseconds. | Y | Minvalue: 1; Maxvalue: 1000000 | SmartDeviceLink 2.0 |
| bitsPerSample | BitsPerSample | Specifies the quality the audio is recorded - 8 bit or 16 bit. | Y | SmartDeviceLink 2.0 | |
| audioType | AudioType | Specifies the type of audio data being requested. | Y | SmartDeviceLink 2.0 | |
| muteAudio | Boolean | N | N | SmartDeviceLink 2.0 |
EndAudioPassThru| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_AUDIO_PASS_THRU_DISPLAY_TEXT_1 |
static String |
KEY_AUDIO_PASS_THRU_DISPLAY_TEXT_2 |
static String |
KEY_AUDIO_TYPE |
static String |
KEY_BITS_PER_SAMPLE |
static String |
KEY_INITIAL_PROMPT |
static String |
KEY_MAX_DURATION |
static String |
KEY_MUTE_AUDIO |
static String |
KEY_SAMPLING_RATE |
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 |
|---|
PerformAudioPassThru()
Constructs a new PerformAudioPassThru object
|
PerformAudioPassThru(Hashtable<String,Object> hash)
Constructs a new PerformAudioPassThru object indicated by the Hashtable
parameter
|
PerformAudioPassThru(SamplingRate samplingRate,
Integer maxDuration,
BitsPerSample bitsPerSample,
AudioType audioType)
Constructs a new PerformAudioPassThru object
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAudioPassThruDisplayText1()
Gets a first line of text displayed during audio capture
|
String |
getAudioPassThruDisplayText2()
Gets a second line of text displayed during audio capture
|
AudioType |
getAudioType()
Gets a type of audio data
|
BitsPerSample |
getBitsPerSample()
Gets a BitsPerSample value, 8 bit or 16 bit
|
List<TTSChunk> |
getInitialPrompt()
Gets a List value representing an initial prompt which will be spoken
before opening the audio pass thru session by SDL
|
Integer |
getMaxDuration()
Gets a max duration of audio recording in milliseconds
|
Boolean |
getMuteAudio()
Gets a Boolean value representing if the current audio source should be
muted during the APT session
|
SamplingRate |
getSamplingRate()
Gets a samplingRate
|
PerformAudioPassThru |
setAudioPassThruDisplayText1(String audioPassThruDisplayText1)
Sets a line of text displayed during audio capture
|
PerformAudioPassThru |
setAudioPassThruDisplayText2(String audioPassThruDisplayText2)
Sets a line of text displayed during audio capture
|
PerformAudioPassThru |
setAudioType(AudioType audioType)
Sets an audioType
|
PerformAudioPassThru |
setBitsPerSample(BitsPerSample audioQuality)
Sets the quality the audio is recorded - 8 bit or 16 bit
|
PerformAudioPassThru |
setInitialPrompt(List<TTSChunk> initialPrompt)
Sets initial prompt which will be spoken before opening the audio pass
thru session by SDL
|
PerformAudioPassThru |
setMaxDuration(Integer maxDuration)
Sets the maximum duration of audio recording in milliseconds
|
PerformAudioPassThru |
setMuteAudio(Boolean muteAudio)
Sets a muteAudio value representing if the current audio source should be
muted during the APT session
If not, the audio source will play without interruption.
|
PerformAudioPassThru |
setSamplingRate(SamplingRate samplingRate)
Sets a samplingRate
|
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_MAX_DURATION
public static final String KEY_AUDIO_PASS_THRU_DISPLAY_TEXT_1
public static final String KEY_AUDIO_PASS_THRU_DISPLAY_TEXT_2
public static final String KEY_MUTE_AUDIO
public static final String KEY_SAMPLING_RATE
public static final String KEY_AUDIO_TYPE
public static final String KEY_INITIAL_PROMPT
public static final String KEY_BITS_PER_SAMPLE
public PerformAudioPassThru()
public PerformAudioPassThru(Hashtable<String,Object> hash)
Constructs a new PerformAudioPassThru object indicated by the Hashtable parameter
hash - The Hashtable to usepublic PerformAudioPassThru(@NonNull
SamplingRate samplingRate,
@NonNull
Integer maxDuration,
@NonNull
BitsPerSample bitsPerSample,
@NonNull
AudioType audioType)
samplingRate - a SamplingRate value representing a 8 or 16 or 22 or 24 khzmaxDuration - an Integer value representing the maximum duration of audio recording in millisecond Notes: Minvalue:1; Maxvalue:1000000bitsPerSample - a BitsPerSample value representing 8 bit or 16 bitaudioType - an audioTypepublic PerformAudioPassThru setInitialPrompt(List<TTSChunk> initialPrompt)
initialPrompt - a Listpublic List<TTSChunk> getInitialPrompt()
public PerformAudioPassThru setAudioPassThruDisplayText1(String audioPassThruDisplayText1)
audioPassThruDisplayText1 - a String value representing the line of text displayed during audio capture
Notes: Maxlength=500public String getAudioPassThruDisplayText1()
public PerformAudioPassThru setAudioPassThruDisplayText2(String audioPassThruDisplayText2)
audioPassThruDisplayText2 - a String value representing the line of text displayed during audio capture
Notes: Maxlength=500public String getAudioPassThruDisplayText2()
public PerformAudioPassThru setSamplingRate(@NonNull SamplingRate samplingRate)
samplingRate - a SamplingRate value representing a 8 or 16 or 22 or 24 khzpublic SamplingRate getSamplingRate()
public PerformAudioPassThru setMaxDuration(@NonNull Integer maxDuration)
maxDuration - an Integer value representing the maximum duration of audio
recording in millisecond
Notes: Minvalue:1; Maxvalue:1000000public Integer getMaxDuration()
public PerformAudioPassThru setBitsPerSample(@NonNull BitsPerSample audioQuality)
audioQuality - a BitsPerSample value representing 8 bit or 16 bitpublic BitsPerSample getBitsPerSample()
public PerformAudioPassThru setAudioType(@NonNull AudioType audioType)
audioType - an audioTypepublic AudioType getAudioType()
public Boolean getMuteAudio()
Gets a Boolean value representing if the current audio source should be muted during the APT session
public PerformAudioPassThru setMuteAudio(Boolean muteAudio)
Sets a muteAudio value representing if the current audio source should be muted during the APT session If not, the audio source will play without interruption. If omitted, the value is set to true
muteAudio - a Boolean value representing if the current audio source
should be muted during the APT session