AWSTranscribeSentimentFilter

Objective-C

@interface AWSTranscribeSentimentFilter

Swift

class AWSTranscribeSentimentFilter

Flag the presence or absence of specific sentiments detected in your Call Analytics transcription output.

Rules using SentimentFilter are designed to match:

  • The presence or absence of a positive sentiment felt by the customer, agent, or both at specified points in the call

  • The presence or absence of a negative sentiment felt by the customer, agent, or both at specified points in the call

  • The presence or absence of a neutral sentiment felt by the customer, agent, or both at specified points in the call

  • The presence or absence of a mixed sentiment felt by the customer, the agent, or both at specified points in the call

See Rule criteria for examples.

Required parameters: [Sentiments]

  • Allows you to specify a time range (in milliseconds) in your audio, during which you want to search for the specified sentiments. See for more detail.

    Declaration

    Objective-C

    @property (nonatomic, strong) AWSTranscribeAbsoluteTimeRange *_Nullable absoluteTimeRange;

    Swift

    var absoluteTimeRange: AWSTranscribeAbsoluteTimeRange? { get set }
  • Set to TRUE to flag the sentiments you didn’t include in your request. Set to FALSE to flag the sentiments you specified in your request.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable negate;

    Swift

    var negate: NSNumber? { get set }
  • Specify the participant you want to flag. Omitting this parameter is equivalent to specifying both participants.

    Declaration

    Objective-C

    @property (nonatomic) AWSTranscribeParticipantRole participantRole;

    Swift

    var participantRole: AWSTranscribeParticipantRole { get set }
  • Allows you to specify a time range (in percentage) in your media file, during which you want to search for the specified sentiments. See for more detail.

    Declaration

    Objective-C

    @property (nonatomic, strong) AWSTranscribeRelativeTimeRange *_Nullable relativeTimeRange;

    Swift

    var relativeTimeRange: AWSTranscribeRelativeTimeRange? { get set }
  • Specify the sentiments you want to flag.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<NSString *> *_Nullable sentiments;

    Swift

    var sentiments: [String]? { get set }