你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SourceLanguageRecognizer 构造函数

定义

重载

SourceLanguageRecognizer(SpeechConfig, AutoDetectSourceLanguageConfig)

创建 SourceLanguageRecognizer 的新实例,该实例根据不同的 languageId 模式和优先级确定源语言。

SourceLanguageRecognizer(SpeechConfig, AutoDetectSourceLanguageConfig, AudioConfig)

创建 SourceLanguageRecognizer 的新实例。

SourceLanguageRecognizer(SpeechConfig, AutoDetectSourceLanguageConfig)

创建 SourceLanguageRecognizer 的新实例,该实例根据不同的 languageId 模式和优先级确定源语言。

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)

参数

speechConfig
SpeechConfig

语音配置

autoDetectSourceLanguageConfig
AutoDetectSourceLanguageConfig

指定要在源语音中查找的语言 () 进行合成的配置

注解

另请参阅: 语音转文本的自动语言检测

适用于

SourceLanguageRecognizer(SpeechConfig, AutoDetectSourceLanguageConfig, AudioConfig)

创建 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)

参数

speechConfig
SpeechConfig

语音配置

autoDetectSourceLanguageConfig
AutoDetectSourceLanguageConfig

指定语音中可能的源语言的实例。

audioConfig
AudioConfig

音频配置

适用于