View Source GoogleApi.TextToSpeech.V1beta1.Model.SynthesisInput (google_api_text_to_speech v0.20.1)
Contains text input to be synthesized. Either text
or ssml
must be supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT. The input size is limited to 5000 bytes.
Attributes
-
customPronunciations
(type:GoogleApi.TextToSpeech.V1beta1.Model.CustomPronunciations.t
, default:nil
) - Optional. The pronunciation customizations to be applied to the input. If this is set, the input will be synthesized using the given pronunciation customizations. The initial support will be for EFIGS (English, French, Italian, German, Spanish) languages, as provided in VoiceSelectionParams. Journey and Instant Clone voices are not supported yet. In order to customize the pronunciation of a phrase, there must be an exact match of the phrase in the input types. If using SSML, the phrase must not be inside a phoneme tag (entirely or partially). -
multiSpeakerMarkup
(type:GoogleApi.TextToSpeech.V1beta1.Model.MultiSpeakerMarkup.t
, default:nil
) - The multi-speaker input to be synthesized. Only applicable for multi-speaker synthesis. -
ssml
(type:String.t
, default:nil
) - The SSML document to be synthesized. The SSML document must be valid and well-formed. Otherwise the RPC will fail and return google.rpc.Code.INVALID_ARGUMENT. For more information, see SSML. -
text
(type:String.t
, default:nil
) - The raw text to be synthesized.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.TextToSpeech.V1beta1.Model.SynthesisInput{ customPronunciations: GoogleApi.TextToSpeech.V1beta1.Model.CustomPronunciations.t() | nil, multiSpeakerMarkup: GoogleApi.TextToSpeech.V1beta1.Model.MultiSpeakerMarkup.t() | nil, ssml: String.t() | nil, text: String.t() | nil }
Functions
Unwrap a decoded JSON object into its complex fields.