@Generated(value="software.amazon.awssdk:codegen") public final class StartStreamTranscriptionRequest extends TranscribeStreamingRequest implements ToCopyableBuilder<StartStreamTranscriptionRequest.Builder,StartStreamTranscriptionRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
StartStreamTranscriptionRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static StartStreamTranscriptionRequest.Builder |
builder() |
ContentIdentificationType |
contentIdentificationType()
Set this field to PII to identify personally identifiable information (PII) in the transcription output.
|
String |
contentIdentificationTypeAsString()
Set this field to PII to identify personally identifiable information (PII) in the transcription output.
|
ContentRedactionType |
contentRedactionType()
Set this field to PII to redact personally identifiable information (PII) in the transcription output.
|
String |
contentRedactionTypeAsString()
Set this field to PII to redact personally identifiable information (PII) in the transcription output.
|
Boolean |
enableChannelIdentification()
When
true, instructs Amazon Transcribe to process each audio channel separately, then merges the
transcription output of each channel into a single transcription. |
Boolean |
enablePartialResultsStabilization()
When
true, instructs Amazon Transcribe to present transcription results that have the partial
results stabilized. |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Boolean |
identifyLanguage()
Optional.
|
LanguageCode |
languageCode()
The language code of the input audio stream.
|
String |
languageCodeAsString()
The language code of the input audio stream.
|
String |
languageModelName()
The name of the language model you want to use.
|
String |
languageOptions()
An object containing a list of languages that might be present in your audio.
|
MediaEncoding |
mediaEncoding()
The encoding used for the input audio.
|
String |
mediaEncodingAsString()
The encoding used for the input audio.
|
Integer |
mediaSampleRateHertz()
The sample rate of the input audio (in Hertz).
|
Integer |
numberOfChannels()
The number of channels that are in your audio stream.
|
PartialResultsStability |
partialResultsStability()
You can use this field to set the stability level of the transcription results.
|
String |
partialResultsStabilityAsString()
You can use this field to set the stability level of the transcription results.
|
String |
piiEntityTypes()
List the PII entity types you want to identify or redact.
|
LanguageCode |
preferredLanguage()
Optional.
|
String |
preferredLanguageAsString()
Optional.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends StartStreamTranscriptionRequest.Builder> |
serializableBuilderClass() |
String |
sessionId()
A identifier for the transcription session.
|
Boolean |
showSpeakerLabel()
When
true, enables speaker identification in your media stream. |
StartStreamTranscriptionRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
VocabularyFilterMethod |
vocabularyFilterMethod()
The manner in which you use your vocabulary filter to filter words in your transcript.
|
String |
vocabularyFilterMethodAsString()
The manner in which you use your vocabulary filter to filter words in your transcript.
|
String |
vocabularyFilterName()
The name of the vocabulary filter you want to use with your transcription.
|
String |
vocabularyFilterNames()
The names of the vocabulary filters you want to use with your transcription.
|
String |
vocabularyName()
The name of the custom vocabulary you want to use with your transcription.
|
String |
vocabularyNames()
The names of the custom vocabularies you want to use with your transcription.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final LanguageCode languageCode()
The language code of the input audio stream.
If the service returns an enum value that is not available in the current SDK version, languageCode will
return LanguageCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
languageCodeAsString().
LanguageCodepublic final String languageCodeAsString()
The language code of the input audio stream.
If the service returns an enum value that is not available in the current SDK version, languageCode will
return LanguageCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
languageCodeAsString().
LanguageCodepublic final Integer mediaSampleRateHertz()
The sample rate of the input audio (in Hertz). Low-quality audio, such as telephone audio, is typically around 8,000 Hz. High-quality audio typically ranges from 16,000 Hz to 48,000 Hz. Note that the sample rate you specify must match that of your audio.
public final MediaEncoding mediaEncoding()
The encoding used for the input audio.
If the service returns an enum value that is not available in the current SDK version, mediaEncoding
will return MediaEncoding.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
mediaEncodingAsString().
MediaEncodingpublic final String mediaEncodingAsString()
The encoding used for the input audio.
If the service returns an enum value that is not available in the current SDK version, mediaEncoding
will return MediaEncoding.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
mediaEncodingAsString().
MediaEncodingpublic final String vocabularyName()
The name of the custom vocabulary you want to use with your transcription.
This operation is not intended for use in conjunction with the IdentifyLanguage operation. If you're
using IdentifyLanguage in your request and want to use one or more custom vocabularies with your
transcription, use the VocabularyNames operation instead.
This operation is not intended for use in conjunction with the IdentifyLanguage operation.
If you're using IdentifyLanguage in your request and want to use one or more custom
vocabularies with your transcription, use the VocabularyNames operation instead.
public final String sessionId()
A identifier for the transcription session. Use this parameter when you want to retry a session. If you don't provide a session ID, Amazon Transcribe will generate one for you and return it in the response.
public final String vocabularyFilterName()
The name of the vocabulary filter you want to use with your transcription.
This operation is not intended for use in conjunction with the IdentifyLanguage operation. If you're
using IdentifyLanguage in your request and want to use one or more vocabulary filters with your
transcription, use the VocabularyFilterNames operation instead.
This operation is not intended for use in conjunction with the IdentifyLanguage operation.
If you're using IdentifyLanguage in your request and want to use one or more vocabulary
filters with your transcription, use the VocabularyFilterNames operation instead.
public final VocabularyFilterMethod vocabularyFilterMethod()
The manner in which you use your vocabulary filter to filter words in your transcript. Remove
removes filtered words from your transcription results. Mask masks filtered words with a
*** in your transcription results. Tag keeps the filtered words in your transcription
results and tags them. The tag appears as VocabularyFilterMatch equal to True.
If the service returns an enum value that is not available in the current SDK version,
vocabularyFilterMethod will return VocabularyFilterMethod.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from vocabularyFilterMethodAsString().
Remove removes filtered words from your transcription results. Mask masks
filtered words with a *** in your transcription results. Tag keeps the filtered
words in your transcription results and tags them. The tag appears as VocabularyFilterMatch
equal to True.VocabularyFilterMethodpublic final String vocabularyFilterMethodAsString()
The manner in which you use your vocabulary filter to filter words in your transcript. Remove
removes filtered words from your transcription results. Mask masks filtered words with a
*** in your transcription results. Tag keeps the filtered words in your transcription
results and tags them. The tag appears as VocabularyFilterMatch equal to True.
If the service returns an enum value that is not available in the current SDK version,
vocabularyFilterMethod will return VocabularyFilterMethod.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from vocabularyFilterMethodAsString().
Remove removes filtered words from your transcription results. Mask masks
filtered words with a *** in your transcription results. Tag keeps the filtered
words in your transcription results and tags them. The tag appears as VocabularyFilterMatch
equal to True.VocabularyFilterMethodpublic final Boolean showSpeakerLabel()
When true, enables speaker identification in your media stream.
true, enables speaker identification in your media stream.public final Boolean enableChannelIdentification()
When true, instructs Amazon Transcribe to process each audio channel separately, then merges the
transcription output of each channel into a single transcription.
Amazon Transcribe also produces a transcription of each item. An item includes the start time, end time, and any alternative transcriptions.
true, instructs Amazon Transcribe to process each audio channel separately, then merges
the transcription output of each channel into a single transcription.
Amazon Transcribe also produces a transcription of each item. An item includes the start time, end time, and any alternative transcriptions.
public final Integer numberOfChannels()
The number of channels that are in your audio stream.
public final Boolean enablePartialResultsStabilization()
When true, instructs Amazon Transcribe to present transcription results that have the partial
results stabilized. Normally, any word or phrase from one partial result can change in a subsequent partial
result. With partial results stabilization enabled, only the last few words of one partial result can change in
another partial result.
true, instructs Amazon Transcribe to present transcription results that have the
partial results stabilized. Normally, any word or phrase from one partial result can change in a
subsequent partial result. With partial results stabilization enabled, only the last few words of one
partial result can change in another partial result.public final PartialResultsStability partialResultsStability()
You can use this field to set the stability level of the transcription results. A higher stability level means that the transcription results are less likely to change. Higher stability levels can come with lower overall transcription accuracy.
If the service returns an enum value that is not available in the current SDK version,
partialResultsStability will return PartialResultsStability.UNKNOWN_TO_SDK_VERSION. The raw
value returned by the service is available from partialResultsStabilityAsString().
PartialResultsStabilitypublic final String partialResultsStabilityAsString()
You can use this field to set the stability level of the transcription results. A higher stability level means that the transcription results are less likely to change. Higher stability levels can come with lower overall transcription accuracy.
If the service returns an enum value that is not available in the current SDK version,
partialResultsStability will return PartialResultsStability.UNKNOWN_TO_SDK_VERSION. The raw
value returned by the service is available from partialResultsStabilityAsString().
PartialResultsStabilitypublic final ContentIdentificationType contentIdentificationType()
Set this field to PII to identify personally identifiable information (PII) in the transcription output. Content identification is performed only upon complete transcription of the audio segments.
You can’t set both ContentIdentificationType and ContentRedactionType in the same
request. If you set both, your request returns a BadRequestException.
If the service returns an enum value that is not available in the current SDK version,
contentIdentificationType will return ContentIdentificationType.UNKNOWN_TO_SDK_VERSION. The raw
value returned by the service is available from contentIdentificationTypeAsString().
You can’t set both ContentIdentificationType and ContentRedactionType in the
same request. If you set both, your request returns a BadRequestException.
ContentIdentificationTypepublic final String contentIdentificationTypeAsString()
Set this field to PII to identify personally identifiable information (PII) in the transcription output. Content identification is performed only upon complete transcription of the audio segments.
You can’t set both ContentIdentificationType and ContentRedactionType in the same
request. If you set both, your request returns a BadRequestException.
If the service returns an enum value that is not available in the current SDK version,
contentIdentificationType will return ContentIdentificationType.UNKNOWN_TO_SDK_VERSION. The raw
value returned by the service is available from contentIdentificationTypeAsString().
You can’t set both ContentIdentificationType and ContentRedactionType in the
same request. If you set both, your request returns a BadRequestException.
ContentIdentificationTypepublic final ContentRedactionType contentRedactionType()
Set this field to PII to redact personally identifiable information (PII) in the transcription output. Content redaction is performed only upon complete transcription of the audio segments.
You can’t set both ContentRedactionType and ContentIdentificationType in the same
request. If you set both, your request returns a BadRequestException.
If the service returns an enum value that is not available in the current SDK version,
contentRedactionType will return ContentRedactionType.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from contentRedactionTypeAsString().
You can’t set both ContentRedactionType and ContentIdentificationType in the
same request. If you set both, your request returns a BadRequestException.
ContentRedactionTypepublic final String contentRedactionTypeAsString()
Set this field to PII to redact personally identifiable information (PII) in the transcription output. Content redaction is performed only upon complete transcription of the audio segments.
You can’t set both ContentRedactionType and ContentIdentificationType in the same
request. If you set both, your request returns a BadRequestException.
If the service returns an enum value that is not available in the current SDK version,
contentRedactionType will return ContentRedactionType.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from contentRedactionTypeAsString().
You can’t set both ContentRedactionType and ContentIdentificationType in the
same request. If you set both, your request returns a BadRequestException.
ContentRedactionTypepublic final String piiEntityTypes()
List the PII entity types you want to identify or redact. In order to specify entity types, you must have either
ContentIdentificationType or ContentRedactionType enabled.
PIIEntityTypes must be comma-separated; the available values are: BANK_ACCOUNT_NUMBER,
BANK_ROUTING, CREDIT_DEBIT_NUMBER, CREDIT_DEBIT_CVV,
CREDIT_DEBIT_EXPIRY, PIN, EMAIL, ADDRESS, NAME,
PHONE, SSN, and ALL.
PiiEntityTypes is an optional parameter with a default value of ALL.
ContentIdentificationType or ContentRedactionType enabled.
PIIEntityTypes must be comma-separated; the available values are:
BANK_ACCOUNT_NUMBER, BANK_ROUTING, CREDIT_DEBIT_NUMBER,
CREDIT_DEBIT_CVV, CREDIT_DEBIT_EXPIRY, PIN, EMAIL,
ADDRESS, NAME, PHONE, SSN, and ALL.
PiiEntityTypes is an optional parameter with a default value of ALL.
public final String languageModelName()
The name of the language model you want to use.
public final Boolean identifyLanguage()
Optional. Set this value to true to enable language identification for your media stream.
true to enable language identification for your media stream.public final String languageOptions()
An object containing a list of languages that might be present in your audio.
You must provide two or more language codes to help Amazon Transcribe identify the correct language of your media
stream with the highest possible accuracy. You can only select one variant per language; for example, you can't
include both en-US and en-UK in the same request.
You can only use this parameter if you've set IdentifyLanguage to truein your request.
You must provide two or more language codes to help Amazon Transcribe identify the correct language of
your media stream with the highest possible accuracy. You can only select one variant per language; for
example, you can't include both en-US and en-UK in the same request.
You can only use this parameter if you've set IdentifyLanguage to truein your
request.
public final LanguageCode preferredLanguage()
Optional. From the subset of languages codes you provided for LanguageOptions, you can select one
preferred language for your transcription.
You can only use this parameter if you've set IdentifyLanguage to truein your request.
If the service returns an enum value that is not available in the current SDK version, preferredLanguage
will return LanguageCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
preferredLanguageAsString().
LanguageOptions, you can
select one preferred language for your transcription.
You can only use this parameter if you've set IdentifyLanguage to truein your
request.
LanguageCodepublic final String preferredLanguageAsString()
Optional. From the subset of languages codes you provided for LanguageOptions, you can select one
preferred language for your transcription.
You can only use this parameter if you've set IdentifyLanguage to truein your request.
If the service returns an enum value that is not available in the current SDK version, preferredLanguage
will return LanguageCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
preferredLanguageAsString().
LanguageOptions, you can
select one preferred language for your transcription.
You can only use this parameter if you've set IdentifyLanguage to truein your
request.
LanguageCodepublic final String vocabularyNames()
The names of the custom vocabularies you want to use with your transcription.
Note that if the custom vocabularies you specify are in languages that don't match the language identified in your media, your job fails.
This operation is only intended for use in conjunction with the IdentifyLanguage operation. If
you're not using IdentifyLanguage in your request and want to use a custom vocabulary with your
transcription, use the VocabularyName operation instead.
Note that if the custom vocabularies you specify are in languages that don't match the language identified in your media, your job fails.
This operation is only intended for use in conjunction with the IdentifyLanguage operation.
If you're not using IdentifyLanguage in your request and want to use a custom vocabulary
with your transcription, use the VocabularyName operation instead.
public final String vocabularyFilterNames()
The names of the vocabulary filters you want to use with your transcription.
Note that if the vocabulary filters you specify are in languages that don't match the language identified in your media, your job fails.
This operation is only intended for use in conjunction with the IdentifyLanguage operation. If
you're not using IdentifyLanguage in your request and want to use a vocabulary filter with your
transcription, use the VocabularyFilterName operation instead.
Note that if the vocabulary filters you specify are in languages that don't match the language identified in your media, your job fails.
This operation is only intended for use in conjunction with the IdentifyLanguage operation.
If you're not using IdentifyLanguage in your request and want to use a vocabulary filter
with your transcription, use the VocabularyFilterName operation instead.
public StartStreamTranscriptionRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<StartStreamTranscriptionRequest.Builder,StartStreamTranscriptionRequest>toBuilder in class TranscribeStreamingRequestpublic static StartStreamTranscriptionRequest.Builder builder()
public static Class<? extends StartStreamTranscriptionRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2022. All rights reserved.