presignSynthesizeSpeech

Presign a SynthesizeSpeechRequest using the configuration of this PollyClient.

Return

An HttpRequest which can be invoked within the specified time window

Parameters

input
duration

The amount of time from signing for which the request is valid


suspend fun PollyClient.presignSynthesizeSpeech(input: SynthesizeSpeechRequest, signer: AwsSigner = DefaultAwsSigner, configBlock: AwsSigningConfig.Builder.() -> Unit): HttpRequest

Presign a SynthesizeSpeechRequest using the configuration of this PollyClient.

Return

An HttpRequest which can be invoked within the specified time window

Parameters

input
signer

The specific implementation of AWS signer to use. Defaults to DefaultAwsSigner.

configBlock

A builder block for setting custom signing parameters. At a minimum the expiresAfter field must be set.