ibm_watson 2.1.3 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # (C) Copyright IBM Corp. 2018, 2020.
3
+ # (C) Copyright IBM Corp. 2018, 2022.
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -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. The service can
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 is available for most previous- and next-generation models.
46
- # Acoustic model customization is available for all previous-generation models. Grammars
47
- # are beta functionality that is available for all previous-generation models that support
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
- # models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-list).
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
- # But next-generation models do not support all of the parameters that are available
238
- # for use with previous-generation models. For more information about all parameters
239
- # that are supported for use with next-generation models, see [Supported features
240
- # for next-generation
241
- # models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-ng#models-ng-features).
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:** [Next-generation languages and
245
- # models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-ng).
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 Watson SDKs do not support multipart speech recognition.
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 [Previous-generation languages and
271
- # models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models) and
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. Applies to US English
359
- # and Japanese transcription only. See [Profanity
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
- # **Beta:** The parameter is beta functionality. Applies to US English, Japanese,
368
- # and Spanish transcription only.
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
- # * For next-generation models, the parameter can be used for English (Australian,
383
- # Indian, UK, and US), German, Japanese, Korean, and Spanish transcription only.
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
- # Restrictions and limitations apply to the use of speaker labels for both types of
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
- # **Beta:** The parameter is beta functionality. Applies to US English, Japanese,
413
- # and Korean transcription only.
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. By default, the service splits transcripts based solely on the pause
446
- # interval.
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. See [Speech detector
462
- # sensitivity](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-detection#detection-parameters-sensitivity).
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. See [Background audio
474
- # suppression](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-detection#detection-parameters-suppression).
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
- # But next-generation models do not support all of the parameters that are available
984
- # for use with previous-generation models. For more information about all parameters
985
- # that are supported for use with next-generation models, see [Supported features
986
- # for next-generation
987
- # models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-ng#models-ng-features).
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:** [Next-generation languages and
991
- # models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-ng).
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 [Previous-generation languages and
998
- # models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models) and
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. Applies to US English
1120
- # and Japanese transcription only. See [Profanity
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
- # **Beta:** The parameter is beta functionality. Applies to US English, Japanese,
1129
- # and Spanish transcription only.
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
- # * For next-generation models, the parameter can be used for English (Australian,
1144
- # Indian, UK, and US), German, Japanese, Korean, and Spanish transcription only.
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
- # Restrictions and limitations apply to the use of speaker labels for both types of
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
- # **Beta:** The parameter is beta functionality. Applies to US English, Japanese,
1174
- # and Korean transcription only.
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. By default, the service splits transcripts based solely on the pause
1229
- # interval.
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. See [Speech detector
1245
- # sensitivity](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-detection#detection-parameters-sensitivity).
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. See [Background audio
1257
- # suppression](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-detection#detection-parameters-suppression).
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
- # **See also:** [Create a custom language
1454
- # model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-languageCreate#createModel-language).
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#custom-language-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. For most languages, the dialect matches the language of the base model by
1470
- # default. For example, `en-US` is used for the US English language models. All
1471
- # dialect values are case-insensitive.
1472
- #
1473
- # The parameter is meaningful only for Spanish language models, for which you can
1474
- # always safely omit the parameter to have the service create the correct mapping.
1475
- # For Spanish, the service creates a custom language model that is suited for speech
1476
- # in one of the following dialects:
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
- # If you specify the `dialect` parameter for a non-Spanish language model, its value
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:** [Listing custom language
1528
- # models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageLanguageModels#listModels-language).
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. Omit the parameter to see all custom language or custom
1531
- # acoustic models that are owned by the requesting credentials. (**Note:** The
1532
- # identifier `ar-AR` is deprecated; use `ar-MS` instead.)
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#custom-language-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:** [Listing custom language
1567
- # models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageLanguageModels#listModels-language).
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:** [Deleting a custom language
1600
- # model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageLanguageModels#deleteModel-language).
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:** [Train the custom language
1649
- # model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-languageCreate#trainModel-language).
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:** [Resetting a custom language
1732
- # model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageLanguageModels#resetModel-language).
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. While it is
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
- # **Note:** Upgrading is necessary only for custom language models that are based on
1776
- # previous-generation models. Only a single version of a custom model that is based
1777
- # on a next-generation model is ever available.
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:** [Upgrading a custom language
1780
- # model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-upgrade#custom-upgrade-language).
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. The information
2423
- # includes the total number of out-of-vocabulary (OOV) words, name, and status of
2424
- # each grammar. You must use credentials for the instance of the service that owns a
2425
- # model to list its grammars. Grammars are available for all languages and models
2426
- # that support language customization.
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
- # **Note:** Grammars are supported only for use with previous-generation models.
2429
- # They are not supported for next-generation models.
2430
- #
2431
- # **See also:** [Listing grammars from a custom language
2432
- # model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageGrammars#listGrammars).
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
- # The service populates the model's words resource with any word that is recognized
2476
- # by the grammar that is not found in the model's base vocabulary. These are
2477
- # referred to as out-of-vocabulary (OOV) words. You can use the [List custom
2478
- # words](#listwords) method to examine the words resource and use other
2479
- # words-related methods to eliminate typos and modify how words are pronounced as
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
- # The service limits the overall amount of data that you can add to a custom model
2491
- # to a maximum of 10 million total words from all sources combined. Also, you can
2492
- # add no more than 90 thousand OOV words to a model. This includes words that the
2493
- # service extracts from corpora and grammars and words that you add directly.
2494
- # Grammars are available for all languages and models that support language
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 [String] A plain text file that contains the grammar in the format specified by the
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. The information
2579
- # includes the total number of out-of-vocabulary (OOV) words, name, and status of
2580
- # the grammar. You must use credentials for the instance of the service that owns a
2581
- # model to list its grammars. Grammars are available for all languages and models
2582
- # that support language customization.
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:** [Listing grammars from a custom language
2588
- # model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageGrammars#listGrammars).
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. The service removes any
2619
- # out-of-vocabulary (OOV) words associated with the grammar from the custom model's
2620
- # words resource unless they were also added by another resource or they were
2621
- # modified in some way with the [Add custom words](#addwords) or [Add a custom
2622
- # word](#addword) method. Removing a grammar does not affect the custom model until
2623
- # you train the model with the [Train a custom language model](#trainlanguagemodel)
2624
- # method. You must use credentials for the instance of the service that owns a model
2625
- # to delete its grammar. Grammars are available for all languages and models that
2626
- # support language customization.
2627
- #
2628
- # **Note:** Grammars are supported only for use with previous-generation models.
2629
- # They are not supported for next-generation models.
2630
- #
2631
- # **See also:** [Deleting a grammar from a custom language
2632
- # model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageGrammars#deleteGrammar).
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#custom-language-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. Omit the parameter to see all custom language or custom
2740
- # acoustic models that are owned by the requesting credentials. (**Note:** The
2741
- # identifier `ar-AR` is deprecated; use `ar-MS` instead.)
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#custom-language-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. While it is being
2994
- # upgraded, the custom model has the status `upgrading`. When the upgrade is
2995
- # complete, the model resumes the status that it had prior to upgrade. The service
2996
- # cannot upgrade a model while it is handling another request for the model. The
2997
- # service cannot accept subsequent requests for the model until the existing upgrade
2998
- # request completes.
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