Class: Google::Cloud::TextToSpeech::V1::CustomVoiceParams

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/texttospeech/v1/cloud_tts.rb

Overview

Description of the custom voice to be synthesized.

Defined Under Namespace

Modules: ReportedUsage

Instance Attribute Summary collapse

Instance Attribute Details

#model::String

Returns Required. The name of the AutoML model that synthesizes the custom voice.

Returns:

  • (::String)

    Required. The name of the AutoML model that synthesizes the custom voice.



191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
# File 'proto_docs/google/cloud/texttospeech/v1/cloud_tts.rb', line 191

class CustomVoiceParams
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The usage of the synthesized audio. You must report your honest and
  # correct usage of the service as it's regulated by contract and will cause
  # significant difference in billing.
  module ReportedUsage
    # Request with reported usage unspecified will be rejected.
    REPORTED_USAGE_UNSPECIFIED = 0

    # For scenarios where the synthesized audio is not downloadable and can
    # only be used once. For example, real-time request in IVR system.
    REALTIME = 1

    # For scenarios where the synthesized audio is downloadable and can be
    # reused. For example, the synthesized audio is downloaded, stored in
    # customer service system and played repeatedly.
    OFFLINE = 2
  end
end

#reported_usage::Google::Cloud::TextToSpeech::V1::CustomVoiceParams::ReportedUsage

Returns Optional. The usage of the synthesized audio to be reported.

Returns:



191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
# File 'proto_docs/google/cloud/texttospeech/v1/cloud_tts.rb', line 191

class CustomVoiceParams
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The usage of the synthesized audio. You must report your honest and
  # correct usage of the service as it's regulated by contract and will cause
  # significant difference in billing.
  module ReportedUsage
    # Request with reported usage unspecified will be rejected.
    REPORTED_USAGE_UNSPECIFIED = 0

    # For scenarios where the synthesized audio is not downloadable and can
    # only be used once. For example, real-time request in IVR system.
    REALTIME = 1

    # For scenarios where the synthesized audio is downloadable and can be
    # reused. For example, the synthesized audio is downloaded, stored in
    # customer service system and played repeatedly.
    OFFLINE = 2
  end
end