1
1
/*
2
- * (C) Copyright IBM Corp. 2019 .
2
+ * (C) Copyright IBM Corp. 2020 .
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
5
5
* the License. You may obtain a copy of the License at
14
14
15
15
import com .ibm .cloud .sdk .core .service .model .GenericModel ;
16
16
17
- import java .util .List ;
18
-
19
17
/**
20
18
* The synthesize options.
21
19
*/
@@ -25,6 +23,8 @@ public class SynthesizeOptions extends GenericModel {
25
23
* The voice to use for synthesis.
26
24
*/
27
25
public interface Voice {
26
+ /** ar-AR_OmarVoice. */
27
+ String AR_AR_OMARVOICE = "ar-AR_OmarVoice" ;
28
28
/** de-DE_BirgitVoice. */
29
29
String DE_DE_BIRGITVOICE = "de-DE_BirgitVoice" ;
30
30
/** de-DE_BirgitV3Voice. */
@@ -77,17 +77,26 @@ public interface Voice {
77
77
String JA_JP_EMIVOICE = "ja-JP_EmiVoice" ;
78
78
/** ja-JP_EmiV3Voice. */
79
79
String JA_JP_EMIV3VOICE = "ja-JP_EmiV3Voice" ;
80
+ /** nl-NL_EmmaVoice. */
81
+ String NL_NL_EMMAVOICE = "nl-NL_EmmaVoice" ;
82
+ /** nl-NL_LiamVoice. */
83
+ String NL_NL_LIAMVOICE = "nl-NL_LiamVoice" ;
80
84
/** pt-BR_IsabelaVoice. */
81
85
String PT_BR_ISABELAVOICE = "pt-BR_IsabelaVoice" ;
82
86
/** pt-BR_IsabelaV3Voice. */
83
87
String PT_BR_ISABELAV3VOICE = "pt-BR_IsabelaV3Voice" ;
88
+ /** zh-CN_LiNaVoice. */
89
+ String ZH_CN_LINAVOICE = "zh-CN_LiNaVoice" ;
90
+ /** zh-CN_WangWeiVoice. */
91
+ String ZH_CN_WANGWEIVOICE = "zh-CN_WangWeiVoice" ;
92
+ /** zh-CN_ZhangJingVoice. */
93
+ String ZH_CN_ZHANGJINGVOICE = "zh-CN_ZhangJingVoice" ;
84
94
}
85
95
86
- private String text ;
87
- private String accept ;
88
- private String voice ;
89
- private String customizationId ;
90
- private List <String > timings ;
96
+ protected String text ;
97
+ protected String accept ;
98
+ protected String voice ;
99
+ protected String customizationId ;
91
100
92
101
/**
93
102
* Builder.
@@ -97,14 +106,12 @@ public static class Builder {
97
106
private String accept ;
98
107
private String voice ;
99
108
private String customizationId ;
100
- private List <String > timings ;
101
109
102
110
private Builder (SynthesizeOptions synthesizeOptions ) {
103
111
this .text = synthesizeOptions .text ;
104
112
this .accept = synthesizeOptions .accept ;
105
113
this .voice = synthesizeOptions .voice ;
106
114
this .customizationId = synthesizeOptions .customizationId ;
107
- this .timings = synthesizeOptions .timings ;
108
115
}
109
116
110
117
/**
@@ -174,27 +181,15 @@ public Builder customizationId(String customizationId) {
174
181
this .customizationId = customizationId ;
175
182
return this ;
176
183
}
177
-
178
- /**
179
- * Set the timings.
180
- *
181
- * @param timings the timings
182
- * @return the SynthesizeOptions builder
183
- */
184
- public Builder timings (List <String > timings ) {
185
- this .timings = timings ;
186
- return this ;
187
- }
188
184
}
189
185
190
- private SynthesizeOptions (Builder builder ) {
186
+ protected SynthesizeOptions (Builder builder ) {
191
187
com .ibm .cloud .sdk .core .util .Validator .notNull (builder .text ,
192
188
"text cannot be null" );
193
189
text = builder .text ;
194
190
accept = builder .accept ;
195
191
voice = builder .voice ;
196
192
customizationId = builder .customizationId ;
197
- timings = builder .timings ;
198
193
}
199
194
200
195
/**
@@ -254,20 +249,4 @@ public String voice() {
254
249
public String customizationId () {
255
250
return customizationId ;
256
251
}
257
-
258
- /**
259
- * Gets the timings.
260
- *
261
- * An array that specifies whether the service is to return word timing information for all strings of the input
262
- * text. Specify `words` as the element of the array to request word timing information. The service returns the
263
- * start and end time of each word of the input. Specify an empty array or omit the parameter to receive no word
264
- * timing information. Not supported for Japanese input text.
265
- *
266
- * NOTE: This parameter only works for the `synthesizeUsingWebSocket` method.
267
- *
268
- * @return the timings
269
- */
270
- public List <String > getTimings () {
271
- return timings ;
272
- }
273
252
}
0 commit comments