TextToSpeechRequest

data class TextToSpeechRequest(val voiceId: String, val text: String, val modelId: String? = null, val languageCode: String? = null, val voiceSettings: VoiceSettings? = null, val outputFormat: OutputFormat = OutputFormat.Mp3_44100_128, val enableLogging: Boolean = true)(source)

Input for complete or HTTP-streamed text-to-speech generation.

Constructors

Link copied to clipboard
constructor(voiceId: String, text: String, modelId: String? = null, languageCode: String? = null, voiceSettings: VoiceSettings? = null, outputFormat: OutputFormat = OutputFormat.Mp3_44100_128, enableLogging: Boolean = true)

Properties

Link copied to clipboard

Whether request logging is enabled.

Link copied to clipboard

Language code, or null to let the service infer it.

Link copied to clipboard

Model identifier, or null to use the service default.

Link copied to clipboard

Encoding and sample rate of the returned audio.

Link copied to clipboard

Non-blank text to synthesize.

Link copied to clipboard

Identifier of the voice that should speak the text.

Link copied to clipboard

Optional voice tuning parameters.