ActivityReceivedEventArgs Class

An object that encapsulates the response data that originates from the dialog implementation used by a DialogServiceConnector. Activities may be sent by a dialog implementation at any time during a connection and there may be a many-to-one relationship between activities received and input utterances.

Constructor for internal use.

Inheritance
builtins.object
ActivityReceivedEventArgs

Constructor

ActivityReceivedEventArgs(handle: c_void_p)

Parameters

Name Description
handle
Required

Attributes

activity

Gets a serialized JSON string that represents the activity payload sent by the dialog implementation that a DialogServiceConnector communicates with. This data is originated from the dialog implementation and both the schema and contents of the document are determined by the sender.

audio

Gets a PullAudioOutputStream associated with this activity, as produced by the text-to-speech service. This streamis populated as data arrives and may not contain all synthesized audio when the activity arrives. If there is no audio data associated with this activity payload, has_audio will be False and audio will be None.

has_audio

Gets a value indicating whether this activity payload includes an audio stream from the text-to-speech service. If such a stream is present, it can be retrieved via the audio property.

If there is no audio data associated with this activity payload, has_audio will be False and audio will be None.