GoogleCloudDialogflowV2TextToSpeechSettingsResponse

data class GoogleCloudDialogflowV2TextToSpeechSettingsResponse(val enableTextToSpeech: Boolean, val outputAudioEncoding: String, val sampleRateHertz: Int, val synthesizeSpeechConfigs: Map<String, String>)

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

Constructors

fun GoogleCloudDialogflowV2TextToSpeechSettingsResponse(enableTextToSpeech: Boolean, outputAudioEncoding: String, sampleRateHertz: Int, synthesizeSpeechConfigs: Map<String, String>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Optional. Indicates whether text to speech is enabled. Even when this field is false, other settings in this proto are still retained.

Link copied to clipboard

Audio encoding of the synthesized audio content.

Link copied to clipboard

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).

Link copied to clipboard

Optional. Configuration of how speech should be synthesized, mapping from language (https://cloud.google.com/dialogflow/docs/reference/language) to SynthesizeSpeechConfig.