Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 4c17321

Browse files
feat: Support MULAW audio encoding feat: Support MP3_64_KBPS audio encoding feat: Support timepointing via SSML <mark> tag (#198)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/1bfd519f-1b14-449f-9567-cb3f2afc7961/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 323424211 Source-Link: googleapis/googleapis@a94df49
1 parent ed42248 commit 4c17321

File tree

14 files changed

+2682
-54
lines changed

14 files changed

+2682
-54
lines changed

google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/TextToSpeechStubSettings.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,10 @@ public static class Builder extends StubSettings.Builder<TextToSpeechStubSetting
203203
.setInitialRetryDelay(Duration.ofMillis(100L))
204204
.setRetryDelayMultiplier(1.3)
205205
.setMaxRetryDelay(Duration.ofMillis(60000L))
206-
.setInitialRpcTimeout(Duration.ofMillis(600000L))
206+
.setInitialRpcTimeout(Duration.ofMillis(300000L))
207207
.setRpcTimeoutMultiplier(1.0)
208-
.setMaxRpcTimeout(Duration.ofMillis(600000L))
209-
.setTotalTimeout(Duration.ofMillis(600000L))
208+
.setMaxRpcTimeout(Duration.ofMillis(300000L))
209+
.setTotalTimeout(Duration.ofMillis(300000L))
210210
.build();
211211
definitions.put("retry_policy_1_params", settings);
212212
settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build();
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- see http://www.mojohaus.org/clirr-maven-plugin/examples/ignored-differences.html -->
3+
<differences>
4+
<difference>
5+
<differenceType>7012</differenceType>
6+
<className>com/google/cloud/texttospeech/v1/*OrBuilder</className>
7+
<method>* get*(*)</method>
8+
</difference>
9+
<difference>
10+
<differenceType>7012</differenceType>
11+
<className>com/google/cloud/texttospeech/v1/*OrBuilder</className>
12+
<method>boolean contains*(*)</method>
13+
</difference>
14+
<difference>
15+
<differenceType>7012</differenceType>
16+
<className>com/google/cloud/texttospeech/v1/*OrBuilder</className>
17+
<method>boolean has*(*)</method>
18+
</difference>
19+
</differences>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- see http://www.mojohaus.org/clirr-maven-plugin/examples/ignored-differences.html -->
3+
<differences>
4+
<difference>
5+
<differenceType>7012</differenceType>
6+
<className>com/google/cloud/texttospeech/v1beta1/*OrBuilder</className>
7+
<method>* get*(*)</method>
8+
</difference>
9+
<difference>
10+
<differenceType>7012</differenceType>
11+
<className>com/google/cloud/texttospeech/v1beta1/*OrBuilder</className>
12+
<method>boolean contains*(*)</method>
13+
</difference>
14+
<difference>
15+
<differenceType>7012</differenceType>
16+
<className>com/google/cloud/texttospeech/v1beta1/*OrBuilder</className>
17+
<method>boolean has*(*)</method>
18+
</difference>
19+
</differences>

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

+46
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,16 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
6060
* <code>MP3 = 2;</code>
6161
*/
6262
MP3(2),
63+
/**
64+
*
65+
*
66+
* <pre>
67+
* MP3 at 64kbps.
68+
* </pre>
69+
*
70+
* <code>MP3_64_KBPS = 4;</code>
71+
*/
72+
MP3_64_KBPS(4),
6373
/**
6474
*
6575
*
@@ -73,6 +83,17 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
7383
* <code>OGG_OPUS = 3;</code>
7484
*/
7585
OGG_OPUS(3),
86+
/**
87+
*
88+
*
89+
* <pre>
90+
* 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
91+
* Audio content returned as MULAW also contains a WAV header.
92+
* </pre>
93+
*
94+
* <code>MULAW = 5;</code>
95+
*/
96+
MULAW(5),
7697
UNRECOGNIZED(-1),
7798
;
7899

@@ -107,6 +128,16 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
107128
* <code>MP3 = 2;</code>
108129
*/
109130
public static final int MP3_VALUE = 2;
131+
/**
132+
*
133+
*
134+
* <pre>
135+
* MP3 at 64kbps.
136+
* </pre>
137+
*
138+
* <code>MP3_64_KBPS = 4;</code>
139+
*/
140+
public static final int MP3_64_KBPS_VALUE = 4;
110141
/**
111142
*
112143
*
@@ -120,6 +151,17 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
120151
* <code>OGG_OPUS = 3;</code>
121152
*/
122153
public static final int OGG_OPUS_VALUE = 3;
154+
/**
155+
*
156+
*
157+
* <pre>
158+
* 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
159+
* Audio content returned as MULAW also contains a WAV header.
160+
* </pre>
161+
*
162+
* <code>MULAW = 5;</code>
163+
*/
164+
public static final int MULAW_VALUE = 5;
123165

124166
public final int getNumber() {
125167
if (this == UNRECOGNIZED) {
@@ -151,8 +193,12 @@ public static AudioEncoding forNumber(int value) {
151193
return LINEAR16;
152194
case 2:
153195
return MP3;
196+
case 4:
197+
return MP3_64_KBPS;
154198
case 3:
155199
return OGG_OPUS;
200+
case 5:
201+
return MULAW;
156202
default:
157203
return null;
158204
}

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public enum SsmlVoiceGender implements com.google.protobuf.ProtocolMessageEnum {
6767
*
6868
*
6969
* <pre>
70-
* A gender-neutral voice.
70+
* A gender-neutral voice. This voice is not yet supported.
7171
* </pre>
7272
*
7373
* <code>NEUTRAL = 3;</code>
@@ -114,7 +114,7 @@ public enum SsmlVoiceGender implements com.google.protobuf.ProtocolMessageEnum {
114114
*
115115
*
116116
* <pre>
117-
* A gender-neutral voice.
117+
* A gender-neutral voice. This voice is not yet supported.
118118
* </pre>
119119
*
120120
* <code>NEUTRAL = 3;</code>

0 commit comments

Comments
 (0)