Click or drag to resize
SpeechRecognitionServiceFactory Class
Use Microsoft's CognitiveServices to work with the Speech Recognition Service. This factory can be used to create an object with which to make a recognition request to the Speech Recognition Service. There are four types of objects that this factory can create.

(1) A DataRecognitionClient -- for speech recognition with data (for example from a file or audio source). The data is broken up into buffers and each buffer is sent to the Speech Recognition Service. No modification is done to the buffers, so the user can apply their own Silence Detection. Returns only text recognition results. The audio must be PCM, mono, 16-bit sample, with sample rate of 8000 Hz or 16000 Hz.

(2) A DataRecognitionClientWithIntent -- for speech recognition with data (for example from a file or audio source). The data is broken up into buffers and each buffer is sent to the Speech Recognition Service. No modification is done to the buffers, so the user can apply their own Silence Detection. Returns both text recognition results as well as structured intent results in JSON form from the LUIS (see https://LUIS.ai) service. The audio must be PCM, mono, 16-bit sample, with sample rate of 8000 Hz or 16000 Hz.

(3) A MicrophoneRecognitionClient -- for 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.

(4) A MicrophoneRecognitionClientWithIntent -- for 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 both text recognition results as well as structured intent results in JSON form from the LUIS (see https://LUIS.ai) service.

Inheritance Hierarchy
Object
  Microsoft.CognitiveServices.SpeechRecognitionSpeechRecognitionServiceFactory

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

The SpeechRecognitionServiceFactory type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCreateDataClient(SpeechRecognitionMode, String, String)
Create a DataRecognitionClient -- for speech recognition with data (for example from a file or audio source). The data is broken up into buffers and each buffer is sent to the Speech Recognition Service. No modification is done to the buffers, so the user can apply their own Silence Detection. Returns only text recognition results. The audio must be PCM, mono, 16-bit sample, with sample rate of 8000 Hz or 16000 Hz.
Public methodStatic memberCreateDataClient(SpeechRecognitionMode, String, String, String) Obsolete.
[Deprecated] Create a DataRecognitionClient -- for speech recognition with data (for example from a file or audio source). The data is broken up into buffers and each buffer is sent to the Speech Recognition Service. No modification is done to the buffers, so the user can apply their own Silence Detection. Returns only text recognition results. The audio must be PCM, mono, 16-bit sample, with sample rate of 8000 Hz or 16000 Hz.
Public methodStatic memberCreateDataClient(SpeechRecognitionMode, String, String, String, String) Obsolete.
[Deprecated] Create a DataRecognitionClient with Acoustic Model Adaptation -- for speech recognition with data (for example from a file or audio source). The data is broken up into buffers and each buffer is sent to the Speech Recognition Service. No modification is done to the buffers, so the user can apply their own Silence Detection. Returns only text recognition results. Acoustic Model Adaptation allows you to specify an endpoint with a Acoustic Model that you specially created with the Acoustic Model Specialization Service (coming soon). The audio must be PCM, mono, 16-bit sample, with sample rate of 8000 Hz or 16000 Hz.
Public methodStatic memberCreateDataClientWithIntent(String, String, String, String)
Create a DataRecognitionClientWithIntent -- for speech recognition with data (for example from a file or audio source). The data is broken up into buffers and each buffer is sent to the Speech Recognition Service. No modification is done to the buffers, so the user can apply their own Silence Detection. Returns both text recognition results as well as structured intent results in JSON form from the LUIS (see https://LUIS.ai) service. The audio must be PCM, mono, 16-bit sample, with sample rate of 8000 Hz or 16000 Hz.
Public methodStatic memberCreateDataClientWithIntent(String, String, String, String, String) Obsolete.
[Deprecated] Create a DataRecognitionClientWithIntent -- for speech recognition with data (for example from a file or audio source). The data is broken up into buffers and each buffer is sent to the Speech Recognition Service. No modification is done to the buffers, so the user can apply their own Silence Detection. Returns both text recognition results as well as structured intent results in JSON form from the LUIS (see https://LUIS.ai) service. The audio must be PCM, mono, 16-bit sample, with sample rate of 8000 Hz or 16000 Hz.
Public methodStatic memberCreateDataClientWithIntent(String, String, String, String, String, String) Obsolete.
[Deprecated] Create a DataRecognitionClientWithIntent with Acoustic Model Adaptation -- for speech recognition with data (for example from a file or audio source). The data is broken up into buffers and each buffer is sent to the Speech Recognition Service. No modification is done to the buffers, so the user can apply their own Silence Detection. Returns both text recognition results as well as structured intent results in JSON form from the LUIS (see https://LUIS.ai) service. The audio must be PCM, mono, 16-bit sample, with sample rate of 8000 Hz or 16000 Hz.
Public methodStatic memberCreateMicrophoneClient(SpeechRecognitionMode, String, String)
Create a MicrophoneRecognitionClient -- for 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.
Public methodStatic memberCreateMicrophoneClient(SpeechRecognitionMode, String, String, String) Obsolete.
[Deprecated] Create a MicrophoneRecognitionClient -- for 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.
Public methodStatic memberCreateMicrophoneClient(SpeechRecognitionMode, String, String, String, String) Obsolete.
[Deprecated] Create a MicrophoneRecognitionClient with Acoustic Model Adaptation -- for 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.
Public methodStatic memberCreateMicrophoneClientWithIntent(String, String, String, String)
Create a MicrophoneRecognitionClientWithIntent -- for 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 both text recognition results as well as structured intent results in JSON form from the LUIS (see https://LUIS.ai) service.
Public methodStatic memberCreateMicrophoneClientWithIntent(String, String, String, String, String) Obsolete.
[Deprecated] Create a MicrophoneRecognitionClientWithIntent -- for 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 both text recognition results as well as structured intent results in JSON form from the LUIS (see https://LUIS.ai) service.
Public methodStatic memberCreateMicrophoneClientWithIntent(String, String, String, String, String, String) Obsolete.
[Deprecated] Create a MicrophoneRecognitionClientWithIntent with Acoustic Model Adaptation -- for 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 both text recognition results as well as structured intent results in JSON form from the LUIS (see https://LUIS.ai) service.
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 methodToString (Inherited from Object.)
Top
See Also