ibm_watson 2.1.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +16 -39
- data/lib/ibm_watson/assistant_v1.rb +5 -4
- data/lib/ibm_watson/assistant_v2.rb +3 -3
- data/lib/ibm_watson/discovery_v1.rb +7 -14
- data/lib/ibm_watson/discovery_v2.rb +109 -108
- data/lib/ibm_watson/language_translator_v3.rb +2 -2
- data/lib/ibm_watson/natural_language_understanding_v1.rb +12 -14
- data/lib/ibm_watson/speech_to_text_v1.rb +581 -402
- data/lib/ibm_watson/text_to_speech_v1.rb +87 -166
- data/lib/ibm_watson/version.rb +1 -1
- data/lib/ibm_watson.rb +0 -6
- metadata +2 -20
- data/lib/ibm_watson/compare_comply_v1.rb +0 -683
- data/lib/ibm_watson/natural_language_classifier_v1.rb +0 -258
- data/lib/ibm_watson/personality_insights_v3.rb +0 -223
- data/lib/ibm_watson/tone_analyzer_v3.rb +0 -230
- data/lib/ibm_watson/visual_recognition_v3.rb +0 -517
- data/lib/ibm_watson/visual_recognition_v4.rb +0 -930
- data/test/integration/test_compare_comply_v1.rb +0 -105
- data/test/integration/test_natural_language_classifier_v1.rb +0 -80
- data/test/integration/test_personality_insights_v3.rb +0 -81
- data/test/integration/test_tone_analyzer_v3.rb +0 -66
- data/test/integration/test_visual_recognition_v3.rb +0 -68
- data/test/integration/test_visual_recognition_v4.rb +0 -87
- data/test/unit/test_compare_comply_v1.rb +0 -232
- data/test/unit/test_natural_language_classifier_v1.rb +0 -191
- data/test/unit/test_personality_insights_v3.rb +0 -192
- data/test/unit/test_tone_analyzer_v3.rb +0 -217
- data/test/unit/test_visual_recognition_v3.rb +0 -300
- data/test/unit/test_visual_recognition_v4.rb +0 -422
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# (C) Copyright IBM Corp. 2018,
|
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.
|
@@ -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.
|
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,8 +33,8 @@
|
|
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).
|
37
|
-
#
|
36
|
+
# Symbolic Phonetic Representation (SPR). For phonetic translation, the Arabic, Chinese,
|
37
|
+
# Dutch, Australian English, Korean, and Swedish voices support only IPA, not SPR.
|
38
38
|
#
|
39
39
|
# The service also offers a Tune by Example feature that lets you define custom prompts.
|
40
40
|
# You can also define speaker models to improve the quality of your custom prompts. The
|
@@ -86,8 +86,8 @@ module IBMWatson
|
|
86
86
|
# Lists all voices available for use with the service. The information includes the
|
87
87
|
# name, language, gender, and other details about the voice. The ordering of the
|
88
88
|
# 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
|
90
|
-
# voice
|
89
|
+
# static list of voices. To see information about a specific voice, use the [Get a
|
90
|
+
# voice](#getvoice).
|
91
91
|
#
|
92
92
|
# **See also:** [Listing all available
|
93
93
|
# voices](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-voices#listVoices).
|
@@ -115,38 +115,18 @@ module IBMWatson
|
|
115
115
|
# Gets information about the specified voice. The information includes the name,
|
116
116
|
# language, gender, and other details about the voice. Specify a customization ID to
|
117
117
|
# 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
|
119
|
-
# voices
|
118
|
+
# specified voice. To list information about all available voices, use the [List
|
119
|
+
# voices](#listvoices) method.
|
120
120
|
#
|
121
121
|
# **See also:** [Listing a specific
|
122
122
|
# voice](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-voices#listVoice).
|
123
123
|
#
|
124
124
|
#
|
125
|
-
#
|
126
|
-
#
|
127
|
-
#
|
128
|
-
#
|
129
|
-
#
|
130
|
-
# * The `ar-AR_OmarVoice` voice is deprecated. Use `ar-MS_OmarVoice` voice instead.
|
131
|
-
# * The `ar-AR` language identifier cannot be used to create a custom model. Use the
|
132
|
-
# `ar-MS` identifier instead.
|
133
|
-
# * The standard concatenative voices for the following languages are now
|
134
|
-
# deprecated: Brazilian Portuguese, United Kingdom and United States English,
|
135
|
-
# French, German, Italian, Japanese, and Spanish (all dialects).
|
136
|
-
# * The features expressive SSML, voice transformation SSML, and use of the `volume`
|
137
|
-
# attribute of the `<prosody>` element are deprecated and are not supported with any
|
138
|
-
# of the service's neural voices.
|
139
|
-
# * All of the service's voices are now customizable and generally available (GA)
|
140
|
-
# for production use.
|
141
|
-
#
|
142
|
-
# The deprecated voices and features will continue to function for at least one year
|
143
|
-
# but might be removed at a future date. You are encouraged to migrate to the
|
144
|
-
# equivalent neural voices at your earliest convenience. For more information about
|
145
|
-
# all voice updates, see the [2 December 2020 service
|
146
|
-
# update](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-release-notes#December2020)
|
147
|
-
# in the release notes.
|
148
|
-
# @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.
|
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.
|
150
130
|
# @param customization_id [String] The customization ID (GUID) of a custom model for which information is to be
|
151
131
|
# returned. You must make the request with credentials for the instance of the
|
152
132
|
# service that owns the custom model. Omit the parameter to see information about
|
@@ -194,6 +174,11 @@ module IBMWatson
|
|
194
174
|
# interface](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-usingHTTP#usingHTTP).
|
195
175
|
#
|
196
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
|
+
#
|
197
182
|
# ### Audio formats (accept types)
|
198
183
|
#
|
199
184
|
# The service can return audio in the following formats (MIME types).
|
@@ -238,33 +223,9 @@ module IBMWatson
|
|
238
223
|
# The default sampling rate is 22,050 Hz.
|
239
224
|
#
|
240
225
|
# For more information about specifying an audio format, including additional
|
241
|
-
# details about some of the formats, see [
|
242
|
-
# formats](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-
|
243
|
-
#
|
244
|
-
#
|
245
|
-
# ### Important voice updates
|
246
|
-
#
|
247
|
-
# The service's voices underwent significant change on 2 December 2020.
|
248
|
-
# * The Arabic, Chinese, Dutch, Australian English, and Korean voices are now neural
|
249
|
-
# instead of concatenative.
|
250
|
-
# * The `ar-AR_OmarVoice` voice is deprecated. Use `ar-MS_OmarVoice` voice instead.
|
251
|
-
# * The `ar-AR` language identifier cannot be used to create a custom model. Use the
|
252
|
-
# `ar-MS` identifier instead.
|
253
|
-
# * The standard concatenative voices for the following languages are now
|
254
|
-
# deprecated: Brazilian Portuguese, United Kingdom and United States English,
|
255
|
-
# French, German, Italian, Japanese, and Spanish (all dialects).
|
256
|
-
# * The features expressive SSML, voice transformation SSML, and use of the `volume`
|
257
|
-
# attribute of the `<prosody>` element are deprecated and are not supported with any
|
258
|
-
# of the service's neural voices.
|
259
|
-
# * All of the service's voices are now customizable and generally available (GA)
|
260
|
-
# for production use.
|
261
|
-
#
|
262
|
-
# The deprecated voices and features will continue to function for at least one year
|
263
|
-
# but might be removed at a future date. You are encouraged to migrate to the
|
264
|
-
# equivalent neural voices at your earliest convenience. For more information about
|
265
|
-
# all voice updates, see the [2 December 2020 service
|
266
|
-
# update](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-release-notes#December2020)
|
267
|
-
# in the release notes.
|
226
|
+
# details about some of the formats, see [Using audio
|
227
|
+
# formats](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-audio-formats).
|
228
|
+
#
|
268
229
|
#
|
269
230
|
# ### Warning messages
|
270
231
|
#
|
@@ -279,8 +240,19 @@ module IBMWatson
|
|
279
240
|
# the `accept` parameter to specify the audio format. For more information about
|
280
241
|
# specifying an audio format, see **Audio formats (accept types)** in the method
|
281
242
|
# description.
|
282
|
-
# @param voice [String] The voice to use for synthesis.
|
283
|
-
#
|
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.
|
253
|
+
#
|
254
|
+
# **See also:** See also [Using languages and
|
255
|
+
# voices](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-voices).
|
284
256
|
# @param customization_id [String] The customization ID (GUID) of a custom model to use for the synthesis. If a
|
285
257
|
# custom model is specified, it works only if it matches the language of the
|
286
258
|
# indicated voice. You must make the request with credentials for the instance of
|
@@ -333,34 +305,14 @@ module IBMWatson
|
|
333
305
|
# language](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customWords#cuWordsQueryLanguage).
|
334
306
|
#
|
335
307
|
#
|
336
|
-
#
|
337
|
-
#
|
338
|
-
#
|
339
|
-
#
|
340
|
-
# instead of concatenative.
|
341
|
-
# * The `ar-AR_OmarVoice` voice is deprecated. Use `ar-MS_OmarVoice` voice instead.
|
342
|
-
# * The `ar-AR` language identifier cannot be used to create a custom model. Use the
|
343
|
-
# `ar-MS` identifier instead.
|
344
|
-
# * The standard concatenative voices for the following languages are now
|
345
|
-
# deprecated: Brazilian Portuguese, United Kingdom and United States English,
|
346
|
-
# French, German, Italian, Japanese, and Spanish (all dialects).
|
347
|
-
# * The features expressive SSML, voice transformation SSML, and use of the `volume`
|
348
|
-
# attribute of the `<prosody>` element are deprecated and are not supported with any
|
349
|
-
# of the service's neural voices.
|
350
|
-
# * All of the service's voices are now customizable and generally available (GA)
|
351
|
-
# for production use.
|
352
|
-
#
|
353
|
-
# The deprecated voices and features will continue to function for at least one year
|
354
|
-
# but might be removed at a future date. You are encouraged to migrate to the
|
355
|
-
# equivalent neural voices at your earliest convenience. For more information about
|
356
|
-
# all voice updates, see the [2 December 2020 service
|
357
|
-
# update](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-release-notes#December2020)
|
358
|
-
# in the release notes.
|
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.
|
359
312
|
# @param text [String] The word for which the pronunciation is requested.
|
360
313
|
# @param voice [String] A voice that specifies the language in which the pronunciation is to be returned.
|
361
314
|
# All voices for the same language (for example, `en-US`) return the same
|
362
|
-
# translation.
|
363
|
-
# updates** in the method description.
|
315
|
+
# translation.
|
364
316
|
# @param format [String] The phoneme format in which to return the pronunciation. The Arabic, Chinese,
|
365
317
|
# Dutch, Australian English, and Korean languages support only IPA. Omit the
|
366
318
|
# parameter to obtain the pronunciation in the default format.
|
@@ -414,35 +366,21 @@ module IBMWatson
|
|
414
366
|
# model](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customModels#cuModelsCreate).
|
415
367
|
#
|
416
368
|
#
|
417
|
-
#
|
418
|
-
#
|
419
|
-
#
|
420
|
-
#
|
421
|
-
# instead
|
422
|
-
# * The `ar-AR_OmarVoice` voice is deprecated. Use `ar-MS_OmarVoice` voice instead.
|
423
|
-
# * The `ar-AR` language identifier cannot be used to create a custom model. Use the
|
424
|
-
# `ar-MS` identifier instead.
|
425
|
-
# * The standard concatenative voices for the following languages are now
|
426
|
-
# deprecated: Brazilian Portuguese, United Kingdom and United States English,
|
427
|
-
# French, German, Italian, Japanese, and Spanish (all dialects).
|
428
|
-
# * The features expressive SSML, voice transformation SSML, and use of the `volume`
|
429
|
-
# attribute of the `<prosody>` element are deprecated and are not supported with any
|
430
|
-
# of the service's neural voices.
|
431
|
-
# * All of the service's voices are now customizable and generally available (GA)
|
432
|
-
# for production use.
|
433
|
-
#
|
434
|
-
# The deprecated voices and features will continue to function for at least one year
|
435
|
-
# but might be removed at a future date. You are encouraged to migrate to the
|
436
|
-
# equivalent neural voices at your earliest convenience. For more information about
|
437
|
-
# all voice updates, see the [2 December 2020 service
|
438
|
-
# update](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-release-notes#December2020)
|
439
|
-
# in the release notes.
|
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.
|
440
374
|
# @param name [String] The name of the new custom model.
|
441
375
|
# @param language [String] The language of the new custom model. You create a custom model for a specific
|
442
376
|
# language, not for a specific voice. A custom model can be used with any voice for
|
443
377
|
# its specified language. Omit the parameter to use the the default language,
|
444
|
-
# `en-US`.
|
445
|
-
#
|
378
|
+
# `en-US`.
|
379
|
+
#
|
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.
|
446
384
|
# @param description [String] A description of the new custom model. Specifying a description is recommended.
|
447
385
|
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
448
386
|
def create_custom_model(name:, language: nil, description: nil)
|
@@ -477,9 +415,9 @@ module IBMWatson
|
|
477
415
|
# Lists metadata such as the name and description for all custom models that are
|
478
416
|
# owned by an instance of the service. Specify a language to list the custom models
|
479
417
|
# for that language only. To see the words and prompts in addition to the metadata
|
480
|
-
# for a specific custom model, use the
|
481
|
-
# credentials for the instance of the service that owns a model to list
|
482
|
-
# about it.
|
418
|
+
# for a specific custom model, use the [Get a custom model](#getcustommodel) method.
|
419
|
+
# You must use credentials for the instance of the service that owns a model to list
|
420
|
+
# information about it.
|
483
421
|
#
|
484
422
|
# **See also:** [Querying all custom
|
485
423
|
# models](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customModels#cuModelsQueryAll).
|
@@ -580,8 +518,8 @@ module IBMWatson
|
|
580
518
|
# Gets all information about a specified custom model. In addition to metadata such
|
581
519
|
# as the name and description of the custom model, the output includes the words and
|
582
520
|
# 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
|
584
|
-
# models
|
521
|
+
# defined for the model. To see just the metadata for a model, use the [List custom
|
522
|
+
# models](#listcustommodels) method.
|
585
523
|
#
|
586
524
|
# **See also:** [Querying a custom
|
587
525
|
# model](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customModels#cuModelsQuery).
|
@@ -672,14 +610,14 @@ module IBMWatson
|
|
672
610
|
# customization](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-customIntro#customIntro).
|
673
611
|
# @param customization_id [String] The customization ID (GUID) of the custom model. You must make the request with
|
674
612
|
# credentials for the instance of the service that owns the custom model.
|
675
|
-
# @param words [Array[Word]] The
|
676
|
-
# provides a word that is to be added or updated for the custom model and the
|
677
|
-
# translation.
|
678
|
-
#
|
679
|
-
# The
|
680
|
-
# shows a word and its translation from the custom model. The words are
|
681
|
-
# alphabetical order, with uppercase letters listed before lowercase
|
682
|
-
# array is empty if the custom model contains no words.
|
613
|
+
# @param words [Array[Word]] The [Add custom words](#addwords) method accepts an array of `Word` objects. Each
|
614
|
+
# object provides a word that is to be added or updated for the custom model and the
|
615
|
+
# word's translation.
|
616
|
+
#
|
617
|
+
# The [List custom words](#listwords) method returns an array of `Word` objects.
|
618
|
+
# Each object shows a word and its translation from the custom model. The words are
|
619
|
+
# listed in alphabetical order, with uppercase letters listed before lowercase
|
620
|
+
# letters. The array is empty if the custom model contains no words.
|
683
621
|
# @return [nil]
|
684
622
|
def add_words(customization_id:, words:)
|
685
623
|
raise ArgumentError.new("customization_id must be provided") if customization_id.nil?
|
@@ -889,12 +827,11 @@ module IBMWatson
|
|
889
827
|
# The information includes the prompt ID, prompt text, status, and optional speaker
|
890
828
|
# ID for each prompt of the custom model. You must use credentials for the instance
|
891
829
|
# 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
|
893
|
-
# That method provides complete details about a
|
894
|
-
# its language, owner, custom words, and more.
|
895
|
-
#
|
896
|
-
#
|
897
|
-
# with US English custom models and voices.
|
830
|
+
# prompts for a custom model is also provided by the [Get a custom
|
831
|
+
# model](#getcustommodel) method. That method provides complete details about a
|
832
|
+
# specified custom model, including its language, owner, custom words, and more.
|
833
|
+
# Custom prompts are supported only for use with US English custom models and
|
834
|
+
# voices.
|
898
835
|
#
|
899
836
|
# **See also:** [Listing custom
|
900
837
|
# prompts](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-tbe-custom-prompts#tbe-custom-prompts-list).
|
@@ -952,11 +889,11 @@ module IBMWatson
|
|
952
889
|
# audio (for example, it takes 20 seconds to process a 20-second prompt).
|
953
890
|
#
|
954
891
|
# For shorter prompts, you can wait for a reasonable amount of time and then check
|
955
|
-
# the status of the prompt with the
|
956
|
-
# prompts, consider using that method to poll the service every few
|
957
|
-
# determine when the prompt becomes available. No prompt can be used for
|
958
|
-
# synthesis if it is in the `processing` or `failed` state. Only prompts that
|
959
|
-
# the `available` state can be used for speech synthesis.
|
892
|
+
# the status of the prompt with the [Get a custom prompt](#getcustomprompt) method.
|
893
|
+
# For longer prompts, consider using that method to poll the service every few
|
894
|
+
# seconds to determine when the prompt becomes available. No prompt can be used for
|
895
|
+
# speech synthesis if it is in the `processing` or `failed` state. Only prompts that
|
896
|
+
# are in the `available` state can be used for speech synthesis.
|
960
897
|
#
|
961
898
|
# When it processes a request, the service attempts to align the text and the audio
|
962
899
|
# that are provided for the prompt. The text that is passed with a prompt must match
|
@@ -993,10 +930,8 @@ module IBMWatson
|
|
993
930
|
# is one recommended means of potentially improving the quality of the prompt. This
|
994
931
|
# is especially important for shorter prompts such as "good-bye" or "thank you,"
|
995
932
|
# 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.
|
933
|
+
# Custom prompts are supported only for use with US English custom models and
|
934
|
+
# voices.
|
1000
935
|
#
|
1001
936
|
# **See also:**
|
1002
937
|
# * [Add a custom
|
@@ -1069,9 +1004,7 @@ module IBMWatson
|
|
1069
1004
|
# Gets information about a specified custom prompt for a specified custom model. The
|
1070
1005
|
# information includes the prompt ID, prompt text, status, and optional speaker ID
|
1071
1006
|
# 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
|
1007
|
+
# the service that owns the custom model. Custom prompts are supported only for use
|
1075
1008
|
# with US English custom models and voices.
|
1076
1009
|
#
|
1077
1010
|
# **See also:** [Listing custom
|
@@ -1110,10 +1043,8 @@ module IBMWatson
|
|
1110
1043
|
#
|
1111
1044
|
# **Caution:** Deleting a custom prompt elicits a 400 response code from synthesis
|
1112
1045
|
# 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.
|
1046
|
+
# a deleted prompt in a production application. Custom prompts are supported only
|
1047
|
+
# for use with US English custom models and voices.
|
1117
1048
|
#
|
1118
1049
|
# **See also:** [Deleting a custom
|
1119
1050
|
# prompt](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-tbe-custom-prompts#tbe-custom-prompts-delete).
|
@@ -1151,11 +1082,8 @@ module IBMWatson
|
|
1151
1082
|
# Lists information about all speaker models that are defined for a service
|
1152
1083
|
# instance. The information includes the speaker ID and speaker name of each defined
|
1153
1084
|
# 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.
|
1085
|
+
# speakers. Speaker models and the custom prompts with which they are used are
|
1086
|
+
# supported only for use with US English custom models and voices.
|
1159
1087
|
#
|
1160
1088
|
# **See also:** [Listing speaker
|
1161
1089
|
# models](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-tbe-speaker-models#tbe-speaker-models-list).
|
@@ -1218,11 +1146,8 @@ module IBMWatson
|
|
1218
1146
|
#
|
1219
1147
|
# The service returns a speaker ID with the request. A speaker ID is globally unique
|
1220
1148
|
# 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.
|
1149
|
+
# the service. Speaker models and the custom prompts with which they are used are
|
1150
|
+
# supported only for use with US English custom models and voices.
|
1226
1151
|
#
|
1227
1152
|
# **See also:**
|
1228
1153
|
# * [Create a speaker
|
@@ -1281,10 +1206,8 @@ module IBMWatson
|
|
1281
1206
|
# the customization IDs of the custom models. For each custom model, the information
|
1282
1207
|
# lists information about each prompt that is defined for that custom model by the
|
1283
1208
|
# 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
|
1209
|
+
# speaker model to list its prompts. Speaker models and the custom prompts with
|
1210
|
+
# which they are used are supported only for use with US English custom models and
|
1288
1211
|
# voices.
|
1289
1212
|
#
|
1290
1213
|
# **See also:** [Listing the custom prompts for a speaker
|
@@ -1322,11 +1245,9 @@ module IBMWatson
|
|
1322
1245
|
# speaker's deletion. The prosodic data that defines the quality of a prompt is
|
1323
1246
|
# established when the prompt is created. A prompt is static and remains unaffected
|
1324
1247
|
# 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
|
-
#
|
1328
|
-
# functionality that is supported only for use with US English custom models and
|
1329
|
-
# voices.
|
1248
|
+
# or updated with its original speaker once that speaker is deleted. Speaker models
|
1249
|
+
# and the custom prompts with which they are used are supported only for use with US
|
1250
|
+
# English custom models and voices.
|
1330
1251
|
#
|
1331
1252
|
# **See also:** [Deleting a speaker
|
1332
1253
|
# model](https://cloud.ibm.com/docs/text-to-speech?topic=text-to-speech-tbe-speaker-models#tbe-speaker-models-delete).
|
data/lib/ibm_watson/version.rb
CHANGED
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.
|
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:
|
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
|