Share via


TranscribedPhrase Class

Definition

Represents a transcribed phrase with timing, speaker, and word-level details.

public class TranscribedPhrase : System.ClientModel.Primitives.IJsonModel<Azure.AI.Speech.Transcription.TranscribedPhrase>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Speech.Transcription.TranscribedPhrase>
type TranscribedPhrase = class
    interface IJsonModel<TranscribedPhrase>
    interface IPersistableModel<TranscribedPhrase>
Public Class TranscribedPhrase
Implements IJsonModel(Of TranscribedPhrase), IPersistableModel(Of TranscribedPhrase)
Inheritance
TranscribedPhrase
Implements

Remarks

Collections exposed by this class (such as Words) use IList for compatibility but should be treated as read-only. Modifying collection contents may lead to unexpected behavior and is not supported.

Properties

Name Description
Confidence

The confidence value for the phrase.

Duration

The duration of the phrase.

Locale

The locale of the phrase.

Offset

The start offset of the phrase.

Speaker

A unique integer number that is assigned to each speaker detected in the audio without particular order. Only present if speaker diarization is enabled.

Text

The transcribed text of the phrase.

Words

The words that make up the phrase. Only present if word-level timestamps are enabled.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<TranscribedPhrase>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<TranscribedPhrase>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<TranscribedPhrase>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<TranscribedPhrase>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<TranscribedPhrase>.Write(ModelReaderWriterOptions)

Applies to