Click or drag to resize
MicrophoneRecognitionClient Class
A client using speech recognition from the microphone. 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. Returns only text recognition results.
Inheritance Hierarchy

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

The MicrophoneRecognitionClient type exposes the following members.

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.
(Inherited from Conversation.)
Public methodAudioStop
The microphone is turned off and the connection to the Speech Recognition Server is severed.
(Inherited from Conversation.)
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.
(Inherited from Conversation.)
Public methodCreateAudioStream(SpeechAudioFormat)
Gets an audio stream with the specified format. Use this method when sending raw audio samples.
(Inherited from Conversation.)
Public methodDispose (Inherited from Conversation.)
Protected methodDispose(Boolean) (Inherited from Conversation.)
Public methodEndMicAndRecognition
The microphone is turned off and the connection to the Speech Recognition Server is severed.
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 methodStartMicAndRecognition
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 methodToString (Inherited from Object.)
Top
Properties
  NameDescription
Public propertyAuthenticationUri
Represents the authentication service endpoint
(Inherited from Conversation.)
Top
Events
  NameDescription
Public eventOnConversationError
Event fired when a conversation error occurs
(Inherited from Conversation.)
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.
(Inherited from Conversation.)
Public eventOnMicrophoneStatus
Event fired when the microphone recording status has changed.
(Inherited from Conversation.)
Public eventOnPartialResponseReceived
Event fired when a partial response is received
(Inherited from Conversation.)
Public eventOnResponseReceived
Event fired when a response is received
(Inherited from Conversation.)
Top
See Also