TtsOracleTts2NaturalModelDetails¶
-
class
oci.ai_speech.models.
TtsOracleTts2NaturalModelDetails
(**kwargs)¶ Bases:
oci.ai_speech.models.tts_oracle_model_details.TtsOracleModelDetails
Use this schema for specifying properties of TTS_2_NATURAL model from Oracle model family.
Attributes
MODEL_NAME_TTS_1_STANDARD
str(object=’’) -> str MODEL_NAME_TTS_2_NATURAL
str(object=’’) -> str language_code
Gets the language_code of this TtsOracleTts2NaturalModelDetails. model_name
[Required] Gets the model_name of this TtsOracleModelDetails. voice_id
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'¶
-
MODEL_NAME_TTS_2_NATURAL
= 'TTS_2_NATURAL'¶
-
__init__
(**kwargs)¶ Initializes a new TtsOracleTts2NaturalModelDetails object with values from keyword arguments. The default value of the
model_name
attribute of this class isTTS_2_NATURAL
and 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.
-
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 - zh-CN: Mandarin - China
Returns: The language_code of this TtsOracleTts2NaturalModelDetails. Return type: str
-
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
-
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
-