@@ -29,8 +29,6 @@ public class RecognizeWithWebsocketsOptions extends GenericModel {
29
29
* models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models#models).
30
30
*/
31
31
public interface Model {
32
- /** ar-AR_BroadbandModel. */
33
- String AR_AR_BROADBANDMODEL = "ar-AR_BroadbandModel" ;
34
32
/** ar-MS_BroadbandModel. */
35
33
String AR_MS_BROADBANDMODEL = "ar-MS_BroadbandModel" ;
36
34
/** ar-MS_Telephony. */
@@ -107,6 +105,8 @@ public interface Model {
107
105
String ES_PE_NARROWBANDMODEL = "es-PE_NarrowbandModel" ;
108
106
/** fr-CA_BroadbandModel. */
109
107
String FR_CA_BROADBANDMODEL = "fr-CA_BroadbandModel" ;
108
+ /** fr-CA_Multimedia. */
109
+ String FR_CA_MULTIMEDIA = "fr-CA_Multimedia" ;
110
110
/** fr-CA_NarrowbandModel. */
111
111
String FR_CA_NARROWBANDMODEL = "fr-CA_NarrowbandModel" ;
112
112
/** fr-CA_Telephony. */
@@ -135,6 +135,8 @@ public interface Model {
135
135
String JA_JP_MULTIMEDIA = "ja-JP_Multimedia" ;
136
136
/** ja-JP_NarrowbandModel. */
137
137
String JA_JP_NARROWBANDMODEL = "ja-JP_NarrowbandModel" ;
138
+ /** ja-JP_Telephony. */
139
+ String JA_JP_TELEPHONY = "ja-JP_Telephony" ;
138
140
/** ko-KR_BroadbandModel. */
139
141
String KO_KR_BROADBANDMODEL = "ko-KR_BroadbandModel" ;
140
142
/** ko-KR_Multimedia. */
@@ -147,6 +149,8 @@ public interface Model {
147
149
String NL_BE_TELEPHONY = "nl-BE_Telephony" ;
148
150
/** nl-NL_BroadbandModel. */
149
151
String NL_NL_BROADBANDMODEL = "nl-NL_BroadbandModel" ;
152
+ /** nl-NL_Multimedia. */
153
+ String NL_NL_MULTIMEDIA = "nl-NL_Multimedia" ;
150
154
/** nl-NL_NarrowbandModel. */
151
155
String NL_NL_NARROWBANDMODEL = "nl-NL_NarrowbandModel" ;
152
156
/** nl-NL_Telephony. */
@@ -159,6 +163,8 @@ public interface Model {
159
163
String PT_BR_NARROWBANDMODEL = "pt-BR_NarrowbandModel" ;
160
164
/** pt-BR_Telephony. */
161
165
String PT_BR_TELEPHONY = "pt-BR_Telephony" ;
166
+ /** sv-SE_Telephony. */
167
+ String SV_SE_TELEPHONY = "sv-SE_Telephony" ;
162
168
/** zh-CN_BroadbandModel. */
163
169
String ZH_CN_BROADBANDMODEL = "zh-CN_BroadbandModel" ;
164
170
/** zh-CN_NarrowbandModel. */
@@ -186,6 +192,7 @@ public interface Model {
186
192
protected Boolean timestamps ;
187
193
protected Boolean profanityFilter ;
188
194
protected Boolean smartFormatting ;
195
+ protected Long smartFormattingVersion ;
189
196
protected Boolean speakerLabels ;
190
197
protected String grammarName ;
191
198
protected Boolean redaction ;
@@ -218,6 +225,7 @@ public static class Builder {
218
225
private Boolean timestamps ;
219
226
private Boolean profanityFilter ;
220
227
private Boolean smartFormatting ;
228
+ private Long smartFormattingVersion ;
221
229
private Boolean speakerLabels ;
222
230
private String grammarName ;
223
231
private Boolean redaction ;
@@ -249,6 +257,7 @@ private Builder(RecognizeWithWebsocketsOptions recognizeWithWebsocketsOptions) {
249
257
this .timestamps = recognizeWithWebsocketsOptions .timestamps ;
250
258
this .profanityFilter = recognizeWithWebsocketsOptions .profanityFilter ;
251
259
this .smartFormatting = recognizeWithWebsocketsOptions .smartFormatting ;
260
+ this .smartFormattingVersion = recognizeWithWebsocketsOptions .smartFormattingVersion ;
252
261
this .speakerLabels = recognizeWithWebsocketsOptions .speakerLabels ;
253
262
this .grammarName = recognizeWithWebsocketsOptions .grammarName ;
254
263
this .redaction = recognizeWithWebsocketsOptions .redaction ;
@@ -476,6 +485,17 @@ public Builder smartFormatting(Boolean smartFormatting) {
476
485
return this ;
477
486
}
478
487
488
+ /**
489
+ * Set the smartFormattingVersion.
490
+ *
491
+ * @param smartFormattingVersion the smartFormattingVersion
492
+ * @return the RecognizeOptions builder
493
+ */
494
+ public Builder smartFormattingVersion (long smartFormattingVersion ) {
495
+ this .smartFormattingVersion = smartFormattingVersion ;
496
+ return this ;
497
+ }
498
+
479
499
/**
480
500
* Set the speakerLabels.
481
501
*
@@ -656,6 +676,7 @@ protected RecognizeWithWebsocketsOptions(Builder builder) {
656
676
timestamps = builder .timestamps ;
657
677
profanityFilter = builder .profanityFilter ;
658
678
smartFormatting = builder .smartFormatting ;
679
+ smartFormattingVersion = builder .smartFormattingVersion ;
659
680
speakerLabels = builder .speakerLabels ;
660
681
grammarName = builder .grammarName ;
661
682
redaction = builder .redaction ;
@@ -929,6 +950,18 @@ public Boolean smartFormatting() {
929
950
return smartFormatting ;
930
951
}
931
952
953
+ /**
954
+ * Gets the smartFormattingVersion.
955
+ *
956
+ * <p>Smart formatting version is for next-generation models and that is supported in US English,
957
+ * Brazilian Portuguese, French and German languages.
958
+ *
959
+ * @return the smartFormattingVersion
960
+ */
961
+ public Long smartFormattingVersion () {
962
+ return smartFormattingVersion ;
963
+ }
964
+
932
965
/**
933
966
* Gets the speakerLabels.
934
967
*
0 commit comments