Control persona output using talk commands
talk
method:
talk
method to enable your own custom intelligence, see our Custom Brains guide.TalkMessageStream
.streamMessageChunk
is called with endOfSpeech: true
or the endMessage()
method is calledAnamEvent.TALK_STREAM_INTERRUPTED
eventTalkMessageStream
object is closed and no longer usable. You can check if a stream is still active using:
correlationId
parameter to the createTalkMessageStream
method:
correlationId
should be unique for every TalkMessageStream
instance. When a talk stream is interrupted, this ID will be included in the AnamEvent.TALK_STREAM_INTERRUPTED
event.