CallAutomationModelFactory.TranscriptionData Method

Definition

Initializes a new instance of transcription data.

public static Azure.Communication.CallAutomation.TranscriptionData TranscriptionData(string text, string format, double confidence, long offset, long duration, System.Collections.Generic.IEnumerable<Azure.Communication.CallAutomation.WordData> words, string participantRawID, Azure.Communication.CallAutomation.TranscriptionResultState resultState);
static member TranscriptionData : string * string * double * int64 * int64 * seq<Azure.Communication.CallAutomation.WordData> * string * Azure.Communication.CallAutomation.TranscriptionResultState -> Azure.Communication.CallAutomation.TranscriptionData
Public Shared Function TranscriptionData (text As String, format As String, confidence As Double, offset As Long, duration As Long, words As IEnumerable(Of WordData), participantRawID As String, resultState As TranscriptionResultState) As TranscriptionData

Parameters

text
String

The transcribed text.

format
String

The format of the transcription.

confidence
Double

The confidence score of the transcription.

offset
Int64

The offset of the transcription in the audio stream.

duration
Int64

The duration of the transcription in milliseconds.

words
IEnumerable<WordData>

The list of words in the transcription.

participantRawID
String

The raw ID of the participant who spoke.

resultState
TranscriptionResultState

The result state of the transcription.

Returns

A new instance of TranscriptionData(String, String, Double, Int64, Int64, IEnumerable<WordData>, String, TranscriptionResultState) for mocking.

Applies to