ConversationWebsocketMessageFormatter class

Based off WebsocketMessageFormatter. The messages for Conversation Translator have some variations from the Speech messages.

Properties

fromConnectionMessage

Format outgoing messages: text (commands or IM)

toConnectionMessage

Format incoming messages: text (speech partial/final, IM) or binary (tts)

Property Details

fromConnectionMessage

Format outgoing messages: text (commands or IM)

fromConnectionMessage: (message: ConnectionMessage) => Promise<RawWebsocketMessage>

Property Value

(message: ConnectionMessage) => Promise<RawWebsocketMessage>

toConnectionMessage

Format incoming messages: text (speech partial/final, IM) or binary (tts)

toConnectionMessage: (message: RawWebsocketMessage) => Promise<ConversationConnectionMessage>

Property Value

(message: RawWebsocketMessage) => Promise<ConversationConnectionMessage>