@Generated(value="software.amazon.awssdk:codegen") public class TranscriptEvent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TranscriptEvent.Builder,TranscriptEvent>, TranscriptResultStream
Represents a set of transcription results from the server to the client. It contains one or more segments of the transcription.
| Modifier and Type | Class and Description |
|---|---|
static interface |
TranscriptEvent.Builder |
protected static class |
TranscriptEvent.BuilderImpl |
TranscriptResultStream.EventTypeUNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
TranscriptEvent(TranscriptEvent.BuilderImpl builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(StartStreamTranscriptionResponseHandler.Visitor visitor)
Calls the appropriate visit method depending on the subtype of
TranscriptEvent. |
static TranscriptEvent.Builder |
builder() |
TranscriptEvent |
copy(Consumer<? super TranscriptEvent.Builder> modifier) |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
TranscriptResultStream.EventType |
sdkEventType()
The type of this event.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends TranscriptEvent.Builder> |
serializableBuilderClass() |
TranscriptEvent.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Transcript |
transcript()
The transcription of the audio stream.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waittranscriptEventBuilderprotected TranscriptEvent(TranscriptEvent.BuilderImpl builder)
public final Transcript transcript()
The transcription of the audio stream. The transcription is composed of all of the items in the results list.
public TranscriptEvent.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<TranscriptEvent.Builder,TranscriptEvent>public static TranscriptEvent.Builder builder()
public static Class<? extends TranscriptEvent.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final TranscriptEvent copy(Consumer<? super TranscriptEvent.Builder> modifier)
copy in interface ToCopyableBuilder<TranscriptEvent.Builder,TranscriptEvent>public TranscriptResultStream.EventType sdkEventType()
TranscriptResultStream:event-type header on the Message.sdkEventType in interface TranscriptResultStreampublic void accept(StartStreamTranscriptionResponseHandler.Visitor visitor)
TranscriptEvent.accept in interface TranscriptResultStreamvisitor - Visitor to invoke.Copyright © 2022. All rights reserved.