File: //lib/mysqlsh/lib/python3.8/site-packages/oci/ai_speech/models/realtime_model_details.py
# coding: utf-8
# Copyright (c) 2016, 2025, 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 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 RealtimeModelDetails(object):
"""
Details of the ASR model used by the realtime speech service.
"""
#: A constant which can be used with the domain property of a RealtimeModelDetails.
#: This constant has a value of "GENERIC"
DOMAIN_GENERIC = "GENERIC"
#: A constant which can be used with the domain property of a RealtimeModelDetails.
#: This constant has a value of "MEDICAL"
DOMAIN_MEDICAL = "MEDICAL"
def __init__(self, **kwargs):
"""
Initializes a new RealtimeModelDetails object with values from keyword arguments.
The following keyword arguments are supported (corresponding to the getters/setters of this class):
:param domain:
The value to assign to the domain property of this RealtimeModelDetails.
Allowed values for this property are: "GENERIC", "MEDICAL"
:type domain: str
:param language_code:
The value to assign to the language_code property of this RealtimeModelDetails.
:type language_code: str
"""
self.swagger_types = {
'domain': 'str',
'language_code': 'str'
}
self.attribute_map = {
'domain': 'domain',
'language_code': 'languageCode'
}
self._domain = None
self._language_code = None
@property
def domain(self):
"""
Gets the domain of this RealtimeModelDetails.
Model Domain.
Allowed values for this property are: "GENERIC", "MEDICAL"
:return: The domain of this RealtimeModelDetails.
:rtype: str
"""
return self._domain
@domain.setter
def domain(self, domain):
"""
Sets the domain of this RealtimeModelDetails.
Model Domain.
:param domain: The domain of this RealtimeModelDetails.
:type: str
"""
allowed_values = ["GENERIC", "MEDICAL"]
if not value_allowed_none_or_none_sentinel(domain, allowed_values):
raise ValueError(
f"Invalid value for `domain`, must be None or one of {allowed_values}"
)
self._domain = domain
@property
def language_code(self):
"""
Gets the language_code of this RealtimeModelDetails.
Locale value as per given in [https://datatracker.ietf.org/doc/html/rfc5646].
- en-US: English - United States
- es-ES: Spanish - Spain
- pt-BR: Portuguese - Brazil
- en-GB: English - Great Britain
- en-AU: English - Australia
- en-IN: English - India
- hi-IN: Hindi - India
- fr-FR: French - France
- de-DE: German - Germany
- it-IT: Italian - Italy
:return: The language_code of this RealtimeModelDetails.
:rtype: str
"""
return self._language_code
@language_code.setter
def language_code(self, language_code):
"""
Sets the language_code of this RealtimeModelDetails.
Locale value as per given in [https://datatracker.ietf.org/doc/html/rfc5646].
- en-US: English - United States
- es-ES: Spanish - Spain
- pt-BR: Portuguese - Brazil
- en-GB: English - Great Britain
- en-AU: English - Australia
- en-IN: English - India
- hi-IN: Hindi - India
- fr-FR: French - France
- de-DE: German - Germany
- it-IT: Italian - Italy
:param language_code: The language_code of this RealtimeModelDetails.
: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