// SDLPerformAudioPassThru.h // #import "SDLRPCRequest.h" #import "SDLAudioType.h" #import "SDLBitsPerSample.h" #import "SDLSamplingRate.h" /** * This will open an audio pass thru session. By doing so the app can receive * audio data through the vehicle microphone *
* Function Group: AudioPassThru *
* HMILevel needs to be FULL, LIMITED or BACKGROUND *
* *Since SmartDeviceLink 2.0
*See SDLEndAudioPassThru
*/ @interface SDLPerformAudioPassThru : SDLRPCRequest { } /** * @abstract Constructs a new SDLPerformAudioPassThru object */ - (instancetype)init; /** * @abstract Constructs a new SDLPerformAudioPassThru object indicated by the NSMutableDictionary * @param dict The dictionary to use */ - (instancetype)initWithDictionary:(NSMutableDictionary *)dict; /** * @abstract initial prompt which will be spoken before opening the audio pass * thru session by SDL * @discussion initialPrompt * a Vector* Notes: *
* Notes: Maxlength=500 */ @property (strong) NSString *audioPassThruDisplayText1; /** * @abstract A line of text displayed during audio capture * @discussion audioPassThruDisplayText2 * a String value representing the line of text displayed during * audio capture *
* Notes: Maxlength=500 */ @property (strong) NSString *audioPassThruDisplayText2; /** * @abstract A samplingRate * * @discussion a SamplingRate value representing a 8 or 16 or 22 or 24 khz */ @property (strong) SDLSamplingRate samplingRate; /** * @abstract the maximum duration of audio recording in milliseconds * * @discussion maxDuration * an Integer value representing the maximum duration of audio * recording in millisecond *
* Notes: Minvalue:1; Maxvalue:1000000
*/
@property (strong) NSNumber *maxDuration;
/**
* @abstract the quality the audio is recorded - 8 bit or 16 bit
*
* @discussion a BitsPerSample value representing 8 bit or 16 bit
*/
@property (strong) SDLBitsPerSample bitsPerSample;
/**
* @abstract an audioType
*/
@property (strong) SDLAudioType audioType;
/**
* @abstract a Boolean value representing if the current audio source should be
* muted during the APT session
*/
@property (strong) NSNumber *muteAudio;
@end