Class StreamingResponseMessage
- java.lang.Object
-
- ai.rev.speechtotext.models.streaming.StreamingResponseMessage
-
- Direct Known Subclasses:
ConnectedMessage,Hypothesis
public class StreamingResponseMessage extends Object
A parent class that can be used to serialize and deserialize the "type" in the WebSocket messages.
-
-
Constructor Summary
Constructors Constructor Description StreamingResponseMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageTypegetType()Returns theMessageTypeenumeration value.voidsetType(MessageType type)Specifies the WebSocket message type.StringtoString()
-
-
-
Method Detail
-
getType
public MessageType getType()
Returns theMessageTypeenumeration value.- Returns:
- The enumeration value.
-
setType
public void setType(MessageType type)
Specifies the WebSocket message type.- Parameters:
type- The WebSocket message type.
-
-