@@ -158,7 +158,8 @@ def get_voice(voice:, customization_id: nil)
158158 # The service can return audio in the following formats (MIME types).
159159 # * Where indicated, you can optionally specify the sampling rate (`rate`) of the
160160 # audio. You must specify a sampling rate for the `audio/l16` and `audio/mulaw`
161- # formats. A specified sampling rate must lie in the range of 8 kHz to 192 kHz.
161+ # formats. A specified sampling rate must lie in the range of 8 kHz to 192 kHz. Some
162+ # formats restrict the sampling rate to certain values, as noted.
162163 # * For the `audio/l16` format, you can optionally specify the endianness
163164 # (`endianness`) of the audio: `endianness=big-endian` or
164165 # `endianness=little-endian`.
@@ -167,55 +168,33 @@ def get_voice(voice:, customization_id: nil)
167168 # of the response audio. If you omit an audio format altogether, the service returns
168169 # the audio in Ogg format with the Opus codec (`audio/ogg;codecs=opus`). The service
169170 # always returns single-channel audio.
170- # * `audio/basic`
171- #
172- # The service returns audio with a sampling rate of 8000 Hz.
173- # * `audio/flac`
174- #
175- # You can optionally specify the `rate` of the audio. The default sampling rate is
176- # 22,050 Hz.
177- # * `audio/l16`
178- #
179- # You must specify the `rate` of the audio. You can optionally specify the
180- # `endianness` of the audio. The default endianness is `little-endian`.
181- # * `audio/mp3`
182- #
183- # You can optionally specify the `rate` of the audio. The default sampling rate is
184- # 22,050 Hz.
185- # * `audio/mpeg`
186- #
187- # You can optionally specify the `rate` of the audio. The default sampling rate is
188- # 22,050 Hz.
189- # * `audio/mulaw`
190- #
191- # You must specify the `rate` of the audio.
192- # * `audio/ogg`
193- #
194- # The service returns the audio in the `vorbis` codec. You can optionally specify
195- # the `rate` of the audio. The default sampling rate is 22,050 Hz.
196- # * `audio/ogg;codecs=opus`
197- #
198- # You can optionally specify the `rate` of the audio. The default sampling rate is
199- # 22,050 Hz.
200- # * `audio/ogg;codecs=vorbis`
201- #
202- # You can optionally specify the `rate` of the audio. The default sampling rate is
203- # 22,050 Hz.
204- # * `audio/wav`
205- #
206- # You can optionally specify the `rate` of the audio. The default sampling rate is
207- # 22,050 Hz.
208- # * `audio/webm`
209- #
210- # The service returns the audio in the `opus` codec. The service returns audio
211- # with a sampling rate of 48,000 Hz.
212- # * `audio/webm;codecs=opus`
213- #
214- # The service returns audio with a sampling rate of 48,000 Hz.
215- # * `audio/webm;codecs=vorbis`
216- #
217- # You can optionally specify the `rate` of the audio. The default sampling rate is
218- # 22,050 Hz.
171+ # * `audio/basic` - The service returns audio with a sampling rate of 8000 Hz.
172+ # * `audio/flac` - You can optionally specify the `rate` of the audio. The default
173+ # sampling rate is 22,050 Hz.
174+ # * `audio/l16` - You must specify the `rate` of the audio. You can optionally
175+ # specify the `endianness` of the audio. The default endianness is `little-endian`.
176+ # * `audio/mp3` - You can optionally specify the `rate` of the audio. The default
177+ # sampling rate is 22,050 Hz.
178+ # * `audio/mpeg` - You can optionally specify the `rate` of the audio. The default
179+ # sampling rate is 22,050 Hz.
180+ # * `audio/mulaw` - You must specify the `rate` of the audio.
181+ # * `audio/ogg` - The service returns the audio in the `vorbis` codec. You can
182+ # optionally specify the `rate` of the audio. The default sampling rate is 22,050
183+ # Hz.
184+ # * `audio/ogg;codecs=opus` - You can optionally specify the `rate` of the audio.
185+ # Only the following values are valid sampling rates: `48000`, `24000`, `16000`,
186+ # `12000`, or `8000`. If you specify a value other than one of these, the service
187+ # returns an error. The default sampling rate is 48,000 Hz.
188+ # * `audio/ogg;codecs=vorbis` - You can optionally specify the `rate` of the audio.
189+ # The default sampling rate is 22,050 Hz.
190+ # * `audio/wav` - You can optionally specify the `rate` of the audio. The default
191+ # sampling rate is 22,050 Hz.
192+ # * `audio/webm` - The service returns the audio in the `opus` codec. The service
193+ # returns audio with a sampling rate of 48,000 Hz.
194+ # * `audio/webm;codecs=opus` - The service returns audio with a sampling rate of
195+ # 48,000 Hz.
196+ # * `audio/webm;codecs=vorbis` - You can optionally specify the `rate` of the audio.
197+ # The default sampling rate is 22,050 Hz.
219198 #
220199 # For more information about specifying an audio format, including additional
221200 # details about some of the formats, see [Audio
0 commit comments