SpeechToTextResponseUpdate Class
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.
Represents a single streaming response chunk from an ISpeechToTextClient.
public ref class SpeechToTextResponseUpdate
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001")]
public class SpeechToTextResponseUpdate
public class SpeechToTextResponseUpdate
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001")>]
type SpeechToTextResponseUpdate = class
type SpeechToTextResponseUpdate = class
Public Class SpeechToTextResponseUpdate
- Inheritance
-
SpeechToTextResponseUpdate
- Attributes
Remarks
SpeechToTextResponseUpdate is so named because it represents streaming updates to an speech to text generation. As such, it is considered erroneous for multiple updates that are part of the same audio speech to contain competing values. For example, some updates that are part of the same audio speech may have a null
value, and others may have a non-null
value, but all of those with a non-null
value must have the same value (e.g. ResponseId).
The relationship between SpeechToTextResponse and SpeechToTextResponseUpdate is codified in the ToSpeechToTextResponseAsync(IAsyncEnumerable<SpeechToTextResponseUpdate>, CancellationToken) and ToSpeechToTextResponseUpdates(), which enable bidirectional conversions between the two. Note, however, that the conversion may be slightly lossy, for example if multiple updates all have different RawRepresentation objects whereas there's only one slot for such an object available in RawRepresentation.
Constructors
SpeechToTextResponseUpdate() |
Initializes a new instance of the SpeechToTextResponseUpdate class. |
SpeechToTextResponseUpdate(IList<AIContent>) |
Initializes a new instance of the SpeechToTextResponseUpdate class. |
SpeechToTextResponseUpdate(String) |
Initializes a new instance of the SpeechToTextResponseUpdate class. |
Properties
AdditionalProperties |
Gets or sets additional properties for the update. |
Contents |
Gets or sets the generated content items. |
EndTime |
Gets or sets the end time of the text segment associated with this update in relation to the full audio speech length. |
Kind |
Gets or sets the kind of the generated text update. |
ModelId |
Gets or sets the model ID using in the creation of the speech to text of which this update is a part. |
RawRepresentation |
Gets or sets the raw representation of the generated text update from an underlying implementation. |
ResponseId |
Gets or sets the ID of the generated text response of which this update is a part. |
StartTime |
Gets or sets the start time of the text segment associated with this update in relation to the full audio speech length. |
Text |
Gets the text of this speech to text response. |
Methods
ToString() |
Returns a string that represents the current object. |