ibm_watson 2.1.2 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@
14
14
  # See the License for the specific language governing permissions and
15
15
  # limitations under the License.
16
16
  #
17
- # IBM OpenAPI SDK Code Generator Version: 3.31.0-902c9336-20210504-161156
17
+ # IBM OpenAPI SDK Code Generator Version: 3.38.0-07189efd-20210827-205025
18
18
  #
19
19
  # The IBM Watson™ Text to Speech service provides APIs that use IBM's
20
20
  # speech-synthesis capabilities to synthesize text into natural-sounding speech in a
@@ -33,12 +33,15 @@
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). The Arabic, Chinese, Dutch, Australian English,
37
- # and Korean languages support only IPA.
36
+ # Symbolic Phonetic Representation (SPR).
38
37
  #
39
38
  # The service also offers a Tune by Example feature that lets you define custom prompts.
40
39
  # You can also define speaker models to improve the quality of your custom prompts. The
41
40
  # 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.
42
45
 
43
46
  require "concurrent"
44
47
  require "erb"
@@ -86,8 +89,8 @@ module IBMWatson
86
89
  # Lists all voices available for use with the service. The information includes the
87
90
  # name, language, gender, and other details about the voice. The ordering of the
88
91
  # list of voices can change from call to call; do not rely on an alphabetized or
89
- # static list of voices. To see information about a specific voice, use the **Get a
90
- # voice** method.
92
+ # static list of voices. To see information about a specific voice, use the [Get a
93
+ # voice](#getvoice).
91
94
  #
92
95
  # **See also:** [Listing all available
93
96
  # voices](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-voices#listVoices).
@@ -115,14 +118,14 @@ module IBMWatson
115
118
  # Gets information about the specified voice. The information includes the name,
116
119
  # language, gender, and other details about the voice. Specify a customization ID to
117
120
  # obtain information for a custom model that is defined for the language of the
118
- # specified voice. To list information about all available voices, use the **List
119
- # voices** method.
121
+ # specified voice. To list information about all available voices, use the [List
122
+ # voices](#listvoices) method.
120
123
  #
121
124
  # **See also:** [Listing a specific
122
125
  # voice](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-voices#listVoice).
123
126
  #
124
127
  #
125
- # ### Important voice updates
128
+ # ### Important voice updates for IBM Cloud
126
129
  #
127
130
  # The service's voices underwent significant change on 2 December 2020.
128
131
  # * The Arabic, Chinese, Dutch, Australian English, and Korean voices are now neural
@@ -144,9 +147,13 @@ module IBMWatson
144
147
  # equivalent neural voices at your earliest convenience. For more information about
145
148
  # all voice updates, see the [2 December 2020 service
146
149
  # update](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-release-notes#December2020)
147
- # in the release notes.
150
+ # in the release notes for IBM Cloud.
148
151
  # @param voice [String] The voice for which information is to be returned. For more information about
149
- # specifying a voice, see **Important voice updates** in the method description.
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.
150
157
  # @param customization_id [String] The customization ID (GUID) of a custom model for which information is to be
151
158
  # returned. You must make the request with credentials for the instance of the
152
159
  # service that owns the custom model. Omit the parameter to see information about
@@ -238,11 +245,11 @@ module IBMWatson
238
245
  # The default sampling rate is 22,050 Hz.
239
246
  #
240
247
  # For more information about specifying an audio format, including additional
241
- # details about some of the formats, see [Audio
242
- # formats](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-audioFormats#audioFormats).
248
+ # details about some of the formats, see [Using audio
249
+ # formats](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-audio-formats).
243
250
  #
244
251
  #
245
- # ### Important voice updates
252
+ # ### Important voice updates for IBM Cloud
246
253
  #
247
254
  # The service's voices underwent significant change on 2 December 2020.
248
255
  # * The Arabic, Chinese, Dutch, Australian English, and Korean voices are now neural
@@ -264,7 +271,7 @@ module IBMWatson
264
271
  # equivalent neural voices at your earliest convenience. For more information about
265
272
  # all voice updates, see the [2 December 2020 service
266
273
  # update](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-release-notes#December2020)
267
- # in the release notes.
274
+ # in the release notes for IBM Cloud.
268
275
  #
269
276
  # ### Warning messages
270
277
  #
@@ -280,7 +287,13 @@ module IBMWatson
280
287
  # specifying an audio format, see **Audio formats (accept types)** in the method
281
288
  # description.
282
289
  # @param voice [String] The voice to use for synthesis. For more information about specifying a voice, see
283
- # **Important voice updates** in the method description.
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.
294
+ #
295
+ # **See also:** See also [Using languages and
296
+ # voices](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-voices).
284
297
  # @param customization_id [String] The customization ID (GUID) of a custom model to use for the synthesis. If a
285
298
  # custom model is specified, it works only if it matches the language of the
286
299
  # indicated voice. You must make the request with credentials for the instance of
@@ -333,7 +346,7 @@ module IBMWatson
333
346
  # language](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customWords#cuWordsQueryLanguage).
334
347
  #
335
348
  #
336
- # ### Important voice updates
349
+ # ### Important voice updates for IBM Cloud
337
350
  #
338
351
  # The service's voices underwent significant change on 2 December 2020.
339
352
  # * The Arabic, Chinese, Dutch, Australian English, and Korean voices are now neural
@@ -355,12 +368,15 @@ module IBMWatson
355
368
  # equivalent neural voices at your earliest convenience. For more information about
356
369
  # all voice updates, see the [2 December 2020 service
357
370
  # update](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-release-notes#December2020)
358
- # in the release notes.
371
+ # in the release notes for IBM Cloud.
359
372
  # @param text [String] The word for which the pronunciation is requested.
360
373
  # @param voice [String] A voice that specifies the language in which the pronunciation is to be returned.
361
374
  # All voices for the same language (for example, `en-US`) return the same
362
375
  # translation. For more information about specifying a voice, see **Important voice
363
- # updates** in the method description.
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.
364
380
  # @param format [String] The phoneme format in which to return the pronunciation. The Arabic, Chinese,
365
381
  # Dutch, Australian English, and Korean languages support only IPA. Omit the
366
382
  # parameter to obtain the pronunciation in the default format.
@@ -414,7 +430,7 @@ module IBMWatson
414
430
  # model](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customModels#cuModelsCreate).
415
431
  #
416
432
  #
417
- # ### Important voice updates
433
+ # ### Important voice updates for IBM Cloud
418
434
  #
419
435
  # The service's voices underwent significant change on 2 December 2020.
420
436
  # * The Arabic, Chinese, Dutch, Australian English, and Korean voices are now neural
@@ -436,13 +452,16 @@ module IBMWatson
436
452
  # equivalent neural voices at your earliest convenience. For more information about
437
453
  # all voice updates, see the [2 December 2020 service
438
454
  # update](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-release-notes#December2020)
439
- # in the release notes.
455
+ # in the release notes for IBM Cloud.
440
456
  # @param name [String] The name of the new custom model.
441
457
  # @param language [String] The language of the new custom model. You create a custom model for a specific
442
458
  # language, not for a specific voice. A custom model can be used with any voice for
443
459
  # its specified language. Omit the parameter to use the the default language,
444
460
  # `en-US`. **Note:** The `ar-AR` language identifier cannot be used to create a
445
461
  # custom model. Use the `ar-MS` identifier instead.
462
+ #
463
+ # **IBM Cloud:** The Arabic, Chinese, Dutch, Australian English, and Korean
464
+ # languages and voices are supported only for IBM Cloud.
446
465
  # @param description [String] A description of the new custom model. Specifying a description is recommended.
447
466
  # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
448
467
  def create_custom_model(name:, language: nil, description: nil)
@@ -477,9 +496,9 @@ module IBMWatson
477
496
  # Lists metadata such as the name and description for all custom models that are
478
497
  # owned by an instance of the service. Specify a language to list the custom models
479
498
  # for that language only. To see the words and prompts in addition to the metadata
480
- # for a specific custom model, use the **Get a custom model** method. You must use
481
- # credentials for the instance of the service that owns a model to list information
482
- # about it.
499
+ # for a specific custom model, use the [Get a custom model](#getcustommodel) method.
500
+ # You must use credentials for the instance of the service that owns a model to list
501
+ # information about it.
483
502
  #
484
503
  # **See also:** [Querying all custom
485
504
  # models](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customModels#cuModelsQueryAll).
@@ -580,8 +599,8 @@ module IBMWatson
580
599
  # Gets all information about a specified custom model. In addition to metadata such
581
600
  # as the name and description of the custom model, the output includes the words and
582
601
  # their translations that are defined for the model, as well as any prompts that are
583
- # defined for the model. To see just the metadata for a model, use the **List custom
584
- # models** method.
602
+ # defined for the model. To see just the metadata for a model, use the [List custom
603
+ # models](#listcustommodels) method.
585
604
  #
586
605
  # **See also:** [Querying a custom
587
606
  # model](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customModels#cuModelsQuery).
@@ -672,14 +691,14 @@ module IBMWatson
672
691
  # customization](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customIntro#customIntro).
673
692
  # @param customization_id [String] The customization ID (GUID) of the custom model. You must make the request with
674
693
  # credentials for the instance of the service that owns the custom model.
675
- # @param words [Array[Word]] The **Add custom words** method accepts an array of `Word` objects. Each object
676
- # provides a word that is to be added or updated for the custom model and the word's
677
- # translation.
678
- #
679
- # The **List custom words** method returns an array of `Word` objects. Each object
680
- # shows a word and its translation from the custom model. The words are listed in
681
- # alphabetical order, with uppercase letters listed before lowercase letters. The
682
- # array is empty if the custom model contains no words.
694
+ # @param words [Array[Word]] The [Add custom words](#addwords) method accepts an array of `Word` objects. Each
695
+ # object provides a word that is to be added or updated for the custom model and the
696
+ # word's translation.
697
+ #
698
+ # The [List custom words](#listwords) method returns an array of `Word` objects.
699
+ # Each object shows a word and its translation from the custom model. The words are
700
+ # listed in alphabetical order, with uppercase letters listed before lowercase
701
+ # letters. The array is empty if the custom model contains no words.
683
702
  # @return [nil]
684
703
  def add_words(customization_id:, words:)
685
704
  raise ArgumentError.new("customization_id must be provided") if customization_id.nil?
@@ -889,12 +908,11 @@ module IBMWatson
889
908
  # The information includes the prompt ID, prompt text, status, and optional speaker
890
909
  # ID for each prompt of the custom model. You must use credentials for the instance
891
910
  # of the service that owns the custom model. The same information about all of the
892
- # prompts for a custom model is also provided by the **Get a custom model** method.
893
- # That method provides complete details about a specified custom model, including
894
- # its language, owner, custom words, and more.
895
- #
896
- # **Beta:** Custom prompts are beta functionality that is supported only for use
897
- # with US English custom models and voices.
911
+ # prompts for a custom model is also provided by the [Get a custom
912
+ # model](#getcustommodel) method. That method provides complete details about a
913
+ # specified custom model, including its language, owner, custom words, and more.
914
+ # Custom prompts are supported only for use with US English custom models and
915
+ # voices.
898
916
  #
899
917
  # **See also:** [Listing custom
900
918
  # prompts](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-tbe-custom-prompts#tbe-custom-prompts-list).
@@ -952,11 +970,11 @@ module IBMWatson
952
970
  # audio (for example, it takes 20 seconds to process a 20-second prompt).
953
971
  #
954
972
  # For shorter prompts, you can wait for a reasonable amount of time and then check
955
- # the status of the prompt with the **Get a custom prompt** method. For longer
956
- # prompts, consider using that method to poll the service every few seconds to
957
- # determine when the prompt becomes available. No prompt can be used for speech
958
- # synthesis if it is in the `processing` or `failed` state. Only prompts that are in
959
- # the `available` state can be used for speech synthesis.
973
+ # the status of the prompt with the [Get a custom prompt](#getcustomprompt) method.
974
+ # For longer prompts, consider using that method to poll the service every few
975
+ # seconds to determine when the prompt becomes available. No prompt can be used for
976
+ # speech synthesis if it is in the `processing` or `failed` state. Only prompts that
977
+ # are in the `available` state can be used for speech synthesis.
960
978
  #
961
979
  # When it processes a request, the service attempts to align the text and the audio
962
980
  # that are provided for the prompt. The text that is passed with a prompt must match
@@ -993,10 +1011,8 @@ module IBMWatson
993
1011
  # is one recommended means of potentially improving the quality of the prompt. This
994
1012
  # is especially important for shorter prompts such as "good-bye" or "thank you,"
995
1013
  # where less audio data makes it more difficult to match the prosody of the speaker.
996
- #
997
- #
998
- # **Beta:** Custom prompts are beta functionality that is supported only for use
999
- # with US English custom models and voices.
1014
+ # Custom prompts are supported only for use with US English custom models and
1015
+ # voices.
1000
1016
  #
1001
1017
  # **See also:**
1002
1018
  # * [Add a custom
@@ -1069,9 +1085,7 @@ module IBMWatson
1069
1085
  # Gets information about a specified custom prompt for a specified custom model. The
1070
1086
  # information includes the prompt ID, prompt text, status, and optional speaker ID
1071
1087
  # for each prompt of the custom model. You must use credentials for the instance of
1072
- # the service that owns the custom model.
1073
- #
1074
- # **Beta:** Custom prompts are beta functionality that is supported only for use
1088
+ # the service that owns the custom model. Custom prompts are supported only for use
1075
1089
  # with US English custom models and voices.
1076
1090
  #
1077
1091
  # **See also:** [Listing custom
@@ -1110,10 +1124,8 @@ module IBMWatson
1110
1124
  #
1111
1125
  # **Caution:** Deleting a custom prompt elicits a 400 response code from synthesis
1112
1126
  # requests that attempt to use the prompt. Make sure that you do not attempt to use
1113
- # a deleted prompt in a production application.
1114
- #
1115
- # **Beta:** Custom prompts are beta functionality that is supported only for use
1116
- # with US English custom models and voices.
1127
+ # a deleted prompt in a production application. Custom prompts are supported only
1128
+ # for use with US English custom models and voices.
1117
1129
  #
1118
1130
  # **See also:** [Deleting a custom
1119
1131
  # prompt](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-tbe-custom-prompts#tbe-custom-prompts-delete).
@@ -1151,11 +1163,8 @@ module IBMWatson
1151
1163
  # Lists information about all speaker models that are defined for a service
1152
1164
  # instance. The information includes the speaker ID and speaker name of each defined
1153
1165
  # speaker. You must use credentials for the instance of a service to list its
1154
- # speakers.
1155
- #
1156
- # **Beta:** Speaker models and the custom prompts with which they are used are beta
1157
- # functionality that is supported only for use with US English custom models and
1158
- # voices.
1166
+ # speakers. Speaker models and the custom prompts with which they are used are
1167
+ # supported only for use with US English custom models and voices.
1159
1168
  #
1160
1169
  # **See also:** [Listing speaker
1161
1170
  # models](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-tbe-speaker-models#tbe-speaker-models-list).
@@ -1218,11 +1227,8 @@ module IBMWatson
1218
1227
  #
1219
1228
  # The service returns a speaker ID with the request. A speaker ID is globally unique
1220
1229
  # identifier (GUID) that you use to identify the speaker in subsequent requests to
1221
- # the service.
1222
- #
1223
- # **Beta:** Speaker models and the custom prompts with which they are used are beta
1224
- # functionality that is supported only for use with US English custom models and
1225
- # voices.
1230
+ # the service. Speaker models and the custom prompts with which they are used are
1231
+ # supported only for use with US English custom models and voices.
1226
1232
  #
1227
1233
  # **See also:**
1228
1234
  # * [Create a speaker
@@ -1281,10 +1287,8 @@ module IBMWatson
1281
1287
  # the customization IDs of the custom models. For each custom model, the information
1282
1288
  # lists information about each prompt that is defined for that custom model by the
1283
1289
  # speaker. You must use credentials for the instance of the service that owns a
1284
- # speaker model to list its prompts.
1285
- #
1286
- # **Beta:** Speaker models and the custom prompts with which they are used are beta
1287
- # functionality that is supported only for use with US English custom models and
1290
+ # speaker model to list its prompts. Speaker models and the custom prompts with
1291
+ # which they are used are supported only for use with US English custom models and
1288
1292
  # voices.
1289
1293
  #
1290
1294
  # **See also:** [Listing the custom prompts for a speaker
@@ -1322,11 +1326,9 @@ module IBMWatson
1322
1326
  # speaker's deletion. The prosodic data that defines the quality of a prompt is
1323
1327
  # established when the prompt is created. A prompt is static and remains unaffected
1324
1328
  # by deletion of its associated speaker. However, the prompt cannot be resubmitted
1325
- # or updated with its original speaker once that speaker is deleted.
1326
- #
1327
- # **Beta:** Speaker models and the custom prompts with which they are used are beta
1328
- # functionality that is supported only for use with US English custom models and
1329
- # voices.
1329
+ # or updated with its original speaker once that speaker is deleted. Speaker models
1330
+ # and the custom prompts with which they are used are supported only for use with US
1331
+ # English custom models and voices.
1330
1332
  #
1331
1333
  # **See also:** [Deleting a speaker
1332
1334
  # model](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-tbe-speaker-models#tbe-speaker-models-delete).
@@ -14,7 +14,7 @@
14
14
  # See the License for the specific language governing permissions and
15
15
  # limitations under the License.
16
16
  #
17
- # IBM OpenAPI SDK Code Generator Version: 3.31.0-902c9336-20210504-161156
17
+ # IBM OpenAPI SDK Code Generator Version: 3.38.0-07189efd-20210827-205025
18
18
  #
19
19
  # The IBM Watson™ Tone Analyzer service uses linguistic analysis to detect
20
20
  # emotional and language tones in written text. The service can analyze tone at both the
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IBMWatson
4
- VERSION = "2.1.2"
4
+ VERSION = "2.1.3"
5
5
  end
@@ -14,7 +14,7 @@
14
14
  # See the License for the specific language governing permissions and
15
15
  # limitations under the License.
16
16
  #
17
- # IBM OpenAPI SDK Code Generator Version: 3.31.0-902c9336-20210504-161156
17
+ # IBM OpenAPI SDK Code Generator Version: 3.38.0-07189efd-20210827-205025
18
18
  #
19
19
  # IBM Watson™ Visual Recognition is discontinued. Existing instances are supported
20
20
  # until 1 December 2021, but as of 7 January 2021, you can't create instances. Any
@@ -14,7 +14,7 @@
14
14
  # See the License for the specific language governing permissions and
15
15
  # limitations under the License.
16
16
  #
17
- # IBM OpenAPI SDK Code Generator Version: 3.31.0-902c9336-20210504-161156
17
+ # IBM OpenAPI SDK Code Generator Version: 3.38.0-07189efd-20210827-205025
18
18
  #
19
19
  # IBM Watson™ Visual Recognition is discontinued. Existing instances are supported
20
20
  # until 1 December 2021, but as of 7 January 2021, you can't create instances. Any
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.2
4
+ version: 2.1.3
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-08-24 00:00:00.000000000 Z
11
+ date: 2021-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby