Class: Aws::TranscribeService::Types::TranscribeAudioRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::TranscribeService::Types::TranscribeAudioRequest
- Defined in:
- gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/types.rb
Overview
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#channel_identification ⇒ Boolean
Enables channel identification in multi-channel audio.
-
#content_redaction ⇒ Types::ContentRedaction
Redacts personally identifiable information (PII) from your transcript.
-
#language ⇒ String
The language spoken in your audio, as a base language code (for example,
enores). -
#language_detection_mode ⇒ String
Enables automatic language identification.
-
#language_options ⇒ Array<String>
A list of two or more languages that you think may be present in your audio, as base language codes (for example,
enandes). -
#max_speaker_labels ⇒ Integer
Specify the maximum number of speakers you want to partition in your media.
-
#media ⇒ Types::SyncMedia
The audio to transcribe.
-
#output_configuration ⇒ Types::SyncOutputConfiguration
Writes the transcript to an Amazon S3 location instead of returning it in the response.
-
#show_speaker_labels ⇒ Boolean
Enables speaker partitioning (diarization) in your transcript.
-
#vocabulary_filter_settings ⇒ Types::VocabularyFilterSettings
Custom vocabulary filters to apply to your transcript, and how to apply them.
-
#vocabulary_settings ⇒ Array<Types::VocabularySettingsEntry>
Custom vocabularies to apply to your transcript, with one entry per language.
Instance Attribute Details
#channel_identification ⇒ Boolean
Enables channel identification in multi-channel audio. Each channel is transcribed independently, and each item in the transcript is labeled with its channel.
Channel identification supports up to two channels.
5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 |
# File 'gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/types.rb', line 5614 class TranscribeAudioRequest < Struct.new( :media, :language, :language_detection_mode, :language_options, :channel_identification, :show_speaker_labels, :max_speaker_labels, :vocabulary_settings, :vocabulary_filter_settings, :content_redaction, :output_configuration) SENSITIVE = [] include Aws::Structure end |
#content_redaction ⇒ Types::ContentRedaction
Redacts personally identifiable information (PII) from your
transcript. Amazon Transcribe returns the redacted transcript in
RedactedResults.
If you set RedactionOutput to redacted_and_unredacted, Amazon
Transcribe also returns the unredacted transcript in Results.
In Sync, content redaction has these limits:
Languages: English (
en), Spanish (es), French (fr), Italian (it), German (de), and Portuguese (pt).Language identification: If you use
LanguageDetectionMode, you must also includeLanguageOptions, and every language in it must be one of the languages above. A request that has noLanguageOptions, or that lists a language that isn't supported, returns aBadRequestException.Regions: Content redaction isn't available in the South America (São Paulo) Region (
sa-east-1). It's available in the other Amazon Web Services Regions where Sync is available.
5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 |
# File 'gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/types.rb', line 5614 class TranscribeAudioRequest < Struct.new( :media, :language, :language_detection_mode, :language_options, :channel_identification, :show_speaker_labels, :max_speaker_labels, :vocabulary_settings, :vocabulary_filter_settings, :content_redaction, :output_configuration) SENSITIVE = [] include Aws::Structure end |
#language ⇒ String
The language spoken in your audio, as a base language code (for
example, en or es).
Include either Language or LanguageDetectionMode in your
request, but not both.
5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 |
# File 'gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/types.rb', line 5614 class TranscribeAudioRequest < Struct.new( :media, :language, :language_detection_mode, :language_options, :channel_identification, :show_speaker_labels, :max_speaker_labels, :vocabulary_settings, :vocabulary_filter_settings, :content_redaction, :output_configuration) SENSITIVE = [] include Aws::Structure end |
#language_detection_mode ⇒ String
Enables automatic language identification. Use IDENTIFY_LANGUAGE
if your audio contains a single language that you don't know in
advance.
You can optionally include LanguageOptions to limit identification
to languages you think may be present, which can improve accuracy.
Amazon Transcribe returns the identified language, as a locale (for
example, en-US), in the response metadata.
Include either Language or LanguageDetectionMode in your
request, but not both.
5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 |
# File 'gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/types.rb', line 5614 class TranscribeAudioRequest < Struct.new( :media, :language, :language_detection_mode, :language_options, :channel_identification, :show_speaker_labels, :max_speaker_labels, :vocabulary_settings, :vocabulary_filter_settings, :content_redaction, :output_configuration) SENSITIVE = [] include Aws::Structure end |
#language_options ⇒ Array<String>
A list of two or more languages that you think may be present in
your audio, as base language codes (for example, en and es).
Each language can appear only once. A list with only one language
returns a BadRequestException.
You can use LanguageOptions only with LanguageDetectionMode.
5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 |
# File 'gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/types.rb', line 5614 class TranscribeAudioRequest < Struct.new( :media, :language, :language_detection_mode, :language_options, :channel_identification, :show_speaker_labels, :max_speaker_labels, :vocabulary_settings, :vocabulary_filter_settings, :content_redaction, :output_configuration) SENSITIVE = [] include Aws::Structure end |
#max_speaker_labels ⇒ Integer
Specify the maximum number of speakers you want to partition in your media.
Note that if your media contains more speakers than the specified number, Amazon Transcribe treats multiple speakers as a single speaker.
You can set MaxSpeakerLabels only if ShowSpeakerLabels is
true.
5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 |
# File 'gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/types.rb', line 5614 class TranscribeAudioRequest < Struct.new( :media, :language, :language_detection_mode, :language_options, :channel_identification, :show_speaker_labels, :max_speaker_labels, :vocabulary_settings, :vocabulary_filter_settings, :content_redaction, :output_configuration) SENSITIVE = [] include Aws::Structure end |
#media ⇒ Types::SyncMedia
The audio to transcribe. Specify exactly one of MediaBytes or
MediaFileUri.
Audio sent in the request (MediaBytes) can be up to 25 MB. Audio
in Amazon S3 (MediaFileUri) can be up to 500 MB.
5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 |
# File 'gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/types.rb', line 5614 class TranscribeAudioRequest < Struct.new( :media, :language, :language_detection_mode, :language_options, :channel_identification, :show_speaker_labels, :max_speaker_labels, :vocabulary_settings, :vocabulary_filter_settings, :content_redaction, :output_configuration) SENSITIVE = [] include Aws::Structure end |
#output_configuration ⇒ Types::SyncOutputConfiguration
Writes the transcript to an Amazon S3 location instead of returning
it in the response. If you include OutputConfiguration, the
response contains only the output location.
You must have write permission for the location you specify.
5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 |
# File 'gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/types.rb', line 5614 class TranscribeAudioRequest < Struct.new( :media, :language, :language_detection_mode, :language_options, :channel_identification, :show_speaker_labels, :max_speaker_labels, :vocabulary_settings, :vocabulary_filter_settings, :content_redaction, :output_configuration) SENSITIVE = [] include Aws::Structure end |
#show_speaker_labels ⇒ Boolean
Enables speaker partitioning (diarization) in your transcript. Speaker partitioning labels the speech from individual speakers in your media file.
If you set ShowSpeakerLabels to true, you must also include
MaxSpeakerLabels.
For more information, see Partitioning speakers (diarization).
5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 |
# File 'gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/types.rb', line 5614 class TranscribeAudioRequest < Struct.new( :media, :language, :language_detection_mode, :language_options, :channel_identification, :show_speaker_labels, :max_speaker_labels, :vocabulary_settings, :vocabulary_filter_settings, :content_redaction, :output_configuration) SENSITIVE = [] include Aws::Structure end |
#vocabulary_filter_settings ⇒ Types::VocabularyFilterSettings
Custom vocabulary filters to apply to your transcript, and how to apply them.
5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 |
# File 'gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/types.rb', line 5614 class TranscribeAudioRequest < Struct.new( :media, :language, :language_detection_mode, :language_options, :channel_identification, :show_speaker_labels, :max_speaker_labels, :vocabulary_settings, :vocabulary_filter_settings, :content_redaction, :output_configuration) SENSITIVE = [] include Aws::Structure end |
#vocabulary_settings ⇒ Array<Types::VocabularySettingsEntry>
Custom vocabularies to apply to your transcript, with one entry per language. In each entry, you can reference a custom vocabulary you created or provide phrases inline. All entries must use the same type, either all by name or all inline.
If you specify Language, include exactly one entry, and its
Language must match. If you use LanguageDetectionMode, you can
include one entry for each language in LanguageOptions.
5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 |
# File 'gems/aws-sdk-transcribeservice/lib/aws-sdk-transcribeservice/types.rb', line 5614 class TranscribeAudioRequest < Struct.new( :media, :language, :language_detection_mode, :language_options, :channel_identification, :show_speaker_labels, :max_speaker_labels, :vocabulary_settings, :vocabulary_filter_settings, :content_redaction, :output_configuration) SENSITIVE = [] include Aws::Structure end |