Skip to content

Commit 751761e

Browse files
1 parent 3100c59 commit 751761e

30 files changed

+1956
-12
lines changed

clients/google-api-services-texttospeech/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-texttospeech</artifactId>
25-
<version>v1-rev20240815-2.0.0</version>
25+
<version>v1-rev20241001-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-texttospeech:v1-rev20240815-2.0.0'
38+
implementation 'com.google.apis:google-api-services-texttospeech:v1-rev20241001-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-texttospeech/v1/2.0.0/com/google/api/services/texttospeech/v1/Texttospeech.java

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,6 +1099,110 @@ public Voices voices() {
10991099
*/
11001100
public class Voices {
11011101

1102+
/**
1103+
* Generates voice clone key given a short voice prompt. This method validates the voice prompts
1104+
* with a series of checks against the voice talent statement to verify the voice clone is safe to
1105+
* generate.
1106+
*
1107+
* Create a request for the method "voices.generateVoiceCloningKey".
1108+
*
1109+
* This request holds the parameters needed by the texttospeech server. After setting any optional
1110+
* parameters, call the {@link GenerateVoiceCloningKey#execute()} method to invoke the remote
1111+
* operation.
1112+
*
1113+
* @param content the {@link com.google.api.services.texttospeech.v1.model.GenerateVoiceCloningKeyRequest}
1114+
* @return the request
1115+
*/
1116+
public GenerateVoiceCloningKey generateVoiceCloningKey(com.google.api.services.texttospeech.v1.model.GenerateVoiceCloningKeyRequest content) throws java.io.IOException {
1117+
GenerateVoiceCloningKey result = new GenerateVoiceCloningKey(content);
1118+
initialize(result);
1119+
return result;
1120+
}
1121+
1122+
public class GenerateVoiceCloningKey extends TexttospeechRequest<com.google.api.services.texttospeech.v1.model.GenerateVoiceCloningKeyResponse> {
1123+
1124+
private static final String REST_PATH = "v1/voices:generateVoiceCloningKey";
1125+
1126+
/**
1127+
* Generates voice clone key given a short voice prompt. This method validates the voice prompts
1128+
* with a series of checks against the voice talent statement to verify the voice clone is safe to
1129+
* generate.
1130+
*
1131+
* Create a request for the method "voices.generateVoiceCloningKey".
1132+
*
1133+
* This request holds the parameters needed by the the texttospeech server. After setting any
1134+
* optional parameters, call the {@link GenerateVoiceCloningKey#execute()} method to invoke the
1135+
* remote operation. <p> {@link GenerateVoiceCloningKey#initialize(com.google.api.client.googleapi
1136+
* s.services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately
1137+
* after invoking the constructor. </p>
1138+
*
1139+
* @param content the {@link com.google.api.services.texttospeech.v1.model.GenerateVoiceCloningKeyRequest}
1140+
* @since 1.13
1141+
*/
1142+
protected GenerateVoiceCloningKey(com.google.api.services.texttospeech.v1.model.GenerateVoiceCloningKeyRequest content) {
1143+
super(Texttospeech.this, "POST", REST_PATH, content, com.google.api.services.texttospeech.v1.model.GenerateVoiceCloningKeyResponse.class);
1144+
}
1145+
1146+
@Override
1147+
public GenerateVoiceCloningKey set$Xgafv(java.lang.String $Xgafv) {
1148+
return (GenerateVoiceCloningKey) super.set$Xgafv($Xgafv);
1149+
}
1150+
1151+
@Override
1152+
public GenerateVoiceCloningKey setAccessToken(java.lang.String accessToken) {
1153+
return (GenerateVoiceCloningKey) super.setAccessToken(accessToken);
1154+
}
1155+
1156+
@Override
1157+
public GenerateVoiceCloningKey setAlt(java.lang.String alt) {
1158+
return (GenerateVoiceCloningKey) super.setAlt(alt);
1159+
}
1160+
1161+
@Override
1162+
public GenerateVoiceCloningKey setCallback(java.lang.String callback) {
1163+
return (GenerateVoiceCloningKey) super.setCallback(callback);
1164+
}
1165+
1166+
@Override
1167+
public GenerateVoiceCloningKey setFields(java.lang.String fields) {
1168+
return (GenerateVoiceCloningKey) super.setFields(fields);
1169+
}
1170+
1171+
@Override
1172+
public GenerateVoiceCloningKey setKey(java.lang.String key) {
1173+
return (GenerateVoiceCloningKey) super.setKey(key);
1174+
}
1175+
1176+
@Override
1177+
public GenerateVoiceCloningKey setOauthToken(java.lang.String oauthToken) {
1178+
return (GenerateVoiceCloningKey) super.setOauthToken(oauthToken);
1179+
}
1180+
1181+
@Override
1182+
public GenerateVoiceCloningKey setPrettyPrint(java.lang.Boolean prettyPrint) {
1183+
return (GenerateVoiceCloningKey) super.setPrettyPrint(prettyPrint);
1184+
}
1185+
1186+
@Override
1187+
public GenerateVoiceCloningKey setQuotaUser(java.lang.String quotaUser) {
1188+
return (GenerateVoiceCloningKey) super.setQuotaUser(quotaUser);
1189+
}
1190+
1191+
@Override
1192+
public GenerateVoiceCloningKey setUploadType(java.lang.String uploadType) {
1193+
return (GenerateVoiceCloningKey) super.setUploadType(uploadType);
1194+
}
1195+
1196+
@Override
1197+
public GenerateVoiceCloningKey setUploadProtocol(java.lang.String uploadProtocol) {
1198+
return (GenerateVoiceCloningKey) super.setUploadProtocol(uploadProtocol);
1199+
}
1200+
1201+
@Override
1202+
public GenerateVoiceCloningKey set(String parameterName, Object value) {
1203+
return (GenerateVoiceCloningKey) super.set(parameterName, value);
1204+
}
1205+
}
11021206
/**
11031207
* Returns a list of Voice supported for synthesis.
11041208
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.texttospeech.v1.model;
18+
19+
/**
20+
* Used for advanced voice options.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Cloud Text-to-Speech API. For a detailed explanation
24+
* see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class AdvancedVoiceOptions extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Only for Jounrney voices. If false, the synthesis will be context aware and have higher
35+
* latency.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.Boolean lowLatencyJourneySynthesis;
40+
41+
/**
42+
* Only for Jounrney voices. If false, the synthesis will be context aware and have higher
43+
* latency.
44+
* @return value or {@code null} for none
45+
*/
46+
public java.lang.Boolean getLowLatencyJourneySynthesis() {
47+
return lowLatencyJourneySynthesis;
48+
}
49+
50+
/**
51+
* Only for Jounrney voices. If false, the synthesis will be context aware and have higher
52+
* latency.
53+
* @param lowLatencyJourneySynthesis lowLatencyJourneySynthesis or {@code null} for none
54+
*/
55+
public AdvancedVoiceOptions setLowLatencyJourneySynthesis(java.lang.Boolean lowLatencyJourneySynthesis) {
56+
this.lowLatencyJourneySynthesis = lowLatencyJourneySynthesis;
57+
return this;
58+
}
59+
60+
@Override
61+
public AdvancedVoiceOptions set(String fieldName, Object value) {
62+
return (AdvancedVoiceOptions) super.set(fieldName, value);
63+
}
64+
65+
@Override
66+
public AdvancedVoiceOptions clone() {
67+
return (AdvancedVoiceOptions) super.clone();
68+
}
69+
70+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.texttospeech.v1.model;
18+
19+
/**
20+
* Pronunciation customization for a phrase.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Cloud Text-to-Speech API. For a detailed explanation
24+
* see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class CustomPronunciationParams extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* The phonetic encoding of the phrase.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String phoneticEncoding;
39+
40+
/**
41+
* The phrase to which the customization will be applied. The phrase can be multiple words (in the
42+
* case of proper nouns etc), but should not span to a whole sentence.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String phrase;
47+
48+
/**
49+
* The pronunciation of the phrase. This must be in the phonetic encoding specified above.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private java.lang.String pronunciation;
54+
55+
/**
56+
* The phonetic encoding of the phrase.
57+
* @return value or {@code null} for none
58+
*/
59+
public java.lang.String getPhoneticEncoding() {
60+
return phoneticEncoding;
61+
}
62+
63+
/**
64+
* The phonetic encoding of the phrase.
65+
* @param phoneticEncoding phoneticEncoding or {@code null} for none
66+
*/
67+
public CustomPronunciationParams setPhoneticEncoding(java.lang.String phoneticEncoding) {
68+
this.phoneticEncoding = phoneticEncoding;
69+
return this;
70+
}
71+
72+
/**
73+
* The phrase to which the customization will be applied. The phrase can be multiple words (in the
74+
* case of proper nouns etc), but should not span to a whole sentence.
75+
* @return value or {@code null} for none
76+
*/
77+
public java.lang.String getPhrase() {
78+
return phrase;
79+
}
80+
81+
/**
82+
* The phrase to which the customization will be applied. The phrase can be multiple words (in the
83+
* case of proper nouns etc), but should not span to a whole sentence.
84+
* @param phrase phrase or {@code null} for none
85+
*/
86+
public CustomPronunciationParams setPhrase(java.lang.String phrase) {
87+
this.phrase = phrase;
88+
return this;
89+
}
90+
91+
/**
92+
* The pronunciation of the phrase. This must be in the phonetic encoding specified above.
93+
* @return value or {@code null} for none
94+
*/
95+
public java.lang.String getPronunciation() {
96+
return pronunciation;
97+
}
98+
99+
/**
100+
* The pronunciation of the phrase. This must be in the phonetic encoding specified above.
101+
* @param pronunciation pronunciation or {@code null} for none
102+
*/
103+
public CustomPronunciationParams setPronunciation(java.lang.String pronunciation) {
104+
this.pronunciation = pronunciation;
105+
return this;
106+
}
107+
108+
@Override
109+
public CustomPronunciationParams set(String fieldName, Object value) {
110+
return (CustomPronunciationParams) super.set(fieldName, value);
111+
}
112+
113+
@Override
114+
public CustomPronunciationParams clone() {
115+
return (CustomPronunciationParams) super.clone();
116+
}
117+
118+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.texttospeech.v1.model;
18+
19+
/**
20+
* A collection of pronunciation customizations.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Cloud Text-to-Speech API. For a detailed explanation
24+
* see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class CustomPronunciations extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* The pronunciation customizations to be applied.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.util.List<CustomPronunciationParams> pronunciations;
39+
40+
static {
41+
// hack to force ProGuard to consider CustomPronunciationParams used, since otherwise it would be stripped out
42+
// see https://github.com/google/google-api-java-client/issues/543
43+
com.google.api.client.util.Data.nullOf(CustomPronunciationParams.class);
44+
}
45+
46+
/**
47+
* The pronunciation customizations to be applied.
48+
* @return value or {@code null} for none
49+
*/
50+
public java.util.List<CustomPronunciationParams> getPronunciations() {
51+
return pronunciations;
52+
}
53+
54+
/**
55+
* The pronunciation customizations to be applied.
56+
* @param pronunciations pronunciations or {@code null} for none
57+
*/
58+
public CustomPronunciations setPronunciations(java.util.List<CustomPronunciationParams> pronunciations) {
59+
this.pronunciations = pronunciations;
60+
return this;
61+
}
62+
63+
@Override
64+
public CustomPronunciations set(String fieldName, Object value) {
65+
return (CustomPronunciations) super.set(fieldName, value);
66+
}
67+
68+
@Override
69+
public CustomPronunciations clone() {
70+
return (CustomPronunciations) super.clone();
71+
}
72+
73+
}

0 commit comments

Comments
 (0)