1
- // Copyright 2019 Google LLC.
1
+ // Copyright 2021 Google LLC
2
2
//
3
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
4
// you may not use this file except in compliance with the License.
11
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
- //
15
14
16
15
syntax = "proto3" ;
17
16
@@ -20,6 +19,7 @@ package google.cloud.texttospeech.v1;
20
19
import "google/api/annotations.proto" ;
21
20
import "google/api/client.proto" ;
22
21
import "google/api/field_behavior.proto" ;
22
+ import "google/api/resource.proto" ;
23
23
24
24
option cc_enable_arenas = true ;
25
25
option csharp_namespace = "Google.Cloud.TextToSpeech.V1" ;
@@ -29,6 +29,10 @@ option java_outer_classname = "TextToSpeechProto";
29
29
option java_package = "com.google.cloud.texttospeech.v1" ;
30
30
option php_namespace = "Google\\Cloud\\TextToSpeech\\V1" ;
31
31
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
+ };
32
36
33
37
// Service that implements Google Cloud Text-to-Speech API.
34
38
service TextToSpeech {
@@ -83,7 +87,7 @@ enum SsmlVoiceGender {
83
87
// A female voice.
84
88
FEMALE = 2 ;
85
89
86
- // A gender-neutral voice.
90
+ // A gender-neutral voice. This voice is not yet supported.
87
91
NEUTRAL = 3 ;
88
92
}
89
93
@@ -105,6 +109,14 @@ enum AudioEncoding {
105
109
// Chrome and Firefox). The quality of the encoding is considerably higher
106
110
// than MP3 while using approximately the same bitrate.
107
111
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 ;
108
120
}
109
121
110
122
// The message returned to the client by the `ListVoices` method.
0 commit comments