Skip to content

Commit

Permalink
chore: regenerate texttospeech client (#23747)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored Oct 29, 2024
1 parent bf42991 commit a44d90e
Show file tree
Hide file tree
Showing 20 changed files with 582 additions and 30 deletions.
4 changes: 2 additions & 2 deletions clients/google-api-services-texttospeech/v1/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-texttospeech</artifactId>
<version>v1-rev20241008-2.0.0</version>
<version>v1-rev20241026-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-texttospeech:v1-rev20241008-2.0.0'
implementation 'com.google.apis:google-api-services-texttospeech:v1-rev20241026-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,22 @@
public final class AdvancedVoiceOptions extends com.google.api.client.json.GenericJson {

/**
* Only for Jounrney voices. If false, the synthesis will be context aware and have higher
* latency.
* Only for Journey voices. If false, the synthesis will be context aware and have higher latency.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean lowLatencyJourneySynthesis;

/**
* Only for Jounrney voices. If false, the synthesis will be context aware and have higher
* latency.
* Only for Journey voices. If false, the synthesis will be context aware and have higher latency.
* @return value or {@code null} for none
*/
public java.lang.Boolean getLowLatencyJourneySynthesis() {
return lowLatencyJourneySynthesis;
}

/**
* Only for Jounrney voices. If false, the synthesis will be context aware and have higher
* latency.
* Only for Journey voices. If false, the synthesis will be context aware and have higher latency.
* @param lowLatencyJourneySynthesis lowLatencyJourneySynthesis or {@code null} for none
*/
public AdvancedVoiceOptions setLowLatencyJourneySynthesis(java.lang.Boolean lowLatencyJourneySynthesis) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.texttospeech.v1.model;

/**
* A collection of turns for multi-speaker synthesis.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Cloud Text-to-Speech API. For a detailed explanation
* see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class MultiSpeakerMarkup extends com.google.api.client.json.GenericJson {

/**
* Required. Speaker turns.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<Turn> turns;

/**
* Required. Speaker turns.
* @return value or {@code null} for none
*/
public java.util.List<Turn> getTurns() {
return turns;
}

/**
* Required. Speaker turns.
* @param turns turns or {@code null} for none
*/
public MultiSpeakerMarkup setTurns(java.util.List<Turn> turns) {
this.turns = turns;
return this;
}

@Override
public MultiSpeakerMarkup set(String fieldName, Object value) {
return (MultiSpeakerMarkup) super.set(fieldName, value);
}

@Override
public MultiSpeakerMarkup clone() {
return (MultiSpeakerMarkup) super.clone();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ public final class SynthesisInput extends com.google.api.client.json.GenericJson
@com.google.api.client.util.Key
private CustomPronunciations customPronunciations;

/**
* The multi-speaker input to be synthesized. Only applicable for multi-speaker synthesis.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private MultiSpeakerMarkup multiSpeakerMarkup;

/**
* The SSML document to be synthesized. The SSML document must be valid and well-formed. Otherwise
* the RPC will fail and return google.rpc.Code.INVALID_ARGUMENT. For more information, see
Expand Down Expand Up @@ -89,6 +96,23 @@ public SynthesisInput setCustomPronunciations(CustomPronunciations customPronunc
return this;
}

/**
* The multi-speaker input to be synthesized. Only applicable for multi-speaker synthesis.
* @return value or {@code null} for none
*/
public MultiSpeakerMarkup getMultiSpeakerMarkup() {
return multiSpeakerMarkup;
}

/**
* The multi-speaker input to be synthesized. Only applicable for multi-speaker synthesis.
* @param multiSpeakerMarkup multiSpeakerMarkup or {@code null} for none
*/
public SynthesisInput setMultiSpeakerMarkup(MultiSpeakerMarkup multiSpeakerMarkup) {
this.multiSpeakerMarkup = multiSpeakerMarkup;
return this;
}

/**
* The SSML document to be synthesized. The SSML document must be valid and well-formed. Otherwise
* the RPC will fail and return google.rpc.Code.INVALID_ARGUMENT. For more information, see
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
public final class SynthesizeSpeechRequest extends com.google.api.client.json.GenericJson {

/**
* Adnanced voice options.
* Advanced voice options.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand Down Expand Up @@ -59,15 +59,15 @@ public final class SynthesizeSpeechRequest extends com.google.api.client.json.Ge
private VoiceSelectionParams voice;

/**
* Adnanced voice options.
* Advanced voice options.
* @return value or {@code null} for none
*/
public AdvancedVoiceOptions getAdvancedVoiceOptions() {
return advancedVoiceOptions;
}

/**
* Adnanced voice options.
* Advanced voice options.
* @param advancedVoiceOptions advancedVoiceOptions or {@code null} for none
*/
public SynthesizeSpeechRequest setAdvancedVoiceOptions(AdvancedVoiceOptions advancedVoiceOptions) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.texttospeech.v1.model;

/**
* A Multi-speaker turn.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Cloud Text-to-Speech API. For a detailed explanation
* see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class Turn extends com.google.api.client.json.GenericJson {

/**
* Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer to documentation for
* available speakers.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String speaker;

/**
* Required. The text to speak.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String text;

/**
* Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer to documentation for
* available speakers.
* @return value or {@code null} for none
*/
public java.lang.String getSpeaker() {
return speaker;
}

/**
* Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer to documentation for
* available speakers.
* @param speaker speaker or {@code null} for none
*/
public Turn setSpeaker(java.lang.String speaker) {
this.speaker = speaker;
return this;
}

/**
* Required. The text to speak.
* @return value or {@code null} for none
*/
public java.lang.String getText() {
return text;
}

/**
* Required. The text to speak.
* @param text text or {@code null} for none
*/
public Turn setText(java.lang.String text) {
this.text = text;
return this;
}

@Override
public Turn set(String fieldName, Object value) {
return (Turn) super.set(fieldName, value);
}

@Override
public Turn clone() {
return (Turn) super.clone();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.texttospeech.v1.model;

/**
* The configuration of Voice Clone feature.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Cloud Text-to-Speech API. For a detailed explanation
* see:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class VoiceCloneParams extends com.google.api.client.json.GenericJson {

/**
* Required. Created by GenerateVoiceCloningKey.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String voiceCloningKey;

/**
* Required. Created by GenerateVoiceCloningKey.
* @return value or {@code null} for none
*/
public java.lang.String getVoiceCloningKey() {
return voiceCloningKey;
}

/**
* Required. Created by GenerateVoiceCloningKey.
* @param voiceCloningKey voiceCloningKey or {@code null} for none
*/
public VoiceCloneParams setVoiceCloningKey(java.lang.String voiceCloningKey) {
this.voiceCloningKey = voiceCloningKey;
return this;
}

@Override
public VoiceCloneParams set(String fieldName, Object value) {
return (VoiceCloneParams) super.set(fieldName, value);
}

@Override
public VoiceCloneParams clone() {
return (VoiceCloneParams) super.clone();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ public final class VoiceSelectionParams extends com.google.api.client.json.Gener
@com.google.api.client.util.Key
private java.lang.String ssmlGender;

/**
* Optional. The configuration for a voice clone. If [VoiceCloneParams.voice_clone_key] is set,
* the service will choose the voice clone matching the specified configuration.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private VoiceCloneParams voiceClone;

/**
* The configuration for a custom voice. If [CustomVoiceParams.model] is set, the service will
* choose the custom voice matching the specified configuration.
Expand Down Expand Up @@ -162,6 +170,25 @@ public VoiceSelectionParams setSsmlGender(java.lang.String ssmlGender) {
return this;
}

/**
* Optional. The configuration for a voice clone. If [VoiceCloneParams.voice_clone_key] is set,
* the service will choose the voice clone matching the specified configuration.
* @return value or {@code null} for none
*/
public VoiceCloneParams getVoiceClone() {
return voiceClone;
}

/**
* Optional. The configuration for a voice clone. If [VoiceCloneParams.voice_clone_key] is set,
* the service will choose the voice clone matching the specified configuration.
* @param voiceClone voiceClone or {@code null} for none
*/
public VoiceSelectionParams setVoiceClone(VoiceCloneParams voiceClone) {
this.voiceClone = voiceClone;
return this;
}

@Override
public VoiceSelectionParams set(String fieldName, Object value) {
return (VoiceSelectionParams) super.set(fieldName, value);
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-texttospeech/v1/2.0.0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-texttospeech</artifactId>
<version>v1-rev20241008-2.0.0</version>
<name>Cloud Text-to-Speech API v1-rev20241008-2.0.0</name>
<version>v1-rev20241026-2.0.0</version>
<name>Cloud Text-to-Speech API v1-rev20241026-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
Loading

0 comments on commit a44d90e

Please sign in to comment.