你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
EmbeddedSpeechConfig 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
定义嵌入式 (脱机) 语音配置的类。
public sealed class EmbeddedSpeechConfig
type EmbeddedSpeechConfig = class
Public NotInheritable Class EmbeddedSpeechConfig
- 继承
-
EmbeddedSpeechConfig
属性
SpeechRecognitionModelName |
获取语音识别的模型名称。 |
SpeechRecognitionOutputFormat |
获取/设置语音识别输出格式 (简单或详细) 。 |
SpeechSynthesisOutputFormat |
获取合成语音的输出格式。
示例值: |
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) |
设置语音翻译的模型。 |
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈