@@ -390,9 +390,6 @@ def get_model(model_id:)
390390    # 
391391    #   See [Numeric 
392392    #   redaction](https://cloud.ibm.com/docs/services/speech-to-text?topic=speech-to-text-output#redaction). 
393-     #   The parameter accepts a minimum value of 0.1 seconds. The level of precision is 
394-     #   not restricted, so you can specify values such as 0.25 and 0.125. 
395-     # 
396393    # @param audio_metrics [Boolean] If `true`, requests detailed information about the signal characteristics of the 
397394    #   input audio. The service returns audio metrics with the final transcription 
398395    #   results. By default, the service returns no audio metrics. 
@@ -1016,6 +1013,8 @@ def unregister_callback(callback_url:)
10161013    # @param processing_metrics_interval [Float] Specifies the interval in real wall-clock seconds at which the service is to 
10171014    #   return processing metrics. The parameter is ignored unless the 
10181015    #   `processing_metrics` parameter is set to `true`.    #   The parameter accepts a minimum value of 0.1 seconds. The level of precision is 
1016+     # 
1017+     #   The parameter accepts a minimum value of 0.1 seconds. The level of precision is 
10191018    #   not restricted, so you can specify values such as 0.25 and 0.125. 
10201019    # 
10211020    #   The service does not impose a maximum value. If you want to receive processing 
@@ -1388,6 +1387,11 @@ def delete_language_model(customization_id:)
13881387    #   * The service is currently handling another request for the custom model, such as 
13891388    #   another training request or a request to add a corpus or grammar to the model. 
13901389    #   * No training data have been added to the custom model. 
1390+     #   * The custom model contains one or more invalid corpora, grammars, or words (for 
1391+     #   example, a custom word has an invalid sounds-like pronunciation). You can correct 
1392+     #   the invalid resources or set the `strict` parameter to `false` to exclude the 
1393+     #   invalid resources from the training. The model must contain at least one valid 
1394+     #   resource for training to succeed. 
13911395    # @param customization_id [String] The customization ID (GUID) of the custom language model that is to be used for 
13921396    #   the request. You must make the request with credentials for the instance of the 
13931397    #   service that owns the custom model. 
@@ -1609,11 +1613,17 @@ def list_corpora(customization_id:)
16091613    #   that matches the language of the custom model and reflects the contents of the 
16101614    #   corpus. 
16111615    #   * Include a maximum of 128 characters in the name. 
1612-     #   * Do not include spaces, slashes, or backslashes in the name. 
1616+     #   * Do not use characters that need to be URL-encoded. For example, do not use 
1617+     #   spaces, slashes, backslashes, colons, ampersands, double quotes, plus signs, 
1618+     #   equals signs, questions marks, and so on in the name. (The service does not 
1619+     #   prevent the use of these characters. But because they must be URL-encoded wherever 
1620+     #   used, their use is strongly discouraged.) 
16131621    #   * Do not use the name of an existing corpus or grammar that is already defined for 
16141622    #   the custom model. 
16151623    #   * Do not use the name `user`, which is reserved by the service to denote custom 
16161624    #   words that are added or modified by the user. 
1625+     #   * Do not use the name `base_lm` or `default_lm`. Both names are reserved for 
1626+     #   future use by the service. 
16171627    # @param corpus_file [File] A plain text file that contains the training data for the corpus. Encode the file 
16181628    #   in UTF-8 if it contains non-ASCII characters; the service assumes UTF-8 encoding 
16191629    #   if it encounters non-ASCII characters. 
@@ -1772,7 +1782,7 @@ def delete_corpus(customization_id:, corpus_name:)
17721782    #   are sorted in ascending alphabetical order. For alphabetical ordering, the 
17731783    #   lexicographical precedence is numeric values, uppercase letters, and lowercase 
17741784    #   letters. For count ordering, values with the same count are ordered 
1775-     #   alphabetically. With the `curl` command, URL  encode the `+` symbol as `%2B`. 
1785+     #   alphabetically. With the `curl` command, URL- encode the `+` symbol as `%2B`. 
17761786    # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. 
17771787    def  list_words ( customization_id :,  word_type : nil ,  sort : nil ) 
17781788      raise  ArgumentError . new ( "customization_id must be provided" )  if  customization_id . nil? 
@@ -2150,11 +2160,17 @@ def list_grammars(customization_id:)
21502160    #   that matches the language of the custom model and reflects the contents of the 
21512161    #   grammar. 
21522162    #   * Include a maximum of 128 characters in the name. 
2153-     #   * Do not include spaces, slashes, or backslashes in the name. 
2163+     #   * Do not use characters that need to be URL-encoded. For example, do not use 
2164+     #   spaces, slashes, backslashes, colons, ampersands, double quotes, plus signs, 
2165+     #   equals signs, questions marks, and so on in the name. (The service does not 
2166+     #   prevent the use of these characters. But because they must be URL-encoded wherever 
2167+     #   used, their use is strongly discouraged.) 
21542168    #   * Do not use the name of an existing grammar or corpus that is already defined for 
21552169    #   the custom model. 
21562170    #   * Do not use the name `user`, which is reserved by the service to denote custom 
21572171    #   words that are added or modified by the user. 
2172+     #   * Do not use the name `base_lm` or `default_lm`. Both names are reserved for 
2173+     #   future use by the service. 
21582174    # @param grammar_file [String] A plain text file that contains the grammar in the format specified by the 
21592175    #   `Content-Type` header. Encode the file in UTF-8 (ASCII is a subset of UTF-8). 
21602176    #   Using any other encoding can lead to issues when compiling the grammar or to 
@@ -2462,8 +2478,10 @@ def delete_acoustic_model(customization_id:)
24622478    #   model** method to poll the model's status. Use a loop to check the status once a 
24632479    #   minute. The method returns an `AcousticModel` object that includes `status` and 
24642480    #   `progress` fields. A status of `available` indicates that the custom model is 
2465-     #   trained and ready to use. The service cannot accept subsequent training requests, 
2466-     #   or requests to add new audio resources, until the existing request completes. 
2481+     #   trained and ready to use. The service cannot train a model while it is handling 
2482+     #   another request for the model. The service cannot accept subsequent training 
2483+     #   requests, or requests to add new audio resources, until the existing training 
2484+     #   request completes. 
24672485    # 
24682486    #   You can use the optional `custom_language_model_id` parameter to specify the GUID 
24692487    #   of a separately created custom language model that is to be used during training. 
@@ -2490,6 +2508,10 @@ def delete_acoustic_model(customization_id:)
24902508    #   * You passed an incompatible custom language model with the 
24912509    #   `custom_language_model_id` query parameter. Both custom models must be based on 
24922510    #   the same version of the same base model. 
2511+     #   * The custom model contains one or more invalid audio resources. You can correct 
2512+     #   the invalid audio resources or set the `strict` parameter to `false` to exclude 
2513+     #   the invalid resources from the training. The model must contain at least one valid 
2514+     #   resource for training to succeed. 
24932515    # @param customization_id [String] The customization ID (GUID) of the custom acoustic model that is to be used for 
24942516    #   the request. You must make the request with credentials for the instance of the 
24952517    #   service that owns the custom model. 
@@ -2531,8 +2553,11 @@ def train_acoustic_model(customization_id:, custom_language_model_id: nil)
25312553    # Resets a custom acoustic model by removing all audio resources from the model. 
25322554    #   Resetting a custom acoustic model initializes the model to its state when it was 
25332555    #   first created. Metadata such as the name and language of the model are preserved, 
2534-     #   but the model's audio resources are removed and must be re-created. You must use 
2535-     #   credentials for the instance of the service that owns a model to reset it. 
2556+     #   but the model's audio resources are removed and must be re-created. The service 
2557+     #   cannot reset a model while it is handling another request for the model. The 
2558+     #   service cannot accept subsequent requests for the model until the existing reset 
2559+     #   request completes. You must use credentials for the instance of the service that 
2560+     #   owns a model to reset it. 
25362561    # 
25372562    #   **See also:** [Resetting a custom acoustic 
25382563    #   model](https://cloud.ibm.com/docs/services/speech-to-text?topic=speech-to-text-manageAcousticModels#resetModel-acoustic). 
@@ -2576,8 +2601,10 @@ def reset_acoustic_model(customization_id:)
25762601    #   returns an `AcousticModel` object that includes `status` and `progress` fields. 
25772602    #   Use a loop to check the status once a minute. While it is being upgraded, the 
25782603    #   custom model has the status `upgrading`. When the upgrade is complete, the model 
2579-     #   resumes the status that it had prior to upgrade. The service cannot accept 
2580-     #   subsequent requests for the model until the upgrade completes. 
2604+     #   resumes the status that it had prior to upgrade. The service cannot upgrade a 
2605+     #   model while it is handling another request for the model. The service cannot 
2606+     #   accept subsequent requests for the model until the existing upgrade request 
2607+     #   completes. 
25812608    # 
25822609    #   If the custom acoustic model was trained with a separately created custom language 
25832610    #   model, you must use the `custom_language_model_id` parameter to specify the GUID 
@@ -2680,22 +2707,22 @@ def list_audio(customization_id:)
26802707    #   format that the service supports for speech recognition. 
26812708    # 
26822709    #   You can use this method to add any number of audio resources to a custom model by 
2683-     #   calling the method once for each audio or archive file. But the addition of one  
2684-     #   audio resource must be fully complete before you can add another . You must add a 
2685-     #   minimum of 10 minutes  and a maximum of 200 hours of audio that includes speech, 
2686-     #   not just silence, to a  custom acoustic model before you can train it. No audio 
2687-     #   resource, audio- or  archive-type, can be larger than 100 MB. To add an audio 
2688-     #   resource that has the  same name as an existing audio resource, set the 
2689-     #   `allow_overwrite` parameter to ` true`; otherwise, the request fails. 
2710+     #   calling the method once for each audio or archive file. You can add multiple  
2711+     #   different  audio resources at the same time . You must add a minimum of 10 minutes  
2712+     #   and a maximum of 200 hours of audio that includes speech, not just silence, to a  
2713+     #   custom acoustic model before you can train it. No audio resource, audio- or  
2714+     #   archive-type, can be larger than 100 MB. To add an audio resource that has the  
2715+     #   same name as an existing audio resource, set the `allow_overwrite` parameter to  
2716+     #   `true`; otherwise, the request fails. 
26902717    # 
26912718    #   The method is asynchronous. It can take several seconds to complete depending on 
26922719    #   the duration of the audio and, in the case of an archive file, the total number of 
26932720    #   audio files being processed. The service returns a 201 response code if the audio 
26942721    #   is valid. It then asynchronously analyzes the contents of the audio file or files 
26952722    #   and automatically extracts information about the audio such as its length, 
2696-     #   sampling rate, and encoding. You cannot submit requests to add additional audio  
2697-     #   resources to a custom acoustic model, or to train the model, until the service's  
2698-     #   analysis of all audio files for the current request  completes. 
2723+     #   sampling rate, and encoding. You cannot submit requests to train or upgrade the  
2724+     #   model until the service's analysis of all audio resources for current requests  
2725+     #   completes. 
26992726    # 
27002727    #   To determine the status of the service's analysis of the audio, use the **Get an 
27012728    #   audio resource** method to poll the status of the audio. The method accepts the 
@@ -2767,21 +2794,21 @@ def list_audio(customization_id:)
27672794    # 
27682795    #   ### Naming restrictions for embedded audio files 
27692796    # 
2770-     #    The name of an audio file that is embedded within an archive-type resource must 
2771-     #   meet the following restrictions: 
2772-     #   * Include a maximum of 128 characters in the file name; this includes the file 
2773-     #   extension. 
2774-     #   * Do not include spaces, slashes, or backslashes in the file name. 
2775-     #   * Do not use the name of an audio file that has already been added to the custom 
2776-     #   model as part of an archive-type resource. 
2797+     #    The name of an audio file that is contained in an archive-type resource can 
2798+     #   include a maximum of 128 characters. This includes the file extension and all 
2799+     #   elements of the name (for example, slashes). 
27772800    # @param customization_id [String] The customization ID (GUID) of the custom acoustic model that is to be used for 
27782801    #   the request. You must make the request with credentials for the instance of the 
27792802    #   service that owns the custom model. 
27802803    # @param audio_name [String] The name of the new audio resource for the custom acoustic model. Use a localized 
27812804    #   name that matches the language of the custom model and reflects the contents of 
27822805    #   the resource. 
27832806    #   * Include a maximum of 128 characters in the name. 
2784-     #   * Do not include spaces, slashes, or backslashes in the name. 
2807+     #   * Do not use characters that need to be URL-encoded. For example, do not use 
2808+     #   spaces, slashes, backslashes, colons, ampersands, double quotes, plus signs, 
2809+     #   equals signs, questions marks, and so on in the name. (The service does not 
2810+     #   prevent the use of these characters. But because they must be URL-encoded wherever 
2811+     #   used, their use is strongly discouraged.) 
27852812    #   * Do not use the name of an audio resource that has already been added to the 
27862813    #   custom model. 
27872814    # @param audio_resource [String] The audio resource that is to be added to the custom acoustic model, an individual 
@@ -2905,12 +2932,14 @@ def get_audio(customization_id:, audio_name:)
29052932    # @!method delete_audio(customization_id:, audio_name:) 
29062933    # Delete an audio resource. 
29072934    # Deletes an existing audio resource from a custom acoustic model. Deleting an 
2908-     #   archive-type audio resource removes the entire archive of files; the current 
2909-     #   interface does not allow deletion of individual files from an archive resource. 
2935+     #   archive-type audio resource removes the entire archive of files. The service does 
2936+     #   not allow deletion of individual files from an archive resource. 
2937+     # 
29102938    #   Removing an audio resource does not affect the custom model until you train the 
29112939    #   model on its updated data by using the **Train a custom acoustic model** method. 
2912-     #   You must use credentials for the instance of the service that owns a model to 
2913-     #   delete its audio resources. 
2940+     #   You can delete an existing audio resource from a model while a different resource 
2941+     #   is being added to the model. You must use credentials for the instance of the 
2942+     #   service that owns a model to delete its audio resources. 
29142943    # 
29152944    #   **See also:** [Deleting an audio resource from a custom acoustic 
29162945    #   model](https://cloud.ibm.com/docs/services/speech-to-text?topic=speech-to-text-manageAudio#deleteAudio). 
0 commit comments