-
public class ConversationEventParserJSON event processing for real-time conversation protocol
This object handles parsing incoming events from ElevenLabs servers and serializing outgoing user actions and responses. It provides robust error handling for malformed messages.
-
-
Field Summary
Fields Modifier and Type Field Description public final static ConversationEventParserINSTANCE
-
Method Summary
Modifier and Type Method Description final ConversationEventparseIncomingEvent(String json)Parse an incoming JSON event string into a ConversationEvent final StringserializeOutgoingEvent(OutgoingEvent event)Serialize an outgoing event to JSON string -
-
Method Detail
-
parseIncomingEvent
final ConversationEvent parseIncomingEvent(String json)
Parse an incoming JSON event string into a ConversationEvent
- Parameters:
json- The JSON string to parse
-
serializeOutgoingEvent
final String serializeOutgoingEvent(OutgoingEvent event)
Serialize an outgoing event to JSON string
- Parameters:
event- The event to serialize
-
-
-
-