AudioTranslation Class

Definition

Result information for an operation that translated spoken audio into written text.

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

Properties

Duration

The total duration of the audio processed to produce accompanying translation information.

Language

The spoken language that was detected in the translated audio data. This is expressed as a two-letter ISO-639-1 language code like 'en' or 'fr'.

Segments

A collection of information about the timing, probabilities, and other detail of each processed audio segment.

Text

The translated text for the provided audio data.

Explicit Interface Implementations

IJsonModel<AudioTranslation>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<AudioTranslation>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AudioTranslation>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AudioTranslation>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<AudioTranslation>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to