public class Settings
extends java.lang.Object
implements java.io.Serializable
Provides optional settings for the StartTranscriptionJob
operation.
Constructor and Description |
---|
Settings() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getChannelIdentification()
Instructs Amazon Transcribe to process each audio channel separately and
then merge the transcription output of each channel into a single
transcription.
|
java.lang.Integer |
getMaxAlternatives()
The number of alternative transcriptions that the service should return.
|
java.lang.Integer |
getMaxSpeakerLabels()
The maximum number of speakers to identify in the input audio.
|
java.lang.Boolean |
getShowAlternatives()
Determines whether the transcription contains alternative transcriptions.
|
java.lang.Boolean |
getShowSpeakerLabels()
Determines whether the transcription job uses speaker recognition to
identify different speakers in the input audio.
|
java.lang.String |
getVocabularyFilterMethod()
Set to
mask to remove filtered text from the transcript and
replace it with three asterisks ("***") as placeholder text. |
java.lang.String |
getVocabularyFilterName()
The name of the vocabulary filter to use when transcribing the audio.
|
java.lang.String |
getVocabularyName()
The name of a vocabulary to use when processing the transcription job.
|
int |
hashCode() |
java.lang.Boolean |
isChannelIdentification()
Instructs Amazon Transcribe to process each audio channel separately and
then merge the transcription output of each channel into a single
transcription.
|
java.lang.Boolean |
isShowAlternatives()
Determines whether the transcription contains alternative transcriptions.
|
java.lang.Boolean |
isShowSpeakerLabels()
Determines whether the transcription job uses speaker recognition to
identify different speakers in the input audio.
|
void |
setChannelIdentification(java.lang.Boolean channelIdentification)
Instructs Amazon Transcribe to process each audio channel separately and
then merge the transcription output of each channel into a single
transcription.
|
void |
setMaxAlternatives(java.lang.Integer maxAlternatives)
The number of alternative transcriptions that the service should return.
|
void |
setMaxSpeakerLabels(java.lang.Integer maxSpeakerLabels)
The maximum number of speakers to identify in the input audio.
|
void |
setShowAlternatives(java.lang.Boolean showAlternatives)
Determines whether the transcription contains alternative transcriptions.
|
void |
setShowSpeakerLabels(java.lang.Boolean showSpeakerLabels)
Determines whether the transcription job uses speaker recognition to
identify different speakers in the input audio.
|
void |
setVocabularyFilterMethod(java.lang.String vocabularyFilterMethod)
Set to
mask to remove filtered text from the transcript and
replace it with three asterisks ("***") as placeholder text. |
void |
setVocabularyFilterMethod(VocabularyFilterMethod vocabularyFilterMethod)
Set to
mask to remove filtered text from the transcript and
replace it with three asterisks ("***") as placeholder text. |
void |
setVocabularyFilterName(java.lang.String vocabularyFilterName)
The name of the vocabulary filter to use when transcribing the audio.
|
void |
setVocabularyName(java.lang.String vocabularyName)
The name of a vocabulary to use when processing the transcription job.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Settings |
withChannelIdentification(java.lang.Boolean channelIdentification)
Instructs Amazon Transcribe to process each audio channel separately and
then merge the transcription output of each channel into a single
transcription.
|
Settings |
withMaxAlternatives(java.lang.Integer maxAlternatives)
The number of alternative transcriptions that the service should return.
|
Settings |
withMaxSpeakerLabels(java.lang.Integer maxSpeakerLabels)
The maximum number of speakers to identify in the input audio.
|
Settings |
withShowAlternatives(java.lang.Boolean showAlternatives)
Determines whether the transcription contains alternative transcriptions.
|
Settings |
withShowSpeakerLabels(java.lang.Boolean showSpeakerLabels)
Determines whether the transcription job uses speaker recognition to
identify different speakers in the input audio.
|
Settings |
withVocabularyFilterMethod(java.lang.String vocabularyFilterMethod)
Set to
mask to remove filtered text from the transcript and
replace it with three asterisks ("***") as placeholder text. |
Settings |
withVocabularyFilterMethod(VocabularyFilterMethod vocabularyFilterMethod)
Set to
mask to remove filtered text from the transcript and
replace it with three asterisks ("***") as placeholder text. |
Settings |
withVocabularyFilterName(java.lang.String vocabularyFilterName)
The name of the vocabulary filter to use when transcribing the audio.
|
Settings |
withVocabularyName(java.lang.String vocabularyName)
The name of a vocabulary to use when processing the transcription job.
|
public java.lang.String getVocabularyName()
The name of a vocabulary to use when processing the transcription job.
Constraints:
Length: 1 - 200
Pattern: ^[0-9a-zA-Z._-]+
The name of a vocabulary to use when processing the transcription job.
public void setVocabularyName(java.lang.String vocabularyName)
The name of a vocabulary to use when processing the transcription job.
Constraints:
Length: 1 - 200
Pattern: ^[0-9a-zA-Z._-]+
vocabularyName
- The name of a vocabulary to use when processing the transcription job.
public Settings withVocabularyName(java.lang.String vocabularyName)
The name of a vocabulary to use when processing the transcription job.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 200
Pattern: ^[0-9a-zA-Z._-]+
vocabularyName
- The name of a vocabulary to use when processing the transcription job.
public java.lang.Boolean isShowSpeakerLabels()
Determines whether the transcription job uses speaker recognition to
identify different speakers in the input audio. Speaker recognition
labels individual speakers in the audio file. If you set the
ShowSpeakerLabels
field to true, you must also set the
maximum number of speaker labels MaxSpeakerLabels
field.
You can't set both ShowSpeakerLabels
and
ChannelIdentification
in the same request. If you set both,
your request returns a BadRequestException
.
Determines whether the transcription job uses speaker recognition
to identify different speakers in the input audio. Speaker
recognition labels individual speakers in the audio file. If you
set the ShowSpeakerLabels
field to true, you must
also set the maximum number of speaker labels
MaxSpeakerLabels
field.
You can't set both ShowSpeakerLabels
and
ChannelIdentification
in the same request. If you
set both, your request returns a BadRequestException
.
public java.lang.Boolean getShowSpeakerLabels()
Determines whether the transcription job uses speaker recognition to
identify different speakers in the input audio. Speaker recognition
labels individual speakers in the audio file. If you set the
ShowSpeakerLabels
field to true, you must also set the
maximum number of speaker labels MaxSpeakerLabels
field.
You can't set both ShowSpeakerLabels
and
ChannelIdentification
in the same request. If you set both,
your request returns a BadRequestException
.
Determines whether the transcription job uses speaker recognition
to identify different speakers in the input audio. Speaker
recognition labels individual speakers in the audio file. If you
set the ShowSpeakerLabels
field to true, you must
also set the maximum number of speaker labels
MaxSpeakerLabels
field.
You can't set both ShowSpeakerLabels
and
ChannelIdentification
in the same request. If you
set both, your request returns a BadRequestException
.
public void setShowSpeakerLabels(java.lang.Boolean showSpeakerLabels)
Determines whether the transcription job uses speaker recognition to
identify different speakers in the input audio. Speaker recognition
labels individual speakers in the audio file. If you set the
ShowSpeakerLabels
field to true, you must also set the
maximum number of speaker labels MaxSpeakerLabels
field.
You can't set both ShowSpeakerLabels
and
ChannelIdentification
in the same request. If you set both,
your request returns a BadRequestException
.
showSpeakerLabels
-
Determines whether the transcription job uses speaker
recognition to identify different speakers in the input audio.
Speaker recognition labels individual speakers in the audio
file. If you set the ShowSpeakerLabels
field to
true, you must also set the maximum number of speaker labels
MaxSpeakerLabels
field.
You can't set both ShowSpeakerLabels
and
ChannelIdentification
in the same request. If you
set both, your request returns a
BadRequestException
.
public Settings withShowSpeakerLabels(java.lang.Boolean showSpeakerLabels)
Determines whether the transcription job uses speaker recognition to
identify different speakers in the input audio. Speaker recognition
labels individual speakers in the audio file. If you set the
ShowSpeakerLabels
field to true, you must also set the
maximum number of speaker labels MaxSpeakerLabels
field.
You can't set both ShowSpeakerLabels
and
ChannelIdentification
in the same request. If you set both,
your request returns a BadRequestException
.
Returns a reference to this object so that method calls can be chained together.
showSpeakerLabels
-
Determines whether the transcription job uses speaker
recognition to identify different speakers in the input audio.
Speaker recognition labels individual speakers in the audio
file. If you set the ShowSpeakerLabels
field to
true, you must also set the maximum number of speaker labels
MaxSpeakerLabels
field.
You can't set both ShowSpeakerLabels
and
ChannelIdentification
in the same request. If you
set both, your request returns a
BadRequestException
.
public java.lang.Integer getMaxSpeakerLabels()
The maximum number of speakers to identify in the input audio. If there
are more speakers in the audio than this number, multiple speakers are
identified as a single speaker. If you specify the
MaxSpeakerLabels
field, you must set the
ShowSpeakerLabels
field to true.
Constraints:
Range: 2 - 10
The maximum number of speakers to identify in the input audio. If
there are more speakers in the audio than this number, multiple
speakers are identified as a single speaker. If you specify the
MaxSpeakerLabels
field, you must set the
ShowSpeakerLabels
field to true.
public void setMaxSpeakerLabels(java.lang.Integer maxSpeakerLabels)
The maximum number of speakers to identify in the input audio. If there
are more speakers in the audio than this number, multiple speakers are
identified as a single speaker. If you specify the
MaxSpeakerLabels
field, you must set the
ShowSpeakerLabels
field to true.
Constraints:
Range: 2 - 10
maxSpeakerLabels
-
The maximum number of speakers to identify in the input audio.
If there are more speakers in the audio than this number,
multiple speakers are identified as a single speaker. If you
specify the MaxSpeakerLabels
field, you must set
the ShowSpeakerLabels
field to true.
public Settings withMaxSpeakerLabels(java.lang.Integer maxSpeakerLabels)
The maximum number of speakers to identify in the input audio. If there
are more speakers in the audio than this number, multiple speakers are
identified as a single speaker. If you specify the
MaxSpeakerLabels
field, you must set the
ShowSpeakerLabels
field to true.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 2 - 10
maxSpeakerLabels
-
The maximum number of speakers to identify in the input audio.
If there are more speakers in the audio than this number,
multiple speakers are identified as a single speaker. If you
specify the MaxSpeakerLabels
field, you must set
the ShowSpeakerLabels
field to true.
public java.lang.Boolean isChannelIdentification()
Instructs Amazon Transcribe to process each audio channel separately and then merge the transcription output of each channel into a single transcription.
Amazon Transcribe also produces a transcription of each item detected on an audio channel, including the start time and end time of the item and alternative transcriptions of the item including the confidence that Amazon Transcribe has in the transcription.
You can't set both ShowSpeakerLabels
and
ChannelIdentification
in the same request. If you set both,
your request returns a BadRequestException
.
Instructs Amazon Transcribe to process each audio channel separately and then merge the transcription output of each channel into a single transcription.
Amazon Transcribe also produces a transcription of each item detected on an audio channel, including the start time and end time of the item and alternative transcriptions of the item including the confidence that Amazon Transcribe has in the transcription.
You can't set both ShowSpeakerLabels
and
ChannelIdentification
in the same request. If you
set both, your request returns a BadRequestException
.
public java.lang.Boolean getChannelIdentification()
Instructs Amazon Transcribe to process each audio channel separately and then merge the transcription output of each channel into a single transcription.
Amazon Transcribe also produces a transcription of each item detected on an audio channel, including the start time and end time of the item and alternative transcriptions of the item including the confidence that Amazon Transcribe has in the transcription.
You can't set both ShowSpeakerLabels
and
ChannelIdentification
in the same request. If you set both,
your request returns a BadRequestException
.
Instructs Amazon Transcribe to process each audio channel separately and then merge the transcription output of each channel into a single transcription.
Amazon Transcribe also produces a transcription of each item detected on an audio channel, including the start time and end time of the item and alternative transcriptions of the item including the confidence that Amazon Transcribe has in the transcription.
You can't set both ShowSpeakerLabels
and
ChannelIdentification
in the same request. If you
set both, your request returns a BadRequestException
.
public void setChannelIdentification(java.lang.Boolean channelIdentification)
Instructs Amazon Transcribe to process each audio channel separately and then merge the transcription output of each channel into a single transcription.
Amazon Transcribe also produces a transcription of each item detected on an audio channel, including the start time and end time of the item and alternative transcriptions of the item including the confidence that Amazon Transcribe has in the transcription.
You can't set both ShowSpeakerLabels
and
ChannelIdentification
in the same request. If you set both,
your request returns a BadRequestException
.
channelIdentification
- Instructs Amazon Transcribe to process each audio channel separately and then merge the transcription output of each channel into a single transcription.
Amazon Transcribe also produces a transcription of each item detected on an audio channel, including the start time and end time of the item and alternative transcriptions of the item including the confidence that Amazon Transcribe has in the transcription.
You can't set both ShowSpeakerLabels
and
ChannelIdentification
in the same request. If you
set both, your request returns a
BadRequestException
.
public Settings withChannelIdentification(java.lang.Boolean channelIdentification)
Instructs Amazon Transcribe to process each audio channel separately and then merge the transcription output of each channel into a single transcription.
Amazon Transcribe also produces a transcription of each item detected on an audio channel, including the start time and end time of the item and alternative transcriptions of the item including the confidence that Amazon Transcribe has in the transcription.
You can't set both ShowSpeakerLabels
and
ChannelIdentification
in the same request. If you set both,
your request returns a BadRequestException
.
Returns a reference to this object so that method calls can be chained together.
channelIdentification
- Instructs Amazon Transcribe to process each audio channel separately and then merge the transcription output of each channel into a single transcription.
Amazon Transcribe also produces a transcription of each item detected on an audio channel, including the start time and end time of the item and alternative transcriptions of the item including the confidence that Amazon Transcribe has in the transcription.
You can't set both ShowSpeakerLabels
and
ChannelIdentification
in the same request. If you
set both, your request returns a
BadRequestException
.
public java.lang.Boolean isShowAlternatives()
Determines whether the transcription contains alternative transcriptions.
If you set the ShowAlternatives
field to true, you must also
set the maximum number of alternatives to return in the
MaxAlternatives
field.
Determines whether the transcription contains alternative
transcriptions. If you set the ShowAlternatives
field to true, you must also set the maximum number of
alternatives to return in the MaxAlternatives
field.
public java.lang.Boolean getShowAlternatives()
Determines whether the transcription contains alternative transcriptions.
If you set the ShowAlternatives
field to true, you must also
set the maximum number of alternatives to return in the
MaxAlternatives
field.
Determines whether the transcription contains alternative
transcriptions. If you set the ShowAlternatives
field to true, you must also set the maximum number of
alternatives to return in the MaxAlternatives
field.
public void setShowAlternatives(java.lang.Boolean showAlternatives)
Determines whether the transcription contains alternative transcriptions.
If you set the ShowAlternatives
field to true, you must also
set the maximum number of alternatives to return in the
MaxAlternatives
field.
showAlternatives
-
Determines whether the transcription contains alternative
transcriptions. If you set the ShowAlternatives
field to true, you must also set the maximum number of
alternatives to return in the MaxAlternatives
field.
public Settings withShowAlternatives(java.lang.Boolean showAlternatives)
Determines whether the transcription contains alternative transcriptions.
If you set the ShowAlternatives
field to true, you must also
set the maximum number of alternatives to return in the
MaxAlternatives
field.
Returns a reference to this object so that method calls can be chained together.
showAlternatives
-
Determines whether the transcription contains alternative
transcriptions. If you set the ShowAlternatives
field to true, you must also set the maximum number of
alternatives to return in the MaxAlternatives
field.
public java.lang.Integer getMaxAlternatives()
The number of alternative transcriptions that the service should return.
If you specify the MaxAlternatives
field, you must set the
ShowAlternatives
field to true.
Constraints:
Range: 2 - 10
The number of alternative transcriptions that the service should
return. If you specify the MaxAlternatives
field,
you must set the ShowAlternatives
field to true.
public void setMaxAlternatives(java.lang.Integer maxAlternatives)
The number of alternative transcriptions that the service should return.
If you specify the MaxAlternatives
field, you must set the
ShowAlternatives
field to true.
Constraints:
Range: 2 - 10
maxAlternatives
-
The number of alternative transcriptions that the service
should return. If you specify the MaxAlternatives
field, you must set the ShowAlternatives
field to
true.
public Settings withMaxAlternatives(java.lang.Integer maxAlternatives)
The number of alternative transcriptions that the service should return.
If you specify the MaxAlternatives
field, you must set the
ShowAlternatives
field to true.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 2 - 10
maxAlternatives
-
The number of alternative transcriptions that the service
should return. If you specify the MaxAlternatives
field, you must set the ShowAlternatives
field to
true.
public java.lang.String getVocabularyFilterName()
The name of the vocabulary filter to use when transcribing the audio. The filter that you specify must have the same language code as the transcription job.
Constraints:
Length: 1 - 200
Pattern: ^[0-9a-zA-Z._-]+
The name of the vocabulary filter to use when transcribing the audio. The filter that you specify must have the same language code as the transcription job.
public void setVocabularyFilterName(java.lang.String vocabularyFilterName)
The name of the vocabulary filter to use when transcribing the audio. The filter that you specify must have the same language code as the transcription job.
Constraints:
Length: 1 - 200
Pattern: ^[0-9a-zA-Z._-]+
vocabularyFilterName
- The name of the vocabulary filter to use when transcribing the audio. The filter that you specify must have the same language code as the transcription job.
public Settings withVocabularyFilterName(java.lang.String vocabularyFilterName)
The name of the vocabulary filter to use when transcribing the audio. The filter that you specify must have the same language code as the transcription job.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 200
Pattern: ^[0-9a-zA-Z._-]+
vocabularyFilterName
- The name of the vocabulary filter to use when transcribing the audio. The filter that you specify must have the same language code as the transcription job.
public java.lang.String getVocabularyFilterMethod()
Set to mask
to remove filtered text from the transcript and
replace it with three asterisks ("***") as placeholder text. Set to
remove
to remove filtered text from the transcript without
using placeholder text.
Constraints:
Allowed Values: remove, mask
Set to mask
to remove filtered text from the
transcript and replace it with three asterisks ("***") as
placeholder text. Set to remove
to remove filtered
text from the transcript without using placeholder text.
VocabularyFilterMethod
public void setVocabularyFilterMethod(java.lang.String vocabularyFilterMethod)
Set to mask
to remove filtered text from the transcript and
replace it with three asterisks ("***") as placeholder text. Set to
remove
to remove filtered text from the transcript without
using placeholder text.
Constraints:
Allowed Values: remove, mask
vocabularyFilterMethod
-
Set to mask
to remove filtered text from the
transcript and replace it with three asterisks ("***") as
placeholder text. Set to remove
to remove
filtered text from the transcript without using placeholder
text.
VocabularyFilterMethod
public Settings withVocabularyFilterMethod(java.lang.String vocabularyFilterMethod)
Set to mask
to remove filtered text from the transcript and
replace it with three asterisks ("***") as placeholder text. Set to
remove
to remove filtered text from the transcript without
using placeholder text.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: remove, mask
vocabularyFilterMethod
-
Set to mask
to remove filtered text from the
transcript and replace it with three asterisks ("***") as
placeholder text. Set to remove
to remove
filtered text from the transcript without using placeholder
text.
VocabularyFilterMethod
public void setVocabularyFilterMethod(VocabularyFilterMethod vocabularyFilterMethod)
Set to mask
to remove filtered text from the transcript and
replace it with three asterisks ("***") as placeholder text. Set to
remove
to remove filtered text from the transcript without
using placeholder text.
Constraints:
Allowed Values: remove, mask
vocabularyFilterMethod
-
Set to mask
to remove filtered text from the
transcript and replace it with three asterisks ("***") as
placeholder text. Set to remove
to remove
filtered text from the transcript without using placeholder
text.
VocabularyFilterMethod
public Settings withVocabularyFilterMethod(VocabularyFilterMethod vocabularyFilterMethod)
Set to mask
to remove filtered text from the transcript and
replace it with three asterisks ("***") as placeholder text. Set to
remove
to remove filtered text from the transcript without
using placeholder text.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: remove, mask
vocabularyFilterMethod
-
Set to mask
to remove filtered text from the
transcript and replace it with three asterisks ("***") as
placeholder text. Set to remove
to remove
filtered text from the transcript without using placeholder
text.
VocabularyFilterMethod
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.