Skip to content

Commit b3ff183

Browse files
Google APIscopybara-github
authored andcommitted
feat: update v1 proto
PiperOrigin-RevId: 410256789
1 parent 256cfca commit b3ff183

3 files changed

Lines changed: 18 additions & 14 deletions

File tree

google/cloud/texttospeech/v1/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ proto_library(
2727
"//google/api:annotations_proto",
2828
"//google/api:client_proto",
2929
"//google/api:field_behavior_proto",
30+
"//google/api:resource_proto",
3031
],
3132
)
3233

google/cloud/texttospeech/v1/cloud_tts.proto

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Google LLC.
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14-
//
1514

1615
syntax = "proto3";
1716

@@ -20,6 +19,7 @@ package google.cloud.texttospeech.v1;
2019
import "google/api/annotations.proto";
2120
import "google/api/client.proto";
2221
import "google/api/field_behavior.proto";
22+
import "google/api/resource.proto";
2323

2424
option cc_enable_arenas = true;
2525
option csharp_namespace = "Google.Cloud.TextToSpeech.V1";
@@ -29,6 +29,10 @@ option java_outer_classname = "TextToSpeechProto";
2929
option java_package = "com.google.cloud.texttospeech.v1";
3030
option php_namespace = "Google\\Cloud\\TextToSpeech\\V1";
3131
option ruby_package = "Google::Cloud::TextToSpeech::V1";
32+
option (google.api.resource_definition) = {
33+
type: "automl.googleapis.com/Model"
34+
pattern: "projects/{project}/locations/{location}/models/{model}"
35+
};
3236

3337
// Service that implements Google Cloud Text-to-Speech API.
3438
service TextToSpeech {
@@ -83,7 +87,7 @@ enum SsmlVoiceGender {
8387
// A female voice.
8488
FEMALE = 2;
8589

86-
// A gender-neutral voice.
90+
// A gender-neutral voice. This voice is not yet supported.
8791
NEUTRAL = 3;
8892
}
8993

@@ -105,6 +109,14 @@ enum AudioEncoding {
105109
// Chrome and Firefox). The quality of the encoding is considerably higher
106110
// than MP3 while using approximately the same bitrate.
107111
OGG_OPUS = 3;
112+
113+
// 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
114+
// Audio content returned as MULAW also contains a WAV header.
115+
MULAW = 5;
116+
117+
// 8-bit samples that compand 14-bit audio samples using G.711 PCMU/A-law.
118+
// Audio content returned as ALAW also contains a WAV header.
119+
ALAW = 6;
108120
}
109121

110122
// The message returned to the client by the `ListVoices` method.

google/cloud/texttospeech/v1/texttospeech_grpc_service_config.json

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,8 @@
11
{
22
"methodConfig": [
33
{
4-
"name": [
5-
{
6-
"service": "google.cloud.texttospeech.v1.TextToSpeech",
7-
"method": "ListVoices"
8-
},
9-
{
10-
"service": "google.cloud.texttospeech.v1.TextToSpeech",
11-
"method": "SynthesizeSpeech"
12-
}
13-
],
14-
"timeout": "600s",
4+
"name": [{"service": "google.cloud.texttospeech.v1.TextToSpeech"}],
5+
"timeout": "300s",
156
"retryPolicy": {
167
"initialBackoff": "0.100s",
178
"maxBackoff": "60s",

0 commit comments

Comments
 (0)