CallAutomationModelFactory.SpeechResult Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| SpeechResult(String, Nullable<Double>) |
Initializes a new instance of SpeechResult. |
| SpeechResult(String, Nullable<Double>, String, SentimentAnalysisResult) |
Initializes a new instance of SpeechResult. |
SpeechResult(String, Nullable<Double>)
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.
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)
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.
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.