Skip to content

Commit cea98dc

Browse files
chore: Update generation configuration at Tue Aug 26 02:31:23 UTC 2025 (#11734)
This pull request is generated with proto changes between [googleapis/googleapis@525c95a](googleapis/googleapis@525c95a) (exclusive) and [googleapis/googleapis@b738e78](googleapis/googleapis@b738e78) (inclusive). BEGIN_COMMIT_OVERRIDE BEGIN_NESTED_COMMIT feat: [texttospeech] Support promptable voices by specifying a model name and a prompt feat: [texttospeech] Add enum value M4A to enum AudioEncoding docs: [texttospeech] A comment for method `StreamingSynthesize` in service `TextToSpeech` is changed docs: [texttospeech] A comment for enum value `AUDIO_ENCODING_UNSPECIFIED` in enum `AudioEncoding` is changed docs: [texttospeech] A comment for enum value `OGG_OPUS` in enum `AudioEncoding` is changed docs: [texttospeech] A comment for enum value `PCM` in enum `AudioEncoding` is changed docs: [texttospeech] A comment for field `low_latency_journey_synthesis` in message `.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions` is changed docs: [texttospeech] A comment for enum value `PHONETIC_ENCODING_IPA` in enum `PhoneticEncoding` is changed docs: [texttospeech] A comment for enum value `PHONETIC_ENCODING_X_SAMPA` in enum `PhoneticEncoding` is changed docs: [texttospeech] A comment for field `phrase` in message `.google.cloud.texttospeech.v1beta1.CustomPronunciationParams` is changed docs: [texttospeech] A comment for field `pronunciations` in message `.google.cloud.texttospeech.v1beta1.CustomPronunciations` is changed docs: [texttospeech] A comment for message `MultiSpeakerMarkup` is changed docs: [texttospeech] A comment for field `custom_pronunciations` in message `.google.cloud.texttospeech.v1beta1.SynthesisInput` is changed docs: [texttospeech] A comment for field `voice_clone` in message `.google.cloud.texttospeech.v1beta1.VoiceSelectionParams` is changed docs: [texttospeech] A comment for field `speaking_rate` in message `.google.cloud.texttospeech.v1beta1.AudioConfig` is changed docs: [texttospeech] A comment for field `audio_encoding` in message `.google.cloud.texttospeech.v1beta1.StreamingAudioConfig` is changed docs: [texttospeech] A comment for field `text` in message `.google.cloud.texttospeech.v1beta1.StreamingSynthesisInput` is changed PiperOrigin-RevId: 799242210 Source Link: [googleapis/googleapis@b738e78](googleapis/googleapis@b738e78) END_NESTED_COMMIT END_COMMIT_OVERRIDE
1 parent bcf739f commit cea98dc

28 files changed

+2260
-412
lines changed

generation_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
gapic_generator_version: 2.62.0
2-
googleapis_commitish: 525c95a7a122ec2869ae06cd02fa5013819463f6
2+
googleapis_commitish: b738e78ed63effb7d199ed2d61c9e03291b6077f
33
libraries_bom_version: 26.66.0
44

55
# the libraries are ordered with respect to library name, which is

java-texttospeech/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
4242
<dependency>
4343
<groupId>com.google.cloud</groupId>
4444
<artifactId>google-cloud-texttospeech</artifactId>
45-
<version>2.73.0</version>
45+
<version>2.74.0</version>
4646
</dependency>
4747
```
4848

4949
If you are using Gradle without BOM, add this to your dependencies:
5050

5151
```Groovy
52-
implementation 'com.google.cloud:google-cloud-texttospeech:2.73.0'
52+
implementation 'com.google.cloud:google-cloud-texttospeech:2.74.0'
5353
```
5454

5555
If you are using SBT, add this to your dependencies:
5656

5757
```Scala
58-
libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.73.0"
58+
libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.74.0"
5959
```
6060

6161
## Authentication
@@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
194194
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
195195
[stability-image]: https://img.shields.io/badge/stability-stable-green
196196
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-texttospeech.svg
197-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.73.0
197+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.74.0
198198
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
199199
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
200200
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
* </tr>
9494
* <tr>
9595
* <td><p> StreamingSynthesize</td>
96-
* <td><p> Performs bidirectional streaming speech synthesis: receive audio while sending text.</td>
96+
* <td><p> Performs bidirectional streaming speech synthesis: receives audio while sending text.</td>
9797
* <td>
9898
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
9999
* <ul>
@@ -393,7 +393,7 @@ public final SynthesizeSpeechResponse synthesizeSpeech(SynthesizeSpeechRequest r
393393

394394
// AUTO-GENERATED DOCUMENTATION AND METHOD.
395395
/**
396-
* Performs bidirectional streaming speech synthesis: receive audio while sending text.
396+
* Performs bidirectional streaming speech synthesis: receives audio while sending text.
397397
*
398398
* <p>Sample code:
399399
*

java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechGrpc.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ default void synthesizeSpeech(
275275
*
276276
*
277277
* <pre>
278-
* Performs bidirectional streaming speech synthesis: receive audio while
278+
* Performs bidirectional streaming speech synthesis: receives audio while
279279
* sending text.
280280
* </pre>
281281
*/
@@ -361,7 +361,7 @@ public void synthesizeSpeech(
361361
*
362362
*
363363
* <pre>
364-
* Performs bidirectional streaming speech synthesis: receive audio while
364+
* Performs bidirectional streaming speech synthesis: receives audio while
365365
* sending text.
366366
* </pre>
367367
*/
@@ -426,7 +426,7 @@ public com.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse synthesize
426426
*
427427
*
428428
* <pre>
429-
* Performs bidirectional streaming speech synthesis: receive audio while
429+
* Performs bidirectional streaming speech synthesis: receives audio while
430430
* sending text.
431431
* </pre>
432432
*/

java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AdvancedVoiceOptions.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
7070
*
7171
*
7272
* <pre>
73-
* Only for Journey voices. If false, the synthesis will be context aware
74-
* and have higher latency.
73+
* Only for Journey voices. If false, the synthesis is context aware
74+
* and has a higher latency.
7575
* </pre>
7676
*
7777
* <code>optional bool low_latency_journey_synthesis = 1;</code>
@@ -87,8 +87,8 @@ public boolean hasLowLatencyJourneySynthesis() {
8787
*
8888
*
8989
* <pre>
90-
* Only for Journey voices. If false, the synthesis will be context aware
91-
* and have higher latency.
90+
* Only for Journey voices. If false, the synthesis is context aware
91+
* and has a higher latency.
9292
* </pre>
9393
*
9494
* <code>optional bool low_latency_journey_synthesis = 1;</code>
@@ -457,8 +457,8 @@ public Builder mergeFrom(
457457
*
458458
*
459459
* <pre>
460-
* Only for Journey voices. If false, the synthesis will be context aware
461-
* and have higher latency.
460+
* Only for Journey voices. If false, the synthesis is context aware
461+
* and has a higher latency.
462462
* </pre>
463463
*
464464
* <code>optional bool low_latency_journey_synthesis = 1;</code>
@@ -474,8 +474,8 @@ public boolean hasLowLatencyJourneySynthesis() {
474474
*
475475
*
476476
* <pre>
477-
* Only for Journey voices. If false, the synthesis will be context aware
478-
* and have higher latency.
477+
* Only for Journey voices. If false, the synthesis is context aware
478+
* and has a higher latency.
479479
* </pre>
480480
*
481481
* <code>optional bool low_latency_journey_synthesis = 1;</code>
@@ -491,8 +491,8 @@ public boolean getLowLatencyJourneySynthesis() {
491491
*
492492
*
493493
* <pre>
494-
* Only for Journey voices. If false, the synthesis will be context aware
495-
* and have higher latency.
494+
* Only for Journey voices. If false, the synthesis is context aware
495+
* and has a higher latency.
496496
* </pre>
497497
*
498498
* <code>optional bool low_latency_journey_synthesis = 1;</code>
@@ -512,8 +512,8 @@ public Builder setLowLatencyJourneySynthesis(boolean value) {
512512
*
513513
*
514514
* <pre>
515-
* Only for Journey voices. If false, the synthesis will be context aware
516-
* and have higher latency.
515+
* Only for Journey voices. If false, the synthesis is context aware
516+
* and has a higher latency.
517517
* </pre>
518518
*
519519
* <code>optional bool low_latency_journey_synthesis = 1;</code>

java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AdvancedVoiceOptionsOrBuilder.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ public interface AdvancedVoiceOptionsOrBuilder
2828
*
2929
*
3030
* <pre>
31-
* Only for Journey voices. If false, the synthesis will be context aware
32-
* and have higher latency.
31+
* Only for Journey voices. If false, the synthesis is context aware
32+
* and has a higher latency.
3333
* </pre>
3434
*
3535
* <code>optional bool low_latency_journey_synthesis = 1;</code>
@@ -42,8 +42,8 @@ public interface AdvancedVoiceOptionsOrBuilder
4242
*
4343
*
4444
* <pre>
45-
* Only for Journey voices. If false, the synthesis will be context aware
46-
* and have higher latency.
45+
* Only for Journey voices. If false, the synthesis is context aware
46+
* and has a higher latency.
4747
* </pre>
4848
*
4949
* <code>optional bool low_latency_journey_synthesis = 1;</code>

java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfig.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ public com.google.cloud.texttospeech.v1beta1.AudioEncoding getAudioEncoding() {
115115
*
116116
*
117117
* <pre>
118-
* Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
118+
* Optional. Input only. Speaking rate/speed, in the range [0.25, 2.0]. 1.0 is
119119
* the normal native speed supported by the specific voice. 2.0 is twice as
120120
* fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0
121-
* speed. Any other values &lt; 0.25 or &gt; 4.0 will return an error.
121+
* speed. Any other values &lt; 0.25 or &gt; 2.0 will return an error.
122122
* </pre>
123123
*
124124
* <code>
@@ -899,10 +899,10 @@ public Builder clearAudioEncoding() {
899899
*
900900
*
901901
* <pre>
902-
* Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
902+
* Optional. Input only. Speaking rate/speed, in the range [0.25, 2.0]. 1.0 is
903903
* the normal native speed supported by the specific voice. 2.0 is twice as
904904
* fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0
905-
* speed. Any other values &lt; 0.25 or &gt; 4.0 will return an error.
905+
* speed. Any other values &lt; 0.25 or &gt; 2.0 will return an error.
906906
* </pre>
907907
*
908908
* <code>
@@ -920,10 +920,10 @@ public double getSpeakingRate() {
920920
*
921921
*
922922
* <pre>
923-
* Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
923+
* Optional. Input only. Speaking rate/speed, in the range [0.25, 2.0]. 1.0 is
924924
* the normal native speed supported by the specific voice. 2.0 is twice as
925925
* fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0
926-
* speed. Any other values &lt; 0.25 or &gt; 4.0 will return an error.
926+
* speed. Any other values &lt; 0.25 or &gt; 2.0 will return an error.
927927
* </pre>
928928
*
929929
* <code>
@@ -945,10 +945,10 @@ public Builder setSpeakingRate(double value) {
945945
*
946946
*
947947
* <pre>
948-
* Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
948+
* Optional. Input only. Speaking rate/speed, in the range [0.25, 2.0]. 1.0 is
949949
* the normal native speed supported by the specific voice. 2.0 is twice as
950950
* fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0
951-
* speed. Any other values &lt; 0.25 or &gt; 4.0 will return an error.
951+
* speed. Any other values &lt; 0.25 or &gt; 2.0 will return an error.
952952
* </pre>
953953
*
954954
* <code>

java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioConfigOrBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ public interface AudioConfigOrBuilder
5858
*
5959
*
6060
* <pre>
61-
* Optional. Input only. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is
61+
* Optional. Input only. Speaking rate/speed, in the range [0.25, 2.0]. 1.0 is
6262
* the normal native speed supported by the specific voice. 2.0 is twice as
6363
* fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0
64-
* speed. Any other values &lt; 0.25 or &gt; 4.0 will return an error.
64+
* speed. Any other values &lt; 0.25 or &gt; 2.0 will return an error.
6565
* </pre>
6666
*
6767
* <code>

java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioEncoding.java

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
3434
*
3535
*
3636
* <pre>
37-
* Not specified. Will return result
37+
* Not specified. Only used by GenerateVoiceCloningKey. Otherwise, will return
38+
* result
3839
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
3940
* </pre>
4041
*
@@ -76,7 +77,7 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
7677
*
7778
*
7879
* <pre>
79-
* Opus encoded audio wrapped in an ogg container. The result will be a
80+
* Opus encoded audio wrapped in an ogg container. The result is a
8081
* file which can be played natively on Android, and in browsers (at least
8182
* Chrome and Firefox). The quality of the encoding is considerably higher
8283
* than MP3 while using approximately the same bitrate.
@@ -112,21 +113,32 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
112113
*
113114
* <pre>
114115
* Uncompressed 16-bit signed little-endian samples (Linear PCM).
115-
* Note that as opposed to LINEAR16, audio will not be wrapped in a WAV (or
116+
* Note that as opposed to LINEAR16, audio won't be wrapped in a WAV (or
116117
* any other) header.
117118
* </pre>
118119
*
119120
* <code>PCM = 7;</code>
120121
*/
121122
PCM(7),
123+
/**
124+
*
125+
*
126+
* <pre>
127+
* M4A audio.
128+
* </pre>
129+
*
130+
* <code>M4A = 8;</code>
131+
*/
132+
M4A(8),
122133
UNRECOGNIZED(-1),
123134
;
124135

125136
/**
126137
*
127138
*
128139
* <pre>
129-
* Not specified. Will return result
140+
* Not specified. Only used by GenerateVoiceCloningKey. Otherwise, will return
141+
* result
130142
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
131143
* </pre>
132144
*
@@ -172,7 +184,7 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
172184
*
173185
*
174186
* <pre>
175-
* Opus encoded audio wrapped in an ogg container. The result will be a
187+
* Opus encoded audio wrapped in an ogg container. The result is a
176188
* file which can be played natively on Android, and in browsers (at least
177189
* Chrome and Firefox). The quality of the encoding is considerably higher
178190
* than MP3 while using approximately the same bitrate.
@@ -211,14 +223,25 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
211223
*
212224
* <pre>
213225
* Uncompressed 16-bit signed little-endian samples (Linear PCM).
214-
* Note that as opposed to LINEAR16, audio will not be wrapped in a WAV (or
226+
* Note that as opposed to LINEAR16, audio won't be wrapped in a WAV (or
215227
* any other) header.
216228
* </pre>
217229
*
218230
* <code>PCM = 7;</code>
219231
*/
220232
public static final int PCM_VALUE = 7;
221233

234+
/**
235+
*
236+
*
237+
* <pre>
238+
* M4A audio.
239+
* </pre>
240+
*
241+
* <code>M4A = 8;</code>
242+
*/
243+
public static final int M4A_VALUE = 8;
244+
222245
public final int getNumber() {
223246
if (this == UNRECOGNIZED) {
224247
throw new java.lang.IllegalArgumentException(
@@ -259,6 +282,8 @@ public static AudioEncoding forNumber(int value) {
259282
return ALAW;
260283
case 7:
261284
return PCM;
285+
case 8:
286+
return M4A;
262287
default:
263288
return null;
264289
}

0 commit comments

Comments
 (0)