Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 9538a5a

Browse filesBrowse files
feat: Add ALAW support on client library. And improve the ListVoiceRequest message's documentation (#412)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/81128f7c-8919-49e3-ad04-4808a30efef8/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 365608171 Source-Link: googleapis/googleapis@45445f4
1 parent e2df801 commit 9538a5a
Copy full SHA for 9538a5a

File tree

Expand file treeCollapse file tree

9 files changed

+144
-104
lines changed
Filter options
Expand file treeCollapse file tree

9 files changed

+144
-104
lines changed

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

Copy file name to clipboardExpand all lines: google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechClient.java
+7-6Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,13 @@ public TextToSpeechStub getStub() {
152152
* }</pre>
153153
*
154154
* @param languageCode Optional. Recommended.
155-
* [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If specified, the
156-
* ListVoices call will only return voices that can be used to synthesize this language_code.
157-
* E.g. when specifying "en-NZ", you will get supported "en-\\&#42;" voices; when specifying
158-
* "no", you will get supported "no-\\&#42;" (Norwegian) and "nb-\\&#42;" (Norwegian Bokmal)
159-
* voices; specifying "zh" will also get supported "cmn-\\&#42;" voices; specifying "zh-hk"
160-
* will also get supported "yue-\\&#42;" voices.
155+
* [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If not specified, the
156+
* API will return all supported voices. If specified, the ListVoices call will only return
157+
* voices that can be used to synthesize this language_code. E.g. when specifying "en-NZ", you
158+
* will get supported "en-NZ" voices; when specifying "no", you will get supported
159+
* "no-\\&#42;" (Norwegian) and "nb-\\&#42;" (Norwegian Bokmal) voices; specifying "zh" will
160+
* also get supported "cmn-\\&#42;" voices; specifying "zh-hk" will also get supported
161+
* "yue-hk" voices.
161162
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
162163
*/
163164
public final ListVoicesResponse listVoices(String languageCode) {

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

Copy file name to clipboardExpand all lines: proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/AudioEncoding.java
+24Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,17 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
9494
* <code>MULAW = 5;</code>
9595
*/
9696
MULAW(5),
97+
/**
98+
*
99+
*
100+
* <pre>
101+
* 8-bit samples that compand 14-bit audio samples using G.711 PCMU/A-law.
102+
* Audio content returned as ALAW also contains a WAV header.
103+
* </pre>
104+
*
105+
* <code>ALAW = 6;</code>
106+
*/
107+
ALAW(6),
97108
UNRECOGNIZED(-1),
98109
;
99110

@@ -162,6 +173,17 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
162173
* <code>MULAW = 5;</code>
163174
*/
164175
public static final int MULAW_VALUE = 5;
176+
/**
177+
*
178+
*
179+
* <pre>
180+
* 8-bit samples that compand 14-bit audio samples using G.711 PCMU/A-law.
181+
* Audio content returned as ALAW also contains a WAV header.
182+
* </pre>
183+
*
184+
* <code>ALAW = 6;</code>
185+
*/
186+
public static final int ALAW_VALUE = 6;
165187

166188
public final int getNumber() {
167189
if (this == UNRECOGNIZED) {
@@ -199,6 +221,8 @@ public static AudioEncoding forNumber(int value) {
199221
return OGG_OPUS;
200222
case 5:
201223
return MULAW;
224+
case 6:
225+
return ALAW;
202226
default:
203227
return null;
204228
}

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

Copy file name to clipboardExpand all lines: proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequest.java
+42-35Lines changed: 42 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
118118
*
119119
* <pre>
120120
* Optional. Recommended.
121-
* [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
122-
* specified, the ListVoices call will only return voices that can be used to
123-
* synthesize this language_code. E.g. when specifying "en-NZ", you will get
124-
* supported "en-&#92;*" voices; when specifying "no", you will get supported
121+
* [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
122+
* If not specified, the API will return all supported voices.
123+
* If specified, the ListVoices call will only return voices that can be used
124+
* to synthesize this language_code. E.g. when specifying "en-NZ", you will
125+
* get supported "en-NZ" voices; when specifying "no", you will get supported
125126
* "no-&#92;*" (Norwegian) and "nb-&#92;*" (Norwegian Bokmal) voices; specifying "zh"
126127
* will also get supported "cmn-&#92;*" voices; specifying "zh-hk" will also get
127-
* supported "yue-&#92;*" voices.
128+
* supported "yue-hk" voices.
128129
* </pre>
129130
*
130131
* <code>string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -148,13 +149,14 @@ public java.lang.String getLanguageCode() {
148149
*
149150
* <pre>
150151
* Optional. Recommended.
151-
* [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
152-
* specified, the ListVoices call will only return voices that can be used to
153-
* synthesize this language_code. E.g. when specifying "en-NZ", you will get
154-
* supported "en-&#92;*" voices; when specifying "no", you will get supported
152+
* [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
153+
* If not specified, the API will return all supported voices.
154+
* If specified, the ListVoices call will only return voices that can be used
155+
* to synthesize this language_code. E.g. when specifying "en-NZ", you will
156+
* get supported "en-NZ" voices; when specifying "no", you will get supported
155157
* "no-&#92;*" (Norwegian) and "nb-&#92;*" (Norwegian Bokmal) voices; specifying "zh"
156158
* will also get supported "cmn-&#92;*" voices; specifying "zh-hk" will also get
157-
* supported "yue-&#92;*" voices.
159+
* supported "yue-hk" voices.
158160
* </pre>
159161
*
160162
* <code>string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -499,13 +501,14 @@ public Builder mergeFrom(
499501
*
500502
* <pre>
501503
* Optional. Recommended.
502-
* [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
503-
* specified, the ListVoices call will only return voices that can be used to
504-
* synthesize this language_code. E.g. when specifying "en-NZ", you will get
505-
* supported "en-&#92;*" voices; when specifying "no", you will get supported
504+
* [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
505+
* If not specified, the API will return all supported voices.
506+
* If specified, the ListVoices call will only return voices that can be used
507+
* to synthesize this language_code. E.g. when specifying "en-NZ", you will
508+
* get supported "en-NZ" voices; when specifying "no", you will get supported
506509
* "no-&#92;*" (Norwegian) and "nb-&#92;*" (Norwegian Bokmal) voices; specifying "zh"
507510
* will also get supported "cmn-&#92;*" voices; specifying "zh-hk" will also get
508-
* supported "yue-&#92;*" voices.
511+
* supported "yue-hk" voices.
509512
* </pre>
510513
*
511514
* <code>string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -528,13 +531,14 @@ public java.lang.String getLanguageCode() {
528531
*
529532
* <pre>
530533
* Optional. Recommended.
531-
* [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
532-
* specified, the ListVoices call will only return voices that can be used to
533-
* synthesize this language_code. E.g. when specifying "en-NZ", you will get
534-
* supported "en-&#92;*" voices; when specifying "no", you will get supported
534+
* [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
535+
* If not specified, the API will return all supported voices.
536+
* If specified, the ListVoices call will only return voices that can be used
537+
* to synthesize this language_code. E.g. when specifying "en-NZ", you will
538+
* get supported "en-NZ" voices; when specifying "no", you will get supported
535539
* "no-&#92;*" (Norwegian) and "nb-&#92;*" (Norwegian Bokmal) voices; specifying "zh"
536540
* will also get supported "cmn-&#92;*" voices; specifying "zh-hk" will also get
537-
* supported "yue-&#92;*" voices.
541+
* supported "yue-hk" voices.
538542
* </pre>
539543
*
540544
* <code>string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -557,13 +561,14 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
557561
*
558562
* <pre>
559563
* Optional. Recommended.
560-
* [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
561-
* specified, the ListVoices call will only return voices that can be used to
562-
* synthesize this language_code. E.g. when specifying "en-NZ", you will get
563-
* supported "en-&#92;*" voices; when specifying "no", you will get supported
564+
* [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
565+
* If not specified, the API will return all supported voices.
566+
* If specified, the ListVoices call will only return voices that can be used
567+
* to synthesize this language_code. E.g. when specifying "en-NZ", you will
568+
* get supported "en-NZ" voices; when specifying "no", you will get supported
564569
* "no-&#92;*" (Norwegian) and "nb-&#92;*" (Norwegian Bokmal) voices; specifying "zh"
565570
* will also get supported "cmn-&#92;*" voices; specifying "zh-hk" will also get
566-
* supported "yue-&#92;*" voices.
571+
* supported "yue-hk" voices.
567572
* </pre>
568573
*
569574
* <code>string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -585,13 +590,14 @@ public Builder setLanguageCode(java.lang.String value) {
585590
*
586591
* <pre>
587592
* Optional. Recommended.
588-
* [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
589-
* specified, the ListVoices call will only return voices that can be used to
590-
* synthesize this language_code. E.g. when specifying "en-NZ", you will get
591-
* supported "en-&#92;*" voices; when specifying "no", you will get supported
593+
* [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
594+
* If not specified, the API will return all supported voices.
595+
* If specified, the ListVoices call will only return voices that can be used
596+
* to synthesize this language_code. E.g. when specifying "en-NZ", you will
597+
* get supported "en-NZ" voices; when specifying "no", you will get supported
592598
* "no-&#92;*" (Norwegian) and "nb-&#92;*" (Norwegian Bokmal) voices; specifying "zh"
593599
* will also get supported "cmn-&#92;*" voices; specifying "zh-hk" will also get
594-
* supported "yue-&#92;*" voices.
600+
* supported "yue-hk" voices.
595601
* </pre>
596602
*
597603
* <code>string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -609,13 +615,14 @@ public Builder clearLanguageCode() {
609615
*
610616
* <pre>
611617
* Optional. Recommended.
612-
* [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
613-
* specified, the ListVoices call will only return voices that can be used to
614-
* synthesize this language_code. E.g. when specifying "en-NZ", you will get
615-
* supported "en-&#92;*" voices; when specifying "no", you will get supported
618+
* [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
619+
* If not specified, the API will return all supported voices.
620+
* If specified, the ListVoices call will only return voices that can be used
621+
* to synthesize this language_code. E.g. when specifying "en-NZ", you will
622+
* get supported "en-NZ" voices; when specifying "no", you will get supported
616623
* "no-&#92;*" (Norwegian) and "nb-&#92;*" (Norwegian Bokmal) voices; specifying "zh"
617624
* will also get supported "cmn-&#92;*" voices; specifying "zh-hk" will also get
618-
* supported "yue-&#92;*" voices.
625+
* supported "yue-hk" voices.
619626
* </pre>
620627
*
621628
* <code>string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];</code>

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

Copy file name to clipboardExpand all lines: proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/ListVoicesRequestOrBuilder.java
+12-10Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ public interface ListVoicesRequestOrBuilder
2828
*
2929
* <pre>
3030
* Optional. Recommended.
31-
* [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
32-
* specified, the ListVoices call will only return voices that can be used to
33-
* synthesize this language_code. E.g. when specifying "en-NZ", you will get
34-
* supported "en-&#92;*" voices; when specifying "no", you will get supported
31+
* [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
32+
* If not specified, the API will return all supported voices.
33+
* If specified, the ListVoices call will only return voices that can be used
34+
* to synthesize this language_code. E.g. when specifying "en-NZ", you will
35+
* get supported "en-NZ" voices; when specifying "no", you will get supported
3536
* "no-&#92;*" (Norwegian) and "nb-&#92;*" (Norwegian Bokmal) voices; specifying "zh"
3637
* will also get supported "cmn-&#92;*" voices; specifying "zh-hk" will also get
37-
* supported "yue-&#92;*" voices.
38+
* supported "yue-hk" voices.
3839
* </pre>
3940
*
4041
* <code>string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
@@ -47,13 +48,14 @@ public interface ListVoicesRequestOrBuilder
4748
*
4849
* <pre>
4950
* Optional. Recommended.
50-
* [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
51-
* specified, the ListVoices call will only return voices that can be used to
52-
* synthesize this language_code. E.g. when specifying "en-NZ", you will get
53-
* supported "en-&#92;*" voices; when specifying "no", you will get supported
51+
* [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
52+
* If not specified, the API will return all supported voices.
53+
* If specified, the ListVoices call will only return voices that can be used
54+
* to synthesize this language_code. E.g. when specifying "en-NZ", you will
55+
* get supported "en-NZ" voices; when specifying "no", you will get supported
5456
* "no-&#92;*" (Norwegian) and "nb-&#92;*" (Norwegian Bokmal) voices; specifying "zh"
5557
* will also get supported "cmn-&#92;*" voices; specifying "zh-hk" will also get
56-
* supported "yue-&#92;*" voices.
58+
* supported "yue-hk" voices.
5759
* </pre>
5860
*
5961
* <code>string language_code = 1 [(.google.api.field_behavior) = OPTIONAL];</code>

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

Copy file name to clipboardExpand all lines: proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequest.java
+17-17Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ public com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder getAudioConfig
508508
*
509509
*
510510
* <pre>
511-
* Whether and what timepoints should be returned in the response.
511+
* Whether and what timepoints are returned in the response.
512512
* </pre>
513513
*
514514
* <code>
@@ -529,7 +529,7 @@ public com.google.cloud.texttospeech.v1beta1.AudioConfigOrBuilder getAudioConfig
529529
*
530530
*
531531
* <pre>
532-
* Whether and what timepoints should be returned in the response.
532+
* Whether and what timepoints are returned in the response.
533533
* </pre>
534534
*
535535
* <code>
@@ -546,7 +546,7 @@ public int getEnableTimePointingCount() {
546546
*
547547
*
548548
* <pre>
549-
* Whether and what timepoints should be returned in the response.
549+
* Whether and what timepoints are returned in the response.
550550
* </pre>
551551
*
552552
* <code>
@@ -565,7 +565,7 @@ public int getEnableTimePointingCount() {
565565
*
566566
*
567567
* <pre>
568-
* Whether and what timepoints should be returned in the response.
568+
* Whether and what timepoints are returned in the response.
569569
* </pre>
570570
*
571571
* <code>
@@ -582,7 +582,7 @@ public java.util.List<java.lang.Integer> getEnableTimePointingValueList() {
582582
*
583583
*
584584
* <pre>
585-
* Whether and what timepoints should be returned in the response.
585+
* Whether and what timepoints are returned in the response.
586586
* </pre>
587587
*
588588
* <code>
@@ -1660,7 +1660,7 @@ private void ensureEnableTimePointingIsMutable() {
16601660
*
16611661
*
16621662
* <pre>
1663-
* Whether and what timepoints should be returned in the response.
1663+
* Whether and what timepoints are returned in the response.
16641664
* </pre>
16651665
*
16661666
* <code>
@@ -1681,7 +1681,7 @@ private void ensureEnableTimePointingIsMutable() {
16811681
*
16821682
*
16831683
* <pre>
1684-
* Whether and what timepoints should be returned in the response.
1684+
* Whether and what timepoints are returned in the response.
16851685
* </pre>
16861686
*
16871687
* <code>
@@ -1697,7 +1697,7 @@ public int getEnableTimePointingCount() {
16971697
*
16981698
*
16991699
* <pre>
1700-
* Whether and what timepoints should be returned in the response.
1700+
* Whether and what timepoints are returned in the response.
17011701
* </pre>
17021702
*
17031703
* <code>
@@ -1715,7 +1715,7 @@ public int getEnableTimePointingCount() {
17151715
*
17161716
*
17171717
* <pre>
1718-
* Whether and what timepoints should be returned in the response.
1718+
* Whether and what timepoints are returned in the response.
17191719
* </pre>
17201720
*
17211721
* <code>
@@ -1741,7 +1741,7 @@ public Builder setEnableTimePointing(
17411741
*
17421742
*
17431743
* <pre>
1744-
* Whether and what timepoints should be returned in the response.
1744+
* Whether and what timepoints are returned in the response.
17451745
* </pre>
17461746
*
17471747
* <code>
@@ -1765,7 +1765,7 @@ public Builder addEnableTimePointing(
17651765
*
17661766
*
17671767
* <pre>
1768-
* Whether and what timepoints should be returned in the response.
1768+
* Whether and what timepoints are returned in the response.
17691769
* </pre>
17701770
*
17711771
* <code>
@@ -1792,7 +1792,7 @@ public Builder addAllEnableTimePointing(
17921792
*
17931793
*
17941794
* <pre>
1795-
* Whether and what timepoints should be returned in the response.
1795+
* Whether and what timepoints are returned in the response.
17961796
* </pre>
17971797
*
17981798
* <code>
@@ -1811,7 +1811,7 @@ public Builder clearEnableTimePointing() {
18111811
*
18121812
*
18131813
* <pre>
1814-
* Whether and what timepoints should be returned in the response.
1814+
* Whether and what timepoints are returned in the response.
18151815
* </pre>
18161816
*
18171817
* <code>
@@ -1827,7 +1827,7 @@ public java.util.List<java.lang.Integer> getEnableTimePointingValueList() {
18271827
*
18281828
*
18291829
* <pre>
1830-
* Whether and what timepoints should be returned in the response.
1830+
* Whether and what timepoints are returned in the response.
18311831
* </pre>
18321832
*
18331833
* <code>
@@ -1844,7 +1844,7 @@ public int getEnableTimePointingValue(int index) {
18441844
*
18451845
*
18461846
* <pre>
1847-
* Whether and what timepoints should be returned in the response.
1847+
* Whether and what timepoints are returned in the response.
18481848
* </pre>
18491849
*
18501850
* <code>
@@ -1865,7 +1865,7 @@ public Builder setEnableTimePointingValue(int index, int value) {
18651865
*
18661866
*
18671867
* <pre>
1868-
* Whether and what timepoints should be returned in the response.
1868+
* Whether and what timepoints are returned in the response.
18691869
* </pre>
18701870
*
18711871
* <code>
@@ -1885,7 +1885,7 @@ public Builder addEnableTimePointingValue(int value) {
18851885
*
18861886
*
18871887
* <pre>
1888-
* Whether and what timepoints should be returned in the response.
1888+
* Whether and what timepoints are returned in the response.
18891889
* </pre>
18901890
*
18911891
* <code>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.