Поделиться через


AudioAnalyzerPreset Class

Definition

The Audio Analyzer preset applies a pre-defined set of AI-based analysis operations, including speech transcription. Currently, the preset supports processing of content with a single audio track. Please note AudioAnalyzerPreset is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include VideoAnalyzerPreset.

public class AudioAnalyzerPreset : Azure.ResourceManager.Media.Models.MediaTransformPreset, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Media.Models.AudioAnalyzerPreset>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Media.Models.AudioAnalyzerPreset>
public class AudioAnalyzerPreset : Azure.ResourceManager.Media.Models.MediaTransformPreset
type AudioAnalyzerPreset = class
    inherit MediaTransformPreset
    interface IJsonModel<AudioAnalyzerPreset>
    interface IPersistableModel<AudioAnalyzerPreset>
type AudioAnalyzerPreset = class
    inherit MediaTransformPreset
Public Class AudioAnalyzerPreset
Inherits MediaTransformPreset
Implements IJsonModel(Of AudioAnalyzerPreset), IPersistableModel(Of AudioAnalyzerPreset)
Public Class AudioAnalyzerPreset
Inherits MediaTransformPreset
Inheritance
AudioAnalyzerPreset
Derived
Implements

Constructors

AudioAnalyzerPreset()

Initializes a new instance of AudioAnalyzerPreset.

Properties

AudioLanguage

The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). If you know the language of your content, it is recommended that you specify it. The language must be specified explicitly for AudioAnalysisMode::Basic, since automatic language detection is not included in basic mode. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'." The list of supported languages is available here: https://go.microsoft.com/fwlink/?linkid=2109463.

ExperimentalOptions

Dictionary containing key value pairs for parameters not exposed in the preset itself.

Mode

Determines the set of audio analysis operations to be performed. If unspecified, the Standard AudioAnalysisMode would be chosen.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<AudioAnalyzerPreset>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<AudioAnalyzerPreset>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IJsonModel<MediaTransformPreset>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

(Inherited from MediaTransformPreset)
IJsonModel<MediaTransformPreset>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from MediaTransformPreset)
IPersistableModel<AudioAnalyzerPreset>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AudioAnalyzerPreset>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<AudioAnalyzerPreset>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IPersistableModel<MediaTransformPreset>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from MediaTransformPreset)
IPersistableModel<MediaTransformPreset>.GetFormatFromOptions(ModelReaderWriterOptions)

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

(Inherited from MediaTransformPreset)
IPersistableModel<MediaTransformPreset>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from MediaTransformPreset)

Applies to