SpeechRecognitionConnector Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
SpeechRecognitionConnector can be bound to an AudioVideoFlow, and provides a stream of audio data compatible with Microsoft.Speech.
public ref class SpeechRecognitionConnector : IDisposable
public class SpeechRecognitionConnector : IDisposable
type SpeechRecognitionConnector = class
interface IDisposable
Public Class SpeechRecognitionConnector
Implements IDisposable
- Inheritance
-
SpeechRecognitionConnector
- Implements
Remarks
One such stream is provided every time Start() is called on the SpeechRecognitionConnector. The stream will contain the audio up to the point at which Stop() is called on the connector. Calling Start() again will then generate a new stream for the new interval, and so on.
SpeechSynthesisConnector should be used only in conjuction with Microsoft.Speech.
Constructors
SpeechRecognitionConnector() |
Creates a new instance of the SpeechRecognitionConnector class. |
Properties
AudioVideoFlow |
Gets the attached AudioVideoFlow. |
IsActive |
Gets whether the SpeechRecognitionConnector is currently running. |
Methods
AttachFlow(AudioVideoFlow) |
Specifies which AudioVideoFlow will provide audio data for speech recognition. Only one AudioVideoFlow may be attached at a time. |
DetachFlow() |
Detachs the current AudioVideoFlow, freeing the connector to use another. |
Dispose() |
Disposes the SpeechRecognitionConnector. |
Start() |
Begins recording audio into a new stream. The caller is responsible for disposing of the stream returned by this method. |
Stop() |
Caps off the current stream, and stop recording audio. Will no-op if the SpeechRecognitionConnector is already stopped. |