Skip to content
Permalink
Browse files
feat: Support MULAW audio encoding feat: Support MP3_64_KBPS audio en…
…coding 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
  • Loading branch information
yoshi-automation committed Jul 28, 2020
1 parent ed42248 commit 4c1732132690363e5a1aece52f06c01defd1f615
@@ -203,10 +203,10 @@ public static class Builder extends StubSettings.Builder<TextToSpeechStubSetting
.setInitialRetryDelay(Duration.ofMillis(100L))
.setRetryDelayMultiplier(1.3)
.setMaxRetryDelay(Duration.ofMillis(60000L))
.setInitialRpcTimeout(Duration.ofMillis(600000L))
.setInitialRpcTimeout(Duration.ofMillis(300000L))
.setRpcTimeoutMultiplier(1.0)
.setMaxRpcTimeout(Duration.ofMillis(600000L))
.setTotalTimeout(Duration.ofMillis(600000L))
.setMaxRpcTimeout(Duration.ofMillis(300000L))
.setTotalTimeout(Duration.ofMillis(300000L))
.build();
definitions.put("retry_policy_1_params", settings);
settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build();
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- see http://www.mojohaus.org/clirr-maven-plugin/examples/ignored-differences.html -->
<differences>
<difference>
<differenceType>7012</differenceType>
<className>com/google/cloud/texttospeech/v1/*OrBuilder</className>
<method>* get*(*)</method>
</difference>
<difference>
<differenceType>7012</differenceType>
<className>com/google/cloud/texttospeech/v1/*OrBuilder</className>
<method>boolean contains*(*)</method>
</difference>
<difference>
<differenceType>7012</differenceType>
<className>com/google/cloud/texttospeech/v1/*OrBuilder</className>
<method>boolean has*(*)</method>
</difference>
</differences>
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- see http://www.mojohaus.org/clirr-maven-plugin/examples/ignored-differences.html -->
<differences>
<difference>
<differenceType>7012</differenceType>
<className>com/google/cloud/texttospeech/v1beta1/*OrBuilder</className>
<method>* get*(*)</method>
</difference>
<difference>
<differenceType>7012</differenceType>
<className>com/google/cloud/texttospeech/v1beta1/*OrBuilder</className>
<method>boolean contains*(*)</method>
</difference>
<difference>
<differenceType>7012</differenceType>
<className>com/google/cloud/texttospeech/v1beta1/*OrBuilder</className>
<method>boolean has*(*)</method>
</difference>
</differences>
@@ -60,6 +60,16 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
* <code>MP3 = 2;</code>
*/
MP3(2),
/**
*
*
* <pre>
* MP3 at 64kbps.
* </pre>
*
* <code>MP3_64_KBPS = 4;</code>
*/
MP3_64_KBPS(4),
/**
*
*
@@ -73,6 +83,17 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
* <code>OGG_OPUS = 3;</code>
*/
OGG_OPUS(3),
/**
*
*
* <pre>
* 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
* Audio content returned as MULAW also contains a WAV header.
* </pre>
*
* <code>MULAW = 5;</code>
*/
MULAW(5),
UNRECOGNIZED(-1),
;

@@ -107,6 +128,16 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
* <code>MP3 = 2;</code>
*/
public static final int MP3_VALUE = 2;
/**
*
*
* <pre>
* MP3 at 64kbps.
* </pre>
*
* <code>MP3_64_KBPS = 4;</code>
*/
public static final int MP3_64_KBPS_VALUE = 4;
/**
*
*
@@ -120,6 +151,17 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
* <code>OGG_OPUS = 3;</code>
*/
public static final int OGG_OPUS_VALUE = 3;
/**
*
*
* <pre>
* 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
* Audio content returned as MULAW also contains a WAV header.
* </pre>
*
* <code>MULAW = 5;</code>
*/
public static final int MULAW_VALUE = 5;

public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -151,8 +193,12 @@ public static AudioEncoding forNumber(int value) {
return LINEAR16;
case 2:
return MP3;
case 4:
return MP3_64_KBPS;
case 3:
return OGG_OPUS;
case 5:
return MULAW;
default:
return null;
}
@@ -67,7 +67,7 @@ public enum SsmlVoiceGender implements com.google.protobuf.ProtocolMessageEnum {
*
*
* <pre>
* A gender-neutral voice.
* A gender-neutral voice. This voice is not yet supported.
* </pre>
*
* <code>NEUTRAL = 3;</code>
@@ -114,7 +114,7 @@ public enum SsmlVoiceGender implements com.google.protobuf.ProtocolMessageEnum {
*
*
* <pre>
* A gender-neutral voice.
* A gender-neutral voice. This voice is not yet supported.
* </pre>
*
* <code>NEUTRAL = 3;</code>

0 comments on commit 4c17321

Please sign in to comment.