Class ActivityReceivedEventArgs
- java.lang.Object
-
- com.microsoft.cognitiveservices.speech.dialog.ActivityReceivedEventArgs
-
public class ActivityReceivedEventArgs extends Object
Class that describes the events of a activity received event.
-
-
Constructor Summary
Constructors Constructor Description ActivityReceivedEventArgs(long eventArgs)Constructs an ActivityReceivedEventArgs object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetActivity()Gets the activity received.PullAudioOutputStreamgetAudio()Gets the associated audio stream if present.booleanhasAudio()Checks whether the event has associated audio.
-
-
-
Method Detail
-
getActivity
public String getActivity()
Gets the activity received.- Returns:
- The activity associated with the event.
-
hasAudio
public boolean hasAudio()
Checks whether the event has associated audio.- Returns:
- True if the event has audio associated, false otherwise.
-
getAudio
public PullAudioOutputStream getAudio()
Gets the associated audio stream if present.- Returns:
- The associated audio stream.
-
-