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

Conversation.CreateConversationAsync(SpeechConfig, String) 方法

定义

异步创建新会话。

public static System.Threading.Tasks.Task<Microsoft.CognitiveServices.Speech.Transcription.Conversation> CreateConversationAsync (Microsoft.CognitiveServices.Speech.SpeechConfig speechConfig, string conversationId = default);
static member CreateConversationAsync : Microsoft.CognitiveServices.Speech.SpeechConfig * string -> System.Threading.Tasks.Task<Microsoft.CognitiveServices.Speech.Transcription.Conversation>
Public Shared Function CreateConversationAsync (speechConfig As SpeechConfig, Optional conversationId As String = Nothing) As Task(Of Conversation)

参数

speechConfig
SpeechConfig

要使用的语音配置。

conversationId
String

(可选) 要加入的对话的标识符。

返回

注解

在此异步操作创建会话后,为 Conversation。ConversationId 包含会话标识符。

适用于