GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2TextToSpeechSettings (google_api_dialogflow v0.66.2) View Source

Instructs the speech synthesizer on how to generate the output audio content.


  • enableTextToSpeech (type: boolean(), default: nil) - Optional. Indicates whether text to speech is enabled. Even when this field is false, other settings in this proto are still retained.
  • outputAudioEncoding (type: String.t, default: nil) - Required. Audio encoding of the synthesized audio content.
  • sampleRateHertz (type: integer(), default: nil) - Optional. The synthesis sample rate (in hertz) for this audio. If not provided, then the synthesizer will use the default sample rate based on the audio encoding. If this is different from the voice's natural sample rate, then the synthesizer will honor this request by converting to the desired sample rate (which might result in worse audio quality).
  • synthesizeSpeechConfigs (type: %{optional(String.t) => GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2SynthesizeSpeechConfig.t}, default: nil) - Optional. Configuration of how speech should be synthesized, mapping from language ( to SynthesizeSpeechConfig.

Link to this section Summary


Unwrap a decoded JSON object into its complex fields.

Link to this section Types


t() ::
    enableTextToSpeech: boolean() | nil,
    outputAudioEncoding: String.t() | nil,
    sampleRateHertz: integer() | nil,
        optional(String.t()) =>
      | nil

Link to this section Functions


decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.