AWSLexMicrophoneDelegate
Objective-C
@protocol AWSLexMicrophoneDelegate <NSObject>
@optional
/*
* Send to delegate when the microphone has started recording.
*/
- (void)interactionKitOnRecordingStart:(AWSLexInteractionKit *)interactionKit;
/*
* Sent to delegate when the microphone recording ends.
*/
- (void)interactionKitOnRecordingEnd:(AWSLexInteractionKit *)interactionKit audioStream:(NSData *)audioStream contentType:(NSString *)contentType;
/*
* Sent to delegate when the micorphone is ready for recording.
*/
- (void)interactionKitReadyForRecording:(AWSLexInteractionKit *)interactionKit;
/*
* Sent to delegate when the micorphone audio input sound level changes.
*/
- (void)interactionKit:(AWSLexInteractionKit *)interactionKit onSoundLevelChanged:(double )soundLevel;
@end
Swift
protocol AWSLexMicrophoneDelegate : NSObjectProtocol
Undocumented
-
Undocumented
Declaration
Objective-C
- (void)interactionKitOnRecordingStart:(AWSLexInteractionKit *)interactionKit;
Swift
optional func interactionKit(onRecordingStart interactionKit: AWSLexInteractionKit)
-
Undocumented
Declaration
Objective-C
- (void)interactionKitOnRecordingEnd:(AWSLexInteractionKit *)interactionKit audioStream:(NSData *)audioStream contentType:(NSString *)contentType;
Swift
optional func interactionKit(onRecordingEnd interactionKit: AWSLexInteractionKit, audioStream: Data, contentType: String)
-
Undocumented
Declaration
Objective-C
- (void)interactionKitReadyForRecording:(AWSLexInteractionKit *)interactionKit;
Swift
optional func interactionKitReady(forRecording interactionKit: AWSLexInteractionKit)
-
Undocumented
Declaration
Objective-C
- (void)interactionKit:(AWSLexInteractionKit *)interactionKit onSoundLevelChanged:(double )soundLevel;
Swift
optional func interactionKit(_ interactionKit: AWSLexInteractionKit, onSoundLevelChanged soundLevel: Double)