View Source GoogleApi.TextToSpeech.V1beta1.Model.GenerateVoiceCloningKeyRequest (google_api_text_to_speech v0.18.0)

Request message for the GenerateVoiceCloningKey method.

Attributes

  • consentScript (type: String.t, default: nil) - Required. The script used for the voice talent statement. The script will be provided to the caller through other channels. It must be returned unchanged in this field.
  • languageCode (type: String.t, default: nil) - Required. The language of the supplied audio as a BCP-47 language tag. Example: "en-US". See Language Support for a list of the currently supported language codes.
  • referenceAudio (type: GoogleApi.TextToSpeech.V1beta1.Model.InputAudio.t, default: nil) - Required. The training audio used to create voice clone. This is currently limited to LINEAR16 PCM WAV files mono audio with 24khz sample rate. This needs to be specified in [InputAudio.audio_config], other values will be explicitly rejected.
  • voiceTalentConsent (type: GoogleApi.TextToSpeech.V1beta1.Model.InputAudio.t, default: nil) - Required. The voice talent audio used to verify consent to voice clone.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.TextToSpeech.V1beta1.Model.GenerateVoiceCloningKeyRequest{
  consentScript: String.t() | nil,
  languageCode: String.t() | nil,
  referenceAudio: GoogleApi.TextToSpeech.V1beta1.Model.InputAudio.t() | nil,
  voiceTalentConsent: GoogleApi.TextToSpeech.V1beta1.Model.InputAudio.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.