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

Connection.FromSpeechSynthesizer(SpeechSynthesizer) 方法

定义

从指定的语音合成器获取 Connection 实例,用于观察和管理与语音服务的连接和断开连接。 在版本 1.17.0 中添加

public static Microsoft.CognitiveServices.Speech.Connection FromSpeechSynthesizer (Microsoft.CognitiveServices.Speech.SpeechSynthesizer speechSynthesizer);
static member FromSpeechSynthesizer : Microsoft.CognitiveServices.Speech.SpeechSynthesizer -> Microsoft.CognitiveServices.Speech.Connection
Public Shared Function FromSpeechSynthesizer (speechSynthesizer As SpeechSynthesizer) As Connection

参数

speechSynthesizer
SpeechSynthesizer

与连接关联的语音合成器。

返回

语音合成器的连接实例。

适用于