@@ -179,6 +179,10 @@ public class ModelIdValue
179179 /// </summary>
180180 public const string DE_DE_BROADBANDMODEL = "de-DE_BroadbandModel" ;
181181 /// <summary>
182+ /// Constant DE_DE_MULTIMEDIA for de-DE_Multimedia
183+ /// </summary>
184+ public const string DE_DE_MULTIMEDIA = "de-DE_Multimedia" ;
185+ /// <summary>
182186 /// Constant DE_DE_NARROWBANDMODEL for de-DE_NarrowbandModel
183187 /// </summary>
184188 public const string DE_DE_NARROWBANDMODEL = "de-DE_NarrowbandModel" ;
@@ -496,8 +500,8 @@ public class ModelIdValue
496500 /// **Important:** Effective 15 March 2022, previous-generation models for all languages other than Arabic and
497501 /// Japanese are deprecated. The deprecated models remain available until 15 September 2022, when they will be
498502 /// removed from the service and the documentation. You must migrate to the equivalent next-generation model by
499- /// the end of service date. For more information, see [Previous-generation languages and
500- /// models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models).
503+ /// the end of service date. For more information, see [Migrating to next-generation
504+ /// models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-migrate ).
501505 ///
502506 /// **See also:**
503507 /// * [Next-generation languages and
@@ -994,6 +998,10 @@ public class ModelValue
994998 /// </summary>
995999 public const string DE_DE_BROADBANDMODEL = "de-DE_BroadbandModel" ;
9961000 /// <summary>
1001+ /// Constant DE_DE_MULTIMEDIA for de-DE_Multimedia
1002+ /// </summary>
1003+ public const string DE_DE_MULTIMEDIA = "de-DE_Multimedia" ;
1004+ /// <summary>
9971005 /// Constant DE_DE_NARROWBANDMODEL for de-DE_NarrowbandModel
9981006 /// </summary>
9991007 public const string DE_DE_NARROWBANDMODEL = "de-DE_NarrowbandModel" ;
@@ -1470,8 +1478,8 @@ public DetailedResponse<object> UnregisterCallback(string callbackUrl)
14701478 /// **Important:** Effective 15 March 2022, previous-generation models for all languages other than Arabic and
14711479 /// Japanese are deprecated. The deprecated models remain available until 15 September 2022, when they will be
14721480 /// removed from the service and the documentation. You must migrate to the equivalent next-generation model by
1473- /// the end of service date. For more information, see [Previous-generation languages and
1474- /// models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models).
1481+ /// the end of service date. For more information, see [Migrating to next-generation
1482+ /// models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-migrate ).
14751483 ///
14761484 /// **See also:**
14771485 /// * [Next-generation languages and
@@ -2029,6 +2037,10 @@ public class ModelValue
20292037 /// </summary>
20302038 public const string DE_DE_BROADBANDMODEL = "de-DE_BroadbandModel" ;
20312039 /// <summary>
2040+ /// Constant DE_DE_MULTIMEDIA for de-DE_Multimedia
2041+ /// </summary>
2042+ public const string DE_DE_MULTIMEDIA = "de-DE_Multimedia" ;
2043+ /// <summary>
20322044 /// Constant DE_DE_NARROWBANDMODEL for de-DE_NarrowbandModel
20332045 /// </summary>
20342046 public const string DE_DE_NARROWBANDMODEL = "de-DE_NarrowbandModel" ;
@@ -2478,11 +2490,14 @@ public DetailedResponse<object> DeleteJob(string id)
24782490 /// **Important:** Effective 15 March 2022, previous-generation models for all languages other than Arabic and
24792491 /// Japanese are deprecated. The deprecated models remain available until 15 September 2022, when they will be
24802492 /// removed from the service and the documentation. You must migrate to the equivalent next-generation model by
2481- /// the end of service date. For more information, see [Previous-generation languages and
2482- /// models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models).
2493+ /// the end of service date. For more information, see [Migrating to next-generation
2494+ /// models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-migrate ).
24832495 ///
2484- /// **See also:** [Create a custom language
2485- /// model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-languageCreate#createModel-language).
2496+ /// **See also:**
2497+ /// * [Create a custom language
2498+ /// model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-languageCreate#createModel-language)
2499+ /// * [Language support for
2500+ /// customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
24862501 /// </summary>
24872502 /// <param name="name">A user-defined name for the new custom language model. Use a name that is unique among
24882503 /// all custom language models that you own. Use a localized name that matches the language of the custom model.
@@ -2580,8 +2595,11 @@ public DetailedResponse<LanguageModel> CreateLanguageModel(string name, string b
25802595 /// all custom language models for all languages. You must use credentials for the instance of the service that
25812596 /// owns a model to list information about it.
25822597 ///
2583- /// **See also:** [Listing custom language
2584- /// models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageLanguageModels#listModels-language).
2598+ /// **See also:**
2599+ /// * [Listing custom language
2600+ /// models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageLanguageModels#listModels-language)
2601+ /// * [Language support for
2602+ /// customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
25852603 /// </summary>
25862604 /// <param name="language">The identifier of the language for which custom language or custom acoustic models
25872605 /// are to be returned. Specify the five-character language identifier; for example, specify `en-US` to see all
@@ -2759,8 +2777,11 @@ public class LanguageValue
27592777 /// Gets information about a specified custom language model. You must use credentials for the instance of the
27602778 /// service that owns a model to list information about it.
27612779 ///
2762- /// **See also:** [Listing custom language
2763- /// models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageLanguageModels#listModels-language).
2780+ /// **See also:**
2781+ /// * [Listing custom language
2782+ /// models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageLanguageModels#listModels-language)
2783+ /// * [Language support for
2784+ /// customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
27642785 /// </summary>
27652786 /// <param name="customizationId">The customization ID (GUID) of the custom language model that is to be used
27662787 /// for the request. You must make the request with credentials for the instance of the service that owns the
@@ -2812,8 +2833,11 @@ public DetailedResponse<LanguageModel> GetLanguageModel(string customizationId)
28122833 /// adding a corpus or grammar to the model, is currently being processed. You must use credentials for the
28132834 /// instance of the service that owns a model to delete it.
28142835 ///
2815- /// **See also:** [Deleting a custom language
2816- /// model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageLanguageModels#deleteModel-language).
2836+ /// **See also:**
2837+ /// * [Deleting a custom language
2838+ /// model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageLanguageModels#deleteModel-language)
2839+ /// * [Language support for
2840+ /// customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
28172841 /// </summary>
28182842 /// <param name="customizationId">The customization ID (GUID) of the custom language model that is to be used
28192843 /// for the request. You must make the request with credentials for the instance of the service that owns the
@@ -2877,8 +2901,11 @@ public DetailedResponse<object> DeleteLanguageModel(string customizationId)
28772901 /// custom model is trained and ready to use. The service cannot accept subsequent training requests or requests
28782902 /// to add new resources until the existing request completes.
28792903 ///
2880- /// **See also:** [Train the custom language
2881- /// model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-languageCreate#trainModel-language).
2904+ /// **See also:**
2905+ /// * [Train the custom language
2906+ /// model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-languageCreate#trainModel-language)
2907+ /// * [Language support for
2908+ /// customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support)
28822909 ///
28832910 /// ### Training failures
28842911 ///
@@ -3007,8 +3034,11 @@ public class WordTypeToAddValue
30073034 /// name and language of the model are preserved, but the model's words resource is removed and must be
30083035 /// re-created. You must use credentials for the instance of the service that owns a model to reset it.
30093036 ///
3010- /// **See also:** [Resetting a custom language
3011- /// model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageLanguageModels#resetModel-language).
3037+ /// **See also:**
3038+ /// * [Resetting a custom language
3039+ /// model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageLanguageModels#resetModel-language)
3040+ /// * [Language support for
3041+ /// customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
30123042 /// </summary>
30133043 /// <param name="customizationId">The customization ID (GUID) of the custom language model that is to be used
30143044 /// for the request. You must make the request with credentials for the instance of the service that owns the
@@ -3071,8 +3101,11 @@ public DetailedResponse<object> ResetLanguageModel(string customizationId)
30713101 /// model resumes the status that it had prior to upgrade. The service cannot accept subsequent requests for the
30723102 /// model until the upgrade completes.
30733103 ///
3074- /// **See also:** [Upgrading a custom language
3075- /// model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-upgrade#custom-upgrade-language).
3104+ /// **See also:**
3105+ /// * [Upgrading a custom language
3106+ /// model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-upgrade#custom-upgrade-language)
3107+ /// * [Language support for
3108+ /// customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
30763109 /// </summary>
30773110 /// <param name="customizationId">The customization ID (GUID) of the custom language model that is to be used
30783111 /// for the request. You must make the request with credentials for the instance of the service that owns the
@@ -3985,13 +4018,11 @@ public DetailedResponse<object> DeleteWord(string customizationId, string wordNa
39854018 /// of out-of-vocabulary (OOV) words. You must use credentials for the instance of the service that owns a model
39864019 /// to list its grammars.
39874020 ///
3988- /// **Availability:** Grammars are available only for some previous- and next-generation models. Support differs
3989- /// between IBM Cloud and IBM Cloud Pak for Data. Grammars are generally available for some models and beta for
3990- /// other models. For more information, see [Language support for
4021+ /// **See also:**
4022+ /// * [Listing grammars from a custom language
4023+ /// model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageGrammars#listGrammars)
4024+ /// * [Language support for
39914025 /// customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
3992- ///
3993- /// **See also:** [Listing grammars from a custom language
3994- /// model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageGrammars#listGrammars).
39954026 /// </summary>
39964027 /// <param name="customizationId">The customization ID (GUID) of the custom language model that is to be used
39974028 /// for the request. You must make the request with credentials for the instance of the service that owns the
@@ -4071,16 +4102,13 @@ public DetailedResponse<Grammars> ListGrammars(string customizationId)
40714102 /// you can add no more than 90 thousand OOV words to a model. This includes words that the service extracts
40724103 /// from corpora and grammars and words that you add directly.
40734104 ///
4074- /// **Availability:** Grammars are available only for some previous- and next-generation models. Support differs
4075- /// between IBM Cloud and IBM Cloud Pak for Data. Grammars are generally available for some models and beta for
4076- /// other models. For more information, see [Language support for
4077- /// customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
4078- ///
40794105 /// **See also:**
40804106 /// * [Understanding
40814107 /// grammars](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-grammarUnderstand#grammarUnderstand)
40824108 /// * [Add a grammar to the custom language
4083- /// model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-grammarAdd#addGrammar).
4109+ /// model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-grammarAdd#addGrammar)
4110+ /// * [Language support for
4111+ /// customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
40844112 /// </summary>
40854113 /// <param name="customizationId">The customization ID (GUID) of the custom language model that is to be used
40864114 /// for the request. You must make the request with credentials for the instance of the service that owns the
@@ -4156,7 +4184,8 @@ public DetailedResponse<object> AddGrammar(string customizationId, string gramma
41564184 {
41574185 restRequest . WithArgument ( "allow_overwrite" , allowOverwrite ) ;
41584186 }
4159- var httpContent = new StringContent ( Encoding . UTF8 . GetString ( grammarFile . ToArray ( ) ) , Encoding . UTF8 ) ;
4187+ var httpContent = new ByteArrayContent ( grammarFile . ToArray ( ) ) ;
4188+ httpContent . Headers . Add ( "Content-Type" , "application/srgs" ) ;
41604189 System . Net . Http . Headers . MediaTypeHeaderValue grammarFileContentType ;
41614190 System . Net . Http . Headers . MediaTypeHeaderValue . TryParse ( contentType , out grammarFileContentType ) ;
41624191 httpContent . Headers . ContentType = grammarFileContentType ;
@@ -4213,13 +4242,11 @@ public class ContentTypeValue
42134242 /// out-of-vocabulary (OOV) words. You must use credentials for the instance of the service that owns a model to
42144243 /// list its grammars.
42154244 ///
4216- /// **Availability:** Grammars are available only for some previous- and next-generation models. Support differs
4217- /// between IBM Cloud and IBM Cloud Pak for Data. Grammars are generally available for some models and beta for
4218- /// other models. For more information, see [Language support for
4245+ /// **See also:**
4246+ /// * [Listing grammars from a custom language
4247+ /// model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageGrammars#listGrammars)
4248+ /// * [Language support for
42194249 /// customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
4220- ///
4221- /// **See also:** [Listing grammars from a custom language
4222- /// model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageGrammars#listGrammars).
42234250 /// </summary>
42244251 /// <param name="customizationId">The customization ID (GUID) of the custom language model that is to be used
42254252 /// for the request. You must make the request with credentials for the instance of the service that owns the
@@ -4284,13 +4311,11 @@ public DetailedResponse<Grammar> GetGrammar(string customizationId, string gramm
42844311 /// language model](#trainlanguagemodel) method. You must use credentials for the instance of the service that
42854312 /// owns a model to delete its grammar.
42864313 ///
4287- /// **Availability:** Grammars are available only for some previous- and next-generation models. Support differs
4288- /// between IBM Cloud and IBM Cloud Pak for Data. Grammars are generally available for some models and beta for
4289- /// other models. For more information, see [Language support for
4314+ /// **See also:**
4315+ /// * [Deleting a grammar from a custom language
4316+ /// model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageGrammars#deleteGrammar)
4317+ /// * [Language support for
42904318 /// customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
4291- ///
4292- /// **See also:** [Deleting a grammar from a custom language
4293- /// model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageGrammars#deleteGrammar).
42944319 /// </summary>
42954320 /// <param name="customizationId">The customization ID (GUID) of the custom language model that is to be used
42964321 /// for the request. You must make the request with credentials for the instance of the service that owns the
@@ -4360,8 +4385,8 @@ public DetailedResponse<object> DeleteGrammar(string customizationId, string gra
43604385 /// **Important:** Effective 15 March 2022, previous-generation models for all languages other than Arabic and
43614386 /// Japanese are deprecated. The deprecated models remain available until 15 September 2022, when they will be
43624387 /// removed from the service and the documentation. You must migrate to the equivalent next-generation model by
4363- /// the end of service date. For more information, see [Previous-generation languages and
4364- /// models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models).
4388+ /// the end of service date. For more information, see [Migrating to next-generation
4389+ /// models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-migrate ).
43654390 ///
43664391 /// **See also:** [Create a custom acoustic
43674392 /// model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-acoustic#createModel-acoustic).
0 commit comments