SpeechRecognizer Constructors

Definition

Overloads

SpeechRecognizer(EmbeddedSpeechConfig)

Creates a new instance of SpeechRecognizer using EmbeddedSpeechConfig, configured to receive speech from the default microphone. Added in 1.19.0

SpeechRecognizer(SpeechConfig, SourceLanguageConfig, AudioConfig)

Creates a new instance of SpeechRecognizer. Added in 1.9.0

SpeechRecognizer(SpeechConfig, AutoDetectSourceLanguageConfig, AudioConfig)

Creates a new instance of SpeechRecognizer. Added in 1.9.0

SpeechRecognizer(HybridSpeechConfig, AutoDetectSourceLanguageConfig, AudioConfig)

Creates a new instance of SpeechRecognizer, using HybridSpeechConfig, that determines the source language from a list of options.

SpeechRecognizer(EmbeddedSpeechConfig, AutoDetectSourceLanguageConfig, AudioConfig)

Creates a new instance of SpeechRecognizer, using EmbeddedSpeechConfig, that determines the source language from a list of options. Added in 1.20.0

SpeechRecognizer(SpeechConfig, String)

Creates a new instance of SpeechRecognizer configured to receive speech in a particular language. Added in 1.9.0

SpeechRecognizer(SpeechConfig, SourceLanguageConfig)

Creates a new instance of SpeechRecognizer. Added in 1.9.0

SpeechRecognizer(SpeechConfig, AutoDetectSourceLanguageConfig)

Creates a new instance of SpeechRecognizer that determines the source language from a list of options. Added in 1.9.0

SpeechRecognizer(SpeechConfig, String, AudioConfig)

Creates a new instance of SpeechRecognizer configured to receive speech in a particular language from an audio source specified in an AudioConfig object. Added in 1.9.0

SpeechRecognizer(HybridSpeechConfig, AutoDetectSourceLanguageConfig)

Creates a new instance of SpeechRecognizer, using HybridSpeechConfig, that determines the source language from a list of options.

SpeechRecognizer(HybridSpeechConfig, AudioConfig)

Creates a new instance of SpeechRecognizer using HybridSpeechConfig, configured to receive speech from an audio source specified in an AudioConfig object.

SpeechRecognizer(EmbeddedSpeechConfig, AutoDetectSourceLanguageConfig)

Creates a new instance of SpeechRecognizer, using EmbeddedSpeechConfig, that determines the source language from a list of options. Added in 1.20.0

SpeechRecognizer(EmbeddedSpeechConfig, AudioConfig)

Creates a new instance of SpeechRecognizer using EmbeddedSpeechConfig, configured to receive speech from an audio source specified in an AudioConfig object. Added in 1.19.0

SpeechRecognizer(SpeechConfig)

Creates a new instance of SpeechRecognizer configured to receive speech from the default microphone.

SpeechRecognizer(HybridSpeechConfig)

Creates a new instance of SpeechRecognizer using HybridSpeechConfig, configured to receive speech from the default microphone.

SpeechRecognizer(SpeechConfig, AudioConfig)

Creates a new instance of SpeechRecognizer configured to receive speech from an audio source specified in an AudioConfig object.

SpeechRecognizer(EmbeddedSpeechConfig)

Creates a new instance of SpeechRecognizer using EmbeddedSpeechConfig, configured to receive speech from the default microphone. Added in 1.19.0

public SpeechRecognizer (Microsoft.CognitiveServices.Speech.EmbeddedSpeechConfig speechConfig);
new Microsoft.CognitiveServices.Speech.SpeechRecognizer : Microsoft.CognitiveServices.Speech.EmbeddedSpeechConfig -> Microsoft.CognitiveServices.Speech.SpeechRecognizer
Public Sub New (speechConfig As EmbeddedSpeechConfig)

Parameters

speechConfig
EmbeddedSpeechConfig

Embedded speech configuration

Applies to

SpeechRecognizer(SpeechConfig, SourceLanguageConfig, AudioConfig)

Creates a new instance of SpeechRecognizer. Added in 1.9.0

public SpeechRecognizer (Microsoft.CognitiveServices.Speech.SpeechConfig speechConfig, Microsoft.CognitiveServices.Speech.SourceLanguageConfig sourceLanguageConfig, Microsoft.CognitiveServices.Speech.Audio.AudioConfig audioConfig);
new Microsoft.CognitiveServices.Speech.SpeechRecognizer : Microsoft.CognitiveServices.Speech.SpeechConfig * Microsoft.CognitiveServices.Speech.SourceLanguageConfig * Microsoft.CognitiveServices.Speech.Audio.AudioConfig -> Microsoft.CognitiveServices.Speech.SpeechRecognizer
Public Sub New (speechConfig As SpeechConfig, sourceLanguageConfig As SourceLanguageConfig, audioConfig As AudioConfig)

Parameters

speechConfig
SpeechConfig

Speech configuration

sourceLanguageConfig
SourceLanguageConfig

Language of the source speech, in BCP-47 format.

audioConfig
AudioConfig

Audio configuration

Applies to

SpeechRecognizer(SpeechConfig, AutoDetectSourceLanguageConfig, AudioConfig)

Creates a new instance of SpeechRecognizer. Added in 1.9.0

public SpeechRecognizer (Microsoft.CognitiveServices.Speech.SpeechConfig speechConfig, Microsoft.CognitiveServices.Speech.AutoDetectSourceLanguageConfig autoDetectSourceLanguageConfig, Microsoft.CognitiveServices.Speech.Audio.AudioConfig audioConfig);
new Microsoft.CognitiveServices.Speech.SpeechRecognizer : Microsoft.CognitiveServices.Speech.SpeechConfig * Microsoft.CognitiveServices.Speech.AutoDetectSourceLanguageConfig * Microsoft.CognitiveServices.Speech.Audio.AudioConfig -> Microsoft.CognitiveServices.Speech.SpeechRecognizer
Public Sub New (speechConfig As SpeechConfig, autoDetectSourceLanguageConfig As AutoDetectSourceLanguageConfig, audioConfig As AudioConfig)

Parameters

speechConfig
SpeechConfig

Speech configuration

autoDetectSourceLanguageConfig
AutoDetectSourceLanguageConfig

An instance that specifies possible source languages in the speech.

audioConfig
AudioConfig

Audio configuration

Applies to

SpeechRecognizer(HybridSpeechConfig, AutoDetectSourceLanguageConfig, AudioConfig)

Creates a new instance of SpeechRecognizer, using HybridSpeechConfig, that determines the source language from a list of options.

public SpeechRecognizer (Microsoft.CognitiveServices.Speech.HybridSpeechConfig speechConfig, Microsoft.CognitiveServices.Speech.AutoDetectSourceLanguageConfig autoDetectSourceLanguageConfig, Microsoft.CognitiveServices.Speech.Audio.AudioConfig audioConfig);
new Microsoft.CognitiveServices.Speech.SpeechRecognizer : Microsoft.CognitiveServices.Speech.HybridSpeechConfig * Microsoft.CognitiveServices.Speech.AutoDetectSourceLanguageConfig * Microsoft.CognitiveServices.Speech.Audio.AudioConfig -> Microsoft.CognitiveServices.Speech.SpeechRecognizer
Public Sub New (speechConfig As HybridSpeechConfig, autoDetectSourceLanguageConfig As AutoDetectSourceLanguageConfig, audioConfig As AudioConfig)

Parameters

speechConfig
HybridSpeechConfig

Hybrid speech configuration

autoDetectSourceLanguageConfig
AutoDetectSourceLanguageConfig

Configuration for auto-detecting the source language

audioConfig
AudioConfig

Audio configuration

Remarks

See also: Automatic language detection for speech to text

Applies to

SpeechRecognizer(EmbeddedSpeechConfig, AutoDetectSourceLanguageConfig, AudioConfig)

Creates a new instance of SpeechRecognizer, using EmbeddedSpeechConfig, that determines the source language from a list of options. Added in 1.20.0

public SpeechRecognizer (Microsoft.CognitiveServices.Speech.EmbeddedSpeechConfig speechConfig, Microsoft.CognitiveServices.Speech.AutoDetectSourceLanguageConfig autoDetectSourceLanguageConfig, Microsoft.CognitiveServices.Speech.Audio.AudioConfig audioConfig);
new Microsoft.CognitiveServices.Speech.SpeechRecognizer : Microsoft.CognitiveServices.Speech.EmbeddedSpeechConfig * Microsoft.CognitiveServices.Speech.AutoDetectSourceLanguageConfig * Microsoft.CognitiveServices.Speech.Audio.AudioConfig -> Microsoft.CognitiveServices.Speech.SpeechRecognizer
Public Sub New (speechConfig As EmbeddedSpeechConfig, autoDetectSourceLanguageConfig As AutoDetectSourceLanguageConfig, audioConfig As AudioConfig)

Parameters

speechConfig
EmbeddedSpeechConfig

Embedded speech configuration

autoDetectSourceLanguageConfig
AutoDetectSourceLanguageConfig

Configuration for auto-detecting the source language

audioConfig
AudioConfig

Audio configuration

Remarks

See also: Automatic language detection for speech to text

Applies to

SpeechRecognizer(SpeechConfig, String)

Creates a new instance of SpeechRecognizer configured to receive speech in a particular language. Added in 1.9.0

public SpeechRecognizer (Microsoft.CognitiveServices.Speech.SpeechConfig speechConfig, string language);
new Microsoft.CognitiveServices.Speech.SpeechRecognizer : Microsoft.CognitiveServices.Speech.SpeechConfig * string -> Microsoft.CognitiveServices.Speech.SpeechRecognizer
Public Sub New (speechConfig As SpeechConfig, language As String)

Parameters

speechConfig
SpeechConfig

Speech configuration

language
String

The source language

Applies to

SpeechRecognizer(SpeechConfig, SourceLanguageConfig)

Creates a new instance of SpeechRecognizer. Added in 1.9.0

public SpeechRecognizer (Microsoft.CognitiveServices.Speech.SpeechConfig speechConfig, Microsoft.CognitiveServices.Speech.SourceLanguageConfig sourceLanguageConfig);
new Microsoft.CognitiveServices.Speech.SpeechRecognizer : Microsoft.CognitiveServices.Speech.SpeechConfig * Microsoft.CognitiveServices.Speech.SourceLanguageConfig -> Microsoft.CognitiveServices.Speech.SpeechRecognizer
Public Sub New (speechConfig As SpeechConfig, sourceLanguageConfig As SourceLanguageConfig)

Parameters

speechConfig
SpeechConfig

Speech configuration

sourceLanguageConfig
SourceLanguageConfig

The source language config

Applies to

SpeechRecognizer(SpeechConfig, AutoDetectSourceLanguageConfig)

Creates a new instance of SpeechRecognizer that determines the source language from a list of options. Added in 1.9.0

public SpeechRecognizer (Microsoft.CognitiveServices.Speech.SpeechConfig speechConfig, Microsoft.CognitiveServices.Speech.AutoDetectSourceLanguageConfig autoDetectSourceLanguageConfig);
new Microsoft.CognitiveServices.Speech.SpeechRecognizer : Microsoft.CognitiveServices.Speech.SpeechConfig * Microsoft.CognitiveServices.Speech.AutoDetectSourceLanguageConfig -> Microsoft.CognitiveServices.Speech.SpeechRecognizer
Public Sub New (speechConfig As SpeechConfig, autoDetectSourceLanguageConfig As AutoDetectSourceLanguageConfig)

Parameters

speechConfig
SpeechConfig

Speech configuration

autoDetectSourceLanguageConfig
AutoDetectSourceLanguageConfig

Configuration that specifies the language(s) to look for in the source speech to recognize

Remarks

See also: Automatic language detection for speech to text

Applies to

SpeechRecognizer(SpeechConfig, String, AudioConfig)

Creates a new instance of SpeechRecognizer configured to receive speech in a particular language from an audio source specified in an AudioConfig object. Added in 1.9.0

public SpeechRecognizer (Microsoft.CognitiveServices.Speech.SpeechConfig speechConfig, string language, Microsoft.CognitiveServices.Speech.Audio.AudioConfig audioConfig);
new Microsoft.CognitiveServices.Speech.SpeechRecognizer : Microsoft.CognitiveServices.Speech.SpeechConfig * string * Microsoft.CognitiveServices.Speech.Audio.AudioConfig -> Microsoft.CognitiveServices.Speech.SpeechRecognizer
Public Sub New (speechConfig As SpeechConfig, language As String, audioConfig As AudioConfig)

Parameters

speechConfig
SpeechConfig

Speech configuration

language
String

The source language

audioConfig
AudioConfig

Audio configuration

Applies to

SpeechRecognizer(HybridSpeechConfig, AutoDetectSourceLanguageConfig)

Creates a new instance of SpeechRecognizer, using HybridSpeechConfig, that determines the source language from a list of options.

public SpeechRecognizer (Microsoft.CognitiveServices.Speech.HybridSpeechConfig speechConfig, Microsoft.CognitiveServices.Speech.AutoDetectSourceLanguageConfig autoDetectSourceLanguageConfig);
new Microsoft.CognitiveServices.Speech.SpeechRecognizer : Microsoft.CognitiveServices.Speech.HybridSpeechConfig * Microsoft.CognitiveServices.Speech.AutoDetectSourceLanguageConfig -> Microsoft.CognitiveServices.Speech.SpeechRecognizer
Public Sub New (speechConfig As HybridSpeechConfig, autoDetectSourceLanguageConfig As AutoDetectSourceLanguageConfig)

Parameters

speechConfig
HybridSpeechConfig

Hybrid speech configuration

autoDetectSourceLanguageConfig
AutoDetectSourceLanguageConfig

Configuration for auto-detecting the source language

Remarks

See also: Automatic language detection for speech to text

Applies to

SpeechRecognizer(HybridSpeechConfig, AudioConfig)

Creates a new instance of SpeechRecognizer using HybridSpeechConfig, configured to receive speech from an audio source specified in an AudioConfig object.

public SpeechRecognizer (Microsoft.CognitiveServices.Speech.HybridSpeechConfig speechConfig, Microsoft.CognitiveServices.Speech.Audio.AudioConfig audioConfig);
new Microsoft.CognitiveServices.Speech.SpeechRecognizer : Microsoft.CognitiveServices.Speech.HybridSpeechConfig * Microsoft.CognitiveServices.Speech.Audio.AudioConfig -> Microsoft.CognitiveServices.Speech.SpeechRecognizer
Public Sub New (speechConfig As HybridSpeechConfig, audioConfig As AudioConfig)

Parameters

speechConfig
HybridSpeechConfig

Hybrid speech configuration

audioConfig
AudioConfig

Audio configuration

Applies to

SpeechRecognizer(EmbeddedSpeechConfig, AutoDetectSourceLanguageConfig)

Creates a new instance of SpeechRecognizer, using EmbeddedSpeechConfig, that determines the source language from a list of options. Added in 1.20.0

public SpeechRecognizer (Microsoft.CognitiveServices.Speech.EmbeddedSpeechConfig speechConfig, Microsoft.CognitiveServices.Speech.AutoDetectSourceLanguageConfig autoDetectSourceLanguageConfig);
new Microsoft.CognitiveServices.Speech.SpeechRecognizer : Microsoft.CognitiveServices.Speech.EmbeddedSpeechConfig * Microsoft.CognitiveServices.Speech.AutoDetectSourceLanguageConfig -> Microsoft.CognitiveServices.Speech.SpeechRecognizer
Public Sub New (speechConfig As EmbeddedSpeechConfig, autoDetectSourceLanguageConfig As AutoDetectSourceLanguageConfig)

Parameters

speechConfig
EmbeddedSpeechConfig

Embedded speech configuration

autoDetectSourceLanguageConfig
AutoDetectSourceLanguageConfig

Configuration for auto-detecting the source language

Remarks

See also: Automatic language detection for speech to text

Applies to

SpeechRecognizer(EmbeddedSpeechConfig, AudioConfig)

Creates a new instance of SpeechRecognizer using EmbeddedSpeechConfig, configured to receive speech from an audio source specified in an AudioConfig object. Added in 1.19.0

public SpeechRecognizer (Microsoft.CognitiveServices.Speech.EmbeddedSpeechConfig speechConfig, Microsoft.CognitiveServices.Speech.Audio.AudioConfig audioConfig);
new Microsoft.CognitiveServices.Speech.SpeechRecognizer : Microsoft.CognitiveServices.Speech.EmbeddedSpeechConfig * Microsoft.CognitiveServices.Speech.Audio.AudioConfig -> Microsoft.CognitiveServices.Speech.SpeechRecognizer
Public Sub New (speechConfig As EmbeddedSpeechConfig, audioConfig As AudioConfig)

Parameters

speechConfig
EmbeddedSpeechConfig

Embedded speech configuration

audioConfig
AudioConfig

Audio configuration

Applies to

SpeechRecognizer(SpeechConfig)

Creates a new instance of SpeechRecognizer configured to receive speech from the default microphone.

public SpeechRecognizer (Microsoft.CognitiveServices.Speech.SpeechConfig speechConfig);
new Microsoft.CognitiveServices.Speech.SpeechRecognizer : Microsoft.CognitiveServices.Speech.SpeechConfig -> Microsoft.CognitiveServices.Speech.SpeechRecognizer
Public Sub New (speechConfig As SpeechConfig)

Parameters

speechConfig
SpeechConfig

Speech configuration

Applies to

SpeechRecognizer(HybridSpeechConfig)

Creates a new instance of SpeechRecognizer using HybridSpeechConfig, configured to receive speech from the default microphone.

public SpeechRecognizer (Microsoft.CognitiveServices.Speech.HybridSpeechConfig speechConfig);
new Microsoft.CognitiveServices.Speech.SpeechRecognizer : Microsoft.CognitiveServices.Speech.HybridSpeechConfig -> Microsoft.CognitiveServices.Speech.SpeechRecognizer
Public Sub New (speechConfig As HybridSpeechConfig)

Parameters

speechConfig
HybridSpeechConfig

Hybrid speech configuration

Applies to

SpeechRecognizer(SpeechConfig, AudioConfig)

Creates a new instance of SpeechRecognizer configured to receive speech from an audio source specified in an AudioConfig object.

public SpeechRecognizer (Microsoft.CognitiveServices.Speech.SpeechConfig speechConfig, Microsoft.CognitiveServices.Speech.Audio.AudioConfig audioConfig);
new Microsoft.CognitiveServices.Speech.SpeechRecognizer : Microsoft.CognitiveServices.Speech.SpeechConfig * Microsoft.CognitiveServices.Speech.Audio.AudioConfig -> Microsoft.CognitiveServices.Speech.SpeechRecognizer
Public Sub New (speechConfig As SpeechConfig, audioConfig As AudioConfig)

Parameters

speechConfig
SpeechConfig

Speech configuration

audioConfig
AudioConfig

Audio configuration

Applies to