AudioContent.Builder Class

  • java.lang.Object
    • com.microsoft.semantickernel.services.audio.AudioContent.Builder

public static class AudioContent.Builder

Represents a builder for audio content.

Constructor Summary

Constructor Description
Builder()

Method Summary

Modifier and Type Method and Description
AudioContent build()

Builds the audio content.

Builder withData(byte[] data)

Sets the audio data.

Builder withModelId(String modelId)

Sets the model ID.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

Builder

public Builder()

Method Details

build

public AudioContent build()

Builds the audio content.

Returns:

The audio content.

withData

public AudioContent.Builder withData(byte[] data)

Sets the audio data.

Parameters:

data - The audio data.

Returns:

The builder.

withModelId

public AudioContent.Builder withModelId(String modelId)

Sets the model ID.

Parameters:

modelId - The model ID.

Returns:

The builder.

Applies to