Click or drag to resize
Conversation Class
Base class for Conversational Understanding Sessions
Inheritance Hierarchy

Namespace: Microsoft.CognitiveServices.SpeechRecognition
Assembly: SpeechClient (in SpeechClient.dll) Version: 0.0.0.0
Syntax
public class Conversation : IConversation, 
	IDisposable

The Conversation type exposes the following members.

Constructors
  NameDescription
Public methodConversation
Initializes a new instance of the Conversation class.
Top
Methods
  NameDescription
Public methodAudioStart
The microphone is turned on and data from the microphone is sent to the Speech Recognition Service. A built in Silence Detector is applied to the microphone data before it is sent to the recognition service.
Public methodAudioStop
The microphone is turned off and the connection to the Speech Recognition Server is severed.
Public methodCreateAudioStream
Gets an audio stream with no format specified. This method is used when the format information can be detected within the stream itself.
Public methodCreateAudioStream(SpeechAudioFormat)
Gets an audio stream with the specified format. Use this method when sending raw audio samples.
Public methodDispose
Releases all resources used by the Conversation
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the Conversation and optionally releases the managed resources
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
Properties
  NameDescription
Public propertyAuthenticationUri
Represents the authentication service endpoint
Top
Events
  NameDescription
Public eventOnConversationError
Event fired when a conversation error occurs
Public eventOnIntent
Event fired when a Speech Recognition has finished, the recognized text has been parsed with LUIS for intent and entities, and the structured JSON result is available.
Public eventOnMicrophoneStatus
Event fired when the microphone recording status has changed.
Public eventOnPartialResponseReceived
Event fired when a partial response is received
Public eventOnResponseReceived
Event fired when a response is received
Top
See Also