Start Method
Collapse the table of content
Expand the table of content

SpeechRecognitionConnector.Start Method

Begins recording audio into a new stream. The caller is responsible for disposing of the stream returned by this method.

Namespace:  Microsoft.Rtc.Collaboration.AudioVideo
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

public SpeechRecognitionStream Start()

Return Value

Type: Microsoft.Rtc.Collaboration.AudioVideo.SpeechRecognitionStream
A stream containing audio data.

ExceptionCondition
InvalidOperationException

Thrown when the SpeechRecognitionConnector is not bound to an AudioVideoFlow, or when the SpeechRecognitionConnector is already started.

The following example starts the SpeechSynthesizerConnector.

C# Starting and stopping a SpeechSynthesizerConnector.

 

            speechRecognitionConnector.AttachFlow(audioVideoFlow);
            SpeechRecognitionStream stream = speechRecognitionConnector.Start();

            // stream needs to be set to Microsoft.Speech.SpeechRecognition




Show:
© 2016 Microsoft