Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

TranscriptFilter

import type { TranscriptFilter } from "https://aws-api.deno.dev/v0.4/services/transcribeservice.ts?docs=full";

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

Rules using TranscriptFilter are designed to match:

  • Custom words or phrases spoken by the agent, the customer, or both
  • Custom words or phrases not spoken by the agent, the customer, or either
  • Custom words or phrases that occur at a specific time frame

See Rule criteria for batch categories and Rule criteria for streaming categories for usage examples.

interface TranscriptFilter {
AbsoluteTimeRange?: AbsoluteTimeRange | null;
Negate?: boolean | null;
ParticipantRole?: ParticipantRole | null;
RelativeTimeRange?: RelativeTimeRange | null;
Targets: string[];
TranscriptFilterType: TranscriptFilterType;
}

§Properties

§
AbsoluteTimeRange?: AbsoluteTimeRange | null
[src]

Makes it possible to specify a time range (in milliseconds) in your audio, during which you want to search for the specified key words or phrases. See for more detail.

§
Negate?: boolean | null
[src]

Set to TRUE to flag the absence of the phrase that you specified in your request. Set to FALSE to flag the presence of the phrase that you specified in your request.

§
ParticipantRole?: ParticipantRole | null
[src]

Specify the participant that you want to flag. Omitting this parameter is equivalent to specifying both participants.

§
RelativeTimeRange?: RelativeTimeRange | null
[src]

Makes it possible to specify a time range (in percentage) in your media file, during which you want to search for the specified key words or phrases. See for more detail.

§
Targets: string[]
[src]

Specify the phrases that you want to flag.

§
TranscriptFilterType: TranscriptFilterType
[src]

Flag the presence or absence of an exact match to the phrases that you specify. For example, if you specify the phrase "speak to a manager" as your Targets value, only that exact phrase is flagged.

Note that semantic matching is not supported. For example, if your customer says "speak to the manager", instead of "speak to a manager", your content is not flagged.