ibm_watson 2.1.3 → 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 +13 -13
- data/lib/ibm_watson/assistant_v1.rb +2 -2
- data/lib/ibm_watson/assistant_v2.rb +2 -2
- data/lib/ibm_watson/discovery_v1.rb +3 -4
- data/lib/ibm_watson/language_translator_v3.rb +1 -1
- data/lib/ibm_watson/natural_language_understanding_v1.rb +1 -1
- data/lib/ibm_watson/speech_to_text_v1.rb +257 -176
- data/lib/ibm_watson/text_to_speech_v1.rb +38 -119
- 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 -267
- 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.
|
@@ -17,7 +17,7 @@
|
|
17
17
|
# IBM OpenAPI SDK Code Generator Version: 3.38.0-07189efd-20210827-205025
|
18
18
|
#
|
19
19
|
# The IBM Watson™ Speech to Text service provides APIs that use IBM's
|
20
|
-
# speech-recognition capabilities to produce transcripts of spoken audio.
|
20
|
+
# speech-recognition capabilities to produce transcripts of spoken audio. The service can
|
21
21
|
# transcribe speech from various languages and audio formats. In addition to basic
|
22
22
|
# transcription, the service can produce detailed information about many different aspects
|
23
23
|
# of the audio. It returns all JSON response content in the UTF-8 character set.
|
@@ -29,6 +29,14 @@
|
|
29
29
|
# minimum sampling rates of 8 kHz. The next-generation models offer high throughput and
|
30
30
|
# greater transcription accuracy.
|
31
31
|
#
|
32
|
+
# Effective 15 March 2022, previous-generation models for all languages other than Arabic
|
33
|
+
# and Japanese are deprecated. The deprecated models remain available until 15 September
|
34
|
+
# 2022, when they will be removed from the service and the documentation. You must migrate
|
35
|
+
# to the equivalent next-generation model by the end of service date. For more
|
36
|
+
# information, see [Migrating to next-generation
|
37
|
+
# models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-migrate).{:
|
38
|
+
# deprecated}
|
39
|
+
#
|
32
40
|
# For speech recognition, the service supports synchronous and asynchronous HTTP
|
33
41
|
# Representational State Transfer (REST) interfaces. It also supports a WebSocket
|
34
42
|
# interface that provides a full-duplex, low-latency communication channel: Clients send
|
@@ -42,10 +50,9 @@
|
|
42
50
|
# is a formal language specification that lets you restrict the phrases that the service
|
43
51
|
# can recognize.
|
44
52
|
#
|
45
|
-
# Language model customization
|
46
|
-
# Acoustic model customization is available for all
|
47
|
-
#
|
48
|
-
# language model customization.
|
53
|
+
# Language model customization and grammars are available for most previous- and
|
54
|
+
# next-generation models. Acoustic model customization is available for all
|
55
|
+
# previous-generation models.
|
49
56
|
|
50
57
|
require "concurrent"
|
51
58
|
require "erb"
|
@@ -95,8 +102,8 @@ module IBMWatson
|
|
95
102
|
# among other things. The ordering of the list of models can change from call to
|
96
103
|
# call; do not rely on an alphabetized or static list of models.
|
97
104
|
#
|
98
|
-
# **See also:** [Listing
|
99
|
-
# models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-list).
|
105
|
+
# **See also:** [Listing all
|
106
|
+
# models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-list#models-list-all).
|
100
107
|
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
101
108
|
def list_models
|
102
109
|
headers = {
|
@@ -122,8 +129,8 @@ module IBMWatson
|
|
122
129
|
# with the service. The information includes the name of the model and its minimum
|
123
130
|
# sampling rate in Hertz, among other things.
|
124
131
|
#
|
125
|
-
# **See also:** [Listing
|
126
|
-
#
|
132
|
+
# **See also:** [Listing a specific
|
133
|
+
# model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-list#models-list-specific).
|
127
134
|
# @param model_id [String] The identifier of the model in the form of its name from the output of the [List
|
128
135
|
# models](#listmodels) method. (**Note:** The model `ar-AR_BroadbandModel` is
|
129
136
|
# deprecated; use `ar-MS_BroadbandModel` instead.).
|
@@ -233,21 +240,29 @@ module IBMWatson
|
|
233
240
|
# You specify a next-generation model by using the `model` query parameter, as you
|
234
241
|
# do a previous-generation model. Many next-generation models also support the
|
235
242
|
# `low_latency` parameter, which is not available with previous-generation models.
|
243
|
+
# Next-generation models do not support all of the parameters that are available for
|
244
|
+
# use with previous-generation models.
|
236
245
|
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
241
|
-
#
|
246
|
+
# **Important:** Effective 15 March 2022, previous-generation models for all
|
247
|
+
# languages other than Arabic and Japanese are deprecated. The deprecated models
|
248
|
+
# remain available until 15 September 2022, when they will be removed from the
|
249
|
+
# service and the documentation. You must migrate to the equivalent next-generation
|
250
|
+
# model by the end of service date. For more information, see [Migrating to
|
251
|
+
# next-generation
|
252
|
+
# models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-migrate).
|
242
253
|
#
|
243
254
|
#
|
244
|
-
# **See also:**
|
245
|
-
#
|
255
|
+
# **See also:**
|
256
|
+
# * [Next-generation languages and
|
257
|
+
# models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-ng)
|
258
|
+
# * [Supported features for next-generation
|
259
|
+
# models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-ng#models-ng-features)
|
246
260
|
#
|
247
261
|
#
|
248
262
|
# ### Multipart speech recognition
|
249
263
|
#
|
250
|
-
# **Note:** The
|
264
|
+
# **Note:** The asynchronous HTTP interface, WebSocket interface, and Watson SDKs
|
265
|
+
# do not support multipart speech recognition.
|
251
266
|
#
|
252
267
|
# The HTTP `POST` method of the service also supports multipart speech recognition.
|
253
268
|
# With multipart requests, you pass all audio data as multipart form data. You
|
@@ -267,10 +282,8 @@ module IBMWatson
|
|
267
282
|
# audio format, see **Audio formats (content types)** in the method description.
|
268
283
|
# @param model [String] The identifier of the model that is to be used for the recognition request.
|
269
284
|
# (**Note:** The model `ar-AR_BroadbandModel` is deprecated; use
|
270
|
-
# `ar-MS_BroadbandModel` instead.) See [
|
271
|
-
#
|
272
|
-
# [Next-generation languages and
|
273
|
-
# models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-ng).
|
285
|
+
# `ar-MS_BroadbandModel` instead.) See [Using a model for speech
|
286
|
+
# recognition](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-use).
|
274
287
|
# @param language_customization_id [String] The customization ID (GUID) of a custom language model that is to be used with the
|
275
288
|
# recognition request. The base model of the specified custom language model must
|
276
289
|
# match the model specified with the `model` parameter. You must make the request
|
@@ -355,8 +368,10 @@ module IBMWatson
|
|
355
368
|
# timestamps](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-metadata#word-timestamps).
|
356
369
|
# @param profanity_filter [Boolean] If `true`, the service filters profanity from all output except for keyword
|
357
370
|
# results by replacing inappropriate words with a series of asterisks. Set the
|
358
|
-
# parameter to `false` to return results with no censoring.
|
359
|
-
#
|
371
|
+
# parameter to `false` to return results with no censoring.
|
372
|
+
#
|
373
|
+
# **Note:** The parameter can be used with US English and Japanese transcription
|
374
|
+
# only. See [Profanity
|
360
375
|
# filtering](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-formatting#profanity-filtering).
|
361
376
|
# @param smart_formatting [Boolean] If `true`, the service converts dates, times, series of digits and numbers, phone
|
362
377
|
# numbers, currency values, and internet addresses into more readable, conventional
|
@@ -364,8 +379,8 @@ module IBMWatson
|
|
364
379
|
# the service also converts certain keyword strings to punctuation symbols. By
|
365
380
|
# default, the service performs no smart formatting.
|
366
381
|
#
|
367
|
-
# **
|
368
|
-
#
|
382
|
+
# **Note:** The parameter can be used with US English, Japanese, and Spanish (all
|
383
|
+
# dialects) transcription only.
|
369
384
|
#
|
370
385
|
# See [Smart
|
371
386
|
# formatting](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-formatting#smart-formatting).
|
@@ -374,16 +389,14 @@ module IBMWatson
|
|
374
389
|
# speaker labels. Setting `speaker_labels` to `true` forces the `timestamps`
|
375
390
|
# parameter to be `true`, regardless of whether you specify `false` for the
|
376
391
|
# parameter.
|
377
|
-
#
|
378
|
-
# **Beta:** The parameter is beta functionality.
|
379
|
-
# * For previous-generation models, the parameter can be used for Australian
|
392
|
+
# * _For previous-generation models,_ the parameter can be used with Australian
|
380
393
|
# English, US English, German, Japanese, Korean, and Spanish (both broadband and
|
381
394
|
# narrowband models) and UK English (narrowband model) transcription only.
|
382
|
-
# *
|
383
|
-
# Indian, UK, and US), German, Japanese, Korean, and Spanish
|
395
|
+
# * _For next-generation models,_ the parameter can be used with Czech, English
|
396
|
+
# (Australian, Indian, UK, and US), German, Japanese, Korean, and Spanish
|
397
|
+
# transcription only.
|
384
398
|
#
|
385
|
-
#
|
386
|
-
# models. See [Speaker
|
399
|
+
# See [Speaker
|
387
400
|
# labels](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-speaker-labels).
|
388
401
|
# @param customization_id [String] **Deprecated.** Use the `language_customization_id` parameter to specify the
|
389
402
|
# customization ID (GUID) of a custom language model that is to be used with the
|
@@ -394,8 +407,6 @@ module IBMWatson
|
|
394
407
|
# The service recognizes only strings that are recognized by the specified grammar;
|
395
408
|
# it does not recognize other custom words from the model's words resource.
|
396
409
|
#
|
397
|
-
# **Beta:** The parameter is beta functionality.
|
398
|
-
#
|
399
410
|
# See [Using a grammar for speech
|
400
411
|
# recognition](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-grammarUse).
|
401
412
|
# @param redaction [Boolean] If `true`, the service redacts, or masks, numeric data from final transcripts. The
|
@@ -409,8 +420,8 @@ module IBMWatson
|
|
409
420
|
# `keywords_threshold` parameters) and returns only a single final transcript
|
410
421
|
# (forces the `max_alternatives` parameter to be `1`).
|
411
422
|
#
|
412
|
-
# **
|
413
|
-
#
|
423
|
+
# **Note:** The parameter can be used with US English, Japanese, and Korean
|
424
|
+
# transcription only.
|
414
425
|
#
|
415
426
|
# See [Numeric
|
416
427
|
# redaction](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-formatting#numeric-redaction).
|
@@ -442,8 +453,11 @@ module IBMWatson
|
|
442
453
|
# meaningful phrases such as sentences. The service bases its understanding of
|
443
454
|
# semantic features on the base language model that you use with a request. Custom
|
444
455
|
# language models and grammars can also influence how and where the service splits a
|
445
|
-
# transcript.
|
446
|
-
#
|
456
|
+
# transcript.
|
457
|
+
#
|
458
|
+
# By default, the service splits transcripts based solely on the pause interval. If
|
459
|
+
# the parameters are used together on the same request, `end_of_phrase_silence_time`
|
460
|
+
# has precedence over `split_transcript_at_phrase_end`.
|
447
461
|
#
|
448
462
|
# See [Split transcript at phrase
|
449
463
|
# end](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-parsing#split-transcript).
|
@@ -458,8 +472,13 @@ module IBMWatson
|
|
458
472
|
# * 0.5 (the default) provides a reasonable compromise for the level of sensitivity.
|
459
473
|
# * 1.0 suppresses no audio (speech detection sensitivity is disabled).
|
460
474
|
#
|
461
|
-
# The values increase on a monotonic curve.
|
462
|
-
#
|
475
|
+
# The values increase on a monotonic curve.
|
476
|
+
#
|
477
|
+
# The parameter is supported with all next-generation models and with most
|
478
|
+
# previous-generation models. See [Speech detector
|
479
|
+
# sensitivity](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-detection#detection-parameters-sensitivity)
|
480
|
+
# and [Language model
|
481
|
+
# support](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-detection#detection-support).
|
463
482
|
# @param background_audio_suppression [Float] The level to which the service is to suppress background audio based on its volume
|
464
483
|
# to prevent it from being transcribed as speech. Use the parameter to suppress side
|
465
484
|
# conversations or background noise.
|
@@ -470,8 +489,13 @@ module IBMWatson
|
|
470
489
|
# * 0.5 provides a reasonable level of audio suppression for general usage.
|
471
490
|
# * 1.0 suppresses all audio (no audio is transcribed).
|
472
491
|
#
|
473
|
-
# The values increase on a monotonic curve.
|
474
|
-
#
|
492
|
+
# The values increase on a monotonic curve.
|
493
|
+
#
|
494
|
+
# The parameter is supported with all next-generation models and with most
|
495
|
+
# previous-generation models. See [Background audio
|
496
|
+
# suppression](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-detection#detection-parameters-suppression)
|
497
|
+
# and [Language model
|
498
|
+
# support](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-detection#detection-support).
|
475
499
|
# @param low_latency [Boolean] If `true` for next-generation `Multimedia` and `Telephony` models that support low
|
476
500
|
# latency, directs the service to produce results even more quickly than it usually
|
477
501
|
# does. Next-generation models produce transcription results faster than
|
@@ -754,6 +778,7 @@ module IBMWatson
|
|
754
778
|
options.delete_if { |_, v| v.nil? }
|
755
779
|
WebSocketClient.new(audio: audio, chunk_data: chunk_data, options: options, recognize_callback: recognize_callback, service_url: service_url, headers: headers, disable_ssl_verification: @disable_ssl_verification)
|
756
780
|
end
|
781
|
+
|
757
782
|
#########################
|
758
783
|
# Asynchronous
|
759
784
|
#########################
|
@@ -979,25 +1004,30 @@ module IBMWatson
|
|
979
1004
|
# You specify a next-generation model by using the `model` query parameter, as you
|
980
1005
|
# do a previous-generation model. Many next-generation models also support the
|
981
1006
|
# `low_latency` parameter, which is not available with previous-generation models.
|
1007
|
+
# Next-generation models do not support all of the parameters that are available for
|
1008
|
+
# use with previous-generation models.
|
982
1009
|
#
|
983
|
-
#
|
984
|
-
#
|
985
|
-
#
|
986
|
-
#
|
987
|
-
#
|
1010
|
+
# **Important:** Effective 15 March 2022, previous-generation models for all
|
1011
|
+
# languages other than Arabic and Japanese are deprecated. The deprecated models
|
1012
|
+
# remain available until 15 September 2022, when they will be removed from the
|
1013
|
+
# service and the documentation. You must migrate to the equivalent next-generation
|
1014
|
+
# model by the end of service date. For more information, see [Migrating to
|
1015
|
+
# next-generation
|
1016
|
+
# models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-migrate).
|
988
1017
|
#
|
989
1018
|
#
|
990
|
-
# **See also:**
|
991
|
-
#
|
1019
|
+
# **See also:**
|
1020
|
+
# * [Next-generation languages and
|
1021
|
+
# models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-ng)
|
1022
|
+
# * [Supported features for next-generation
|
1023
|
+
# models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-ng#models-ng-features).
|
992
1024
|
# @param audio [File] The audio to transcribe.
|
993
1025
|
# @param content_type [String] The format (MIME type) of the audio. For more information about specifying an
|
994
1026
|
# audio format, see **Audio formats (content types)** in the method description.
|
995
1027
|
# @param model [String] The identifier of the model that is to be used for the recognition request.
|
996
1028
|
# (**Note:** The model `ar-AR_BroadbandModel` is deprecated; use
|
997
|
-
# `ar-MS_BroadbandModel` instead.) See [
|
998
|
-
#
|
999
|
-
# [Next-generation languages and
|
1000
|
-
# models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-ng).
|
1029
|
+
# `ar-MS_BroadbandModel` instead.) See [Using a model for speech
|
1030
|
+
# recognition](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-use).
|
1001
1031
|
# @param callback_url [String] A URL to which callback notifications are to be sent. The URL must already be
|
1002
1032
|
# successfully allowlisted by using the [Register a callback](#registercallback)
|
1003
1033
|
# method. You can include the same callback URL with any number of job creation
|
@@ -1116,8 +1146,10 @@ module IBMWatson
|
|
1116
1146
|
# timestamps](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-metadata#word-timestamps).
|
1117
1147
|
# @param profanity_filter [Boolean] If `true`, the service filters profanity from all output except for keyword
|
1118
1148
|
# results by replacing inappropriate words with a series of asterisks. Set the
|
1119
|
-
# parameter to `false` to return results with no censoring.
|
1120
|
-
#
|
1149
|
+
# parameter to `false` to return results with no censoring.
|
1150
|
+
#
|
1151
|
+
# **Note:** The parameter can be used with US English and Japanese transcription
|
1152
|
+
# only. See [Profanity
|
1121
1153
|
# filtering](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-formatting#profanity-filtering).
|
1122
1154
|
# @param smart_formatting [Boolean] If `true`, the service converts dates, times, series of digits and numbers, phone
|
1123
1155
|
# numbers, currency values, and internet addresses into more readable, conventional
|
@@ -1125,8 +1157,8 @@ module IBMWatson
|
|
1125
1157
|
# the service also converts certain keyword strings to punctuation symbols. By
|
1126
1158
|
# default, the service performs no smart formatting.
|
1127
1159
|
#
|
1128
|
-
# **
|
1129
|
-
#
|
1160
|
+
# **Note:** The parameter can be used with US English, Japanese, and Spanish (all
|
1161
|
+
# dialects) transcription only.
|
1130
1162
|
#
|
1131
1163
|
# See [Smart
|
1132
1164
|
# formatting](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-formatting#smart-formatting).
|
@@ -1135,16 +1167,14 @@ module IBMWatson
|
|
1135
1167
|
# speaker labels. Setting `speaker_labels` to `true` forces the `timestamps`
|
1136
1168
|
# parameter to be `true`, regardless of whether you specify `false` for the
|
1137
1169
|
# parameter.
|
1138
|
-
#
|
1139
|
-
# **Beta:** The parameter is beta functionality.
|
1140
|
-
# * For previous-generation models, the parameter can be used for Australian
|
1170
|
+
# * _For previous-generation models,_ the parameter can be used with Australian
|
1141
1171
|
# English, US English, German, Japanese, Korean, and Spanish (both broadband and
|
1142
1172
|
# narrowband models) and UK English (narrowband model) transcription only.
|
1143
|
-
# *
|
1144
|
-
# Indian, UK, and US), German, Japanese, Korean, and Spanish
|
1173
|
+
# * _For next-generation models,_ the parameter can be used with Czech, English
|
1174
|
+
# (Australian, Indian, UK, and US), German, Japanese, Korean, and Spanish
|
1175
|
+
# transcription only.
|
1145
1176
|
#
|
1146
|
-
#
|
1147
|
-
# models. See [Speaker
|
1177
|
+
# See [Speaker
|
1148
1178
|
# labels](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-speaker-labels).
|
1149
1179
|
# @param customization_id [String] **Deprecated.** Use the `language_customization_id` parameter to specify the
|
1150
1180
|
# customization ID (GUID) of a custom language model that is to be used with the
|
@@ -1155,8 +1185,6 @@ module IBMWatson
|
|
1155
1185
|
# The service recognizes only strings that are recognized by the specified grammar;
|
1156
1186
|
# it does not recognize other custom words from the model's words resource.
|
1157
1187
|
#
|
1158
|
-
# **Beta:** The parameter is beta functionality.
|
1159
|
-
#
|
1160
1188
|
# See [Using a grammar for speech
|
1161
1189
|
# recognition](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-grammarUse).
|
1162
1190
|
# @param redaction [Boolean] If `true`, the service redacts, or masks, numeric data from final transcripts. The
|
@@ -1170,8 +1198,8 @@ module IBMWatson
|
|
1170
1198
|
# `keywords_threshold` parameters) and returns only a single final transcript
|
1171
1199
|
# (forces the `max_alternatives` parameter to be `1`).
|
1172
1200
|
#
|
1173
|
-
# **
|
1174
|
-
#
|
1201
|
+
# **Note:** The parameter can be used with US English, Japanese, and Korean
|
1202
|
+
# transcription only.
|
1175
1203
|
#
|
1176
1204
|
# See [Numeric
|
1177
1205
|
# redaction](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-formatting#numeric-redaction).
|
@@ -1225,8 +1253,11 @@ module IBMWatson
|
|
1225
1253
|
# meaningful phrases such as sentences. The service bases its understanding of
|
1226
1254
|
# semantic features on the base language model that you use with a request. Custom
|
1227
1255
|
# language models and grammars can also influence how and where the service splits a
|
1228
|
-
# transcript.
|
1229
|
-
#
|
1256
|
+
# transcript.
|
1257
|
+
#
|
1258
|
+
# By default, the service splits transcripts based solely on the pause interval. If
|
1259
|
+
# the parameters are used together on the same request, `end_of_phrase_silence_time`
|
1260
|
+
# has precedence over `split_transcript_at_phrase_end`.
|
1230
1261
|
#
|
1231
1262
|
# See [Split transcript at phrase
|
1232
1263
|
# end](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-parsing#split-transcript).
|
@@ -1241,8 +1272,13 @@ module IBMWatson
|
|
1241
1272
|
# * 0.5 (the default) provides a reasonable compromise for the level of sensitivity.
|
1242
1273
|
# * 1.0 suppresses no audio (speech detection sensitivity is disabled).
|
1243
1274
|
#
|
1244
|
-
# The values increase on a monotonic curve.
|
1245
|
-
#
|
1275
|
+
# The values increase on a monotonic curve.
|
1276
|
+
#
|
1277
|
+
# The parameter is supported with all next-generation models and with most
|
1278
|
+
# previous-generation models. See [Speech detector
|
1279
|
+
# sensitivity](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-detection#detection-parameters-sensitivity)
|
1280
|
+
# and [Language model
|
1281
|
+
# support](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-detection#detection-support).
|
1246
1282
|
# @param background_audio_suppression [Float] The level to which the service is to suppress background audio based on its volume
|
1247
1283
|
# to prevent it from being transcribed as speech. Use the parameter to suppress side
|
1248
1284
|
# conversations or background noise.
|
@@ -1253,8 +1289,13 @@ module IBMWatson
|
|
1253
1289
|
# * 0.5 provides a reasonable level of audio suppression for general usage.
|
1254
1290
|
# * 1.0 suppresses all audio (no audio is transcribed).
|
1255
1291
|
#
|
1256
|
-
# The values increase on a monotonic curve.
|
1257
|
-
#
|
1292
|
+
# The values increase on a monotonic curve.
|
1293
|
+
#
|
1294
|
+
# The parameter is supported with all next-generation models and with most
|
1295
|
+
# previous-generation models. See [Background audio
|
1296
|
+
# suppression](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-detection#detection-parameters-suppression)
|
1297
|
+
# and [Language model
|
1298
|
+
# support](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-detection#detection-support).
|
1258
1299
|
# @param low_latency [Boolean] If `true` for next-generation `Multimedia` and `Telephony` models that support low
|
1259
1300
|
# latency, directs the service to produce results even more quickly than it usually
|
1260
1301
|
# does. Next-generation models produce transcription results faster than
|
@@ -1450,8 +1491,20 @@ module IBMWatson
|
|
1450
1491
|
# do not lose any models, but you cannot create any more until your model count is
|
1451
1492
|
# below the limit.
|
1452
1493
|
#
|
1453
|
-
# **
|
1454
|
-
#
|
1494
|
+
# **Important:** Effective 15 March 2022, previous-generation models for all
|
1495
|
+
# languages other than Arabic and Japanese are deprecated. The deprecated models
|
1496
|
+
# remain available until 15 September 2022, when they will be removed from the
|
1497
|
+
# service and the documentation. You must migrate to the equivalent next-generation
|
1498
|
+
# model by the end of service date. For more information, see [Migrating to
|
1499
|
+
# next-generation
|
1500
|
+
# models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-migrate).
|
1501
|
+
#
|
1502
|
+
#
|
1503
|
+
# **See also:**
|
1504
|
+
# * [Create a custom language
|
1505
|
+
# model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-languageCreate#createModel-language)
|
1506
|
+
# * [Language support for
|
1507
|
+
# customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
|
1455
1508
|
# @param name [String] A user-defined name for the new custom language model. Use a name that is unique
|
1456
1509
|
# among all custom language models that you own. Use a localized name that matches
|
1457
1510
|
# the language of the custom model. Use a name that describes the domain of the
|
@@ -1464,25 +1517,23 @@ module IBMWatson
|
|
1464
1517
|
# [Get a model](#getmodel) method and check that the attribute
|
1465
1518
|
# `custom_language_model` is set to `true`. You can also refer to [Language support
|
1466
1519
|
# for
|
1467
|
-
# customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support
|
1520
|
+
# customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
|
1468
1521
|
# @param dialect [String] The dialect of the specified language that is to be used with the custom language
|
1469
|
-
# model.
|
1470
|
-
#
|
1471
|
-
#
|
1472
|
-
#
|
1473
|
-
#
|
1474
|
-
#
|
1475
|
-
#
|
1476
|
-
#
|
1522
|
+
# model. _For all languages, it is always safe to omit this field._ The service
|
1523
|
+
# automatically uses the language identifier from the name of the base model. For
|
1524
|
+
# example, the service automatically uses `en-US` for all US English models.
|
1525
|
+
#
|
1526
|
+
# If you specify the `dialect` for a new custom model, follow these guidelines. _For
|
1527
|
+
# non-Spanish previous-generation models and for next-generation models,_ you must
|
1528
|
+
# specify a value that matches the five-character language identifier from the name
|
1529
|
+
# of the base model. _For Spanish previous-generation models,_ you must specify one
|
1530
|
+
# of the following values:
|
1477
1531
|
# * `es-ES` for Castilian Spanish (`es-ES` models)
|
1478
1532
|
# * `es-LA` for Latin American Spanish (`es-AR`, `es-CL`, `es-CO`, and `es-PE`
|
1479
1533
|
# models)
|
1480
1534
|
# * `es-US` for Mexican (North American) Spanish (`es-MX` models)
|
1481
1535
|
#
|
1482
|
-
#
|
1483
|
-
# must match the language of the base model. If you specify the `dialect` for a
|
1484
|
-
# Spanish language model, its value must match one of the defined mappings (`es-ES`,
|
1485
|
-
# `es-LA`, or `es-MX`).
|
1536
|
+
# All values that you pass for the `dialect` field are case-insensitive.
|
1486
1537
|
# @param description [String] A description of the new custom language model. Use a localized description that
|
1487
1538
|
# matches the language of the custom model.
|
1488
1539
|
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
@@ -1524,16 +1575,21 @@ module IBMWatson
|
|
1524
1575
|
# all languages. You must use credentials for the instance of the service that owns
|
1525
1576
|
# a model to list information about it.
|
1526
1577
|
#
|
1527
|
-
# **See also:**
|
1528
|
-
#
|
1578
|
+
# **See also:**
|
1579
|
+
# * [Listing custom language
|
1580
|
+
# models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageLanguageModels#listModels-language)
|
1581
|
+
# * [Language support for
|
1582
|
+
# customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
|
1529
1583
|
# @param language [String] The identifier of the language for which custom language or custom acoustic models
|
1530
|
-
# are to be returned.
|
1531
|
-
#
|
1532
|
-
#
|
1584
|
+
# are to be returned. Specify the five-character language identifier; for example,
|
1585
|
+
# specify `en-US` to see all custom language or custom acoustic models that are
|
1586
|
+
# based on US English models. Omit the parameter to see all custom language or
|
1587
|
+
# custom acoustic models that are owned by the requesting credentials. (**Note:**
|
1588
|
+
# The identifier `ar-AR` is deprecated; use `ar-MS` instead.)
|
1533
1589
|
#
|
1534
1590
|
# To determine the languages for which customization is available, see [Language
|
1535
1591
|
# support for
|
1536
|
-
# customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support
|
1592
|
+
# customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
|
1537
1593
|
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
1538
1594
|
def list_language_models(language: nil)
|
1539
1595
|
headers = {
|
@@ -1563,8 +1619,11 @@ module IBMWatson
|
|
1563
1619
|
# Gets information about a specified custom language model. You must use credentials
|
1564
1620
|
# for the instance of the service that owns a model to list information about it.
|
1565
1621
|
#
|
1566
|
-
# **See also:**
|
1567
|
-
#
|
1622
|
+
# **See also:**
|
1623
|
+
# * [Listing custom language
|
1624
|
+
# models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageLanguageModels#listModels-language)
|
1625
|
+
# * [Language support for
|
1626
|
+
# customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
|
1568
1627
|
# @param customization_id [String] The customization ID (GUID) of the custom language model that is to be used for
|
1569
1628
|
# the request. You must make the request with credentials for the instance of the
|
1570
1629
|
# service that owns the custom model.
|
@@ -1596,8 +1655,11 @@ module IBMWatson
|
|
1596
1655
|
# being processed. You must use credentials for the instance of the service that
|
1597
1656
|
# owns a model to delete it.
|
1598
1657
|
#
|
1599
|
-
# **See also:**
|
1600
|
-
#
|
1658
|
+
# **See also:**
|
1659
|
+
# * [Deleting a custom language
|
1660
|
+
# model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageLanguageModels#deleteModel-language)
|
1661
|
+
# * [Language support for
|
1662
|
+
# customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
|
1601
1663
|
# @param customization_id [String] The customization ID (GUID) of the custom language model that is to be used for
|
1602
1664
|
# the request. You must make the request with credentials for the instance of the
|
1603
1665
|
# service that owns the custom model.
|
@@ -1645,8 +1707,11 @@ module IBMWatson
|
|
1645
1707
|
# training requests or requests to add new resources until the existing request
|
1646
1708
|
# completes.
|
1647
1709
|
#
|
1648
|
-
# **See also:**
|
1649
|
-
#
|
1710
|
+
# **See also:**
|
1711
|
+
# * [Train the custom language
|
1712
|
+
# model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-languageCreate#trainModel-language)
|
1713
|
+
# * [Language support for
|
1714
|
+
# customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support)
|
1650
1715
|
#
|
1651
1716
|
#
|
1652
1717
|
# ### Training failures
|
@@ -1728,8 +1793,11 @@ module IBMWatson
|
|
1728
1793
|
# must use credentials for the instance of the service that owns a model to reset
|
1729
1794
|
# it.
|
1730
1795
|
#
|
1731
|
-
# **See also:**
|
1732
|
-
#
|
1796
|
+
# **See also:**
|
1797
|
+
# * [Resetting a custom language
|
1798
|
+
# model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageLanguageModels#resetModel-language)
|
1799
|
+
# * [Language support for
|
1800
|
+
# customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
|
1733
1801
|
# @param customization_id [String] The customization ID (GUID) of the custom language model that is to be used for
|
1734
1802
|
# the request. You must make the request with credentials for the instance of the
|
1735
1803
|
# service that owns the custom model.
|
@@ -1767,17 +1835,18 @@ module IBMWatson
|
|
1767
1835
|
# has begun successfully. You can monitor the status of the upgrade by using the
|
1768
1836
|
# [Get a custom language model](#getlanguagemodel) method to poll the model's
|
1769
1837
|
# status. The method returns a `LanguageModel` object that includes `status` and
|
1770
|
-
# `progress` fields. Use a loop to check the status every 10 seconds.
|
1771
|
-
# being upgraded, the custom model has the status `upgrading`. When the upgrade is
|
1772
|
-
# complete, the model resumes the status that it had prior to upgrade. The service
|
1773
|
-
# cannot accept subsequent requests for the model until the upgrade completes.
|
1838
|
+
# `progress` fields. Use a loop to check the status every 10 seconds.
|
1774
1839
|
#
|
1775
|
-
#
|
1776
|
-
#
|
1777
|
-
#
|
1840
|
+
# While it is being upgraded, the custom model has the status `upgrading`. When the
|
1841
|
+
# upgrade is complete, the model resumes the status that it had prior to upgrade.
|
1842
|
+
# The service cannot accept subsequent requests for the model until the upgrade
|
1843
|
+
# completes.
|
1778
1844
|
#
|
1779
|
-
# **See also:**
|
1780
|
-
#
|
1845
|
+
# **See also:**
|
1846
|
+
# * [Upgrading a custom language
|
1847
|
+
# model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-upgrade#custom-upgrade-language)
|
1848
|
+
# * [Language support for
|
1849
|
+
# customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
|
1781
1850
|
# @param customization_id [String] The customization ID (GUID) of the custom language model that is to be used for
|
1782
1851
|
# the request. You must make the request with credentials for the instance of the
|
1783
1852
|
# service that owns the custom model.
|
@@ -2419,17 +2488,17 @@ module IBMWatson
|
|
2419
2488
|
##
|
2420
2489
|
# @!method list_grammars(customization_id:)
|
2421
2490
|
# List grammars.
|
2422
|
-
# Lists information about all grammars from a custom language model.
|
2423
|
-
#
|
2424
|
-
#
|
2425
|
-
#
|
2426
|
-
#
|
2491
|
+
# Lists information about all grammars from a custom language model. For each
|
2492
|
+
# grammar, the information includes the name, status, and (for grammars that are
|
2493
|
+
# based on previous-generation models) the total number of out-of-vocabulary (OOV)
|
2494
|
+
# words. You must use credentials for the instance of the service that owns a model
|
2495
|
+
# to list its grammars.
|
2427
2496
|
#
|
2428
|
-
# **
|
2429
|
-
#
|
2430
|
-
#
|
2431
|
-
#
|
2432
|
-
#
|
2497
|
+
# **See also:**
|
2498
|
+
# * [Listing grammars from a custom language
|
2499
|
+
# model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageGrammars#listGrammars)
|
2500
|
+
# * [Language support for
|
2501
|
+
# customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
|
2433
2502
|
# @param customization_id [String] The customization ID (GUID) of the custom language model that is to be used for
|
2434
2503
|
# the request. You must make the request with credentials for the instance of the
|
2435
2504
|
# service that owns the custom model.
|
@@ -2472,12 +2541,14 @@ module IBMWatson
|
|
2472
2541
|
# of the grammar for the current request completes. Use the [Get a
|
2473
2542
|
# grammar](#getgrammar) method to check the status of the analysis.
|
2474
2543
|
#
|
2475
|
-
#
|
2476
|
-
#
|
2477
|
-
#
|
2478
|
-
#
|
2479
|
-
#
|
2480
|
-
# needed.
|
2544
|
+
# _For grammars that are based on previous-generation models,_ the service populates
|
2545
|
+
# the model's words resource with any word that is recognized by the grammar that is
|
2546
|
+
# not found in the model's base vocabulary. These are referred to as
|
2547
|
+
# out-of-vocabulary (OOV) words. You can use the [List custom words](#listwords)
|
2548
|
+
# method to examine the words resource and use other words-related methods to
|
2549
|
+
# eliminate typos and modify how words are pronounced as needed. _For grammars that
|
2550
|
+
# are based on next-generation models,_ the service extracts no OOV words from the
|
2551
|
+
# grammars.
|
2481
2552
|
#
|
2482
2553
|
# To add a grammar that has the same name as an existing grammar, set the
|
2483
2554
|
# `allow_overwrite` parameter to `true`; otherwise, the request fails. Overwriting
|
@@ -2487,21 +2558,19 @@ module IBMWatson
|
|
2487
2558
|
# resource or they have been modified in some way with the [Add custom
|
2488
2559
|
# words](#addwords) or [Add a custom word](#addword) method.
|
2489
2560
|
#
|
2490
|
-
#
|
2491
|
-
#
|
2492
|
-
#
|
2493
|
-
#
|
2494
|
-
#
|
2495
|
-
# customization.
|
2496
|
-
#
|
2497
|
-
# **Note:** Grammars are supported only for use with previous-generation models.
|
2498
|
-
# They are not supported for next-generation models.
|
2561
|
+
# _For grammars that are based on previous-generation models,_ the service limits
|
2562
|
+
# the overall amount of data that you can add to a custom model to a maximum of 10
|
2563
|
+
# million total words from all sources combined. Also, you can add no more than 90
|
2564
|
+
# thousand OOV words to a model. This includes words that the service extracts from
|
2565
|
+
# corpora and grammars and words that you add directly.
|
2499
2566
|
#
|
2500
2567
|
# **See also:**
|
2501
2568
|
# * [Understanding
|
2502
2569
|
# grammars](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-grammarUnderstand#grammarUnderstand)
|
2503
2570
|
# * [Add a grammar to the custom language
|
2504
|
-
# model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-grammarAdd#addGrammar)
|
2571
|
+
# model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-grammarAdd#addGrammar)
|
2572
|
+
# * [Language support for
|
2573
|
+
# customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
|
2505
2574
|
# @param customization_id [String] The customization ID (GUID) of the custom language model that is to be used for
|
2506
2575
|
# the request. You must make the request with credentials for the instance of the
|
2507
2576
|
# service that owns the custom model.
|
@@ -2520,7 +2589,7 @@ module IBMWatson
|
|
2520
2589
|
# words that are added or modified by the user.
|
2521
2590
|
# * Do not use the name `base_lm` or `default_lm`. Both names are reserved for
|
2522
2591
|
# future use by the service.
|
2523
|
-
# @param grammar_file [
|
2592
|
+
# @param grammar_file [File] A plain text file that contains the grammar in the format specified by the
|
2524
2593
|
# `Content-Type` header. Encode the file in UTF-8 (ASCII is a subset of UTF-8).
|
2525
2594
|
# Using any other encoding can lead to issues when compiling the grammar or to
|
2526
2595
|
# unexpected results in decoding. The service ignores an encoding that is specified
|
@@ -2575,17 +2644,17 @@ module IBMWatson
|
|
2575
2644
|
##
|
2576
2645
|
# @!method get_grammar(customization_id:, grammar_name:)
|
2577
2646
|
# Get a grammar.
|
2578
|
-
# Gets information about a grammar from a custom language model.
|
2579
|
-
# includes the
|
2580
|
-
#
|
2581
|
-
#
|
2582
|
-
#
|
2583
|
-
#
|
2584
|
-
# **Note:** Grammars are supported only for use with previous-generation models.
|
2585
|
-
# They are not supported for next-generation models.
|
2647
|
+
# Gets information about a grammar from a custom language model. For each grammar,
|
2648
|
+
# the information includes the name, status, and (for grammars that are based on
|
2649
|
+
# previous-generation models) the total number of out-of-vocabulary (OOV) words. You
|
2650
|
+
# must use credentials for the instance of the service that owns a model to list its
|
2651
|
+
# grammars.
|
2586
2652
|
#
|
2587
|
-
# **See also:**
|
2588
|
-
#
|
2653
|
+
# **See also:**
|
2654
|
+
# * [Listing grammars from a custom language
|
2655
|
+
# model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageGrammars#listGrammars)
|
2656
|
+
# * [Language support for
|
2657
|
+
# customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
|
2589
2658
|
# @param customization_id [String] The customization ID (GUID) of the custom language model that is to be used for
|
2590
2659
|
# the request. You must make the request with credentials for the instance of the
|
2591
2660
|
# service that owns the custom model.
|
@@ -2615,21 +2684,21 @@ module IBMWatson
|
|
2615
2684
|
##
|
2616
2685
|
# @!method delete_grammar(customization_id:, grammar_name:)
|
2617
2686
|
# Delete a grammar.
|
2618
|
-
# Deletes an existing grammar from a custom language model.
|
2619
|
-
#
|
2620
|
-
# words
|
2621
|
-
#
|
2622
|
-
#
|
2623
|
-
#
|
2624
|
-
#
|
2625
|
-
#
|
2626
|
-
#
|
2627
|
-
#
|
2628
|
-
# **
|
2629
|
-
#
|
2630
|
-
#
|
2631
|
-
#
|
2632
|
-
#
|
2687
|
+
# Deletes an existing grammar from a custom language model. _For grammars that are
|
2688
|
+
# based on previous-generation models,_ the service removes any out-of-vocabulary
|
2689
|
+
# (OOV) words associated with the grammar from the custom model's words resource
|
2690
|
+
# unless they were also added by another resource or they were modified in some way
|
2691
|
+
# with the [Add custom words](#addwords) or [Add a custom word](#addword) method.
|
2692
|
+
# Removing a grammar does not affect the custom model until you train the model with
|
2693
|
+
# the [Train a custom language model](#trainlanguagemodel) method. You must use
|
2694
|
+
# credentials for the instance of the service that owns a model to delete its
|
2695
|
+
# grammar.
|
2696
|
+
#
|
2697
|
+
# **See also:**
|
2698
|
+
# * [Deleting a grammar from a custom language
|
2699
|
+
# model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageGrammars#deleteGrammar)
|
2700
|
+
# * [Language support for
|
2701
|
+
# customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
|
2633
2702
|
# @param customization_id [String] The customization ID (GUID) of the custom language model that is to be used for
|
2634
2703
|
# the request. You must make the request with credentials for the instance of the
|
2635
2704
|
# service that owns the custom model.
|
@@ -2675,6 +2744,15 @@ module IBMWatson
|
|
2675
2744
|
# **Note:** Acoustic model customization is supported only for use with
|
2676
2745
|
# previous-generation models. It is not supported for next-generation models.
|
2677
2746
|
#
|
2747
|
+
# **Important:** Effective 15 March 2022, previous-generation models for all
|
2748
|
+
# languages other than Arabic and Japanese are deprecated. The deprecated models
|
2749
|
+
# remain available until 15 September 2022, when they will be removed from the
|
2750
|
+
# service and the documentation. You must migrate to the equivalent next-generation
|
2751
|
+
# model by the end of service date. For more information, see [Migrating to
|
2752
|
+
# next-generation
|
2753
|
+
# models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-migrate).
|
2754
|
+
#
|
2755
|
+
#
|
2678
2756
|
# **See also:** [Create a custom acoustic
|
2679
2757
|
# model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-acoustic#createModel-acoustic).
|
2680
2758
|
# @param name [String] A user-defined name for the new custom acoustic model. Use a name that is unique
|
@@ -2689,7 +2767,7 @@ module IBMWatson
|
|
2689
2767
|
#
|
2690
2768
|
# To determine whether a base model supports acoustic model customization, refer to
|
2691
2769
|
# [Language support for
|
2692
|
-
# customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support
|
2770
|
+
# customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
|
2693
2771
|
# @param description [String] A description of the new custom acoustic model. Use a localized description that
|
2694
2772
|
# matches the language of the custom model.
|
2695
2773
|
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
@@ -2736,13 +2814,15 @@ module IBMWatson
|
|
2736
2814
|
# **See also:** [Listing custom acoustic
|
2737
2815
|
# models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageAcousticModels#listModels-acoustic).
|
2738
2816
|
# @param language [String] The identifier of the language for which custom language or custom acoustic models
|
2739
|
-
# are to be returned.
|
2740
|
-
#
|
2741
|
-
#
|
2817
|
+
# are to be returned. Specify the five-character language identifier; for example,
|
2818
|
+
# specify `en-US` to see all custom language or custom acoustic models that are
|
2819
|
+
# based on US English models. Omit the parameter to see all custom language or
|
2820
|
+
# custom acoustic models that are owned by the requesting credentials. (**Note:**
|
2821
|
+
# The identifier `ar-AR` is deprecated; use `ar-MS` instead.)
|
2742
2822
|
#
|
2743
2823
|
# To determine the languages for which customization is available, see [Language
|
2744
2824
|
# support for
|
2745
|
-
# customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support
|
2825
|
+
# customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
|
2746
2826
|
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
|
2747
2827
|
def list_acoustic_models(language: nil)
|
2748
2828
|
headers = {
|
@@ -2990,12 +3070,13 @@ module IBMWatson
|
|
2990
3070
|
# has begun successfully. You can monitor the status of the upgrade by using the
|
2991
3071
|
# [Get a custom acoustic model](#getacousticmodel) method to poll the model's
|
2992
3072
|
# status. The method returns an `AcousticModel` object that includes `status` and
|
2993
|
-
# `progress` fields. Use a loop to check the status once a minute.
|
2994
|
-
#
|
2995
|
-
#
|
2996
|
-
#
|
2997
|
-
# service cannot
|
2998
|
-
#
|
3073
|
+
# `progress` fields. Use a loop to check the status once a minute.
|
3074
|
+
#
|
3075
|
+
# While it is being upgraded, the custom model has the status `upgrading`. When the
|
3076
|
+
# upgrade is complete, the model resumes the status that it had prior to upgrade.
|
3077
|
+
# The service cannot upgrade a model while it is handling another request for the
|
3078
|
+
# model. The service cannot accept subsequent requests for the model until the
|
3079
|
+
# existing upgrade request completes.
|
2999
3080
|
#
|
3000
3081
|
# If the custom acoustic model was trained with a separately created custom language
|
3001
3082
|
# model, you must use the `custom_language_model_id` parameter to specify the GUID
|