AudioFormatDetails

class oci.ai_speech.models.AudioFormatDetails(**kwargs)

Bases: object

Audio format details.

Methods

__init__(**kwargs) Initializes a new AudioFormatDetails object with values from keyword arguments.

Attributes

encoding Gets the encoding of this AudioFormatDetails.
format Gets the format of this AudioFormatDetails.
number_of_channels Gets the number_of_channels of this AudioFormatDetails.
sample_rate_in_hz Gets the sample_rate_in_hz of this AudioFormatDetails.
__init__(**kwargs)

Initializes a new AudioFormatDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • format (str) – The value to assign to the format property of this AudioFormatDetails.
  • number_of_channels (int) – The value to assign to the number_of_channels property of this AudioFormatDetails.
  • encoding (str) – The value to assign to the encoding property of this AudioFormatDetails.
  • sample_rate_in_hz (int) – The value to assign to the sample_rate_in_hz property of this AudioFormatDetails.
encoding

Gets the encoding of this AudioFormatDetails. Input file encoding. Example - PCM.

Returns:The encoding of this AudioFormatDetails.
Return type:str
format

Gets the format of this AudioFormatDetails. Input file format. Example - WAV.

Returns:The format of this AudioFormatDetails.
Return type:str
number_of_channels

Gets the number_of_channels of this AudioFormatDetails. Input file number of channels.

Returns:The number_of_channels of this AudioFormatDetails.
Return type:int
sample_rate_in_hz

Gets the sample_rate_in_hz of this AudioFormatDetails. Input file sampleRate. Example - 16000

Returns:The sample_rate_in_hz of this AudioFormatDetails.
Return type:int