Share via


AudioContent Constructors

Definition

Overloads

AudioContent(ReadOnlyMemory<Byte>, String)
AudioContent(String, String)
AudioContent(Uri, String)

AudioContent(ReadOnlyMemory<Byte>, String)

public AudioContent (ReadOnlyMemory<byte> data, string? mediaType = default);
new Microsoft.Extensions.AI.AudioContent : ReadOnlyMemory<byte> * string -> Microsoft.Extensions.AI.AudioContent
Public Sub New (data As ReadOnlyMemory(Of Byte), Optional mediaType As String = Nothing)

Parameters

mediaType
String

Applies to

AudioContent(String, String)

[System.Text.Json.Serialization.JsonConstructor]
public AudioContent (string uri, string? mediaType = default);
[<System.Text.Json.Serialization.JsonConstructor>]
new Microsoft.Extensions.AI.AudioContent : string * string -> Microsoft.Extensions.AI.AudioContent
Public Sub New (uri As String, Optional mediaType As String = Nothing)

Parameters

uri
String
mediaType
String
Attributes

Applies to

AudioContent(Uri, String)

public AudioContent (Uri uri, string? mediaType = default);
new Microsoft.Extensions.AI.AudioContent : Uri * string -> Microsoft.Extensions.AI.AudioContent
Public Sub New (uri As Uri, Optional mediaType As String = Nothing)

Parameters

uri
Uri
mediaType
String

Applies to