diff --git a/google-api-grpc/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechGrpc.java b/google-api-grpc/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechGrpc.java index 32a3f2f70d53..3459e3956efb 100644 --- a/google-api-grpc/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechGrpc.java +++ b/google-api-grpc/grpc-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechGrpc.java @@ -171,8 +171,7 @@ public abstract static class TextToSpeechImplBase implements io.grpc.BindableSer * * *
- * Returns a list of [Voice][google.cloud.texttospeech.v1.Voice]
- * supported for synthesis.
+ * Returns a list of Voice supported for synthesis.
*
*/
public void listVoices(
@@ -243,8 +242,7 @@ protected TextToSpeechStub build(io.grpc.Channel channel, io.grpc.CallOptions ca
*
*
*
- * Returns a list of [Voice][google.cloud.texttospeech.v1.Voice]
- * supported for synthesis.
+ * Returns a list of Voice supported for synthesis.
*
*/
public void listVoices(
@@ -303,8 +301,7 @@ protected TextToSpeechBlockingStub build(
*
*
*
- * Returns a list of [Voice][google.cloud.texttospeech.v1.Voice]
- * supported for synthesis.
+ * Returns a list of Voice supported for synthesis.
*
*/
public com.google.cloud.texttospeech.v1.ListVoicesResponse listVoices(
@@ -355,8 +352,7 @@ protected TextToSpeechFutureStub build(
*
*
*
- * Returns a list of [Voice][google.cloud.texttospeech.v1.Voice]
- * supported for synthesis.
+ * Returns a list of Voice supported for synthesis.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfig.java b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfig.java
index 181ba74813db..d2e7742d1c53 100644
--- a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfig.java
+++ b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfig.java
@@ -28,6 +28,7 @@ private AudioConfig() {
pitch_ = 0D;
volumeGainDb_ = 0D;
sampleRateHertz_ = 0;
+ effectsProfileId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@@ -81,6 +82,16 @@ private AudioConfig(
sampleRateHertz_ = input.readInt32();
break;
}
+ case 50:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
+ effectsProfileId_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000020;
+ }
+ effectsProfileId_.add(s);
+ break;
+ }
default:
{
if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
@@ -95,6 +106,9 @@ private AudioConfig(
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
+ if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
+ effectsProfileId_ = effectsProfileId_.getUnmodifiableView();
+ }
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
@@ -115,6 +129,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.texttospeech.v1.AudioConfig.Builder.class);
}
+ private int bitField0_;
public static final int AUDIO_ENCODING_FIELD_NUMBER = 1;
private int audioEncoding_;
/**
@@ -222,6 +237,81 @@ public int getSampleRateHertz() {
return sampleRateHertz_;
}
+ public static final int EFFECTS_PROFILE_ID_FIELD_NUMBER = 6;
+ private com.google.protobuf.LazyStringList effectsProfileId_;
+ /**
+ *
+ *
+ * + * An identifier which selects 'audio effects' profiles that are applied on + * (post synthesized) text to speech. + * Effects are applied on top of each other in the order they are given. + * See + * [audio-profiles](https: + * //cloud.google.com/text-to-speech/docs/audio-profiles) + * for current supported profile ids. + *+ * + *
repeated string effects_profile_id = 6;
+ */
+ public com.google.protobuf.ProtocolStringList getEffectsProfileIdList() {
+ return effectsProfileId_;
+ }
+ /**
+ *
+ *
+ * + * An identifier which selects 'audio effects' profiles that are applied on + * (post synthesized) text to speech. + * Effects are applied on top of each other in the order they are given. + * See + * [audio-profiles](https: + * //cloud.google.com/text-to-speech/docs/audio-profiles) + * for current supported profile ids. + *+ * + *
repeated string effects_profile_id = 6;
+ */
+ public int getEffectsProfileIdCount() {
+ return effectsProfileId_.size();
+ }
+ /**
+ *
+ *
+ * + * An identifier which selects 'audio effects' profiles that are applied on + * (post synthesized) text to speech. + * Effects are applied on top of each other in the order they are given. + * See + * [audio-profiles](https: + * //cloud.google.com/text-to-speech/docs/audio-profiles) + * for current supported profile ids. + *+ * + *
repeated string effects_profile_id = 6;
+ */
+ public java.lang.String getEffectsProfileId(int index) {
+ return effectsProfileId_.get(index);
+ }
+ /**
+ *
+ *
+ * + * An identifier which selects 'audio effects' profiles that are applied on + * (post synthesized) text to speech. + * Effects are applied on top of each other in the order they are given. + * See + * [audio-profiles](https: + * //cloud.google.com/text-to-speech/docs/audio-profiles) + * for current supported profile ids. + *+ * + *
repeated string effects_profile_id = 6;
+ */
+ public com.google.protobuf.ByteString getEffectsProfileIdBytes(int index) {
+ return effectsProfileId_.getByteString(index);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -252,6 +342,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (sampleRateHertz_ != 0) {
output.writeInt32(5, sampleRateHertz_);
}
+ for (int i = 0; i < effectsProfileId_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, effectsProfileId_.getRaw(i));
+ }
unknownFields.writeTo(output);
}
@@ -277,6 +370,14 @@ public int getSerializedSize() {
if (sampleRateHertz_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, sampleRateHertz_);
}
+ {
+ int dataSize = 0;
+ for (int i = 0; i < effectsProfileId_.size(); i++) {
+ dataSize += computeStringSizeNoTag(effectsProfileId_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getEffectsProfileIdList().size();
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -308,6 +409,7 @@ public boolean equals(final java.lang.Object obj) {
&& (java.lang.Double.doubleToLongBits(getVolumeGainDb())
== java.lang.Double.doubleToLongBits(other.getVolumeGainDb()));
result = result && (getSampleRateHertz() == other.getSampleRateHertz());
+ result = result && getEffectsProfileIdList().equals(other.getEffectsProfileIdList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@@ -337,6 +439,10 @@ public int hashCode() {
java.lang.Double.doubleToLongBits(getVolumeGainDb()));
hash = (37 * hash) + SAMPLE_RATE_HERTZ_FIELD_NUMBER;
hash = (53 * hash) + getSampleRateHertz();
+ if (getEffectsProfileIdCount() > 0) {
+ hash = (37 * hash) + EFFECTS_PROFILE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getEffectsProfileIdList().hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -492,6 +598,8 @@ public Builder clear() {
sampleRateHertz_ = 0;
+ effectsProfileId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
@@ -519,11 +627,19 @@ public com.google.cloud.texttospeech.v1.AudioConfig build() {
public com.google.cloud.texttospeech.v1.AudioConfig buildPartial() {
com.google.cloud.texttospeech.v1.AudioConfig result =
new com.google.cloud.texttospeech.v1.AudioConfig(this);
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
result.audioEncoding_ = audioEncoding_;
result.speakingRate_ = speakingRate_;
result.pitch_ = pitch_;
result.volumeGainDb_ = volumeGainDb_;
result.sampleRateHertz_ = sampleRateHertz_;
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ effectsProfileId_ = effectsProfileId_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ }
+ result.effectsProfileId_ = effectsProfileId_;
+ result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@@ -588,6 +704,16 @@ public Builder mergeFrom(com.google.cloud.texttospeech.v1.AudioConfig other) {
if (other.getSampleRateHertz() != 0) {
setSampleRateHertz(other.getSampleRateHertz());
}
+ if (!other.effectsProfileId_.isEmpty()) {
+ if (effectsProfileId_.isEmpty()) {
+ effectsProfileId_ = other.effectsProfileId_;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ } else {
+ ensureEffectsProfileIdIsMutable();
+ effectsProfileId_.addAll(other.effectsProfileId_);
+ }
+ onChanged();
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -617,6 +743,8 @@ public Builder mergeFrom(
return this;
}
+ private int bitField0_;
+
private int audioEncoding_ = 0;
/**
*
@@ -920,6 +1048,203 @@ public Builder clearSampleRateHertz() {
return this;
}
+ private com.google.protobuf.LazyStringList effectsProfileId_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureEffectsProfileIdIsMutable() {
+ if (!((bitField0_ & 0x00000020) == 0x00000020)) {
+ effectsProfileId_ = new com.google.protobuf.LazyStringArrayList(effectsProfileId_);
+ bitField0_ |= 0x00000020;
+ }
+ }
+ /**
+ *
+ *
+ * + * An identifier which selects 'audio effects' profiles that are applied on + * (post synthesized) text to speech. + * Effects are applied on top of each other in the order they are given. + * See + * [audio-profiles](https: + * //cloud.google.com/text-to-speech/docs/audio-profiles) + * for current supported profile ids. + *+ * + *
repeated string effects_profile_id = 6;
+ */
+ public com.google.protobuf.ProtocolStringList getEffectsProfileIdList() {
+ return effectsProfileId_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ * + * An identifier which selects 'audio effects' profiles that are applied on + * (post synthesized) text to speech. + * Effects are applied on top of each other in the order they are given. + * See + * [audio-profiles](https: + * //cloud.google.com/text-to-speech/docs/audio-profiles) + * for current supported profile ids. + *+ * + *
repeated string effects_profile_id = 6;
+ */
+ public int getEffectsProfileIdCount() {
+ return effectsProfileId_.size();
+ }
+ /**
+ *
+ *
+ * + * An identifier which selects 'audio effects' profiles that are applied on + * (post synthesized) text to speech. + * Effects are applied on top of each other in the order they are given. + * See + * [audio-profiles](https: + * //cloud.google.com/text-to-speech/docs/audio-profiles) + * for current supported profile ids. + *+ * + *
repeated string effects_profile_id = 6;
+ */
+ public java.lang.String getEffectsProfileId(int index) {
+ return effectsProfileId_.get(index);
+ }
+ /**
+ *
+ *
+ * + * An identifier which selects 'audio effects' profiles that are applied on + * (post synthesized) text to speech. + * Effects are applied on top of each other in the order they are given. + * See + * [audio-profiles](https: + * //cloud.google.com/text-to-speech/docs/audio-profiles) + * for current supported profile ids. + *+ * + *
repeated string effects_profile_id = 6;
+ */
+ public com.google.protobuf.ByteString getEffectsProfileIdBytes(int index) {
+ return effectsProfileId_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * An identifier which selects 'audio effects' profiles that are applied on + * (post synthesized) text to speech. + * Effects are applied on top of each other in the order they are given. + * See + * [audio-profiles](https: + * //cloud.google.com/text-to-speech/docs/audio-profiles) + * for current supported profile ids. + *+ * + *
repeated string effects_profile_id = 6;
+ */
+ public Builder setEffectsProfileId(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureEffectsProfileIdIsMutable();
+ effectsProfileId_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * An identifier which selects 'audio effects' profiles that are applied on + * (post synthesized) text to speech. + * Effects are applied on top of each other in the order they are given. + * See + * [audio-profiles](https: + * //cloud.google.com/text-to-speech/docs/audio-profiles) + * for current supported profile ids. + *+ * + *
repeated string effects_profile_id = 6;
+ */
+ public Builder addEffectsProfileId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureEffectsProfileIdIsMutable();
+ effectsProfileId_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * An identifier which selects 'audio effects' profiles that are applied on + * (post synthesized) text to speech. + * Effects are applied on top of each other in the order they are given. + * See + * [audio-profiles](https: + * //cloud.google.com/text-to-speech/docs/audio-profiles) + * for current supported profile ids. + *+ * + *
repeated string effects_profile_id = 6;
+ */
+ public Builder addAllEffectsProfileId(java.lang.Iterable+ * An identifier which selects 'audio effects' profiles that are applied on + * (post synthesized) text to speech. + * Effects are applied on top of each other in the order they are given. + * See + * [audio-profiles](https: + * //cloud.google.com/text-to-speech/docs/audio-profiles) + * for current supported profile ids. + *+ * + *
repeated string effects_profile_id = 6;
+ */
+ public Builder clearEffectsProfileId() {
+ effectsProfileId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * An identifier which selects 'audio effects' profiles that are applied on + * (post synthesized) text to speech. + * Effects are applied on top of each other in the order they are given. + * See + * [audio-profiles](https: + * //cloud.google.com/text-to-speech/docs/audio-profiles) + * for current supported profile ids. + *+ * + *
repeated string effects_profile_id = 6;
+ */
+ public Builder addEffectsProfileIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureEffectsProfileIdIsMutable();
+ effectsProfileId_.add(value);
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfigOrBuilder.java b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfigOrBuilder.java
index 37287901b911..3af4c9f58147 100644
--- a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfigOrBuilder.java
+++ b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/AudioConfigOrBuilder.java
@@ -89,4 +89,69 @@ public interface AudioConfigOrBuilder
* int32 sample_rate_hertz = 5;
*/
int getSampleRateHertz();
+
+ /**
+ *
+ *
+ * + * An identifier which selects 'audio effects' profiles that are applied on + * (post synthesized) text to speech. + * Effects are applied on top of each other in the order they are given. + * See + * [audio-profiles](https: + * //cloud.google.com/text-to-speech/docs/audio-profiles) + * for current supported profile ids. + *+ * + *
repeated string effects_profile_id = 6;
+ */
+ java.util.List+ * An identifier which selects 'audio effects' profiles that are applied on + * (post synthesized) text to speech. + * Effects are applied on top of each other in the order they are given. + * See + * [audio-profiles](https: + * //cloud.google.com/text-to-speech/docs/audio-profiles) + * for current supported profile ids. + *+ * + *
repeated string effects_profile_id = 6;
+ */
+ int getEffectsProfileIdCount();
+ /**
+ *
+ *
+ * + * An identifier which selects 'audio effects' profiles that are applied on + * (post synthesized) text to speech. + * Effects are applied on top of each other in the order they are given. + * See + * [audio-profiles](https: + * //cloud.google.com/text-to-speech/docs/audio-profiles) + * for current supported profile ids. + *+ * + *
repeated string effects_profile_id = 6;
+ */
+ java.lang.String getEffectsProfileId(int index);
+ /**
+ *
+ *
+ * + * An identifier which selects 'audio effects' profiles that are applied on + * (post synthesized) text to speech. + * Effects are applied on top of each other in the order they are given. + * See + * [audio-profiles](https: + * //cloud.google.com/text-to-speech/docs/audio-profiles) + * for current supported profile ids. + *+ * + *
repeated string effects_profile_id = 6;
+ */
+ com.google.protobuf.ByteString getEffectsProfileIdBytes(int index);
}
diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java
index 039ed3984c68..3140454662c5 100644
--- a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java
+++ b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechProto.java
@@ -72,30 +72,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\002 \001(\tH\000B\016\n\014input_source\"\177\n\024VoiceSelectio"
+ "nParams\022\025\n\rlanguage_code\030\001 \001(\t\022\014\n\004name\030\002"
+ " \001(\t\022B\n\013ssml_gender\030\003 \001(\0162-.google.cloud"
- + ".texttospeech.v1.SsmlVoiceGender\"\253\001\n\013Aud"
+ + ".texttospeech.v1.SsmlVoiceGender\"\307\001\n\013Aud"
+ "ioConfig\022C\n\016audio_encoding\030\001 \001(\0162+.googl"
+ "e.cloud.texttospeech.v1.AudioEncoding\022\025\n"
+ "\rspeaking_rate\030\002 \001(\001\022\r\n\005pitch\030\003 \001(\001\022\026\n\016v"
+ "olume_gain_db\030\004 \001(\001\022\031\n\021sample_rate_hertz"
- + "\030\005 \001(\005\"1\n\030SynthesizeSpeechResponse\022\025\n\rau"
- + "dio_content\030\001 \001(\014*W\n\017SsmlVoiceGender\022!\n\035"
- + "SSML_VOICE_GENDER_UNSPECIFIED\020\000\022\010\n\004MALE\020"
- + "\001\022\n\n\006FEMALE\020\002\022\013\n\007NEUTRAL\020\003*T\n\rAudioEncod"
- + "ing\022\036\n\032AUDIO_ENCODING_UNSPECIFIED\020\000\022\014\n\010L"
- + "INEAR16\020\001\022\007\n\003MP3\020\002\022\014\n\010OGG_OPUS\020\0032\270\002\n\014Tex"
- + "tToSpeech\022\203\001\n\nListVoices\022/.google.cloud."
- + "texttospeech.v1.ListVoicesRequest\0320.goog"
- + "le.cloud.texttospeech.v1.ListVoicesRespo"
- + "nse\"\022\202\323\344\223\002\014\022\n/v1/voices\022\241\001\n\020SynthesizeSp"
- + "eech\0225.google.cloud.texttospeech.v1.Synt"
- + "hesizeSpeechRequest\0326.google.cloud.textt"
- + "ospeech.v1.SynthesizeSpeechResponse\"\036\202\323\344"
- + "\223\002\030\"\023/v1/text:synthesize:\001*B\302\001\n com.goog"
- + "le.cloud.texttospeech.v1B\021TextToSpeechPr"
- + "otoP\001ZHgoogle.golang.org/genproto/google"
- + "apis/cloud/texttospeech/v1;texttospeech\370"
- + "\001\001\252\002\034Google.Cloud.TextToSpeech.V1\312\002\034Goog"
- + "le\\Cloud\\TextToSpeech\\V1b\006proto3"
+ + "\030\005 \001(\005\022\032\n\022effects_profile_id\030\006 \003(\t\"1\n\030Sy"
+ + "nthesizeSpeechResponse\022\025\n\raudio_content\030"
+ + "\001 \001(\014*W\n\017SsmlVoiceGender\022!\n\035SSML_VOICE_G"
+ + "ENDER_UNSPECIFIED\020\000\022\010\n\004MALE\020\001\022\n\n\006FEMALE\020"
+ + "\002\022\013\n\007NEUTRAL\020\003*T\n\rAudioEncoding\022\036\n\032AUDIO"
+ + "_ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\007\n"
+ + "\003MP3\020\002\022\014\n\010OGG_OPUS\020\0032\270\002\n\014TextToSpeech\022\203\001"
+ + "\n\nListVoices\022/.google.cloud.texttospeech"
+ + ".v1.ListVoicesRequest\0320.google.cloud.tex"
+ + "ttospeech.v1.ListVoicesResponse\"\022\202\323\344\223\002\014\022"
+ + "\n/v1/voices\022\241\001\n\020SynthesizeSpeech\0225.googl"
+ + "e.cloud.texttospeech.v1.SynthesizeSpeech"
+ + "Request\0326.google.cloud.texttospeech.v1.S"
+ + "ynthesizeSpeechResponse\"\036\202\323\344\223\002\030\"\023/v1/tex"
+ + "t:synthesize:\001*B\302\001\n com.google.cloud.tex"
+ + "ttospeech.v1B\021TextToSpeechProtoP\001ZHgoogl"
+ + "e.golang.org/genproto/googleapis/cloud/t"
+ + "exttospeech/v1;texttospeech\370\001\001\252\002\034Google."
+ + "Cloud.TextToSpeech.V1\312\002\034Google\\Cloud\\Tex"
+ + "tToSpeech\\V1b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@@ -165,7 +166,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_texttospeech_v1_AudioConfig_descriptor,
new java.lang.String[] {
- "AudioEncoding", "SpeakingRate", "Pitch", "VolumeGainDb", "SampleRateHertz",
+ "AudioEncoding",
+ "SpeakingRate",
+ "Pitch",
+ "VolumeGainDb",
+ "SampleRateHertz",
+ "EffectsProfileId",
});
internal_static_google_cloud_texttospeech_v1_SynthesizeSpeechResponse_descriptor =
getDescriptor().getMessageTypes().get(7);
diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto
index 0ccbde389214..07ac4ebebeef 100644
--- a/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto
+++ b/google-api-grpc/proto-google-cloud-texttospeech-v1/src/main/proto/google/cloud/texttospeech/v1/cloud_tts.proto
@@ -1,4 +1,4 @@
-// Copyright 2018 Google Inc.
+// Copyright 2018 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -11,6 +11,7 @@
// 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.
+//
syntax = "proto3";
@@ -29,8 +30,7 @@ option php_namespace = "Google\\Cloud\\TextToSpeech\\V1";
// Service that implements Google Cloud Text-to-Speech API.
service TextToSpeech {
- // Returns a list of [Voice][google.cloud.texttospeech.v1.Voice]
- // supported for synthesis.
+ // Returns a list of Voice supported for synthesis.
rpc ListVoices(ListVoicesRequest) returns (ListVoicesResponse) {
option (google.api.http) = {
get: "/v1/voices"
@@ -173,6 +173,16 @@ message AudioConfig {
// supported for the encoding chosen, in which case it will fail the request
// and return [google.rpc.Code.INVALID_ARGUMENT][].
int32 sample_rate_hertz = 5;
+
+ // An identifier which selects 'audio effects' profiles that are applied on
+ // (post synthesized) text to speech.
+ // Effects are applied on top of each other in the order they are given.
+ // See
+ //
+ // [audio-profiles](https:
+ // //cloud.google.com/text-to-speech/docs/audio-profiles)
+ // for current supported profile ids.
+ repeated string effects_profile_id = 6;
}
// The message returned to the client by the `SynthesizeSpeech` method.
diff --git a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java
index ab6384b67223..e3359a41362a 100644
--- a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java
+++ b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechClient.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2018 Google LLC
+ * Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -145,7 +145,7 @@ public TextToSpeechStub getStub() {
// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
- * Returns a list of [Voice][google.cloud.texttospeech.v1.Voice] supported for synthesis.
+ * Returns a list of Voice supported for synthesis.
*
* Sample code: * @@ -174,7 +174,7 @@ public final ListVoicesResponse listVoices(String languageCode) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Returns a list of [Voice][google.cloud.texttospeech.v1.Voice] supported for synthesis. + * Returns a list of Voice supported for synthesis. * *
Sample code: * @@ -194,7 +194,7 @@ public final ListVoicesResponse listVoices(ListVoicesRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Returns a list of [Voice][google.cloud.texttospeech.v1.Voice] supported for synthesis. + * Returns a list of Voice supported for synthesis. * *
Sample code: * diff --git a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechSettings.java b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechSettings.java index 3ea6ca2f89d6..ad3617082507 100644 --- a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechSettings.java +++ b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/TextToSpeechSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/package-info.java b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/package-info.java index 812536497545..1b7cb24f9dd1 100644 --- a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/package-info.java +++ b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechCallableFactory.java b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechCallableFactory.java index d0a6993f6d9e..0431819e3265 100644 --- a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechCallableFactory.java +++ b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechStub.java b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechStub.java index 08e7f70d2239..c9bc5b3cab7b 100644 --- a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechStub.java +++ b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/GrpcTextToSpeechStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStub.java b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStub.java index f75175223ea7..383a96adf97f 100644 --- a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStub.java +++ b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java index 932079d562c0..ceca96e68dfd 100644 --- a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java +++ b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/TextToSpeechStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java index a648a8298b9e..8ee19702beef 100644 --- a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java +++ b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings.java b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings.java index 856ac17d8d9c..0df3723feb88 100644 --- a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings.java +++ b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/package-info.java b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/package-info.java index 24ad803ca251..feff8995b378 100644 --- a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/package-info.java +++ b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechCallableFactory.java b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechCallableFactory.java index fa3c7c18fd1c..9fd1031670ae 100644 --- a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechCallableFactory.java +++ b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechStub.java b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechStub.java index 4fbd2b62d2c1..15dc89d2d949 100644 --- a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechStub.java +++ b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/GrpcTextToSpeechStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStub.java b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStub.java index 8706c0bc769b..0e37d01993fa 100644 --- a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStub.java +++ b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java index 694197e38e16..537a540709a2 100644 --- a/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java +++ b/google-cloud-clients/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeech.java b/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeech.java index 6b311dc30c86..5dc823e8e109 100644 --- a/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeech.java +++ b/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeech.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeechImpl.java b/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeechImpl.java index 419597e9bdcb..55b62431c806 100644 --- a/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeechImpl.java +++ b/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/MockTextToSpeechImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/TextToSpeechClientTest.java b/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/TextToSpeechClientTest.java index 6a133ee21e21..43a7597d9622 100644 --- a/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/TextToSpeechClientTest.java +++ b/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/TextToSpeechClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/TextToSpeechSmokeTest.java b/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/TextToSpeechSmokeTest.java index f2535f84fcce..b94298f8254e 100644 --- a/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/TextToSpeechSmokeTest.java +++ b/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/TextToSpeechSmokeTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeech.java b/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeech.java index 1c426479c799..4a56e5940bbc 100644 --- a/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeech.java +++ b/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeech.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeechImpl.java b/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeechImpl.java index f58832d50098..29e3479be36a 100644 --- a/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeechImpl.java +++ b/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/MockTextToSpeechImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClientTest.java b/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClientTest.java index d60d6366567a..73ec948db37a 100644 --- a/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClientTest.java +++ b/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSmokeTest.java b/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSmokeTest.java index 01db0aabf394..cbdcfc666466 100644 --- a/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSmokeTest.java +++ b/google-cloud-clients/google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSmokeTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-clients/google-cloud-texttospeech/synth.metadata b/google-cloud-clients/google-cloud-texttospeech/synth.metadata index 52a92b5f7558..5e06eb86a3a5 100644 --- a/google-cloud-clients/google-cloud-texttospeech/synth.metadata +++ b/google-cloud-clients/google-cloud-texttospeech/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-01-12T08:51:17.352312Z", + "updateTime": "2019-02-07T08:50:36.930179Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.5", - "dockerImage": "googleapis/artman@sha256:5a96c2c5c6f9570cc9556b63dc9ce1838777fd9166b5b64e43ad8e0ecee2fe2c" + "version": "0.16.10", + "dockerImage": "googleapis/artman@sha256:0954ba3e40d694e631bb2f39460d502a3d9f3a66d40b7a9a67f4b30012195beb" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "2156b3490f9fe4d79bcb34754a3aaed7ea52114d", - "internalRef": "228970571" + "sha": "49b7906ba5f15c1bc52bf5febc3bd0645d29b980", + "internalRef": "232773383" } } ],