Class TranscriptEvent
- java.lang.Object
-
- software.amazon.awssdk.services.transcribestreaming.model.TranscriptEvent
-
- All Implemented Interfaces:
Serializable,SdkPojo,TranscriptResultStream,ToCopyableBuilder<TranscriptEvent.Builder,TranscriptEvent>
@Generated("software.amazon.awssdk:codegen") public class TranscriptEvent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TranscriptEvent.Builder,TranscriptEvent>, TranscriptResultStream
The
TranscriptEventassociated with aTranscriptResultStream.Contains a set of transcription results from one or more audio segments, along with additional information per your request parameters.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTranscriptEvent.Builderprotected static classTranscriptEvent.BuilderImpl-
Nested classes/interfaces inherited from interface software.amazon.awssdk.services.transcribestreaming.model.TranscriptResultStream
TranscriptResultStream.EventType
-
-
Field Summary
-
Fields inherited from interface software.amazon.awssdk.services.transcribestreaming.model.TranscriptResultStream
UNKNOWN
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTranscriptEvent(TranscriptEvent.BuilderImpl builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(StartStreamTranscriptionResponseHandler.Visitor visitor)Calls the appropriate visit method depending on the subtype ofTranscriptEvent.static TranscriptEvent.Builderbuilder()TranscriptEventcopy(Consumer<? super TranscriptEvent.Builder> modifier)booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()TranscriptResultStream.EventTypesdkEventType()The type of this event.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends TranscriptEvent.Builder>serializableBuilderClass()TranscriptEvent.BuildertoBuilder()StringtoString()Returns a string representation of this object.Transcripttranscript()ContainsResults, which contains a set of transcription results from one or more audio segments, along with additional information per your request parameters.
-
-
-
Constructor Detail
-
TranscriptEvent
protected TranscriptEvent(TranscriptEvent.BuilderImpl builder)
-
-
Method Detail
-
transcript
public final Transcript transcript()
Contains
Results, which contains a set of transcription results from one or more audio segments, along with additional information per your request parameters. This can include information relating to alternative transcriptions, channel identification, partial result stabilization, language identification, and other transcription-related data.- Returns:
- Contains
Results, which contains a set of transcription results from one or more audio segments, along with additional information per your request parameters. This can include information relating to alternative transcriptions, channel identification, partial result stabilization, language identification, and other transcription-related data.
-
toBuilder
public TranscriptEvent.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TranscriptEvent.Builder,TranscriptEvent>
-
builder
public static TranscriptEvent.Builder builder()
-
serializableBuilderClass
public static Class<? extends TranscriptEvent.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
copy
public final TranscriptEvent copy(Consumer<? super TranscriptEvent.Builder> modifier)
- Specified by:
copyin interfaceToCopyableBuilder<TranscriptEvent.Builder,TranscriptEvent>
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
sdkEventType
public TranscriptResultStream.EventType sdkEventType()
Description copied from interface:TranscriptResultStreamThe type of this event. Corresponds to the:event-typeheader on the Message.- Specified by:
sdkEventTypein interfaceTranscriptResultStream
-
accept
public void accept(StartStreamTranscriptionResponseHandler.Visitor visitor)
Calls the appropriate visit method depending on the subtype ofTranscriptEvent.- Specified by:
acceptin interfaceTranscriptResultStream- Parameters:
visitor- Visitor to invoke.
-
-