File manager - Edit - /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/ai_speech/models/tts_oracle_tts2_natural_model_details.py
Back
# coding: utf-8 # Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220101 from .tts_oracle_model_details import TtsOracleModelDetails from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class TtsOracleTts2NaturalModelDetails(TtsOracleModelDetails): """ Use this schema for specifying properties of TTS_2_NATURAL model from Oracle model family. """ def __init__(self, **kwargs): """ Initializes a new TtsOracleTts2NaturalModelDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.ai_speech.models.TtsOracleTts2NaturalModelDetails.model_name` attribute of this class is ``TTS_2_NATURAL`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param model_name: The value to assign to the model_name property of this TtsOracleTts2NaturalModelDetails. Allowed values for this property are: "TTS_1_STANDARD", "TTS_2_NATURAL" :type model_name: str :param voice_id: The value to assign to the voice_id property of this TtsOracleTts2NaturalModelDetails. :type voice_id: str :param language_code: The value to assign to the language_code property of this TtsOracleTts2NaturalModelDetails. :type language_code: str """ self.swagger_types = { 'model_name': 'str', 'voice_id': 'str', 'language_code': 'str' } self.attribute_map = { 'model_name': 'modelName', 'voice_id': 'voiceId', 'language_code': 'languageCode' } self._model_name = None self._voice_id = None self._language_code = None self._model_name = 'TTS_2_NATURAL' @property def voice_id(self): """ 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 :func:`list_voices` api. :return: The voice_id of this TtsOracleTts2NaturalModelDetails. :rtype: str """ return self._voice_id @voice_id.setter def voice_id(self, voice_id): """ Sets 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 :func:`list_voices` api. :param voice_id: The voice_id of this TtsOracleTts2NaturalModelDetails. :type: str """ self._voice_id = voice_id @property def language_code(self): """ 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 :return: The language_code of this TtsOracleTts2NaturalModelDetails. :rtype: str """ return self._language_code @language_code.setter def language_code(self, language_code): """ Sets 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 :param language_code: The language_code of this TtsOracleTts2NaturalModelDetails. :type: str """ self._language_code = language_code def __repr__(self): return formatted_flat_dict(self) def __eq__(self, other): if other is None: return False return self.__dict__ == other.__dict__ def __ne__(self, other): return not self == other
| ver. 1.4 |
Github
|
.
| PHP 8.2.32 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings