Edit

Share via


SpeechRecognitionConnector.Start Method

Definition

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

public:
 Microsoft::Rtc::Collaboration::AudioVideo::SpeechRecognitionStream ^ Start();
public Microsoft.Rtc.Collaboration.AudioVideo.SpeechRecognitionStream Start ();
member this.Start : unit -> Microsoft.Rtc.Collaboration.AudioVideo.SpeechRecognitionStream
Public Function Start () As SpeechRecognitionStream

Returns

A stream containing audio data.

Exceptions

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

Examples

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



Applies to