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

EmbeddedSpeechConfig 类

定义

定义嵌入式 (脱机) 语音配置的类。

public sealed class EmbeddedSpeechConfig
type EmbeddedSpeechConfig = class
Public NotInheritable Class EmbeddedSpeechConfig
继承
EmbeddedSpeechConfig

属性

SpeechRecognitionModelName

获取语音识别的模型名称。

SpeechRecognitionOutputFormat

获取/设置语音识别输出格式 (简单或详细) 。

SpeechSynthesisOutputFormat

获取合成语音的输出格式。 示例值: riff-16khz-16bit-mono-pcm

SpeechSynthesisVoiceName

获取嵌入语音合成的语音名称。

SpeechTranslationModelName

获取语音翻译的模型名称。

方法

FromPath(String)

使用指定的脱机模型路径创建嵌入式语音配置的实例。

FromPaths(String[])

使用指定的脱机模型路径创建嵌入式语音配置的实例。

GetProperty(PropertyId)

按 ID 获取属性值。

GetProperty(String)

按名称获取属性值。

GetSpeechRecognitionModels()

获取可用语音识别模型的列表。

GetSpeechTranslationModels()

获取可用语音翻译模型的列表。

SetProfanity(ProfanityOption)

设置不雅内容选项。 这可用于删除不雅字词或屏蔽它们。

SetProperty(PropertyId, String)

按 ID 设置属性值。

SetProperty(String, String)

按名称设置属性值。

SetSpeechRecognitionModel(String, String)

设置语音识别模型。

SetSpeechSynthesisOutputFormat(SpeechSynthesisOutputFormat)

设置语音合成音频输出格式。

SetSpeechSynthesisVoice(String, String)

设置用于嵌入式语音合成的语音。

SetSpeechTranslationModel(String, String)

设置语音翻译的模型。

适用于