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)
Syntax
'Declaration
Public Function Start As SpeechRecognitionStream
'Usage
Dim instance As SpeechRecognitionConnector
Dim returnValue As SpeechRecognitionStream
returnValue = instance.Start()
public SpeechRecognitionStream Start()
Return Value
Type: Microsoft.Rtc.Collaboration.AudioVideo.SpeechRecognitionStream
A stream containing audio data.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | 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
See Also
Reference
SpeechRecognitionConnector Class