SourceLanguageRecognizer Constructors
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.
Overloads
SourceLanguageRecognizer(SpeechConfig, AutoDetectSourceLanguageConfig) |
Creates a new instance of SourceLanguageRecognizer that determines the source language from a different languageId modes and priorities. |
SourceLanguageRecognizer(SpeechConfig, AutoDetectSourceLanguageConfig, AudioConfig) |
Creates a new instance of SourceLanguageRecognizer. |
SourceLanguageRecognizer(SpeechConfig, AutoDetectSourceLanguageConfig)
Creates a new instance of SourceLanguageRecognizer that determines the source language from a different languageId modes and priorities.
public SourceLanguageRecognizer (Microsoft.CognitiveServices.Speech.SpeechConfig speechConfig, Microsoft.CognitiveServices.Speech.AutoDetectSourceLanguageConfig autoDetectSourceLanguageConfig);
new Microsoft.CognitiveServices.Speech.SourceLanguageRecognizer : Microsoft.CognitiveServices.Speech.SpeechConfig * Microsoft.CognitiveServices.Speech.AutoDetectSourceLanguageConfig -> Microsoft.CognitiveServices.Speech.SourceLanguageRecognizer
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 synthesize
Remarks
See also: Automatic language detection for speech to text
Applies to
SourceLanguageRecognizer(SpeechConfig, AutoDetectSourceLanguageConfig, AudioConfig)
Creates a new instance of SourceLanguageRecognizer.
public SourceLanguageRecognizer (Microsoft.CognitiveServices.Speech.SpeechConfig speechConfig, Microsoft.CognitiveServices.Speech.AutoDetectSourceLanguageConfig autoDetectSourceLanguageConfig, Microsoft.CognitiveServices.Speech.Audio.AudioConfig audioConfig);
new Microsoft.CognitiveServices.Speech.SourceLanguageRecognizer : Microsoft.CognitiveServices.Speech.SpeechConfig * Microsoft.CognitiveServices.Speech.AutoDetectSourceLanguageConfig * Microsoft.CognitiveServices.Speech.Audio.AudioConfig -> Microsoft.CognitiveServices.Speech.SourceLanguageRecognizer
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