Skip to content

Commit 0d32576

Browse files
committed
feat(speech-to-text-v1): add de-de_multimedia & update comments
1 parent 20c4b45 commit 0d32576

File tree

6 files changed

+65
-52
lines changed

6 files changed

+65
-52
lines changed

speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java

Lines changed: 55 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,9 @@
115115
* <p>Effective 15 March 2022, previous-generation models for all languages other than Arabic and
116116
* Japanese are deprecated. The deprecated models remain available until 15 September 2022, when
117117
* they will be removed from the service and the documentation. You must migrate to the equivalent
118-
* next-generation model by the end of service date. For more information, see [Previous-generation
119-
* languages and models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models).{:
118+
* next-generation model by the end of service date. For more information, see [Migrating to
119+
* next-generation
120+
* models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-migrate).{:
120121
* deprecated}
121122
*
122123
* <p>For speech recognition, the service supports synchronous and asynchronous HTTP
@@ -336,8 +337,8 @@ public ServiceCall<SpeechModel> getModel(GetModelOptions getModelOptions) {
336337
* than Arabic and Japanese are deprecated. The deprecated models remain available until 15
337338
* September 2022, when they will be removed from the service and the documentation. You must
338339
* migrate to the equivalent next-generation model by the end of service date. For more
339-
* information, see [Previous-generation languages and
340-
* models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models).
340+
* information, see [Migrating to next-generation
341+
* models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-migrate).
341342
*
342343
* <p>**See also:** * [Next-generation languages and
343344
* models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-ng) * [Supported
@@ -709,8 +710,8 @@ public ServiceCall<Void> unregisterCallback(UnregisterCallbackOptions unregister
709710
* than Arabic and Japanese are deprecated. The deprecated models remain available until 15
710711
* September 2022, when they will be removed from the service and the documentation. You must
711712
* migrate to the equivalent next-generation model by the end of service date. For more
712-
* information, see [Previous-generation languages and
713-
* models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models).
713+
* information, see [Migrating to next-generation
714+
* models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-migrate).
714715
*
715716
* <p>**See also:** * [Next-generation languages and
716717
* models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-ng) * [Supported
@@ -980,11 +981,13 @@ public ServiceCall<Void> deleteJob(DeleteJobOptions deleteJobOptions) {
980981
* than Arabic and Japanese are deprecated. The deprecated models remain available until 15
981982
* September 2022, when they will be removed from the service and the documentation. You must
982983
* migrate to the equivalent next-generation model by the end of service date. For more
983-
* information, see [Previous-generation languages and
984-
* models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models).
984+
* information, see [Migrating to next-generation
985+
* models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-migrate).
985986
*
986-
* <p>**See also:** [Create a custom language
987-
* model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-languageCreate#createModel-language).
987+
* <p>**See also:** * [Create a custom language
988+
* model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-languageCreate#createModel-language)
989+
* * [Language support for
990+
* customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
988991
*
989992
* @param createLanguageModelOptions the {@link CreateLanguageModelOptions} containing the options
990993
* for the call
@@ -1027,8 +1030,10 @@ public ServiceCall<LanguageModel> createLanguageModel(
10271030
* language. Omit the parameter to see all custom language models for all languages. You must use
10281031
* credentials for the instance of the service that owns a model to list information about it.
10291032
*
1030-
* <p>**See also:** [Listing custom language
1031-
* models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageLanguageModels#listModels-language).
1033+
* <p>**See also:** * [Listing custom language
1034+
* models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageLanguageModels#listModels-language)
1035+
* * [Language support for
1036+
* customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
10321037
*
10331038
* @param listLanguageModelsOptions the {@link ListLanguageModelsOptions} containing the options
10341039
* for the call
@@ -1064,8 +1069,10 @@ public ServiceCall<LanguageModels> listLanguageModels(
10641069
* language. Omit the parameter to see all custom language models for all languages. You must use
10651070
* credentials for the instance of the service that owns a model to list information about it.
10661071
*
1067-
* <p>**See also:** [Listing custom language
1068-
* models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageLanguageModels#listModels-language).
1072+
* <p>**See also:** * [Listing custom language
1073+
* models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageLanguageModels#listModels-language)
1074+
* * [Language support for
1075+
* customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
10691076
*
10701077
* @return a {@link ServiceCall} with a result of type {@link LanguageModels}
10711078
*/
@@ -1079,8 +1086,10 @@ public ServiceCall<LanguageModels> listLanguageModels() {
10791086
* <p>Gets information about a specified custom language model. You must use credentials for the
10801087
* instance of the service that owns a model to list information about it.
10811088
*
1082-
* <p>**See also:** [Listing custom language
1083-
* models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageLanguageModels#listModels-language).
1089+
* <p>**See also:** * [Listing custom language
1090+
* models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageLanguageModels#listModels-language)
1091+
* * [Language support for
1092+
* customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
10841093
*
10851094
* @param getLanguageModelOptions the {@link GetLanguageModelOptions} containing the options for
10861095
* the call
@@ -1115,8 +1124,10 @@ public ServiceCall<LanguageModel> getLanguageModel(
11151124
* request, such as adding a corpus or grammar to the model, is currently being processed. You
11161125
* must use credentials for the instance of the service that owns a model to delete it.
11171126
*
1118-
* <p>**See also:** [Deleting a custom language
1119-
* model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageLanguageModels#deleteModel-language).
1127+
* <p>**See also:** * [Deleting a custom language
1128+
* model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageLanguageModels#deleteModel-language)
1129+
* * [Language support for
1130+
* customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
11201131
*
11211132
* @param deleteLanguageModelOptions the {@link DeleteLanguageModelOptions} containing the options
11221133
* for the call
@@ -1164,8 +1175,10 @@ public ServiceCall<Void> deleteLanguageModel(
11641175
* use. The service cannot accept subsequent training requests or requests to add new resources
11651176
* until the existing request completes.
11661177
*
1167-
* <p>**See also:** [Train the custom language
1168-
* model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-languageCreate#trainModel-language).
1178+
* <p>**See also:** * [Train the custom language
1179+
* model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-languageCreate#trainModel-language)
1180+
* * [Language support for
1181+
* customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support)
11691182
*
11701183
* <p>### Training failures
11711184
*
@@ -1219,8 +1232,10 @@ public ServiceCall<TrainingResponse> trainLanguageModel(
12191232
* resource is removed and must be re-created. You must use credentials for the instance of the
12201233
* service that owns a model to reset it.
12211234
*
1222-
* <p>**See also:** [Resetting a custom language
1223-
* model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageLanguageModels#resetModel-language).
1235+
* <p>**See also:** * [Resetting a custom language
1236+
* model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageLanguageModels#resetModel-language)
1237+
* * [Language support for
1238+
* customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
12241239
*
12251240
* @param resetLanguageModelOptions the {@link ResetLanguageModelOptions} containing the options
12261241
* for the call
@@ -1264,8 +1279,10 @@ public ServiceCall<Void> resetLanguageModel(ResetLanguageModelOptions resetLangu
12641279
* complete, the model resumes the status that it had prior to upgrade. The service cannot accept
12651280
* subsequent requests for the model until the upgrade completes.
12661281
*
1267-
* <p>**See also:** [Upgrading a custom language
1268-
* model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-upgrade#custom-upgrade-language).
1282+
* <p>**See also:** * [Upgrading a custom language
1283+
* model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-upgrade#custom-upgrade-language)
1284+
* * [Language support for
1285+
* customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
12691286
*
12701287
* @param upgradeLanguageModelOptions the {@link UpgradeLanguageModelOptions} containing the
12711288
* options for the call
@@ -1795,14 +1812,11 @@ public ServiceCall<Void> deleteWord(DeleteWordOptions deleteWordOptions) {
17951812
* models) the total number of out-of-vocabulary (OOV) words. You must use credentials for the
17961813
* instance of the service that owns a model to list its grammars.
17971814
*
1798-
* <p>**Availability:** Grammars are available only for some previous- and next-generation models.
1799-
* Support differs between IBM Cloud and IBM Cloud Pak for Data. Grammars are generally available
1800-
* for some models and beta for other models. For more information, see [Language support for
1815+
* <p>**See also:** * [Listing grammars from a custom language
1816+
* model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageGrammars#listGrammars)
1817+
* * [Language support for
18011818
* customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
18021819
*
1803-
* <p>**See also:** [Listing grammars from a custom language
1804-
* model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageGrammars#listGrammars).
1805-
*
18061820
* @param listGrammarsOptions the {@link ListGrammarsOptions} containing the options for the call
18071821
* @return a {@link ServiceCall} with a result of type {@link Grammars}
18081822
*/
@@ -1865,15 +1879,12 @@ public ServiceCall<Grammars> listGrammars(ListGrammarsOptions listGrammarsOption
18651879
* includes words that the service extracts from corpora and grammars and words that you add
18661880
* directly.
18671881
*
1868-
* <p>**Availability:** Grammars are available only for some previous- and next-generation models.
1869-
* Support differs between IBM Cloud and IBM Cloud Pak for Data. Grammars are generally available
1870-
* for some models and beta for other models. For more information, see [Language support for
1871-
* customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
1872-
*
18731882
* <p>**See also:** * [Understanding
18741883
* grammars](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-grammarUnderstand#grammarUnderstand)
18751884
* * [Add a grammar to the custom language
1876-
* model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-grammarAdd#addGrammar).
1885+
* model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-grammarAdd#addGrammar) *
1886+
* [Language support for
1887+
* customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
18771888
*
18781889
* @param addGrammarOptions the {@link AddGrammarOptions} containing the options for the call
18791890
* @return a {@link ServiceCall} with a void result
@@ -1913,14 +1924,11 @@ public ServiceCall<Void> addGrammar(AddGrammarOptions addGrammarOptions) {
19131924
* models) the total number of out-of-vocabulary (OOV) words. You must use credentials for the
19141925
* instance of the service that owns a model to list its grammars.
19151926
*
1916-
* <p>**Availability:** Grammars are available only for some previous- and next-generation models.
1917-
* Support differs between IBM Cloud and IBM Cloud Pak for Data. Grammars are generally available
1918-
* for some models and beta for other models. For more information, see [Language support for
1927+
* <p>**See also:** * [Listing grammars from a custom language
1928+
* model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageGrammars#listGrammars)
1929+
* * [Language support for
19191930
* customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
19201931
*
1921-
* <p>**See also:** [Listing grammars from a custom language
1922-
* model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageGrammars#listGrammars).
1923-
*
19241932
* @param getGrammarOptions the {@link GetGrammarOptions} containing the options for the call
19251933
* @return a {@link ServiceCall} with a result of type {@link Grammar}
19261934
*/
@@ -1958,14 +1966,11 @@ public ServiceCall<Grammar> getGrammar(GetGrammarOptions getGrammarOptions) {
19581966
* train the model with the [Train a custom language model](#trainlanguagemodel) method. You must
19591967
* use credentials for the instance of the service that owns a model to delete its grammar.
19601968
*
1961-
* <p>**Availability:** Grammars are available only for some previous- and next-generation models.
1962-
* Support differs between IBM Cloud and IBM Cloud Pak for Data. Grammars are generally available
1963-
* for some models and beta for other models. For more information, see [Language support for
1969+
* <p>**See also:** * [Deleting a grammar from a custom language
1970+
* model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageGrammars#deleteGrammar)
1971+
* * [Language support for
19641972
* customization](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-custom-support).
19651973
*
1966-
* <p>**See also:** [Deleting a grammar from a custom language
1967-
* model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-manageGrammars#deleteGrammar).
1968-
*
19691974
* @param deleteGrammarOptions the {@link DeleteGrammarOptions} containing the options for the
19701975
* call
19711976
* @return a {@link ServiceCall} with a void result
@@ -2010,8 +2015,8 @@ public ServiceCall<Void> deleteGrammar(DeleteGrammarOptions deleteGrammarOptions
20102015
* than Arabic and Japanese are deprecated. The deprecated models remain available until 15
20112016
* September 2022, when they will be removed from the service and the documentation. You must
20122017
* migrate to the equivalent next-generation model by the end of service date. For more
2013-
* information, see [Previous-generation languages and
2014-
* models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models).
2018+
* information, see [Migrating to next-generation
2019+
* models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models-migrate).
20152020
*
20162021
* <p>**See also:** [Create a custom acoustic
20172022
* model](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-acoustic#createModel-acoustic).

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public interface Model {
4040
String CS_CZ_TELEPHONY = "cs-CZ_Telephony";
4141
/** de-DE_BroadbandModel. */
4242
String DE_DE_BROADBANDMODEL = "de-DE_BroadbandModel";
43+
/** de-DE_Multimedia. */
44+
String DE_DE_MULTIMEDIA = "de-DE_Multimedia";
4345
/** de-DE_NarrowbandModel. */
4446
String DE_DE_NARROWBANDMODEL = "de-DE_NarrowbandModel";
4547
/** de-DE_Telephony. */

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ public interface BaseModelName {
3333
String CS_CZ_TELEPHONY = "cs-CZ_Telephony";
3434
/** de-DE_BroadbandModel. */
3535
String DE_DE_BROADBANDMODEL = "de-DE_BroadbandModel";
36+
/** de-DE_Multimedia. */
37+
String DE_DE_MULTIMEDIA = "de-DE_Multimedia";
3638
/** de-DE_NarrowbandModel. */
3739
String DE_DE_NARROWBANDMODEL = "de-DE_NarrowbandModel";
3840
/** de-DE_Telephony. */

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ public interface ModelId {
3333
String CS_CZ_TELEPHONY = "cs-CZ_Telephony";
3434
/** de-DE_BroadbandModel. */
3535
String DE_DE_BROADBANDMODEL = "de-DE_BroadbandModel";
36+
/** de-DE_Multimedia. */
37+
String DE_DE_MULTIMEDIA = "de-DE_Multimedia";
3638
/** de-DE_NarrowbandModel. */
3739
String DE_DE_NARROWBANDMODEL = "de-DE_NarrowbandModel";
3840
/** de-DE_Telephony. */

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public interface Model {
4040
String CS_CZ_TELEPHONY = "cs-CZ_Telephony";
4141
/** de-DE_BroadbandModel. */
4242
String DE_DE_BROADBANDMODEL = "de-DE_BroadbandModel";
43+
/** de-DE_Multimedia. */
44+
String DE_DE_MULTIMEDIA = "de-DE_Multimedia";
4345
/** de-DE_NarrowbandModel. */
4446
String DE_DE_NARROWBANDMODEL = "de-DE_NarrowbandModel";
4547
/** de-DE_Telephony. */

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

Lines changed: 2 additions & 2 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. 2022.
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
@@ -69,7 +69,7 @@ public List<SpeechTimestamp> getTimestamps() {
6969
*
7070
* <p>A confidence score for each word of the transcript as a list of lists. Each inner list
7171
* consists of two elements: the word and its confidence score in the range of 0.0 to 1.0, for
72-
* example: `[["hello",0.95],["world",0.866]]`. Confidence scores are returned only for the best
72+
* example: `[["hello",0.95],["world",0.86]]`. Confidence scores are returned only for the best
7373
* alternative and only with results marked as final.
7474
*
7575
* @return the wordConfidence

0 commit comments

Comments
 (0)