Skip to content

Commit affdfaa

Browse files
1 parent 320baad commit affdfaa

File tree

12 files changed

+404
-12
lines changed

12 files changed

+404
-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-rev20250912-2.0.0</version>
25+
<version>v1-rev20250923-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-rev20250912-2.0.0'
38+
implementation 'com.google.apis:google-api-services-texttospeech:v1-rev20250923-2.0.0'
3939
}
4040
```
4141

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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+
* Configuration for a multi-speaker text-to-speech setup. Enables the use of up to two distinct
21+
* voices in a single synthesis request.
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Cloud Text-to-Speech API. For a detailed explanation
25+
* see:
26+
* <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>
27+
* </p>
28+
*
29+
* @author Google, Inc.
30+
*/
31+
@SuppressWarnings("javadoc")
32+
public final class MultiSpeakerVoiceConfig extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* Required. A list of configurations for the voices of the speakers. Exactly two speaker voice
36+
* configurations must be provided.
37+
* The value may be {@code null}.
38+
*/
39+
@com.google.api.client.util.Key
40+
private java.util.List<MultispeakerPrebuiltVoice> speakerVoiceConfigs;
41+
42+
/**
43+
* Required. A list of configurations for the voices of the speakers. Exactly two speaker voice
44+
* configurations must be provided.
45+
* @return value or {@code null} for none
46+
*/
47+
public java.util.List<MultispeakerPrebuiltVoice> getSpeakerVoiceConfigs() {
48+
return speakerVoiceConfigs;
49+
}
50+
51+
/**
52+
* Required. A list of configurations for the voices of the speakers. Exactly two speaker voice
53+
* configurations must be provided.
54+
* @param speakerVoiceConfigs speakerVoiceConfigs or {@code null} for none
55+
*/
56+
public MultiSpeakerVoiceConfig setSpeakerVoiceConfigs(java.util.List<MultispeakerPrebuiltVoice> speakerVoiceConfigs) {
57+
this.speakerVoiceConfigs = speakerVoiceConfigs;
58+
return this;
59+
}
60+
61+
@Override
62+
public MultiSpeakerVoiceConfig set(String fieldName, Object value) {
63+
return (MultiSpeakerVoiceConfig) super.set(fieldName, value);
64+
}
65+
66+
@Override
67+
public MultiSpeakerVoiceConfig clone() {
68+
return (MultiSpeakerVoiceConfig) super.clone();
69+
}
70+
71+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
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+
* Configuration for a single speaker in a Gemini TTS multi-speaker setup. Enables dialogue between
21+
* two speakers.
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Cloud Text-to-Speech API. For a detailed explanation
25+
* see:
26+
* <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>
27+
* </p>
28+
*
29+
* @author Google, Inc.
30+
*/
31+
@SuppressWarnings("javadoc")
32+
public final class MultispeakerPrebuiltVoice extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* Required. The speaker alias of the voice. This is the user-chosen speaker name that is used in
36+
* the multispeaker text input, such as "Speaker1".
37+
* The value may be {@code null}.
38+
*/
39+
@com.google.api.client.util.Key
40+
private java.lang.String speakerAlias;
41+
42+
/**
43+
* Required. The speaker ID of the voice. See https://cloud.google.com/text-to-speech/docs/gemini-
44+
* tts#voice_options for available values.
45+
* The value may be {@code null}.
46+
*/
47+
@com.google.api.client.util.Key
48+
private java.lang.String speakerId;
49+
50+
/**
51+
* Required. The speaker alias of the voice. This is the user-chosen speaker name that is used in
52+
* the multispeaker text input, such as "Speaker1".
53+
* @return value or {@code null} for none
54+
*/
55+
public java.lang.String getSpeakerAlias() {
56+
return speakerAlias;
57+
}
58+
59+
/**
60+
* Required. The speaker alias of the voice. This is the user-chosen speaker name that is used in
61+
* the multispeaker text input, such as "Speaker1".
62+
* @param speakerAlias speakerAlias or {@code null} for none
63+
*/
64+
public MultispeakerPrebuiltVoice setSpeakerAlias(java.lang.String speakerAlias) {
65+
this.speakerAlias = speakerAlias;
66+
return this;
67+
}
68+
69+
/**
70+
* Required. The speaker ID of the voice. See https://cloud.google.com/text-to-speech/docs/gemini-
71+
* tts#voice_options for available values.
72+
* @return value or {@code null} for none
73+
*/
74+
public java.lang.String getSpeakerId() {
75+
return speakerId;
76+
}
77+
78+
/**
79+
* Required. The speaker ID of the voice. See https://cloud.google.com/text-to-speech/docs/gemini-
80+
* tts#voice_options for available values.
81+
* @param speakerId speakerId or {@code null} for none
82+
*/
83+
public MultispeakerPrebuiltVoice setSpeakerId(java.lang.String speakerId) {
84+
this.speakerId = speakerId;
85+
return this;
86+
}
87+
88+
@Override
89+
public MultispeakerPrebuiltVoice set(String fieldName, Object value) {
90+
return (MultispeakerPrebuiltVoice) super.set(fieldName, value);
91+
}
92+
93+
@Override
94+
public MultispeakerPrebuiltVoice clone() {
95+
return (MultispeakerPrebuiltVoice) super.clone();
96+
}
97+
98+
}

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ public final class VoiceSelectionParams extends com.google.api.client.json.Gener
6060
@com.google.api.client.util.Key
6161
private java.lang.String modelName;
6262

63+
/**
64+
* Optional. The configuration for a Gemini multi-speaker text-to-speech setup. Enables the use of
65+
* two distinct voices in a single synthesis request.
66+
* The value may be {@code null}.
67+
*/
68+
@com.google.api.client.util.Key
69+
private MultiSpeakerVoiceConfig multiSpeakerVoiceConfig;
70+
6371
/**
6472
* The name of the voice. If both the name and the gender are not set, the service will choose a
6573
* voice based on the other parameters such as language_code.
@@ -155,6 +163,25 @@ public VoiceSelectionParams setModelName(java.lang.String modelName) {
155163
return this;
156164
}
157165

166+
/**
167+
* Optional. The configuration for a Gemini multi-speaker text-to-speech setup. Enables the use of
168+
* two distinct voices in a single synthesis request.
169+
* @return value or {@code null} for none
170+
*/
171+
public MultiSpeakerVoiceConfig getMultiSpeakerVoiceConfig() {
172+
return multiSpeakerVoiceConfig;
173+
}
174+
175+
/**
176+
* Optional. The configuration for a Gemini multi-speaker text-to-speech setup. Enables the use of
177+
* two distinct voices in a single synthesis request.
178+
* @param multiSpeakerVoiceConfig multiSpeakerVoiceConfig or {@code null} for none
179+
*/
180+
public VoiceSelectionParams setMultiSpeakerVoiceConfig(MultiSpeakerVoiceConfig multiSpeakerVoiceConfig) {
181+
this.multiSpeakerVoiceConfig = multiSpeakerVoiceConfig;
182+
return this;
183+
}
184+
158185
/**
159186
* The name of the voice. If both the name and the gender are not set, the service will choose a
160187
* voice based on the other parameters such as language_code.

clients/google-api-services-texttospeech/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-texttospeech</artifactId>
11-
<version>v1-rev20250912-2.0.0</version>
12-
<name>Cloud Text-to-Speech API v1-rev20250912-2.0.0</name>
11+
<version>v1-rev20250923-2.0.0</version>
12+
<name>Cloud Text-to-Speech API v1-rev20250923-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-texttospeech/v1/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-rev20250912-2.0.0</version>
25+
<version>v1-rev20250923-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-rev20250912-2.0.0'
38+
implementation 'com.google.apis:google-api-services-texttospeech:v1-rev20250923-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-texttospeech/v1beta1/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>v1beta1-rev20250912-2.0.0</version>
25+
<version>v1beta1-rev20250923-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:v1beta1-rev20250912-2.0.0'
38+
implementation 'com.google.apis:google-api-services-texttospeech:v1beta1-rev20250923-2.0.0'
3939
}
4040
```
4141

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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.v1beta1.model;
18+
19+
/**
20+
* Configuration for a multi-speaker text-to-speech setup. Enables the use of up to two distinct
21+
* voices in a single synthesis request.
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Cloud Text-to-Speech API. For a detailed explanation
25+
* see:
26+
* <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>
27+
* </p>
28+
*
29+
* @author Google, Inc.
30+
*/
31+
@SuppressWarnings("javadoc")
32+
public final class MultiSpeakerVoiceConfig extends com.google.api.client.json.GenericJson {
33+
34+
/**
35+
* Required. A list of configurations for the voices of the speakers. Exactly two speaker voice
36+
* configurations must be provided.
37+
* The value may be {@code null}.
38+
*/
39+
@com.google.api.client.util.Key
40+
private java.util.List<MultispeakerPrebuiltVoice> speakerVoiceConfigs;
41+
42+
/**
43+
* Required. A list of configurations for the voices of the speakers. Exactly two speaker voice
44+
* configurations must be provided.
45+
* @return value or {@code null} for none
46+
*/
47+
public java.util.List<MultispeakerPrebuiltVoice> getSpeakerVoiceConfigs() {
48+
return speakerVoiceConfigs;
49+
}
50+
51+
/**
52+
* Required. A list of configurations for the voices of the speakers. Exactly two speaker voice
53+
* configurations must be provided.
54+
* @param speakerVoiceConfigs speakerVoiceConfigs or {@code null} for none
55+
*/
56+
public MultiSpeakerVoiceConfig setSpeakerVoiceConfigs(java.util.List<MultispeakerPrebuiltVoice> speakerVoiceConfigs) {
57+
this.speakerVoiceConfigs = speakerVoiceConfigs;
58+
return this;
59+
}
60+
61+
@Override
62+
public MultiSpeakerVoiceConfig set(String fieldName, Object value) {
63+
return (MultiSpeakerVoiceConfig) super.set(fieldName, value);
64+
}
65+
66+
@Override
67+
public MultiSpeakerVoiceConfig clone() {
68+
return (MultiSpeakerVoiceConfig) super.clone();
69+
}
70+
71+
}

0 commit comments

Comments
 (0)