Skip to content

Commit a24ff4e

Browse files
committed
chore(services): update service information
1 parent b92aefe commit a24ff4e

File tree

3 files changed

+35
-39
lines changed

3 files changed

+35
-39
lines changed

ibm_watson/assistant_v1.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
The IBM Watson™ Assistant service combines machine learning, natural language
1818
understanding, and an integrated dialog editor to create conversation flows between your
1919
apps and your users.
20+
The Assistant v1 API provides authoring methods your application can use to create or
21+
update a workspace.
2022
"""
2123

2224
import json
@@ -98,8 +100,8 @@ def message(self,
98100
Get response to user input.
99101
100102
Send user input to a workspace and receive a response.
101-
**Note:** For most applications, there are significant advantages to using the v2
102-
runtime API instead. These advantages include ease of deployment, automatic state
103+
**Important:** This method has been superseded by the new v2 runtime API. The v2
104+
API offers significant advantages, including ease of deployment, automatic state
103105
management, versioning, and search capabilities. For more information, see the
104106
[documentation](https://cloud.ibm.com/docs/services/assistant?topic=assistant-api-overview).
105107
There is no rate limit for this operation.

ibm_watson/assistant_v2.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
The IBM Watson™ Assistant service combines machine learning, natural language
1818
understanding, and an integrated dialog editor to create conversation flows between your
1919
apps and your users.
20+
The Assistant v2 API provides runtime methods your client application can use to send user
21+
input to an assistant and receive a response.
2022
"""
2123

2224
import json

ibm_watson/text_to_speech_v1.py

Lines changed: 29 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)