AWS Transcription and Content Redaction

Viewed 140

wondered if someone could help.

I am using the PHP AWS SDK, v3 (just updated to latest), it's working as it should, can send MP3, returns a json file with transcription.

However, I want to use Content Redaction, but no matter what I try I can't see to get it to work, I don't get any errors, my code looks like this:

$transcribe->startTranscriptionJob([
    'ContentRedaction' => [
        'RedactionType' => 'PII',
        'RedactionOutput' => 'redacted'
    ],
    'LanguageCode' => 'lang',
    'Media' => [
        'MediaFileUri' => 'someurl',
    ],
    'MediaFormat' => 'file',
    'OutputBucketName' => 'bucket_name',
    'Settings' => [
        'ChannelIdentification' => true,
        'SplitChannelTranscription' => true,
    ],
    'TranscriptionJobName' => 'output_filename' 
]);

I don't get any errors, it just transcribes it without the Content Redaction.

From their docs:

"To enable content redaction using the API, complete the request parameters of the ContentRedaction object in the StartTranscriptionJob operation. See the request syntax for the StartTranscriptionJob action for more information. To see if content redaction has been enabled for a particular transcription job, use GetTranscriptionJob. To see which jobs have content redaction enabled, use ListTranscriptionJobs."

0 Answers
Related