sampleRateHertz property

int? sampleRateHertz
getter/setter pair

The synthesis sample rate (in hertz) for this audio.

When this is specified in SynthesizeSpeechRequest, 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), unless the specified sample rate is not supported for the encoding chosen, in which case it will fail the request and return google.rpc.Code.INVALID_ARGUMENT.

Optional.

Implementation

core.int? sampleRateHertz;