ibm_watson 0.18.2 → 0.19.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d951b800700009d1d278cbb30bf644e0f53ae097fc562fb197bca930b850c3c0
4
- data.tar.gz: 1d4c603032815914e3b8a4e29908b2944c79110e0d52200b8af90a93c5af450d
3
+ metadata.gz: 4f14ba82beb4e952129fd0b2e4301aea11e6d89b9bc2b817b24cdd26aa4d9d82
4
+ data.tar.gz: c8f01ecae6ef28809b577266b222420c018eb3a84c3ee65f9b997006a19959de
5
5
  SHA512:
6
- metadata.gz: 93af0b6d29c5868de632052de8cf5242734782d120a8df2bf930471051800f1eb37ffe7584d11ebc354b0c65d6e5c695df9ee2d8c42e1705658e5761cbb54cad
7
- data.tar.gz: 30fbe41af0c8bc7285a3f9d9d51417204cfa82c7d448a2df0a0d5b3ddce552cc00574a1d572222f3b4c47a346af1cccd5a50e8b86fa9cdbf82af39d585f465bd
6
+ metadata.gz: 7142cd6b84e4bd0479b26ae573bf83642f394029c600c5879b123a44e932cc18787964b582170a8c412eff8a3e96afd2f25cebc7543ca8f80734f0c3a8e6f47b
7
+ data.tar.gz: 45ec40387571c0e0fcc190441a57b7c4de2f0fcb9cce887b792cd3f2e6817794e0ff2ce7f0c07f17a2f60b6ffd42638b8bcd961325ce209ed82f08eb06254161
@@ -108,6 +108,11 @@ module IBMWatson
108
108
  # Get response to user input.
109
109
  # Send user input to a workspace and receive a response.
110
110
  #
111
+ # **Note:** For most applications, there are significant advantages to using the v2
112
+ # runtime API instead. These advantages include ease of deployment, automatic state
113
+ # management, versioning, and search capabilities. For more information, see the
114
+ # [documentation](https://cloud.ibm.com/docs/services/assistant?topic=assistant-api-overview).
115
+ #
111
116
  # There is no rate limit for this operation.
112
117
  # @param workspace_id [String] Unique identifier of the workspace.
113
118
  # @param input [MessageInput] An input object that includes the input text.
@@ -47,6 +47,16 @@ module IBMWatson
47
47
  # @option args url [String] The base url to use when contacting the service (e.g.
48
48
  # "https://gateway.watsonplatform.net/compare-comply/api").
49
49
  # The base url may differ between IBM Cloud regions.
50
+ # @option args username [String] The username used to authenticate with the service.
51
+ # Username and password credentials are only required to run your
52
+ # application locally or outside of IBM Cloud. When running on
53
+ # IBM Cloud, the credentials will be automatically loaded from the
54
+ # `VCAP_SERVICES` environment variable.
55
+ # @option args password [String] The password used to authenticate with the service.
56
+ # Username and password credentials are only required to run your
57
+ # application locally or outside of IBM Cloud. When running on
58
+ # IBM Cloud, the credentials will be automatically loaded from the
59
+ # `VCAP_SERVICES` environment variable.
50
60
  # @option args iam_apikey [String] An API key that can be used to request IAM tokens. If
51
61
  # this API key is provided, the SDK will manage the token and handle the
52
62
  # refreshing.
@@ -71,6 +81,8 @@ module IBMWatson
71
81
  defaults = {}
72
82
  defaults[:version] = nil
73
83
  defaults[:url] = "https://gateway.watsonplatform.net/compare-comply/api"
84
+ defaults[:username] = nil
85
+ defaults[:password] = nil
74
86
  defaults[:iam_apikey] = nil
75
87
  defaults[:iam_access_token] = nil
76
88
  defaults[:iam_url] = nil
@@ -269,7 +269,7 @@ module IBMWatson
269
269
  # successfully train with a parallel corpus you must have at least <b>5,000 parallel
270
270
  # sentences</b> in your corpus.
271
271
  #
272
- # You can have a <b>maxium of 10 custom models per language pair</b>.
272
+ # You can have a <b>maximum of 10 custom models per language pair</b>.
273
273
  # @param base_model_id [String] The model ID of the model to use as the base for customization. To see available
274
274
  # models, use the `List models` method. Usually all IBM provided models are
275
275
  # customizable. In addition, all your models that have been created via parallel
@@ -198,8 +198,6 @@ module IBMWatson
198
198
  # default, no consumption preferences are returned.
199
199
  # @param content_type [String] The type of the input. For more information, see **Content types** in the method
200
200
  # description.
201
- #
202
- # Default: `text/plain`.
203
201
  # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
204
202
  def profile(content:, accept:, content_language: nil, accept_language: nil, raw_scores: nil, csv_headers: nil, consumption_preferences: nil, content_type: nil)
205
203
  raise ArgumentError.new("content must be provided") if content.nil?
@@ -390,9 +390,6 @@ module IBMWatson
390
390
  #
391
391
  # See [Numeric
392
392
  # redaction](https://cloud.ibm.com/docs/services/speech-to-text?topic=speech-to-text-output#redaction).
393
- # The parameter accepts a minimum value of 0.1 seconds. The level of precision is
394
- # not restricted, so you can specify values such as 0.25 and 0.125.
395
- #
396
393
  # @param audio_metrics [Boolean] If `true`, requests detailed information about the signal characteristics of the
397
394
  # input audio. The service returns audio metrics with the final transcription
398
395
  # results. By default, the service returns no audio metrics.
@@ -1016,6 +1013,8 @@ module IBMWatson
1016
1013
  # @param processing_metrics_interval [Float] Specifies the interval in real wall-clock seconds at which the service is to
1017
1014
  # return processing metrics. The parameter is ignored unless the
1018
1015
  # `processing_metrics` parameter is set to `true`. # The parameter accepts a minimum value of 0.1 seconds. The level of precision is
1016
+ #
1017
+ # The parameter accepts a minimum value of 0.1 seconds. The level of precision is
1019
1018
  # not restricted, so you can specify values such as 0.25 and 0.125.
1020
1019
  #
1021
1020
  # The service does not impose a maximum value. If you want to receive processing
@@ -1388,6 +1387,11 @@ module IBMWatson
1388
1387
  # * The service is currently handling another request for the custom model, such as
1389
1388
  # another training request or a request to add a corpus or grammar to the model.
1390
1389
  # * No training data have been added to the custom model.
1390
+ # * The custom model contains one or more invalid corpora, grammars, or words (for
1391
+ # example, a custom word has an invalid sounds-like pronunciation). You can correct
1392
+ # the invalid resources or set the `strict` parameter to `false` to exclude the
1393
+ # invalid resources from the training. The model must contain at least one valid
1394
+ # resource for training to succeed.
1391
1395
  # @param customization_id [String] The customization ID (GUID) of the custom language model that is to be used for
1392
1396
  # the request. You must make the request with credentials for the instance of the
1393
1397
  # service that owns the custom model.
@@ -1609,11 +1613,17 @@ module IBMWatson
1609
1613
  # that matches the language of the custom model and reflects the contents of the
1610
1614
  # corpus.
1611
1615
  # * Include a maximum of 128 characters in the name.
1612
- # * Do not include spaces, slashes, or backslashes in the name.
1616
+ # * Do not use characters that need to be URL-encoded. For example, do not use
1617
+ # spaces, slashes, backslashes, colons, ampersands, double quotes, plus signs,
1618
+ # equals signs, questions marks, and so on in the name. (The service does not
1619
+ # prevent the use of these characters. But because they must be URL-encoded wherever
1620
+ # used, their use is strongly discouraged.)
1613
1621
  # * Do not use the name of an existing corpus or grammar that is already defined for
1614
1622
  # the custom model.
1615
1623
  # * Do not use the name `user`, which is reserved by the service to denote custom
1616
1624
  # words that are added or modified by the user.
1625
+ # * Do not use the name `base_lm` or `default_lm`. Both names are reserved for
1626
+ # future use by the service.
1617
1627
  # @param corpus_file [File] A plain text file that contains the training data for the corpus. Encode the file
1618
1628
  # in UTF-8 if it contains non-ASCII characters; the service assumes UTF-8 encoding
1619
1629
  # if it encounters non-ASCII characters.
@@ -1772,7 +1782,7 @@ module IBMWatson
1772
1782
  # are sorted in ascending alphabetical order. For alphabetical ordering, the
1773
1783
  # lexicographical precedence is numeric values, uppercase letters, and lowercase
1774
1784
  # letters. For count ordering, values with the same count are ordered
1775
- # alphabetically. With the `curl` command, URL encode the `+` symbol as `%2B`.
1785
+ # alphabetically. With the `curl` command, URL-encode the `+` symbol as `%2B`.
1776
1786
  # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
1777
1787
  def list_words(customization_id:, word_type: nil, sort: nil)
1778
1788
  raise ArgumentError.new("customization_id must be provided") if customization_id.nil?
@@ -2150,11 +2160,17 @@ module IBMWatson
2150
2160
  # that matches the language of the custom model and reflects the contents of the
2151
2161
  # grammar.
2152
2162
  # * Include a maximum of 128 characters in the name.
2153
- # * Do not include spaces, slashes, or backslashes in the name.
2163
+ # * Do not use characters that need to be URL-encoded. For example, do not use
2164
+ # spaces, slashes, backslashes, colons, ampersands, double quotes, plus signs,
2165
+ # equals signs, questions marks, and so on in the name. (The service does not
2166
+ # prevent the use of these characters. But because they must be URL-encoded wherever
2167
+ # used, their use is strongly discouraged.)
2154
2168
  # * Do not use the name of an existing grammar or corpus that is already defined for
2155
2169
  # the custom model.
2156
2170
  # * Do not use the name `user`, which is reserved by the service to denote custom
2157
2171
  # words that are added or modified by the user.
2172
+ # * Do not use the name `base_lm` or `default_lm`. Both names are reserved for
2173
+ # future use by the service.
2158
2174
  # @param grammar_file [String] A plain text file that contains the grammar in the format specified by the
2159
2175
  # `Content-Type` header. Encode the file in UTF-8 (ASCII is a subset of UTF-8).
2160
2176
  # Using any other encoding can lead to issues when compiling the grammar or to
@@ -2462,8 +2478,10 @@ module IBMWatson
2462
2478
  # model** method to poll the model's status. Use a loop to check the status once a
2463
2479
  # minute. The method returns an `AcousticModel` object that includes `status` and
2464
2480
  # `progress` fields. A status of `available` indicates that the custom model is
2465
- # trained and ready to use. The service cannot accept subsequent training requests,
2466
- # or requests to add new audio resources, until the existing request completes.
2481
+ # trained and ready to use. The service cannot train a model while it is handling
2482
+ # another request for the model. The service cannot accept subsequent training
2483
+ # requests, or requests to add new audio resources, until the existing training
2484
+ # request completes.
2467
2485
  #
2468
2486
  # You can use the optional `custom_language_model_id` parameter to specify the GUID
2469
2487
  # of a separately created custom language model that is to be used during training.
@@ -2490,6 +2508,10 @@ module IBMWatson
2490
2508
  # * You passed an incompatible custom language model with the
2491
2509
  # `custom_language_model_id` query parameter. Both custom models must be based on
2492
2510
  # the same version of the same base model.
2511
+ # * The custom model contains one or more invalid audio resources. You can correct
2512
+ # the invalid audio resources or set the `strict` parameter to `false` to exclude
2513
+ # the invalid resources from the training. The model must contain at least one valid
2514
+ # resource for training to succeed.
2493
2515
  # @param customization_id [String] The customization ID (GUID) of the custom acoustic model that is to be used for
2494
2516
  # the request. You must make the request with credentials for the instance of the
2495
2517
  # service that owns the custom model.
@@ -2531,8 +2553,11 @@ module IBMWatson
2531
2553
  # Resets a custom acoustic model by removing all audio resources from the model.
2532
2554
  # Resetting a custom acoustic model initializes the model to its state when it was
2533
2555
  # first created. Metadata such as the name and language of the model are preserved,
2534
- # but the model's audio resources are removed and must be re-created. You must use
2535
- # credentials for the instance of the service that owns a model to reset it.
2556
+ # but the model's audio resources are removed and must be re-created. The service
2557
+ # cannot reset a model while it is handling another request for the model. The
2558
+ # service cannot accept subsequent requests for the model until the existing reset
2559
+ # request completes. You must use credentials for the instance of the service that
2560
+ # owns a model to reset it.
2536
2561
  #
2537
2562
  # **See also:** [Resetting a custom acoustic
2538
2563
  # model](https://cloud.ibm.com/docs/services/speech-to-text?topic=speech-to-text-manageAcousticModels#resetModel-acoustic).
@@ -2576,8 +2601,10 @@ module IBMWatson
2576
2601
  # returns an `AcousticModel` object that includes `status` and `progress` fields.
2577
2602
  # Use a loop to check the status once a minute. While it is being upgraded, the
2578
2603
  # custom model has the status `upgrading`. When the upgrade is complete, the model
2579
- # resumes the status that it had prior to upgrade. The service cannot accept
2580
- # subsequent requests for the model until the upgrade completes.
2604
+ # resumes the status that it had prior to upgrade. The service cannot upgrade a
2605
+ # model while it is handling another request for the model. The service cannot
2606
+ # accept subsequent requests for the model until the existing upgrade request
2607
+ # completes.
2581
2608
  #
2582
2609
  # If the custom acoustic model was trained with a separately created custom language
2583
2610
  # model, you must use the `custom_language_model_id` parameter to specify the GUID
@@ -2680,22 +2707,22 @@ module IBMWatson
2680
2707
  # format that the service supports for speech recognition.
2681
2708
  #
2682
2709
  # You can use this method to add any number of audio resources to a custom model by
2683
- # calling the method once for each audio or archive file. But the addition of one
2684
- # audio resource must be fully complete before you can add another. You must add a
2685
- # minimum of 10 minutes and a maximum of 200 hours of audio that includes speech,
2686
- # not just silence, to a custom acoustic model before you can train it. No audio
2687
- # resource, audio- or archive-type, can be larger than 100 MB. To add an audio
2688
- # resource that has the same name as an existing audio resource, set the
2689
- # `allow_overwrite` parameter to `true`; otherwise, the request fails.
2710
+ # calling the method once for each audio or archive file. You can add multiple
2711
+ # different audio resources at the same time. You must add a minimum of 10 minutes
2712
+ # and a maximum of 200 hours of audio that includes speech, not just silence, to a
2713
+ # custom acoustic model before you can train it. No audio resource, audio- or
2714
+ # archive-type, can be larger than 100 MB. To add an audio resource that has the
2715
+ # same name as an existing audio resource, set the `allow_overwrite` parameter to
2716
+ # `true`; otherwise, the request fails.
2690
2717
  #
2691
2718
  # The method is asynchronous. It can take several seconds to complete depending on
2692
2719
  # the duration of the audio and, in the case of an archive file, the total number of
2693
2720
  # audio files being processed. The service returns a 201 response code if the audio
2694
2721
  # is valid. It then asynchronously analyzes the contents of the audio file or files
2695
2722
  # and automatically extracts information about the audio such as its length,
2696
- # sampling rate, and encoding. You cannot submit requests to add additional audio
2697
- # resources to a custom acoustic model, or to train the model, until the service's
2698
- # analysis of all audio files for the current request completes.
2723
+ # sampling rate, and encoding. You cannot submit requests to train or upgrade the
2724
+ # model until the service's analysis of all audio resources for current requests
2725
+ # completes.
2699
2726
  #
2700
2727
  # To determine the status of the service's analysis of the audio, use the **Get an
2701
2728
  # audio resource** method to poll the status of the audio. The method accepts the
@@ -2767,13 +2794,9 @@ module IBMWatson
2767
2794
  #
2768
2795
  # ### Naming restrictions for embedded audio files
2769
2796
  #
2770
- # The name of an audio file that is embedded within an archive-type resource must
2771
- # meet the following restrictions:
2772
- # * Include a maximum of 128 characters in the file name; this includes the file
2773
- # extension.
2774
- # * Do not include spaces, slashes, or backslashes in the file name.
2775
- # * Do not use the name of an audio file that has already been added to the custom
2776
- # model as part of an archive-type resource.
2797
+ # The name of an audio file that is contained in an archive-type resource can
2798
+ # include a maximum of 128 characters. This includes the file extension and all
2799
+ # elements of the name (for example, slashes).
2777
2800
  # @param customization_id [String] The customization ID (GUID) of the custom acoustic model that is to be used for
2778
2801
  # the request. You must make the request with credentials for the instance of the
2779
2802
  # service that owns the custom model.
@@ -2781,7 +2804,11 @@ module IBMWatson
2781
2804
  # name that matches the language of the custom model and reflects the contents of
2782
2805
  # the resource.
2783
2806
  # * Include a maximum of 128 characters in the name.
2784
- # * Do not include spaces, slashes, or backslashes in the name.
2807
+ # * Do not use characters that need to be URL-encoded. For example, do not use
2808
+ # spaces, slashes, backslashes, colons, ampersands, double quotes, plus signs,
2809
+ # equals signs, questions marks, and so on in the name. (The service does not
2810
+ # prevent the use of these characters. But because they must be URL-encoded wherever
2811
+ # used, their use is strongly discouraged.)
2785
2812
  # * Do not use the name of an audio resource that has already been added to the
2786
2813
  # custom model.
2787
2814
  # @param audio_resource [String] The audio resource that is to be added to the custom acoustic model, an individual
@@ -2905,12 +2932,14 @@ module IBMWatson
2905
2932
  # @!method delete_audio(customization_id:, audio_name:)
2906
2933
  # Delete an audio resource.
2907
2934
  # Deletes an existing audio resource from a custom acoustic model. Deleting an
2908
- # archive-type audio resource removes the entire archive of files; the current
2909
- # interface does not allow deletion of individual files from an archive resource.
2935
+ # archive-type audio resource removes the entire archive of files. The service does
2936
+ # not allow deletion of individual files from an archive resource.
2937
+ #
2910
2938
  # Removing an audio resource does not affect the custom model until you train the
2911
2939
  # model on its updated data by using the **Train a custom acoustic model** method.
2912
- # You must use credentials for the instance of the service that owns a model to
2913
- # delete its audio resources.
2940
+ # You can delete an existing audio resource from a model while a different resource
2941
+ # is being added to the model. You must use credentials for the instance of the
2942
+ # service that owns a model to delete its audio resources.
2914
2943
  #
2915
2944
  # **See also:** [Deleting an audio resource from a custom acoustic
2916
2945
  # model](https://cloud.ibm.com/docs/services/speech-to-text?topic=speech-to-text-manageAudio#deleteAudio).
@@ -137,16 +137,17 @@ module IBMWatson
137
137
  # Get a voice.
138
138
  # Gets information about the specified voice. The information includes the name,
139
139
  # language, gender, and other details about the voice. Specify a customization ID to
140
- # obtain information for that custom voice model of the specified voice. To list
141
- # information about all available voices, use the **List voices** method.
140
+ # obtain information for a custom voice model that is defined for the language of
141
+ # the specified voice. To list information about all available voices, use the
142
+ # **List voices** method.
142
143
  #
143
144
  # **See also:** [Listing a specific
144
145
  # voice](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-voices#listVoice).
145
146
  # @param voice [String] The voice for which information is to be returned.
146
147
  # @param customization_id [String] The customization ID (GUID) of a custom voice model for which information is to be
147
- # returned. You must make the request with service credentials created for the
148
- # instance of the service that owns the custom model. Omit the parameter to see
149
- # information about the specified voice with no customization.
148
+ # returned. You must make the request with credentials for the instance of the
149
+ # service that owns the custom model. Omit the parameter to see information about
150
+ # the specified voice with no customization.
150
151
  # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
151
152
  def get_voice(voice:, customization_id: nil)
152
153
  raise ArgumentError.new("voice must be provided") if voice.nil?
@@ -271,15 +272,13 @@ module IBMWatson
271
272
  # @param voice [String] The voice to use for synthesis.
272
273
  # @param customization_id [String] The customization ID (GUID) of a custom voice model to use for the synthesis. If a
273
274
  # custom voice model is specified, it is guaranteed to work only if it matches the
274
- # language of the indicated voice. You must make the request with service
275
- # credentials created for the instance of the service that owns the custom model.
276
- # Omit the parameter to use the specified voice with no customization.
275
+ # language of the indicated voice. You must make the request with credentials for
276
+ # the instance of the service that owns the custom model. Omit the parameter to use
277
+ # the specified voice with no customization.
277
278
  # @param accept [String] The requested format (MIME type) of the audio. You can use the `Accept` header or
278
279
  # the `accept` parameter to specify the audio format. For more information about
279
280
  # specifying an audio format, see **Audio formats (accept types)** in the method
280
281
  # description.
281
- #
282
- # Default: `audio/ogg;codecs=opus`.
283
282
  # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
284
283
  def synthesize(text:, voice: nil, customization_id: nil, accept: nil)
285
284
  raise ArgumentError.new("text must be provided") if text.nil?
@@ -337,9 +336,9 @@ module IBMWatson
337
336
  # to be returned. The language of a specified custom model must match the language
338
337
  # of the specified voice. If the word is not defined in the specified custom model,
339
338
  # the service returns the default translation for the custom model's language. You
340
- # must make the request with service credentials created for the instance of the
341
- # service that owns the custom model. Omit the parameter to see the translation for
342
- # the specified voice with no customization.
339
+ # must make the request with credentials for the instance of the service that owns
340
+ # the custom model. Omit the parameter to see the translation for the specified
341
+ # voice with no customization.
343
342
  # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
344
343
  def get_pronunciation(text:, voice: nil, format: nil, customization_id: nil)
345
344
  raise ArgumentError.new("text must be provided") if text.nil?
@@ -430,8 +429,8 @@ module IBMWatson
430
429
  # **See also:** [Querying all custom
431
430
  # models](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customModels#cuModelsQueryAll).
432
431
  # @param language [String] The language for which custom voice models that are owned by the requesting
433
- # service credentials are to be returned. Omit the parameter to see all custom voice
434
- # models that are owned by the requester.
432
+ # credentials are to be returned. Omit the parameter to see all custom voice models
433
+ # that are owned by the requester.
435
434
  # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
436
435
  def list_voice_models(language: nil)
437
436
  headers = {
@@ -489,8 +488,7 @@ module IBMWatson
489
488
  # * [Understanding
490
489
  # customization](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customIntro#customIntro).
491
490
  # @param customization_id [String] The customization ID (GUID) of the custom voice model. You must make the request
492
- # with service credentials created for the instance of the service that owns the
493
- # custom model.
491
+ # with credentials for the instance of the service that owns the custom model.
494
492
  # @param name [String] A new name for the custom voice model.
495
493
  # @param description [String] A new description for the custom voice model.
496
494
  # @param words [Array[Word]] An array of `Word` objects that provides the words and their translations that are
@@ -536,8 +534,7 @@ module IBMWatson
536
534
  # **See also:** [Querying a custom
537
535
  # model](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customModels#cuModelsQuery).
538
536
  # @param customization_id [String] The customization ID (GUID) of the custom voice model. You must make the request
539
- # with service credentials created for the instance of the service that owns the
540
- # custom model.
537
+ # with credentials for the instance of the service that owns the custom model.
541
538
  # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
542
539
  def get_voice_model(customization_id:)
543
540
  raise ArgumentError.new("customization_id must be provided") if customization_id.nil?
@@ -569,8 +566,7 @@ module IBMWatson
569
566
  # **See also:** [Deleting a custom
570
567
  # model](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customModels#cuModelsDelete).
571
568
  # @param customization_id [String] The customization ID (GUID) of the custom voice model. You must make the request
572
- # with service credentials created for the instance of the service that owns the
573
- # custom model.
569
+ # with credentials for the instance of the service that owns the custom model.
574
570
  # @return [nil]
575
571
  def delete_voice_model(customization_id:)
576
572
  raise ArgumentError.new("customization_id must be provided") if customization_id.nil?
@@ -627,8 +623,7 @@ module IBMWatson
627
623
  # * [Understanding
628
624
  # customization](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customIntro#customIntro).
629
625
  # @param customization_id [String] The customization ID (GUID) of the custom voice model. You must make the request
630
- # with service credentials created for the instance of the service that owns the
631
- # custom model.
626
+ # with credentials for the instance of the service that owns the custom model.
632
627
  # @param words [Array[Word]] The **Add custom words** method accepts an array of `Word` objects. Each object
633
628
  # provides a word that is to be added or updated for the custom voice model and the
634
629
  # word's translation.
@@ -677,8 +672,7 @@ module IBMWatson
677
672
  # **See also:** [Querying all words from a custom
678
673
  # model](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customWords#cuWordsQueryModel).
679
674
  # @param customization_id [String] The customization ID (GUID) of the custom voice model. You must make the request
680
- # with service credentials created for the instance of the service that owns the
681
- # custom model.
675
+ # with credentials for the instance of the service that owns the custom model.
682
676
  # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
683
677
  def list_words(customization_id:)
684
678
  raise ArgumentError.new("customization_id must be provided") if customization_id.nil?
@@ -732,8 +726,7 @@ module IBMWatson
732
726
  # * [Understanding
733
727
  # customization](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customIntro#customIntro).
734
728
  # @param customization_id [String] The customization ID (GUID) of the custom voice model. You must make the request
735
- # with service credentials created for the instance of the service that owns the
736
- # custom model.
729
+ # with credentials for the instance of the service that owns the custom model.
737
730
  # @param word [String] The word that is to be added or updated for the custom voice model.
738
731
  # @param translation [String] The phonetic or sounds-like translation for the word. A phonetic translation is
739
732
  # based on the SSML format for representing the phonetic string of a word either as
@@ -787,8 +780,7 @@ module IBMWatson
787
780
  # **See also:** [Querying a single word from a custom
788
781
  # model](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customWords#cuWordQueryModel).
789
782
  # @param customization_id [String] The customization ID (GUID) of the custom voice model. You must make the request
790
- # with service credentials created for the instance of the service that owns the
791
- # custom model.
783
+ # with credentials for the instance of the service that owns the custom model.
792
784
  # @param word [String] The word that is to be queried from the custom voice model.
793
785
  # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
794
786
  def get_word(customization_id:, word:)
@@ -824,8 +816,7 @@ module IBMWatson
824
816
  # **See also:** [Deleting a word from a custom
825
817
  # model](https://cloud.ibm.com/docs/services/text-to-speech?topic=text-to-speech-customWords#cuWordDelete).
826
818
  # @param customization_id [String] The customization ID (GUID) of the custom voice model. You must make the request
827
- # with service credentials created for the instance of the service that owns the
828
- # custom model.
819
+ # with credentials for the instance of the service that owns the custom model.
829
820
  # @param word [String] The word that is to be deleted from the custom voice model.
830
821
  # @return [nil]
831
822
  def delete_word(customization_id:, word:)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IBMWatson
4
- VERSION = "0.18.2"
4
+ VERSION = "0.19.0"
5
5
  end
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: 0.18.2
4
+ version: 0.19.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: 2019-07-01 00:00:00.000000000 Z
11
+ date: 2019-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby