Freigeben über


AudioContent Constructors

Definition

Overloads

AudioContent()

Initializes a new instance of the AudioContent class.

AudioContent(String)

Initializes a new instance of the AudioContent class.

AudioContent(Uri)

Initializes a new instance of the AudioContent class.

AudioContent(ReadOnlyMemory<Byte>, String)

Initializes a new instance of the AudioContent class.

AudioContent()

Initializes a new instance of the AudioContent class.

[System.Text.Json.Serialization.JsonConstructor]
public AudioContent ();
Public Sub New ()
Attributes

Applies to

AudioContent(String)

Initializes a new instance of the AudioContent class.

public AudioContent (string dataUri);
new Microsoft.SemanticKernel.AudioContent : string -> Microsoft.SemanticKernel.AudioContent
Public Sub New (dataUri As String)

Parameters

dataUri
String

DataUri of the audio

Applies to

AudioContent(Uri)

Initializes a new instance of the AudioContent class.

public AudioContent (Uri uri);
new Microsoft.SemanticKernel.AudioContent : Uri -> Microsoft.SemanticKernel.AudioContent
Public Sub New (uri As Uri)

Parameters

uri
Uri

The URI of audio.

Applies to

AudioContent(ReadOnlyMemory<Byte>, String)

Initializes a new instance of the AudioContent class.

public AudioContent (ReadOnlyMemory<byte> data, string? mimeType);
new Microsoft.SemanticKernel.AudioContent : ReadOnlyMemory<byte> * string -> Microsoft.SemanticKernel.AudioContent
Public Sub New (data As ReadOnlyMemory(Of Byte), mimeType As String)

Parameters

data
ReadOnlyMemory<Byte>

Byte array of the audio

mimeType
String

Mime type of the audio

Applies to