CallAutomationModelFactory.SpeechResult Method

Definition

Overloads

SpeechResult(String, Nullable<Double>)

Source:
CallAutomationModelFactory.cs

Initializes a new instance of SpeechResult.

public static Azure.Communication.CallAutomation.SpeechResult SpeechResult(string speech = default, double? confidence = default);
static member SpeechResult : string * Nullable<double> -> Azure.Communication.CallAutomation.SpeechResult
Public Shared Function SpeechResult (Optional speech As String = Nothing, Optional confidence As Nullable(Of Double) = Nothing) As SpeechResult

Parameters

speech
String

The recognized speech in string.

confidence
Nullable<Double>

The confidence level of the recognized speech, if available, ranges from 0.0 to 1.0.

Returns

A new SpeechResult instance for mocking.

Applies to

SpeechResult(String, Nullable<Double>, String, SentimentAnalysisResult)

Source:
CallAutomationModelFactory.cs

Initializes a new instance of SpeechResult.

public static Azure.Communication.CallAutomation.SpeechResult SpeechResult(string speech = default, double? confidence = default, string languageIdentified = default, Azure.Communication.CallAutomation.SentimentAnalysisResult sentimentAnalysisResult = default);
static member SpeechResult : string * Nullable<double> * string * Azure.Communication.CallAutomation.SentimentAnalysisResult -> Azure.Communication.CallAutomation.SpeechResult
Public Shared Function SpeechResult (Optional speech As String = Nothing, Optional confidence As Nullable(Of Double) = Nothing, Optional languageIdentified As String = Nothing, Optional sentimentAnalysisResult As SentimentAnalysisResult = Nothing) As SpeechResult

Parameters

speech
String

The recognized speech in string.

confidence
Nullable<Double>

The confidence level of the recognized speech, if available, ranges from 0.0 to 1.0.

languageIdentified
String

The identified language.

sentimentAnalysisResult
SentimentAnalysisResult

Gets or sets the sentiment analysis result.

Returns

A new SpeechResult instance for mocking.

Applies to