Udostępnij za pośrednictwem


ConversationsModelFactory.TranscriptConversationItem Method

Definition

Initializes a new instance of TranscriptConversationItem.

public static Azure.AI.Language.Conversations.Models.TranscriptConversationItem TranscriptConversationItem (string id = default, string participantId = default, string language = default, Azure.AI.Language.Conversations.Models.InputModality? modality = default, Azure.AI.Language.Conversations.Models.ParticipantRole? role = default, string inverseTextNormalized = default, string maskedInverseTextNormalized = default, string text = default, string lexical = default, System.Collections.Generic.IEnumerable<Azure.AI.Language.Conversations.Models.WordLevelTiming> wordLevelTimings = default, Azure.AI.Language.Conversations.Models.ConversationItemLevelTiming conversationItemLevelTiming = default);
static member TranscriptConversationItem : string * string * string * Nullable<Azure.AI.Language.Conversations.Models.InputModality> * Nullable<Azure.AI.Language.Conversations.Models.ParticipantRole> * string * string * string * string * seq<Azure.AI.Language.Conversations.Models.WordLevelTiming> * Azure.AI.Language.Conversations.Models.ConversationItemLevelTiming -> Azure.AI.Language.Conversations.Models.TranscriptConversationItem
Public Shared Function TranscriptConversationItem (Optional id As String = Nothing, Optional participantId As String = Nothing, Optional language As String = Nothing, Optional modality As Nullable(Of InputModality) = Nothing, Optional role As Nullable(Of ParticipantRole) = Nothing, Optional inverseTextNormalized As String = Nothing, Optional maskedInverseTextNormalized As String = Nothing, Optional text As String = Nothing, Optional lexical As String = Nothing, Optional wordLevelTimings As IEnumerable(Of WordLevelTiming) = Nothing, Optional conversationItemLevelTiming As ConversationItemLevelTiming = Nothing) As TranscriptConversationItem

Parameters

id
String

The ID of a conversation item.

participantId
String

The participant ID of a conversation item.

language
String

The override language of a conversation item in BCP 47 language representation.

modality
Nullable<InputModality>

Enumeration of supported conversational modalities.

role
Nullable<ParticipantRole>

Role of the participant.

inverseTextNormalized
String

Inverse text normalization (ITN) representation of input. The inverse-text-normalized form is the recognized text from Microsoft's speech-to-text API, with phone numbers, numbers, abbreviations, and other transformations applied.

maskedInverseTextNormalized
String

Inverse-text-normalized format with profanity masking applied.

text
String

Display form of the recognized text from the speech-to-text API, with punctuation and capitalization added.

lexical
String

Lexical form of the recognized text from the speech-to-text API, with the actual words recognized.

wordLevelTimings
IEnumerable<WordLevelTiming>

List of word-level audio timing information.

conversationItemLevelTiming
ConversationItemLevelTiming

Audio timing at the conversation item level. This still can help with AI quality if word-level audio timings are not available.

Returns

A new TranscriptConversationItem instance for mocking.

Applies to