AudioFileDetails Class
- java.
lang. Object - com.
azure. ai. speech. transcription. models. AudioFileDetails
- com.
public final class AudioFileDetails
The file details for the "audio" field.
Constructor Summary
| Constructor | Description |
|---|---|
| AudioFileDetails(BinaryData content) |
Creates an instance of Audio |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Binary |
getContent()
Get the content property: The content of the file. |
| String |
getContentType()
Get the content |
| String |
getFilename()
Get the filename property: The filename of the file. |
|
Audio |
setContentType(String contentType)
Set the content |
|
Audio |
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:
Method Details
getContent
public BinaryData getContent()
Get the content property: The content of the file.
Returns:
getContentType
public String getContentType()
Get the contentType property: The content-type of the file.
Returns:
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:
setContentType
public AudioFileDetails setContentType(String contentType)
Set the contentType property: The content-type of the file.
Parameters:
Returns:
setFilename
public AudioFileDetails setFilename(String filename)
Set the filename property: The filename of the file.
Parameters:
Returns: