How to set the sample rate (audio quality)
The speech_sample_rate parameter sets the output sample rate in Hz. It is optional.
Values the API accepts
If you omit speech_sample_rate, the API returns audio at 22050 Hz.
Values above 24000 (32000, 44100, 48000) are accepted on REST only. Streaming endpoints reject them with 400 Bad Request.