ibm_watson 2.1.3 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # (C) Copyright IBM Corp. 2018, 2020.
3
+ # (C) Copyright IBM Corp. 2018, 2022.
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -33,15 +33,12 @@
33
33
  # that, when combined, sound like the word. A phonetic translation is based on the SSML
34
34
  # phoneme format for representing a word. You can specify a phonetic translation in
35
35
  # standard International Phonetic Alphabet (IPA) representation or in the proprietary IBM
36
- # Symbolic Phonetic Representation (SPR).
36
+ # Symbolic Phonetic Representation (SPR). For phonetic translation, the Arabic, Chinese,
37
+ # Dutch, Australian English, Korean, and Swedish voices support only IPA, not SPR.
37
38
  #
38
39
  # The service also offers a Tune by Example feature that lets you define custom prompts.
39
40
  # You can also define speaker models to improve the quality of your custom prompts. The
40
41
  # service support custom prompts only for US English custom models and voices.
41
- #
42
- # **IBM Cloud®.** The Arabic, Chinese, Dutch, Australian English, and Korean languages
43
- # and voices are supported only for IBM Cloud. For phonetic translation, they support only
44
- # IPA, not SPR.
45
42
 
46
43
  require "concurrent"
47
44
  require "erb"
@@ -125,35 +122,11 @@ module IBMWatson
125
122
  # voice](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-voices#listVoice).
126
123
  #
127
124
  #
128
- # ### Important voice updates for IBM Cloud
129
- #
130
- # The service's voices underwent significant change on 2 December 2020.
131
- # * The Arabic, Chinese, Dutch, Australian English, and Korean voices are now neural
132
- # instead of concatenative.
133
- # * The `ar-AR_OmarVoice` voice is deprecated. Use `ar-MS_OmarVoice` voice instead.
134
- # * The `ar-AR` language identifier cannot be used to create a custom model. Use the
135
- # `ar-MS` identifier instead.
136
- # * The standard concatenative voices for the following languages are now
137
- # deprecated: Brazilian Portuguese, United Kingdom and United States English,
138
- # French, German, Italian, Japanese, and Spanish (all dialects).
139
- # * The features expressive SSML, voice transformation SSML, and use of the `volume`
140
- # attribute of the `<prosody>` element are deprecated and are not supported with any
141
- # of the service's neural voices.
142
- # * All of the service's voices are now customizable and generally available (GA)
143
- # for production use.
144
- #
145
- # The deprecated voices and features will continue to function for at least one year
146
- # but might be removed at a future date. You are encouraged to migrate to the
147
- # equivalent neural voices at your earliest convenience. For more information about
148
- # all voice updates, see the [2 December 2020 service
149
- # update](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-release-notes#December2020)
150
- # in the release notes for IBM Cloud.
151
- # @param voice [String] The voice for which information is to be returned. For more information about
152
- # specifying a voice, see **Important voice updates for IBM Cloud** in the method
153
- # description.
154
- #
155
- # **IBM Cloud:** The Arabic, Chinese, Dutch, Australian English, and Korean
156
- # languages and voices are supported only for IBM Cloud.
125
+ # **Note:** The Arabic, Chinese, Czech, Dutch (Belgian and Netherlands), Australian
126
+ # English, Korean, and Swedish languages and voices are supported only for IBM
127
+ # Cloud; they are deprecated for IBM Cloud Pak for Data. Also, the `ar-AR_OmarVoice`
128
+ # voice is deprecated; use the `ar-MS_OmarVoice` voice instead.
129
+ # @param voice [String] The voice for which information is to be returned.
157
130
  # @param customization_id [String] The customization ID (GUID) of a custom model for which information is to be
158
131
  # returned. You must make the request with credentials for the instance of the
159
132
  # service that owns the custom model. Omit the parameter to see information about
@@ -201,6 +174,11 @@ module IBMWatson
201
174
  # interface](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-usingHTTP#usingHTTP).
202
175
  #
203
176
  #
177
+ # **Note:** The Arabic, Chinese, Czech, Dutch (Belgian and Netherlands), Australian
178
+ # English, Korean, and Swedish languages and voices are supported only for IBM
179
+ # Cloud; they are deprecated for IBM Cloud Pak for Data. Also, the `ar-AR_OmarVoice`
180
+ # voice is deprecated; use the `ar-MS_OmarVoice` voice instead.
181
+ #
204
182
  # ### Audio formats (accept types)
205
183
  #
206
184
  # The service can return audio in the following formats (MIME types).
@@ -249,30 +227,6 @@ module IBMWatson
249
227
  # formats](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-audio-formats).
250
228
  #
251
229
  #
252
- # ### Important voice updates for IBM Cloud
253
- #
254
- # The service's voices underwent significant change on 2 December 2020.
255
- # * The Arabic, Chinese, Dutch, Australian English, and Korean voices are now neural
256
- # instead of concatenative.
257
- # * The `ar-AR_OmarVoice` voice is deprecated. Use `ar-MS_OmarVoice` voice instead.
258
- # * The `ar-AR` language identifier cannot be used to create a custom model. Use the
259
- # `ar-MS` identifier instead.
260
- # * The standard concatenative voices for the following languages are now
261
- # deprecated: Brazilian Portuguese, United Kingdom and United States English,
262
- # French, German, Italian, Japanese, and Spanish (all dialects).
263
- # * The features expressive SSML, voice transformation SSML, and use of the `volume`
264
- # attribute of the `<prosody>` element are deprecated and are not supported with any
265
- # of the service's neural voices.
266
- # * All of the service's voices are now customizable and generally available (GA)
267
- # for production use.
268
- #
269
- # The deprecated voices and features will continue to function for at least one year
270
- # but might be removed at a future date. You are encouraged to migrate to the
271
- # equivalent neural voices at your earliest convenience. For more information about
272
- # all voice updates, see the [2 December 2020 service
273
- # update](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-release-notes#December2020)
274
- # in the release notes for IBM Cloud.
275
- #
276
230
  # ### Warning messages
277
231
  #
278
232
  # If a request includes invalid query parameters, the service returns a `Warnings`
@@ -286,11 +240,16 @@ module IBMWatson
286
240
  # the `accept` parameter to specify the audio format. For more information about
287
241
  # specifying an audio format, see **Audio formats (accept types)** in the method
288
242
  # description.
289
- # @param voice [String] The voice to use for synthesis. For more information about specifying a voice, see
290
- # **Important voice updates for IBM Cloud** in the method description.
291
- #
292
- # **IBM Cloud:** The Arabic, Chinese, Dutch, Australian English, and Korean
293
- # languages and voices are supported only for IBM Cloud.
243
+ # @param voice [String] The voice to use for synthesis. If you omit the `voice` parameter, the service
244
+ # uses a default voice, which depends on the version of the service that you are
245
+ # using:
246
+ # * _For IBM Cloud,_ the service always uses the US English `en-US_MichaelV3Voice`
247
+ # by default.
248
+ # * _For IBM Cloud Pak for Data,_ the default voice depends on the voices that you
249
+ # installed. If you installed the _enhanced neural voices_, the service uses the US
250
+ # English `en-US_MichaelV3Voice` by default; if that voice is not installed, you
251
+ # must specify a voice. If you installed the _neural voices_, the service always
252
+ # uses the Australian English `en-AU_MadisonVoice` by default.
294
253
  #
295
254
  # **See also:** See also [Using languages and
296
255
  # voices](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-voices).
@@ -346,37 +305,14 @@ module IBMWatson
346
305
  # language](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customWords#cuWordsQueryLanguage).
347
306
  #
348
307
  #
349
- # ### Important voice updates for IBM Cloud
350
- #
351
- # The service's voices underwent significant change on 2 December 2020.
352
- # * The Arabic, Chinese, Dutch, Australian English, and Korean voices are now neural
353
- # instead of concatenative.
354
- # * The `ar-AR_OmarVoice` voice is deprecated. Use `ar-MS_OmarVoice` voice instead.
355
- # * The `ar-AR` language identifier cannot be used to create a custom model. Use the
356
- # `ar-MS` identifier instead.
357
- # * The standard concatenative voices for the following languages are now
358
- # deprecated: Brazilian Portuguese, United Kingdom and United States English,
359
- # French, German, Italian, Japanese, and Spanish (all dialects).
360
- # * The features expressive SSML, voice transformation SSML, and use of the `volume`
361
- # attribute of the `<prosody>` element are deprecated and are not supported with any
362
- # of the service's neural voices.
363
- # * All of the service's voices are now customizable and generally available (GA)
364
- # for production use.
365
- #
366
- # The deprecated voices and features will continue to function for at least one year
367
- # but might be removed at a future date. You are encouraged to migrate to the
368
- # equivalent neural voices at your earliest convenience. For more information about
369
- # all voice updates, see the [2 December 2020 service
370
- # update](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-release-notes#December2020)
371
- # in the release notes for IBM Cloud.
308
+ # **Note:** The Arabic, Chinese, Czech, Dutch (Belgian and Netherlands), Australian
309
+ # English, Korean, and Swedish languages and voices are supported only for IBM
310
+ # Cloud; they are deprecated for IBM Cloud Pak for Data. Also, the `ar-AR_OmarVoice`
311
+ # voice is deprecated; use the `ar-MS_OmarVoice` voice instead.
372
312
  # @param text [String] The word for which the pronunciation is requested.
373
313
  # @param voice [String] A voice that specifies the language in which the pronunciation is to be returned.
374
314
  # All voices for the same language (for example, `en-US`) return the same
375
- # translation. For more information about specifying a voice, see **Important voice
376
- # updates for IBM Cloud** in the method description.
377
- #
378
- # **IBM Cloud:** The Arabic, Chinese, Dutch, Australian English, and Korean
379
- # languages and voices are supported only for IBM Cloud.
315
+ # translation.
380
316
  # @param format [String] The phoneme format in which to return the pronunciation. The Arabic, Chinese,
381
317
  # Dutch, Australian English, and Korean languages support only IPA. Omit the
382
318
  # parameter to obtain the pronunciation in the default format.
@@ -430,38 +366,21 @@ module IBMWatson
430
366
  # model](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customModels#cuModelsCreate).
431
367
  #
432
368
  #
433
- # ### Important voice updates for IBM Cloud
434
- #
435
- # The service's voices underwent significant change on 2 December 2020.
436
- # * The Arabic, Chinese, Dutch, Australian English, and Korean voices are now neural
437
- # instead of concatenative.
438
- # * The `ar-AR_OmarVoice` voice is deprecated. Use `ar-MS_OmarVoice` voice instead.
439
- # * The `ar-AR` language identifier cannot be used to create a custom model. Use the
440
- # `ar-MS` identifier instead.
441
- # * The standard concatenative voices for the following languages are now
442
- # deprecated: Brazilian Portuguese, United Kingdom and United States English,
443
- # French, German, Italian, Japanese, and Spanish (all dialects).
444
- # * The features expressive SSML, voice transformation SSML, and use of the `volume`
445
- # attribute of the `<prosody>` element are deprecated and are not supported with any
446
- # of the service's neural voices.
447
- # * All of the service's voices are now customizable and generally available (GA)
448
- # for production use.
449
- #
450
- # The deprecated voices and features will continue to function for at least one year
451
- # but might be removed at a future date. You are encouraged to migrate to the
452
- # equivalent neural voices at your earliest convenience. For more information about
453
- # all voice updates, see the [2 December 2020 service
454
- # update](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-release-notes#December2020)
455
- # in the release notes for IBM Cloud.
369
+ # **Note:** The Arabic, Chinese, Czech, Dutch (Belgian and Netherlands), Australian
370
+ # English, Korean, and Swedish languages and voices are supported only for IBM
371
+ # Cloud; they are deprecated for IBM Cloud Pak for Data. Also, the `ar-AR` language
372
+ # identifier cannot be used to create a custom model; use the `ar-MS` identifier
373
+ # instead.
456
374
  # @param name [String] The name of the new custom model.
457
375
  # @param language [String] The language of the new custom model. You create a custom model for a specific
458
376
  # language, not for a specific voice. A custom model can be used with any voice for
459
377
  # its specified language. Omit the parameter to use the the default language,
460
- # `en-US`. **Note:** The `ar-AR` language identifier cannot be used to create a
461
- # custom model. Use the `ar-MS` identifier instead.
378
+ # `en-US`.
462
379
  #
463
- # **IBM Cloud:** The Arabic, Chinese, Dutch, Australian English, and Korean
464
- # languages and voices are supported only for IBM Cloud.
380
+ # **Important:** If you are using the service on IBM Cloud Pak for Data _and_ you
381
+ # install the neural voices, the `language`parameter is required. You must specify
382
+ # the language for the custom model in the indicated format (for example, `en-AU`
383
+ # for Australian English). The request fails if you do not specify a language.
465
384
  # @param description [String] A description of the new custom model. Specifying a description is recommended.
466
385
  # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
467
386
  def create_custom_model(name:, language: nil, description: nil)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IBMWatson
4
- VERSION = "2.1.3"
4
+ VERSION = "2.2.0"
5
5
  end
data/lib/ibm_watson.rb CHANGED
@@ -7,8 +7,6 @@ module IBMWatson
7
7
  ApiException = IBMCloudSdkCore::ApiException
8
8
  DetailedResponse = IBMCloudSdkCore::DetailedResponse
9
9
 
10
- require_relative("./ibm_watson/personality_insights_v3.rb")
11
- require_relative("./ibm_watson/tone_analyzer_v3.rb")
12
10
  require_relative("./ibm_watson/assistant_v1.rb")
13
11
  require_relative("./ibm_watson/assistant_v2.rb")
14
12
  require_relative("./ibm_watson/text_to_speech_v1.rb")
@@ -16,11 +14,7 @@ module IBMWatson
16
14
  require_relative("./ibm_watson/discovery_v2.rb")
17
15
  require_relative("./ibm_watson/natural_language_understanding_v1.rb")
18
16
  require_relative("./ibm_watson/speech_to_text_v1.rb")
19
- require_relative("./ibm_watson/visual_recognition_v3.rb")
20
- require_relative("./ibm_watson/visual_recognition_v4.rb")
21
- require_relative("./ibm_watson/natural_language_classifier_v1.rb")
22
17
  require_relative("./ibm_watson/language_translator_v3.rb")
23
- require_relative("./ibm_watson/compare_comply_v1.rb")
24
18
  require_relative("./ibm_watson/websocket/recognize_callback.rb")
25
19
  require_relative("./ibm_watson/authenticators.rb")
26
20
  require_relative("./ibm_watson/common.rb")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ibm_watson
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Nussbaum
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-13 00:00:00.000000000 Z
11
+ date: 2022-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -276,54 +276,36 @@ files:
276
276
  - lib/ibm_watson/assistant_v2.rb
277
277
  - lib/ibm_watson/authenticators.rb
278
278
  - lib/ibm_watson/common.rb
279
- - lib/ibm_watson/compare_comply_v1.rb
280
279
  - lib/ibm_watson/discovery_v1.rb
281
280
  - lib/ibm_watson/discovery_v2.rb
282
281
  - lib/ibm_watson/language_translator_v3.rb
283
- - lib/ibm_watson/natural_language_classifier_v1.rb
284
282
  - lib/ibm_watson/natural_language_understanding_v1.rb
285
- - lib/ibm_watson/personality_insights_v3.rb
286
283
  - lib/ibm_watson/speech_to_text_v1.rb
287
284
  - lib/ibm_watson/text_to_speech_v1.rb
288
- - lib/ibm_watson/tone_analyzer_v3.rb
289
285
  - lib/ibm_watson/version.rb
290
- - lib/ibm_watson/visual_recognition_v3.rb
291
- - lib/ibm_watson/visual_recognition_v4.rb
292
286
  - lib/ibm_watson/websocket/recognize_callback.rb
293
287
  - lib/ibm_watson/websocket/speech_to_text_websocket_listener.rb
294
288
  - rakefile
295
289
  - test/appveyor_status.rb
296
290
  - test/integration/test_assistant_v1.rb
297
291
  - test/integration/test_assistant_v2.rb
298
- - test/integration/test_compare_comply_v1.rb
299
292
  - test/integration/test_discovery_v1.rb
300
293
  - test/integration/test_discovery_v2.rb
301
294
  - test/integration/test_iam_assistant_v1.rb
302
295
  - test/integration/test_language_translator_v3.rb
303
- - test/integration/test_natural_language_classifier_v1.rb
304
296
  - test/integration/test_natural_language_understanding_v1.rb
305
- - test/integration/test_personality_insights_v3.rb
306
297
  - test/integration/test_speech_to_text_v1.rb
307
298
  - test/integration/test_text_to_speech_v1.rb
308
- - test/integration/test_tone_analyzer_v3.rb
309
- - test/integration/test_visual_recognition_v3.rb
310
- - test/integration/test_visual_recognition_v4.rb
311
299
  - test/test_helper.rb
312
300
  - test/unit/test_assistant_v1.rb
313
301
  - test/unit/test_assistant_v2.rb
314
- - test/unit/test_compare_comply_v1.rb
315
302
  - test/unit/test_configure_http_client.rb
316
303
  - test/unit/test_discovery_v1.rb
317
304
  - test/unit/test_discovery_v2.rb
318
305
  - test/unit/test_language_translator_v3.rb
319
- - test/unit/test_natural_language_classifier_v1.rb
320
306
  - test/unit/test_natural_language_understanding_v1.rb
321
- - test/unit/test_personality_insights_v3.rb
322
307
  - test/unit/test_speech_to_text_v1.rb
323
308
  - test/unit/test_text_to_speech_v1.rb
324
- - test/unit/test_tone_analyzer_v3.rb
325
- - test/unit/test_visual_recognition_v3.rb
326
- - test/unit/test_visual_recognition_v4.rb
327
309
  homepage: https://www.github.com/watson-developer-cloud
328
310
  licenses:
329
311
  - Apache-2.0