TtsBaseAudioConfig¶
- class oci.ai_speech.models.TtsBaseAudioConfig(**kwargs)¶
Bases:
TtsAudioConfigUse this audio config for saving the audio response at specified path.
Attributes:
A constant which can be used with the config_type property of a TtsAudioConfig.
[Required] Gets the config_type of this TtsAudioConfig.
[Required] Gets the save_path of this TtsBaseAudioConfig.
Methods:
__init__(**kwargs)Initializes a new TtsBaseAudioConfig object with values from keyword arguments.
get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- CONFIG_TYPE_BASE_AUDIO_CONFIG = 'BASE_AUDIO_CONFIG'¶
A constant which can be used with the config_type property of a TtsAudioConfig. This constant has a value of “BASE_AUDIO_CONFIG”
- __init__(**kwargs)¶
Initializes a new TtsBaseAudioConfig object with values from keyword arguments. The default value of the
config_typeattribute of this class isBASE_AUDIO_CONFIGand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
config_type (str) – The value to assign to the config_type property of this TtsBaseAudioConfig. Allowed values for this property are: “BASE_AUDIO_CONFIG”
save_path (str) – The value to assign to the save_path property of this TtsBaseAudioConfig.
- property config_type¶
[Required] Gets the config_type of this TtsAudioConfig. The audio config type to use for handling the audio output. Supported config types are: - BASE_AUDIO_CONFIG
Allowed values for this property are: “BASE_AUDIO_CONFIG”
- Returns
The config_type of this TtsAudioConfig.
- Return type
str
- static get_subtype(object_dictionary)¶
Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- property save_path¶
[Required] Gets the save_path of this TtsBaseAudioConfig. Specify the path where you want to save the audio response.
- Returns
The save_path of this TtsBaseAudioConfig.
- Return type
str