TtsOracleTts2NaturalModelDetails¶
- class oci.ai_speech.models.TtsOracleTts2NaturalModelDetails(**kwargs)¶
Bases:
TtsOracleModelDetailsUse this schema for specifying properties of TTS_2_NATURAL model from Oracle model family.
Attributes:
A constant which can be used with the model_name property of a TtsOracleModelDetails.
A constant which can be used with the model_name property of a TtsOracleModelDetails.
Gets the language_code of this TtsOracleTts2NaturalModelDetails.
[Required] Gets the model_name of this TtsOracleModelDetails.
Gets the voice_id of this TtsOracleTts2NaturalModelDetails.
Methods:
__init__(**kwargs)Initializes a new TtsOracleTts2NaturalModelDetails 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.
- MODEL_NAME_TTS_1_STANDARD = 'TTS_1_STANDARD'¶
A constant which can be used with the model_name property of a TtsOracleModelDetails. This constant has a value of “TTS_1_STANDARD”
- MODEL_NAME_TTS_2_NATURAL = 'TTS_2_NATURAL'¶
A constant which can be used with the model_name property of a TtsOracleModelDetails. This constant has a value of “TTS_2_NATURAL”
- __init__(**kwargs)¶
Initializes a new TtsOracleTts2NaturalModelDetails object with values from keyword arguments. The default value of the
model_nameattribute of this class isTTS_2_NATURALand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
model_name (str) – The value to assign to the model_name property of this TtsOracleTts2NaturalModelDetails. Allowed values for this property are: “TTS_1_STANDARD”, “TTS_2_NATURAL”
voice_id (str) – The value to assign to the voice_id property of this TtsOracleTts2NaturalModelDetails.
language_code (str) – The value to assign to the language_code property of this TtsOracleTts2NaturalModelDetails.
- 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 language_code¶
Gets the language_code of this TtsOracleTts2NaturalModelDetails. Locale value as per given in [https://datatracker.ietf.org/doc/html/rfc5646]. Default en-US - en-US: English - United States - en-GB: English - Great Britain - es-ES: Spanish - Spain - pt-BR: Portuguese - Brazil - hi-IN: Hindi - India - fr-FR: French - France - it-IT: Italian - Italy - ja-JP: Japanese - Japan - cmn-CN: Mandarin - China
- Returns
The language_code of this TtsOracleTts2NaturalModelDetails.
- Return type
str
- property model_name¶
[Required] Gets the model_name of this TtsOracleModelDetails. The fully qualified name of model to use for speech generation. The available models are: - TTS_1_STANDARD - TTS_2_NATURAL
Allowed values for this property are: “TTS_1_STANDARD”, “TTS_2_NATURAL”
- Returns
The model_name of this TtsOracleModelDetails.
- Return type
str
- property voice_id¶
Gets the voice_id of this TtsOracleTts2NaturalModelDetails. Speaker in whose voice the user wants the output speech to be in. The possible values for voiceId can be obtained by calling
list_voices()api.- Returns
The voice_id of this TtsOracleTts2NaturalModelDetails.
- Return type
str