@@ -29,8 +29,6 @@ public class RecognizeWithWebsocketsOptions extends GenericModel {
2929 * models](https://cloud.ibm.com/docs/speech-to-text?topic=speech-to-text-models#models).
3030 */
3131 public interface Model {
32- /** ar-AR_BroadbandModel. */
33- String AR_AR_BROADBANDMODEL = "ar-AR_BroadbandModel" ;
3432 /** ar-MS_BroadbandModel. */
3533 String AR_MS_BROADBANDMODEL = "ar-MS_BroadbandModel" ;
3634 /** ar-MS_Telephony. */
@@ -107,6 +105,8 @@ public interface Model {
107105 String ES_PE_NARROWBANDMODEL = "es-PE_NarrowbandModel" ;
108106 /** fr-CA_BroadbandModel. */
109107 String FR_CA_BROADBANDMODEL = "fr-CA_BroadbandModel" ;
108+ /** fr-CA_Multimedia. */
109+ String FR_CA_MULTIMEDIA = "fr-CA_Multimedia" ;
110110 /** fr-CA_NarrowbandModel. */
111111 String FR_CA_NARROWBANDMODEL = "fr-CA_NarrowbandModel" ;
112112 /** fr-CA_Telephony. */
@@ -135,6 +135,8 @@ public interface Model {
135135 String JA_JP_MULTIMEDIA = "ja-JP_Multimedia" ;
136136 /** ja-JP_NarrowbandModel. */
137137 String JA_JP_NARROWBANDMODEL = "ja-JP_NarrowbandModel" ;
138+ /** ja-JP_Telephony. */
139+ String JA_JP_TELEPHONY = "ja-JP_Telephony" ;
138140 /** ko-KR_BroadbandModel. */
139141 String KO_KR_BROADBANDMODEL = "ko-KR_BroadbandModel" ;
140142 /** ko-KR_Multimedia. */
@@ -147,6 +149,8 @@ public interface Model {
147149 String NL_BE_TELEPHONY = "nl-BE_Telephony" ;
148150 /** nl-NL_BroadbandModel. */
149151 String NL_NL_BROADBANDMODEL = "nl-NL_BroadbandModel" ;
152+ /** nl-NL_Multimedia. */
153+ String NL_NL_MULTIMEDIA = "nl-NL_Multimedia" ;
150154 /** nl-NL_NarrowbandModel. */
151155 String NL_NL_NARROWBANDMODEL = "nl-NL_NarrowbandModel" ;
152156 /** nl-NL_Telephony. */
@@ -159,6 +163,8 @@ public interface Model {
159163 String PT_BR_NARROWBANDMODEL = "pt-BR_NarrowbandModel" ;
160164 /** pt-BR_Telephony. */
161165 String PT_BR_TELEPHONY = "pt-BR_Telephony" ;
166+ /** sv-SE_Telephony. */
167+ String SV_SE_TELEPHONY = "sv-SE_Telephony" ;
162168 /** zh-CN_BroadbandModel. */
163169 String ZH_CN_BROADBANDMODEL = "zh-CN_BroadbandModel" ;
164170 /** zh-CN_NarrowbandModel. */
@@ -186,6 +192,7 @@ public interface Model {
186192 protected Boolean timestamps ;
187193 protected Boolean profanityFilter ;
188194 protected Boolean smartFormatting ;
195+ protected Long smartFormattingVersion ;
189196 protected Boolean speakerLabels ;
190197 protected String grammarName ;
191198 protected Boolean redaction ;
@@ -218,6 +225,7 @@ public static class Builder {
218225 private Boolean timestamps ;
219226 private Boolean profanityFilter ;
220227 private Boolean smartFormatting ;
228+ private Long smartFormattingVersion ;
221229 private Boolean speakerLabels ;
222230 private String grammarName ;
223231 private Boolean redaction ;
@@ -249,6 +257,7 @@ private Builder(RecognizeWithWebsocketsOptions recognizeWithWebsocketsOptions) {
249257 this .timestamps = recognizeWithWebsocketsOptions .timestamps ;
250258 this .profanityFilter = recognizeWithWebsocketsOptions .profanityFilter ;
251259 this .smartFormatting = recognizeWithWebsocketsOptions .smartFormatting ;
260+ this .smartFormattingVersion = recognizeWithWebsocketsOptions .smartFormattingVersion ;
252261 this .speakerLabels = recognizeWithWebsocketsOptions .speakerLabels ;
253262 this .grammarName = recognizeWithWebsocketsOptions .grammarName ;
254263 this .redaction = recognizeWithWebsocketsOptions .redaction ;
@@ -476,6 +485,17 @@ public Builder smartFormatting(Boolean smartFormatting) {
476485 return this ;
477486 }
478487
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+
479499 /**
480500 * Set the speakerLabels.
481501 *
@@ -656,6 +676,7 @@ protected RecognizeWithWebsocketsOptions(Builder builder) {
656676 timestamps = builder .timestamps ;
657677 profanityFilter = builder .profanityFilter ;
658678 smartFormatting = builder .smartFormatting ;
679+ smartFormattingVersion = builder .smartFormattingVersion ;
659680 speakerLabels = builder .speakerLabels ;
660681 grammarName = builder .grammarName ;
661682 redaction = builder .redaction ;
@@ -929,6 +950,18 @@ public Boolean smartFormatting() {
929950 return smartFormatting ;
930951 }
931952
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+
932965 /**
933966 * Gets the speakerLabels.
934967 *
0 commit comments