GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(speech-to-text-v1): add more languages supported for next genera… · watson-developer-cloud/java-sdk@c03ea09

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model
    • CreateLanguageModelOptions.java
    • GetModelOptions.java
    • ListAcousticModelsOptions.java
    • ListLanguageModelsOptions.java
    • RecognizeOptions.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/CreateLanguageModelOptions.java‎

Copy file name to clipboardExpand all lines: speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/CreateLanguageModelOptions.java
+55-21Lines changed: 55 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2018, 2020.
2+
* (C) Copyright IBM Corp. 2021.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -21,30 +21,44 @@ public class CreateLanguageModelOptions extends GenericModel {
2121
* The name of the base language model that is to be customized by the new custom language model.
2222
* The new custom model can be used only with the base model that it customizes.
2323
*
24-
* <p>To determine whether a base model supports language model customization, use the **Get a
25-
* model** method and check that the attribute `custom_language_model` is set to `true`. You can
26-
* also refer to [Language support for
27-
* customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-customization#languageSupport).
24+
* <p>To determine whether a base model supports language model customization, use the [Get a
25+
* model](#getmodel) method and check that the attribute `custom_language_model` is set to `true`.
26+
* You can also refer to [Language support for
27+
* customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support#custom-language-support).
2828
*/
2929
public interface BaseModelName {
30+
/** ar-MS_Telephony. */
31+
String AR_MS_TELEPHONY = "ar-MS_Telephony";
3032
/** de-DE_BroadbandModel. */
3133
String DE_DE_BROADBANDMODEL = "de-DE_BroadbandModel";
3234
/** de-DE_NarrowbandModel. */
3335
String DE_DE_NARROWBANDMODEL = "de-DE_NarrowbandModel";
36+
/** de-DE_Telephony. */
37+
String DE_DE_TELEPHONY = "de-DE_Telephony";
3438
/** en-AU_BroadbandModel. */
3539
String EN_AU_BROADBANDMODEL = "en-AU_BroadbandModel";
3640
/** en-AU_NarrowbandModel. */
3741
String EN_AU_NARROWBANDMODEL = "en-AU_NarrowbandModel";
42+
/** en-AU_Telephony. */
43+
String EN_AU_TELEPHONY = "en-AU_Telephony";
3844
/** en-GB_BroadbandModel. */
3945
String EN_GB_BROADBANDMODEL = "en-GB_BroadbandModel";
4046
/** en-GB_NarrowbandModel. */
4147
String EN_GB_NARROWBANDMODEL = "en-GB_NarrowbandModel";
48+
/** en-GB_Telephony. */
49+
String EN_GB_TELEPHONY = "en-GB_Telephony";
50+
/** en-IN_Telephony. */
51+
String EN_IN_TELEPHONY = "en-IN_Telephony";
4252
/** en-US_BroadbandModel. */
4353
String EN_US_BROADBANDMODEL = "en-US_BroadbandModel";
54+
/** en-US_Multimedia. */
55+
String EN_US_MULTIMEDIA = "en-US_Multimedia";
4456
/** en-US_NarrowbandModel. */
4557
String EN_US_NARROWBANDMODEL = "en-US_NarrowbandModel";
4658
/** en-US_ShortForm_NarrowbandModel. */
4759
String EN_US_SHORTFORM_NARROWBANDMODEL = "en-US_ShortForm_NarrowbandModel";
60+
/** en-US_Telephony. */
61+
String EN_US_TELEPHONY = "en-US_Telephony";
4862
/** es-AR_BroadbandModel. */
4963
String ES_AR_BROADBANDMODEL = "es-AR_BroadbandModel";
5064
/** es-AR_NarrowbandModel. */
@@ -61,6 +75,8 @@ public interface BaseModelName {
6175
String ES_ES_BROADBANDMODEL = "es-ES_BroadbandModel";
6276
/** es-ES_NarrowbandModel. */
6377
String ES_ES_NARROWBANDMODEL = "es-ES_NarrowbandModel";
78+
/** es-ES_Telephony. */
79+
String ES_ES_TELEPHONY = "es-ES_Telephony";
6480
/** es-MX_BroadbandModel. */
6581
String ES_MX_BROADBANDMODEL = "es-MX_BroadbandModel";
6682
/** es-MX_NarrowbandModel. */
@@ -73,22 +89,40 @@ public interface BaseModelName {
7389
String FR_CA_BROADBANDMODEL = "fr-CA_BroadbandModel";
7490
/** fr-CA_NarrowbandModel. */
7591
String FR_CA_NARROWBANDMODEL = "fr-CA_NarrowbandModel";
92+
/** fr-CA_Telephony. */
93+
String FR_CA_TELEPHONY = "fr-CA_Telephony";
7694
/** fr-FR_BroadbandModel. */
7795
String FR_FR_BROADBANDMODEL = "fr-FR_BroadbandModel";
96+
/** fr-FR_Multimedia. */
97+
String FR_FR_MULTIMEDIA = "fr-FR_Multimedia";
7898
/** fr-FR_NarrowbandModel. */
7999
String FR_FR_NARROWBANDMODEL = "fr-FR_NarrowbandModel";
100+
/** fr-FR_Telephony. */
101+
String FR_FR_TELEPHONY = "fr-FR_Telephony";
102+
/** hi-IN_Telephony. */
103+
String HI_IN_TELEPHONY = "hi-IN_Telephony";
80104
/** it-IT_BroadbandModel. */
81105
String IT_IT_BROADBANDMODEL = "it-IT_BroadbandModel";
82106
/** it-IT_NarrowbandModel. */
83107
String IT_IT_NARROWBANDMODEL = "it-IT_NarrowbandModel";
108+
/** it-IT_Telephony. */
109+
String IT_IT_TELEPHONY = "it-IT_Telephony";
84110
/** ja-JP_BroadbandModel. */
85111
String JA_JP_BROADBANDMODEL = "ja-JP_BroadbandModel";
112+
/** ja-JP_Multimedia. */
113+
String JA_JP_MULTIMEDIA = "ja-JP_Multimedia";
86114
/** ja-JP_NarrowbandModel. */
87115
String JA_JP_NARROWBANDMODEL = "ja-JP_NarrowbandModel";
88116
/** ko-KR_BroadbandModel. */
89117
String KO_KR_BROADBANDMODEL = "ko-KR_BroadbandModel";
118+
/** ko-KR_Multimedia. */
119+
String KO_KR_MULTIMEDIA = "ko-KR_Multimedia";
90120
/** ko-KR_NarrowbandModel. */
91121
String KO_KR_NARROWBANDMODEL = "ko-KR_NarrowbandModel";
122+
/** ko-KR_Telephony. */
123+
String KO_KR_TELEPHONY = "ko-KR_Telephony";
124+
/** nl-BE_Telephony. */
125+
String NL_BE_TELEPHONY = "nl-BE_Telephony";
92126
/** nl-NL_BroadbandModel. */
93127
String NL_NL_BROADBANDMODEL = "nl-NL_BroadbandModel";
94128
/** nl-NL_NarrowbandModel. */
@@ -97,6 +131,8 @@ public interface BaseModelName {
97131
String PT_BR_BROADBANDMODEL = "pt-BR_BroadbandModel";
98132
/** pt-BR_NarrowbandModel. */
99133
String PT_BR_NARROWBANDMODEL = "pt-BR_NarrowbandModel";
134+
/** pt-BR_Telephony. */
135+
String PT_BR_TELEPHONY = "pt-BR_Telephony";
100136
}
101137

102138
protected String name;
@@ -225,10 +261,10 @@ public String name() {
225261
* <p>The name of the base language model that is to be customized by the new custom language
226262
* model. The new custom model can be used only with the base model that it customizes.
227263
*
228-
* <p>To determine whether a base model supports language model customization, use the **Get a
229-
* model** method and check that the attribute `custom_language_model` is set to `true`. You can
230-
* also refer to [Language support for
231-
* customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-customization#languageSupport).
264+
* <p>To determine whether a base model supports language model customization, use the [Get a
265+
* model](#getmodel) method and check that the attribute `custom_language_model` is set to `true`.
266+
* You can also refer to [Language support for
267+
* customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support#custom-language-support).
232268
*
233269
* @return the baseModelName
234270
*/
@@ -241,20 +277,18 @@ public String baseModelName() {
241277
*
242278
* <p>The dialect of the specified language that is to be used with the custom language model. For
243279
* most languages, the dialect matches the language of the base model by default. For example,
244-
* `en-US` is used for either of the US English language models.
280+
* `en-US` is used for the US English language models. All dialect values are case-insensitive.
245281
*
246-
* <p>For a Spanish language, the service creates a custom language model that is suited for
247-
* speech in one of the following dialects: * `es-ES` for Castilian Spanish (`es-ES` models) *
248-
* `es-LA` for Latin American Spanish (`es-AR`, `es-CL`, `es-CO`, and `es-PE` models) * `es-US`
249-
* for Mexican (North American) Spanish (`es-MX` models)
282+
* <p>The parameter is meaningful only for Spanish language models, for which you can always
283+
* safely omit the parameter to have the service create the correct mapping. For Spanish, the
284+
* service creates a custom language model that is suited for speech in one of the following
285+
* dialects: * `es-ES` for Castilian Spanish (`es-ES` models) * `es-LA` for Latin American Spanish
286+
* (`es-AR`, `es-CL`, `es-CO`, and `es-PE` models) * `es-US` for Mexican (North American) Spanish
287+
* (`es-MX` models)
250288
*
251-
* <p>The parameter is meaningful only for Spanish models, for which you can always safely omit
252-
* the parameter to have the service create the correct mapping.
253-
*
254-
* <p>If you specify the `dialect` parameter for non-Spanish language models, its value must match
255-
* the language of the base model. If you specify the `dialect` for Spanish language models, its
256-
* value must match one of the defined mappings as indicated (`es-ES`, `es-LA`, or `es-MX`). All
257-
* dialect values are case-insensitive.
289+
* <p>If you specify the `dialect` parameter for a non-Spanish language model, its value must
290+
* match the language of the base model. If you specify the `dialect` for a Spanish language
291+
* model, its value must match one of the defined mappings (`es-ES`, `es-LA`, or `es-MX`).
258292
*
259293
* @return the dialect
260294
*/
Collapse file

‎speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/GetModelOptions.java‎

Copy file name to clipboardExpand all lines: speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/GetModelOptions.java
+21-7Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2018, 2021.
2+
* (C) Copyright IBM Corp. 2021.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -18,9 +18,9 @@
1818
public class GetModelOptions extends GenericModel {
1919

2020
/**
21-
* The identifier of the model in the form of its name from the output of the **Get a model**
22-
* method. (**Note:** The model `ar-AR_BroadbandModel` is deprecated; use `ar-MS_BroadbandModel`
23-
* instead.).
21+
* The identifier of the model in the form of its name from the output of the [List
22+
* models](#listmodels) method. (**Note:** The model `ar-AR_BroadbandModel` is deprecated; use
23+
* `ar-MS_BroadbandModel` instead.).
2424
*/
2525
public interface ModelId {
2626
/** ar-AR_BroadbandModel. */
@@ -47,6 +47,8 @@ public interface ModelId {
4747
String EN_GB_NARROWBANDMODEL = "en-GB_NarrowbandModel";
4848
/** en-GB_Telephony. */
4949
String EN_GB_TELEPHONY = "en-GB_Telephony";
50+
/** en-IN_Telephony. */
51+
String EN_IN_TELEPHONY = "en-IN_Telephony";
5052
/** en-US_BroadbandModel. */
5153
String EN_US_BROADBANDMODEL = "en-US_BroadbandModel";
5254
/** en-US_Multimedia. */
@@ -91,10 +93,14 @@ public interface ModelId {
9193
String FR_CA_TELEPHONY = "fr-CA_Telephony";
9294
/** fr-FR_BroadbandModel. */
9395
String FR_FR_BROADBANDMODEL = "fr-FR_BroadbandModel";
96+
/** fr-FR_Multimedia. */
97+
String FR_FR_MULTIMEDIA = "fr-FR_Multimedia";
9498
/** fr-FR_NarrowbandModel. */
9599
String FR_FR_NARROWBANDMODEL = "fr-FR_NarrowbandModel";
96100
/** fr-FR_Telephony. */
97101
String FR_FR_TELEPHONY = "fr-FR_Telephony";
102+
/** hi-IN_Telephony. */
103+
String HI_IN_TELEPHONY = "hi-IN_Telephony";
98104
/** it-IT_BroadbandModel. */
99105
String IT_IT_BROADBANDMODEL = "it-IT_BroadbandModel";
100106
/** it-IT_NarrowbandModel. */
@@ -103,12 +109,20 @@ public interface ModelId {
103109
String IT_IT_TELEPHONY = "it-IT_Telephony";
104110
/** ja-JP_BroadbandModel. */
105111
String JA_JP_BROADBANDMODEL = "ja-JP_BroadbandModel";
112+
/** ja-JP_Multimedia. */
113+
String JA_JP_MULTIMEDIA = "ja-JP_Multimedia";
106114
/** ja-JP_NarrowbandModel. */
107115
String JA_JP_NARROWBANDMODEL = "ja-JP_NarrowbandModel";
108116
/** ko-KR_BroadbandModel. */
109117
String KO_KR_BROADBANDMODEL = "ko-KR_BroadbandModel";
118+
/** ko-KR_Multimedia. */
119+
String KO_KR_MULTIMEDIA = "ko-KR_Multimedia";
110120
/** ko-KR_NarrowbandModel. */
111121
String KO_KR_NARROWBANDMODEL = "ko-KR_NarrowbandModel";
122+
/** ko-KR_Telephony. */
123+
String KO_KR_TELEPHONY = "ko-KR_Telephony";
124+
/** nl-BE_Telephony. */
125+
String NL_BE_TELEPHONY = "nl-BE_Telephony";
112126
/** nl-NL_BroadbandModel. */
113127
String NL_NL_BROADBANDMODEL = "nl-NL_BroadbandModel";
114128
/** nl-NL_NarrowbandModel. */
@@ -185,9 +199,9 @@ public Builder newBuilder() {
185199
/**
186200
* Gets the modelId.
187201
*
188-
* <p>The identifier of the model in the form of its name from the output of the **Get a model**
189-
* method. (**Note:** The model `ar-AR_BroadbandModel` is deprecated; use `ar-MS_BroadbandModel`
190-
* instead.).
202+
* <p>The identifier of the model in the form of its name from the output of the [List
203+
* models](#listmodels) method. (**Note:** The model `ar-AR_BroadbandModel` is deprecated; use
204+
* `ar-MS_BroadbandModel` instead.).
191205
*
192206
* @return the modelId
193207
*/
Collapse file

‎speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/ListAcousticModelsOptions.java‎

Copy file name to clipboardExpand all lines: speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/ListAcousticModelsOptions.java
+9-3Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2018, 2021.
2+
* (C) Copyright IBM Corp. 2021.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -24,7 +24,7 @@ public class ListAcousticModelsOptions extends GenericModel {
2424
* `ar-MS` instead.)
2525
*
2626
* <p>To determine the languages for which customization is available, see [Language support for
27-
* customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-customization#languageSupport).
27+
* customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support#custom-language-support).
2828
*/
2929
public interface Language {
3030
/** ar-AR. */
@@ -37,6 +37,8 @@ public interface Language {
3737
String EN_AU = "en-AU";
3838
/** en-GB. */
3939
String EN_GB = "en-GB";
40+
/** en-IN. */
41+
String EN_IN = "en-IN";
4042
/** en-US. */
4143
String EN_US = "en-US";
4244
/** es-AR. */
@@ -55,12 +57,16 @@ public interface Language {
5557
String FR_CA = "fr-CA";
5658
/** fr-FR. */
5759
String FR_FR = "fr-FR";
60+
/** hi-IN. */
61+
String HI_IN = "hi-IN";
5862
/** it-IT. */
5963
String IT_IT = "it-IT";
6064
/** ja-JP. */
6165
String JA_JP = "ja-JP";
6266
/** ko-KR. */
6367
String KO_KR = "ko-KR";
68+
/** nl-BE. */
69+
String NL_BE = "nl-BE";
6470
/** nl-NL. */
6571
String NL_NL = "nl-NL";
6672
/** pt-BR. */
@@ -125,7 +131,7 @@ public Builder newBuilder() {
125131
* `ar-MS` instead.)
126132
*
127133
* <p>To determine the languages for which customization is available, see [Language support for
128-
* customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-customization#languageSupport).
134+
* customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support#custom-language-support).
129135
*
130136
* @return the language
131137
*/
Collapse file

‎speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/ListLanguageModelsOptions.java‎

Copy file name to clipboardExpand all lines: speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/model/ListLanguageModelsOptions.java
+9-3Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corp. 2018, 2021.
2+
* (C) Copyright IBM Corp. 2021.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -24,7 +24,7 @@ public class ListLanguageModelsOptions extends GenericModel {
2424
* `ar-MS` instead.)
2525
*
2626
* <p>To determine the languages for which customization is available, see [Language support for
27-
* customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-customization#languageSupport).
27+
* customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support#custom-language-support).
2828
*/
2929
public interface Language {
3030
/** ar-AR. */
@@ -37,6 +37,8 @@ public interface Language {
3737
String EN_AU = "en-AU";
3838
/** en-GB. */
3939
String EN_GB = "en-GB";
40+
/** en-IN. */
41+
String EN_IN = "en-IN";
4042
/** en-US. */
4143
String EN_US = "en-US";
4244
/** es-AR. */
@@ -55,12 +57,16 @@ public interface Language {
5557
String FR_CA = "fr-CA";
5658
/** fr-FR. */
5759
String FR_FR = "fr-FR";
60+
/** hi-IN. */
61+
String HI_IN = "hi-IN";
5862
/** it-IT. */
5963
String IT_IT = "it-IT";
6064
/** ja-JP. */
6165
String JA_JP = "ja-JP";
6266
/** ko-KR. */
6367
String KO_KR = "ko-KR";
68+
/** nl-BE. */
69+
String NL_BE = "nl-BE";
6470
/** nl-NL. */
6571
String NL_NL = "nl-NL";
6672
/** pt-BR. */
@@ -125,7 +131,7 @@ public Builder newBuilder() {
125131
* `ar-MS` instead.)
126132
*
127133
* <p>To determine the languages for which customization is available, see [Language support for
128-
* customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-customization#languageSupport).
134+
* customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support#custom-language-support).
129135
*
130136
* @return the language
131137
*/

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.