Share via


AudioFileDetails Class

  • java.lang.Object
    • com.azure.ai.speech.transcription.models.AudioFileDetails

public final class AudioFileDetails

The file details for the "audio" field.

Constructor Summary

Constructor Description
AudioFileDetails(BinaryData content)

Creates an instance of AudioFileDetails class.

Method Summary

Modifier and Type Method and Description
BinaryData getContent()

Get the content property: The content of the file.

String getContentType()

Get the contentType property: The content-type of the file.

String getFilename()

Get the filename property: The filename of the file.

AudioFileDetails setContentType(String contentType)

Set the contentType property: The content-type of the file.

AudioFileDetails setFilename(String filename)

Set the filename property: The filename of the file.

Methods inherited from java.lang.Object

Constructor Details

AudioFileDetails

public AudioFileDetails(BinaryData content)

Creates an instance of AudioFileDetails class.

Parameters:

content - the content value to set.

Method Details

getContent

public BinaryData getContent()

Get the content property: The content of the file.

Returns:

the content value.

getContentType

public String getContentType()

Get the contentType property: The content-type of the file.

Returns:

the contentType value.

getFilename

public String getFilename()

Get the filename property: The filename of the file. If not explicitly set, a filename will be auto-generated from the contentType.

Returns:

the filename value, or an auto-generated filename if not set.

setContentType

public AudioFileDetails setContentType(String contentType)

Set the contentType property: The content-type of the file.

Parameters:

contentType - the contentType value to set.

Returns:

the AudioFileDetails object itself.

setFilename

public AudioFileDetails setFilename(String filename)

Set the filename property: The filename of the file.

Parameters:

filename - the filename value to set.

Returns:

the AudioFileDetails object itself.

Applies to