@@ -178,50 +178,42 @@ def synthesize(self,
178178 The service can return audio in the following formats (MIME types).
179179 * Where indicated, you can optionally specify the sampling rate (`rate`) of the
180180 audio. You must specify a sampling rate for the `audio/l16` and `audio/mulaw`
181- formats. A specified sampling rate must lie in the range of 8 kHz to 192 kHz.
181+ formats. A specified sampling rate must lie in the range of 8 kHz to 192 kHz. Some
182+ formats restrict the sampling rate to certain values, as noted.
182183 * For the `audio/l16` format, you can optionally specify the endianness
183184 (`endianness`) of the audio: `endianness=big-endian` or
184185 `endianness=little-endian`.
185186 Use the `Accept` header or the `accept` parameter to specify the requested format
186187 of the response audio. If you omit an audio format altogether, the service returns
187188 the audio in Ogg format with the Opus codec (`audio/ogg;codecs=opus`). The service
188189 always returns single-channel audio.
189- * `audio/basic`
190- The service returns audio with a sampling rate of 8000 Hz.
191- * `audio/flac`
192- You can optionally specify the `rate` of the audio. The default sampling rate is
193- 22,050 Hz.
194- * `audio/l16`
195- You must specify the `rate` of the audio. You can optionally specify the
196- `endianness` of the audio. The default endianness is `little-endian`.
197- * `audio/mp3`
198- You can optionally specify the `rate` of the audio. The default sampling rate is
199- 22,050 Hz.
200- * `audio/mpeg`
201- You can optionally specify the `rate` of the audio. The default sampling rate is
202- 22,050 Hz.
203- * `audio/mulaw`
204- You must specify the `rate` of the audio.
205- * `audio/ogg`
206- The service returns the audio in the `vorbis` codec. You can optionally specify
207- the `rate` of the audio. The default sampling rate is 22,050 Hz.
208- * `audio/ogg;codecs=opus`
209- You can optionally specify the `rate` of the audio. The default sampling rate is
210- 22,050 Hz.
211- * `audio/ogg;codecs=vorbis`
212- You can optionally specify the `rate` of the audio. The default sampling rate is
213- 22,050 Hz.
214- * `audio/wav`
215- You can optionally specify the `rate` of the audio. The default sampling rate is
216- 22,050 Hz.
217- * `audio/webm`
218- The service returns the audio in the `opus` codec. The service returns audio
219- with a sampling rate of 48,000 Hz.
220- * `audio/webm;codecs=opus`
221- The service returns audio with a sampling rate of 48,000 Hz.
222- * `audio/webm;codecs=vorbis`
223- You can optionally specify the `rate` of the audio. The default sampling rate is
224- 22,050 Hz.
190+ * `audio/basic` - The service returns audio with a sampling rate of 8000 Hz.
191+ * `audio/flac` - You can optionally specify the `rate` of the audio. The default
192+ sampling rate is 22,050 Hz.
193+ * `audio/l16` - You must specify the `rate` of the audio. You can optionally
194+ specify the `endianness` of the audio. The default endianness is `little-endian`.
195+ * `audio/mp3` - You can optionally specify the `rate` of the audio. The default
196+ sampling rate is 22,050 Hz.
197+ * `audio/mpeg` - You can optionally specify the `rate` of the audio. The default
198+ sampling rate is 22,050 Hz.
199+ * `audio/mulaw` - You must specify the `rate` of the audio.
200+ * `audio/ogg` - The service returns the audio in the `vorbis` codec. You can
201+ optionally specify the `rate` of the audio. The default sampling rate is 22,050
202+ Hz.
203+ * `audio/ogg;codecs=opus` - You can optionally specify the `rate` of the audio.
204+ Only the following values are valid sampling rates: `48000`, `24000`, `16000`,
205+ `12000`, or `8000`. If you specify a value other than one of these, the service
206+ returns an error. The default sampling rate is 48,000 Hz.
207+ * `audio/ogg;codecs=vorbis` - You can optionally specify the `rate` of the audio.
208+ The default sampling rate is 22,050 Hz.
209+ * `audio/wav` - You can optionally specify the `rate` of the audio. The default
210+ sampling rate is 22,050 Hz.
211+ * `audio/webm` - The service returns the audio in the `opus` codec. The service
212+ returns audio with a sampling rate of 48,000 Hz.
213+ * `audio/webm;codecs=opus` - The service returns audio with a sampling rate of
214+ 48,000 Hz.
215+ * `audio/webm;codecs=vorbis` - You can optionally specify the `rate` of the audio.
216+ The default sampling rate is 22,050 Hz.
225217 For more information about specifying an audio format, including additional
226218 details about some of the formats, see [Audio
227219 formats](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-audioFormats#audioFormats).
0 commit comments