Share via


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

AudioDataStream.FromResult 方法

定义

重载

FromResult(KeywordRecognitionResult)

获取与给定关键字 (keyword) 识别结果关联的内存支持的音频数据流,该数据流设置为说出关键字 (keyword) 之前的时刻。

FromResult(SpeechSynthesisResult)

使用指定的合成语音创建内存支持的音频数据流。

FromResult(KeywordRecognitionResult)

获取与给定关键字 (keyword) 识别结果关联的内存支持的音频数据流,该数据流设置为说出关键字 (keyword) 之前的时刻。

public static Microsoft.CognitiveServices.Speech.AudioDataStream FromResult (Microsoft.CognitiveServices.Speech.KeywordRecognitionResult result);
static member FromResult : Microsoft.CognitiveServices.Speech.KeywordRecognitionResult -> Microsoft.CognitiveServices.Speech.AudioDataStream
Public Shared Function FromResult (result As KeywordRecognitionResult) As AudioDataStream

参数

result
KeywordRecognitionResult

关键字 (keyword) 识别结果。

返回

定位到关键字 (keyword) 言语前一刻的语音音频流。

适用于

FromResult(SpeechSynthesisResult)

使用指定的合成语音创建内存支持的音频数据流。

public static Microsoft.CognitiveServices.Speech.AudioDataStream FromResult (Microsoft.CognitiveServices.Speech.SpeechSynthesisResult result);
static member FromResult : Microsoft.CognitiveServices.Speech.SpeechSynthesisResult -> Microsoft.CognitiveServices.Speech.AudioDataStream
Public Shared Function FromResult (result As SpeechSynthesisResult) As AudioDataStream

参数

result
SpeechSynthesisResult

语音合成结果。

返回

音频数据流。

注解

另请参阅: 获取内存中流的结果

适用于