# This is an automatically generated code sample.
# To make this code sample work in your Oracle Cloud tenancy,
# please replace the values for any parameters whose current values do not fit
# your use case (such as resource IDs, strings containing ‘EXAMPLE’ or ‘unique_id’, and
# boolean, number, and enum parameters with values not fitting your use case).
require 'oci'
# Create a default config using DEFAULT profile in default location
# Refer to https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm#SDK_and_CLI_Configuration_File for more info
config = OCI::ConfigFileLoader.load_config
# Initialize service client with default config file
ai_speech_client = OCI::AiSpeech::AIServiceSpeechClient.new(config: config)
# Send the request to service, some parameters are not required, see API doc for more info
update_customization_response =
ai_speech_client.update_customization(
'ocid1.test.oc1..<unique_ID>EXAMPLE-customizationId-Value',
OCI::AiSpeech::Models::UpdateCustomizationDetails.new(
alias: 'EXAMPLE-alias-Value',
display_name: 'EXAMPLE-displayName-Value',
description: 'EXAMPLE-description-Value',
model_details:
OCI::AiSpeech::Models::CustomizationModelDetails.new(
domain: 'GENERIC', language_code: 'EXAMPLE-languageCode-Value'
),
training_dataset:
OCI::AiSpeech::Models::EntityListDataset.new(
dataset_type: 'ENTITY_LIST',
reference_examples: %w[EXAMPLE--Value],
entity_list: [
OCI::AiSpeech::Models::EntityList.new(
entity_type: 'EXAMPLE-entityType-Value',
alias: 'EXAMPLE-alias-Value',
id: 'ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value',
entities: [
OCI::AiSpeech::Models::Entity.new(
entity_value: 'EXAMPLE-entityValue-Value',
pronunciations: [
OCI::AiSpeech::Models::Pronunciation.new(
sounds_like: 'EXAMPLE-soundsLike-Value',
audio:
OCI::AiSpeech::Models::ObjectListDataset.new(
location_type: 'OBJECT_LIST',
bucket_name: 'EXAMPLE-bucketName-Value',
namespace_name: 'EXAMPLE-namespaceName-Value',
object_names: %w[EXAMPLE--Value]
)
)
],
weight: 8341.719
)
]
)
]
),
freeform_tags: {
'EXAMPLE_KEY_h1RaA' => 'EXAMPLE_VALUE_lryTo62TmB96TQ3yFl83'
},
defined_tags: {
'EXAMPLE_KEY_LR5YV' => { 'EXAMPLE_KEY_0ejxu' => 'EXAMPLE--Value' }
}
)
)
# Get the data from response
puts "#{update_customization_response.data}"