ProfanityTranscriptionFilter

class oci.ai_speech.models.ProfanityTranscriptionFilter(**kwargs)

Bases: oci.ai_speech.models.transcription_filter.TranscriptionFilter

Profanity transcription filter to recognize profane words.

Attributes

MODE_MASK A constant which can be used with the mode property of a ProfanityTranscriptionFilter.
MODE_REMOVE A constant which can be used with the mode property of a ProfanityTranscriptionFilter.
MODE_TAG A constant which can be used with the mode property of a ProfanityTranscriptionFilter.
TYPE_PROFANITY str(object=’’) -> str
mode [Required] Gets the mode of this ProfanityTranscriptionFilter.
type [Required] Gets the type of this TranscriptionFilter.

Methods

__init__(**kwargs) Initializes a new ProfanityTranscriptionFilter object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
MODE_MASK = 'MASK'

A constant which can be used with the mode property of a ProfanityTranscriptionFilter. This constant has a value of “MASK”

MODE_REMOVE = 'REMOVE'

A constant which can be used with the mode property of a ProfanityTranscriptionFilter. This constant has a value of “REMOVE”

MODE_TAG = 'TAG'

A constant which can be used with the mode property of a ProfanityTranscriptionFilter. This constant has a value of “TAG”

TYPE_PROFANITY = 'PROFANITY'
__init__(**kwargs)

Initializes a new ProfanityTranscriptionFilter object with values from keyword arguments. The default value of the type attribute of this class is PROFANITY and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • type (str) – The value to assign to the type property of this ProfanityTranscriptionFilter. Allowed values for this property are: “PROFANITY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • mode (str) – The value to assign to the mode property of this ProfanityTranscriptionFilter. Allowed values for this property are: “MASK”, “REMOVE”, “TAG”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

mode

[Required] Gets the mode of this ProfanityTranscriptionFilter. - MASK: Will mask detected profanity in transcription. - REMOVE: Will replace profane word with * in transcription. - TAG: Will tag profane word as profanity but will show actual word.

Allowed values for this property are: “MASK”, “REMOVE”, “TAG”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The mode of this ProfanityTranscriptionFilter.
Return type:str
type

[Required] Gets the type of this TranscriptionFilter. The type of filters.

Allowed values for this property are: “PROFANITY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The type of this TranscriptionFilter.
Return type:str